diff --git a/clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts b/clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts index c4cf3ca91536..0e9d573cfaae 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 95c9acc5213f..4880b643e7e1 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 f7962e96f045..a0e6670228fb 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 c8fb52a0cc75..6027599f85a3 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 ff5a0206b04d..26f5ad3b9bce 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 6df89f35a040..7fb7bd5edbf7 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 7f0e2c7b9c88..8ed170f98d54 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 137da3b10fb0..5cf77f21a82f 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 217c10bf9c4e..7399c44792e4 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 7492aeeb4eb1..3f3256ac4560 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 8e00f5711926..111d65a1515b 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 16458a951e1f..601cb2b523b2 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 d2cf31955018..e63be2f51e3c 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 3898570a2db5..330fb86c93fe 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 2574b24af84c..c13645dd0e36 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 a24b783f606f..d37c511892b8 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 b42076113ebd..07f61b753a8e 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 3622800d8d27..a1b1d87f36bf 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 0943a720b406..064835a7d231 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 a89461417484..b07c08a0ec90 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 837fcac3b851..000531925623 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 2f5a3fb2fdc4..af410c139f03 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 5e1ca0761cce..4ce1693fff88 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 acaa1a896184..e87081297307 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 d07d2497d37e..a72eeab10d5c 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 df2d7bc6f8c7..35b9816cf73b 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 e2c0c8177443..9b3707f2c670 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 2af37292766b..ae860b468d83 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 b6a38e1ba150..7b20c7cf0079 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 2a39d7151547..b19060ea46de 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 209607ea6521..9605d5a2aa2f 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 75131c8d05a2..58791e958d3e 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 d62ea457a36b..bbd995cd7653 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 55fb4f6cfce7..7b463b9ff9eb 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 058952c9f830..bac9599b6c89 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 f66915d0e116..3321c6b79493 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 5dfed12faf88..c82d47f645da 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 7ee626a1ed43..5bdd5ede7b1c 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 50ab521ef697..97281b21d999 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 f9afb1353c3c..7d6dd1db02e5 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 78e8d9670bfb..e07d9e505606 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 e40ab7316cc8..f659394ab89f 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 35c39075d301..83be8a3824e4 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 9209ed603f63..a58d43d6d347 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 905d60e8bd2c..d9754314b08a 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 78169092af9f..06ce4133110d 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 cd004d535ba1..31b11962cb32 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 3c6e5c05d274..4ad792ea9b2f 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 0736c702ed4e..4d4bbd9ed35b 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 3d3056043775..90dceef7e98b 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 45c4617c37a0..80fa0cb32817 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 5dfb1bacbe75..4c10ec002ed7 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 f9e324c99f1b..f012146e0316 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 cd01eda9978a..1839a9eefe91 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 a1f785ec8872..3ea537129add 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 5302dabd5828..9a7e6bb2474e 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 0120c1c77ec0..2f8ef51cf887 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 8ceb0375472d..feef963a2b79 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 301d2d753a21..ed81465a0e86 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 03aa7c1b94a5..313d10c98715 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 68fffe4bb91c..895faa031583 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 cca31dfbeb66..5a4f8594e609 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 e29369f3c35a..51a9d89adee2 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 672abf71e59b..7c248277c6a0 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 4a3b27fbb452..efabec2cb5e8 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 f7437c87b03b..232ae9bf16d3 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 af5d326f2a98..b688c013b9a2 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 8974d1524e8a..5fa15e809b54 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 f8abb8ef16e6..f25b1accd673 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 9fd069429b05..4b7a49aff5db 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 e5af186d23b9..1afadf64890c 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 f0d93424f2a9..d0cdda44f205 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 564b87a21bb8..184850e7f99c 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 080b50622100..03f5c4f84d78 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 8ed7d6de95d3..8a8b26ca2db0 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 60f5b1359953..d31ecd3a2249 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 b33b65d09414..7a6f97942ae6 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 3f8983aeda5f..64fcaed2005a 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 48830d6fa93d..9216e320811a 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 ccc2287eef0d..37e1fde0a476 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 d7d294e64b94..ec89681c3fca 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 58cf05115ebf..79f6fe45da17 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 78c7cbeb3b20..ea9e9de83cd3 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 1fda377c7d97..c2e15e5ce8a8 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 f8cc8235ba88..f4f86a5e2bcb 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 ea52d1469a7c..2c10da5b3df9 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 be4f8bedf4b7..ded7cbb2a7c5 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 f04467b5676e..ef91198fbecf 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 cd5c4904f4c2..d19f2c726b5b 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 2a2d1d328a5b..06f4160ecd45 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 f52344eaa70c..09aac3ed5868 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 a42eb3810e6a..efba86e5870d 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 b9f0b6a40593..2d5cb692d58f 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 19fb90211c7a..ff2d40dbd66f 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 08144c4e34c5..ee612277a635 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 9dcd65b2363e..8241ab85e81e 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 0fd3fa0616c3..9eba600e41d1 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 24972b55c9e5..1cbbea57ca08 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 54166ad406e3..2db7e294333d 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 5d407427f8a1..dbed69814c17 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 42620a3b77fd..7621ace9b7cb 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 8c2477c8cd94..bc39fa0728fb 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 f6a7773db984..23dc16b55078 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 3011a2dcdf6b..d6c5f42adef0 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 8d7920bb4229..4bf10bbd5047 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 cd3d61e823ee..f9ded17f121d 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 ab8096d2f37d..55eb62fbbae7 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 f8091f8370b4..e7e2e453a833 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 bab117aa9dea..bccba820f223 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 60b123a2fc2f..add1baeb785f 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 fa6d729cec37..f3069e621bda 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 f45508871f9e..b32a90d29670 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 a19d0bab26b2..a28dc3235c46 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 cec7102aad30..d364e60bcd92 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 a9171f23e67c..d0e358872d05 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 4a36d0f19fbd..5fa5015e6bbc 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 22ebf9166573..db5627a5667d 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 a63463af0fc4..e5ab9acbfa3e 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 a6152f9cbbfb..d61962dd496d 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 07f35e5a7319..771535b9939c 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 927f7463fd6c..6d2b216f8e07 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 2b7a9070be3d..f62771830029 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 9baafac259c9..4acee8955453 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 c42b1d47faf2..c705a48f987d 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 b62649b25a23..ea60db3879ea 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 ac9c75032ff0..911399d97a87 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 ba80945f6ae4..3de7ed333a0f 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 b742ef02d0f9..2141c90e9849 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 3ce261dcdadb..a65b3ccb8e74 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 bd9af2cf26c5..0862650b3d2d 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 f44f80fd6425..3f14f13bd4ba 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 a35611fa8922..9c89962ae12f 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 fe2040245744..04ad5294dfa5 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 3383faf38d7c..e9d8911fcd35 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 74678ca854f1..6c33c6f86353 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 fc2ba6916cb1..031c8f36ba0b 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 06ad624a7ffa..7e458ced5078 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 8cf77e182600..adbb10b80683 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 683d1a1e927d..e237883c93a6 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 29566ab28d6c..7528032c4197 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 9a34cda6c9f6..ee280dc7b6c8 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 8f7148c3ea83..8b14acea4390 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 7248355a21eb..2cc0aae41621 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 c53c8b67fd4b..8a0e855b4f63 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 72eea3152a9c..0e812dad3970 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 2f038d9e60f3..05c6e8ba1ca1 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 bdb34abbbb73..ac757b52e2ff 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 b0f5d91f4259..29fea9bc4b46 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 ad7664be49fa..7d55355c1336 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 9678e559560f..9637a2eb8074 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 b9c2746399a0..733dd2106115 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 b8b38c3dff38..2d59aea38a9c 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 a8221e89d324..3fbde8099b71 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 e5bd488e5c0b..1c3e39c5223c 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 f1e73ee4c6f6..53649a94346d 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 d47dea76688f..2c2f26c1b201 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 c8866a42a015..07c60ca580ab 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 31f9db60ef1e..1d5449ce7d23 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 a8580f4f965c..3848331aae71 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 fb9e993a7f5c..cd8b73ae0f8a 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 8b9b84ec923f..8981eb07fcec 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 6f5a7146fa67..8772b101603f 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 0cf9d254be7c..5fe57ae954e1 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 e5ebbe746f57..4139bfa737fa 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 092cc79753be..174bd4f0c772 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 1bc2363b7f81..e63ad13ff0da 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 e32f47ed559a..034d26defd3a 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 aea9bb69ac25..5cc2a50e05d4 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 4d2bfdbbadcf..c29932784059 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 fa47e6c22574..255c373190f7 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 a977377a7bfe..e3e2b9e840d4 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 b24dc8762429..6e869652b5cf 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 ef1e0ade37b0..eaccd101d40d 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 b2aad33b8ff8..1ec5764603df 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 ddf311effac9..d7c6be476528 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 4036601b1a98..3a486153ce1c 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 e9eadb510e36..d663336de3f7 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 4f0d69223fcf..75b7516a74e2 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 743b2dae29af..c74e3d518e84 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 8b97393ba790..f3445e46a30a 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 cf97b5105766..59ebea5e7c8d 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 a56cae54093d..783b1bdcf0cd 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 8788fd8528c4..dc042a10556e 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 01b4d490ad21..f7c5c7191821 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 e72dda96e1c8..9508ba8f2da8 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 fa4f5576fd1e..c0e839725753 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 fe64123da4cd..ee66b1f262a8 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 cf3b3aef4702..7c4ee7b5efc7 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 485eda85ae6f..413fe1da22bf 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 a7df506a701d..cab388b37683 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 834aeeedb123..192b0b2001cd 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 d3dc8c56d9fa..d787c13fb45d 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 c56726b59a80..c48e8d0eacf4 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 50381ff5f9ed..16c9b5326105 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 38b40362d622..f87d4bbbdf05 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 e7343e067158..83992454ab47 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 4c82de84ff46..25c9a5dd59e1 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 5a4d1a476315..11d15e905d1c 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 790c49d4ded4..71c3ad87f3d1 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 a19b1ff38915..d4568d24fb2c 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 f4d5d4508d47..177de6002795 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 6b5b5545ed74..42590104fbff 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 88da4106bf72..06069dc19447 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 ee3be6e760f1..2a8c2e3f54f6 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 7373cb4b5ae0..fc5ef2e6ff38 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 72dda5ca50cf..c33d75106e84 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 617e9f8db6d2..b532ca273f6e 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 9f6b0662da7f..6ce59fc01dce 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 19ae4f0e2e44..71800662e953 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 4c6d477c9e15..39f2451e581a 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 b7a3d403deba..eb34f31e9994 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 3e8621103cfe..a1289f79e21d 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 7a8c17c9d822..0de0b544d71c 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 b1a828cc3144..4d2dcdcce5cb 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 fa5db3196082..fe2f0860244f 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 d20a4f58480c..7df75b598a0a 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 4d9129d84124..f00f40d56c47 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 ab38ab6c5998..1a1a529a411a 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 0a87866da4ae..c685c1d7a913 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 82aa01658940..2be0db2da443 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 cfa417486374..be20c89ed91e 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 3533ea08a48a..5c31fe2c423e 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 3793c307e697..04b0cb5aac1b 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 7ea07afecd83..c3558474861c 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 1f3f1098e5af..1594f204280f 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 ca0aa071ecb0..855c789746b9 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 326578005b13..cd929f22faf3 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 a62f7278ba3a..1b1abf5f6370 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 5167dca39ca3..37372462274a 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 d4128b3b1d70..298db5c8d8dd 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 1bbc1cdde911..e2024e1e8c3a 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 ee201f8167fb..33f56780975e 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 df0f274bbbe1..fdc0df17f255 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 9b534d09f053..daa5a1849923 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 88270c47f3d0..b89757a562ca 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 0ecf9756db29..3bbca491a002 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 e5d7baf176d3..3de839c5b990 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 0a886f9fa9f8..96ca359a8e69 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 cfcc1e0365c4..c4105d919c1e 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 6c18751d7af3..bef76ef640eb 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 de9788eaaa94..2c34e421154c 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 a2d9c2336bae..7a9bf424771b 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 80c7abcb3d76..6daee3ed4209 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 9de4b235cd23..96218d201ad1 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 8553898d74f8..0a9e845ed04d 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 93206e621da4..2d155c1f367b 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 acc5a0c0854e..c4fac3e1f7c8 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 30ca8e36a66f..7b7646a1c6c8 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 0ea49e19b276..22239f1a5944 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 05b95f7e057b..101961255f75 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 98a5be09b8ad..479da5aa6bbd 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 b345720be0cc..5ee2af6eb748 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 20204a1cb4cd..e258ccb504d3 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 2e7fc12cee71..5d0c2f20eb80 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 301e98e726a7..f53789ff48bb 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 9dc389d6868a..f5662dd71b73 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 9ed35c460790..7f47fbcc46e6 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 b2f18d63113c..7180e1d82809 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 24a3e0b0f983..2f68d30247cc 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 d38f9722be96..37e19e77e02e 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 5924b4feb416..c21fd7ebb8c9 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 151915b4ac04..ee207f95a941 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 ffed84646ea3..37131d7b3aa7 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 35da003283e3..b48ecf81c995 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 2e0f88cc16ac..966d641d131f 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 39c4c4f34686..52249bac457a 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 7f90ff4a66fa..cc1961302d8d 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 3dc35f0a001a..e359cbf3e6e3 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 3a3c45b15652..0f1bff466a97 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 d0d7d4acc6db..abe61a925f48 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 f35a227ede50..57b99b6b5b81 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 c5172236846b..b6393840d118 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 1faa1baf966a..47f0cd2c795f 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 af1c4e5d4cad..4fe9b0c8dddb 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 ebd9221be7a9..895afcc06e74 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 414244af05b4..73fa685387f3 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 81e114ddf20a..2ecc963ff600 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 07aeb3cd8d22..1e06ee479857 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 51d4957dbb72..3423bfc906d7 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 6f694ba942a3..c77714ceeeaa 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 ff4aba94fdc1..01e7b658cdf3 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 3950283a847e..7711c34c6e0a 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 3090379cd58c..99f93f3906ea 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 a852bcc08b87..db164bf2d964 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 c65f6cc14695..19c6725feff8 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 915f1bacaf93..f566bd21989d 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 4f94cdd3ea33..e4320331daa6 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 3ebd69a82993..cda9e70de09a 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 1f1b583421b8..01d1fc51851e 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 1cb866c11afb..36b94a5d0eaa 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 2d8377cf74eb..e8d6b22c9152 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 52076cde1d12..da9438e83752 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 df5935f1ed27..85291d43d96b 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 dd5c53d4ac9c..8cf3cd4a0628 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 4444d7b53192..27630e63fd73 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 d09dca0b6f0d..946e6b5ae869 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 cd103dd88711..9a7a286ab4b4 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 08de2f805b4f..d2faa513e005 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 f34a3da8c4a4..a9f2631a7f4c 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 30fab30c0bb2..ea1075e786b9 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 3eb4bf1a15db..2900c32f29d3 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 f6471880695b..fbbe66650d56 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 b41d8780d05f..8e52e4c92d0c 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 ba7e4df992f3..44f6bf71672f 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 104328c82562..db6e7e4cf843 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 205ef9de8571..5971e531f22e 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 7acaa05d238e..a6a33c7f746f 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 a0fbe5d500b9..215ec9e30529 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 2a088d7096be..21efdc776539 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 1a16e087d8ea..634d1c963154 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 06a20b3f9792..50591f00631d 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 a4f98cc6c737..4a3e4c999169 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 5a937d59cc8e..6020fe3d96f1 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 5db0d2d087ef..b6de3c0e6688 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 601db5d6f974..5a7f0dfee65a 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 7bb0d29defab..064242456da8 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 06e04821317a..a9e6139f520f 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 a7410f46d37a..a737ecf50e6f 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 d5674abb20a5..153190846597 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 0c602033eb06..e408fddb1e6a 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 e1fc5f84eec8..9a0764898010 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 9fb215829daa..a2406fa467f0 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 c73dbf2f68b5..8d0166b014af 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 fa874a1458e2..53e6a9deb199 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 1b95416668f6..304a15756cbe 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 6164a9d5ee76..7d9102f09949 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 34a36311b0ca..6a86c853a704 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 5899d4034091..bb495ecc5b0c 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 19121697d4c0..dc32cf083d24 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 cf1aac108f65..2be8139b426d 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 056e2de18eed..e0855623f0d5 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 d1ef6347c60f..bfaf471d3020 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 2a35c73d32fe..4d343e656800 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 bc7f100964d0..d8c55b299120 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 eb0cd9dfd600..2b220b67318a 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 54a4bca49ca6..77407fde0d99 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 2eeb89ccb677..c1b158ae673e 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 f78d1d0dc144..9b24705cc06b 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 5fe48b900a9b..f6544cc3b91e 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 bc8160906fe3..69ecb50012b3 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 45c1bf36f520..e3df1e353954 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 fa1426fb86a7..b324abbbf000 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 55a66933dbe0..5729a6c5441a 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 ba1fcfb56acc..76ddd45d178a 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 ca597cd75f18..892a999d149e 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 c81de516ed1c..496fb9fd9bc7 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 884417b0ec99..eac141cf8992 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 83ac8b8ba565..e24057a8b680 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 35eb4609f34b..6c110def8090 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 d52465be3011..3465dd14c7c1 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 e4e1e15f9f36..e20a7667805e 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 72bccaf1af76..2a2b194cb0c3 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 077fc3a899a5..869146e89a09 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 7a5af1260397..22167d11cf3f 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 dd40cce050d7..4d74151ceb68 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 78585b03e689..b4b550b7cab4 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 a171f364f2aa..703446ca8a94 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 20c621b303f5..722db20b6c0e 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 94c1f577f795..8e4da3dffe61 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 fa6233e18907..e12ff9605782 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 c3ca5e31a3ec..d8a5f185fa38 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 74ba7506cc2f..991488244191 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 c54e5f6a15e3..8a7dd3cb194a 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 6e009d193cdc..bc573d489da3 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 9863b31c704f..4fea167434bf 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 912e542a6836..e0b5fe6322a0 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 00cd9eb9703b..dd8c72a7a605 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 9ddc5be9d342..6354926b9943 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 51fc233a485e..8fce97ad2a26 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 8322c97df535..62018599ee9a 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 ffcf970359c6..64a2113c7cdf 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 4fe7d77b6ce2..ff5eab5ef831 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 56a8e33ae9cd..9dea7d8d5606 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 d967bfe1ff97..b0f848797e73 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 bcc4f60fd515..4f1e5db2e37d 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 08af0fb7df2e..38392822acb9 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 6dc62ade7f3c..ee62e6abaf23 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 9e2bc5cdd46f..22a2b9d7f7d5 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 c898ed7a8002..b1994cb37e19 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 b9d98972d989..c0123f484c1b 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 437a163eb31c..0e3aad3bd406 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 2f6c85152baf..09f92d29cde4 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 e38c40a5fafc..93a97f9ebcb1 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 ea6016b12ad8..61def83fc62d 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 996234a6fd15..c80f4ce5e98a 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 88290d1104e7..9466e13e92c0 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 c6a42ebcfeb5..44d226937ff1 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 d63cbf9e663d..591010bed5fb 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 d2353783e2be..0d318229e4a4 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 20213205be56..20a25609872e 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 395974bded7b..9c26fb04e89d 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 8270ebfde71b..4088994f80b5 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 3a02ecb1c5e3..e6dcfe144db2 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 290fbd748893..9b70911d5eb4 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 e396708f2efc..d9b7d4afcbd9 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 ea700c6e5f8f..3b2fc9c2abb9 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 9e847ad04136..26c8866edc7c 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 cfee1e6543c8..63e4eada9fe7 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 810e0a93af62..96a9480737c3 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 f125cc20dffc..a26bd6321f9a 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 eae64cd4f43b..fcafd2701f56 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 2c558b77a2ee..16a00e2df751 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 5d920ce804b1..e0ad9a3f4ee0 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 7277556b6da6..41d41001f1d6 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 a7f0b7e59ee0..beac7462275a 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 2759fa093a1c..c60119ec8ced 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 c3695a94d362..2ffa0c43ec39 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 d391257860a6..bd93a1f19231 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 e165af377de5..5bf7fa7ad2ea 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 e870a771a417..eee689ed9b8d 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 fea3a17b4249..0b5dbb6d27bb 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 2a8bd391f6ce..61270b3f5e8f 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 865a1df59d86..00647a36ca4b 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 36846785e377..33e82e90966b 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 02acf9f4ccfe..35e7369ad899 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 909b4af9a663..ea14e9c0efbb 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 583f1cce7aa2..8aa9f84235a9 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 fe89d1c4505e..9c0fb33bb98a 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 e3a7d2951de3..e48a4a23a993 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 118f3f0cc9d0..05522a0e195d 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 662abb6e4ef9..2afcb23a7218 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 125e726d33bb..31825689e74e 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 c42f4784c689..40f2af92def4 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 621f23d50d94..9dac4256b6ea 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 7ab287f69161..52aebb76ff6d 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 0dc3af3f2753..66524fae6170 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 fdf4d2be68e9..5e17f34b512c 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 9433fbffda74..dde1e4eb2dcb 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 0c4827394962..fedf8b731621 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 188d5917cc87..9584c8ea19d7 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 45458e5109dd..9a825384f1b4 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 db6974f669b5..4146d37a2149 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 e238a2f38fcc..5eda520c8d00 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 bffa40078827..6744df0b98c7 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 520e3a9dcc4e..5e05ceb5aeb3 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 a9c562d63576..7d87c4485c56 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 10778260b13e..8c58773f0517 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 6072e84901ba..8566d1b3c3d4 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 480b10e609e9..7576dca9c437 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 9eccfc24f8d3..75f8dfbcd623 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 0372c4384ff0..c94976cbfeba 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 00e28daa8a23..634cc661da17 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 37555cceb86c..7c875a343690 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 910fdb8beb95..a1892f40caa0 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 1cf7d06a4a87..d37a16b5833d 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 854ec94b8988..cdb6ce707e8d 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 cfd3186a072e..3a89eb125a74 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 f412eadd9f80..a76ee330a212 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 3d50558e06ef..43349784ab3e 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 ac5d91574cc3..8caf330dd0e4 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 316476e1d6f5..837115926490 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 c79748a5a6a8..2bebd27c1a99 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 6060faca08ff..b55fcd0c604c 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 dce99fdd76a1..9ee41221a699 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 1e85711b2d8b..e88b8c19ed6f 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 00f05123c9a7..98e6a1a29b63 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 cef73ac7bc1f..1a4d910bc26e 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 fad405acba8f..a07451a220de 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 7508ede6e1b6..33d97b933e5a 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 11d618c52792..7174c9a16325 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 748305ac8e43..de9b27f43c1a 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 0776bd2a1c74..3774475f9948 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 52b72c5f1059..8861050fc0a6 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 a98c5b97174a..9d4a62de7ddb 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 6459dfaae3f7..a7398bde4425 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 171d1653a60c..e4c1370274af 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 afada1849af5..0f86e83fd838 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 649161d75cd9..f356e542a90e 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 9b557a6c5e85..132f151666f3 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 d514053af4c5..21d2bfb3435c 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 246341690c8f..16b686146096 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 81f1b0165531..e2877446f533 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 f33a73b57195..c8f46ae2be21 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 73d0467b4795..47a60b5835b6 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 65466daed6e7..1fc20fcfcdcd 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 b480edff8ac4..9fe3d91e55d3 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 821fbbda48d6..c9d37d47205b 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 1e1487388c4c..54e52244cbef 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 90d3f2ba8d28..d8faba486dba 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 526a505530ae..8c9de3259764 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 515db29a1874..9595ff39f472 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 382f88f2467e..a38983f4a9d6 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 51efb8462fdb..2c9a5a9c2943 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 72646a8e0443..80c0339e4b90 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 26e0a6411557..26518bf7a486 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 2067442e1892..756bdc5bf790 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 339f050e648b..6e17400e8830 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 4c2fb768c80c..b5eaa3c20f99 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 f3cf7870d4bf..7394732ae55d 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 4a39513f9748..b9b19a1af35e 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 ae18b10dd470..302402c11b38 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 35560336a0f2..a6b34ea54841 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 1c4993a712ab..b8b0ed726bcc 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 7e8ce1e612b7..648463f52402 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 30d31419fa56..4955a943498c 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 a884b04bee47..7020ed5cd176 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 0f86a67ea159..441558a8b07c 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 d9a586526cdf..b57282f52a57 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 f88a5696ce6a..9a69f3e0e30f 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 21b00e4cbc4f..f6b86a59c98e 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 811ea822b340..2bb7c10ffb17 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 fff59c4b503f..d75fc30bc515 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 9a3842b5e268..e5f30019a866 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 3d12c8f65b03..d03c449c78bc 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 146afb95ce2e..83e4b44467a9 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 e1f3ad1c5e38..3c0f0300a606 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 4ed337f2cde9..a0bb8c4ce89f 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 105a44c80fc5..27e5518bc5eb 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 42168434f79d..07ce65344bd2 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 1bcea3568bc8..af57834cfa1a 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 5cfc231ccf59..cb8472337d38 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 f3208d78f0bd..3ab5be1456e6 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 e7343667a53f..a2aab3b16c5c 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 bc66c46c953b..10755f3b34a7 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 802714207a44..f0515cf8fa6a 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 2c3dd001207d..1ccc4beb01c1 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 f8d31bd9ba4f..b887239c1c6d 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 c0780b9aed03..99677b85efe6 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 0af880aa5d9b..d9c828bacde6 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 6a34440cea10..efd5df2e3fb0 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 5b2f9e3d0e1a..9a6c242632e9 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 09efe6920c5b..a934e789776e 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 45a86e6cb11a..7ffe46cec265 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 08e9e5680777..bfd4bf77beb5 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 894457108fea..add3e360f682 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 e313dd90e187..0b06deed7b75 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 4005c449410d..47a7ce107599 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 1a8810156f55..eee70a6c4d3c 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 c51e4d63cf78..2988ecb88077 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 7b8df2f8479c..b9b898cf69c3 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 e3433495ceef..7ce9b89fcfe5 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 ea7d66acac04..511a219e68ea 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 8ca28b398591..09d9bfc34757 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 bdb391b6b5aa..d8b524842bef 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 8c2908ab42e5..e4c32c34c2c6 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 c235baac8237..3c657d8ad2f7 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 fc9d9bedbd32..3b6965d5f95d 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 77170840db28..4fbe5e6302d6 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 286b7ddb20dd..919345e44664 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 dbe0d95e1b44..297fb6c5839a 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 b587c9f74799..d1961bce4794 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 4a4f58aeb893..3fc26721fa3d 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 98cd3a1a7287..01f1cf443190 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 20b0ea25fc12..f4e3514dd740 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 0c522ef16e64..655a9ba85c88 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 65ee3c816c24..2a9ab779678f 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 406d141293bc..6eecb4a1e462 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 326fcee8618f..557bacae3c04 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 87d3f49287bd..8888a26a96ed 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 e859b2da110c..273938945c0c 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 f1ce989b073c..672570d66719 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 a82d84898a2a..59ff16e68571 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 31cf0e47cd29..17571be7ef6c 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 573d97f41741..85dcb0464e0d 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 c60932a0d3f2..3f54b68b8e82 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 5639261725b1..ae7829db127f 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 944b3e400ac3..a44725114e2b 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 e6bd82d1218e..873e360b8d4e 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 3562a9975fc8..e9d6d1985e56 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 e087733b58d7..eb6f5b3a51f9 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 4580bc65485e..d5552e086806 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 a3f84a9e5bba..e6331ab9c080 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 f5bdb5e503db..9c9f88cad2cd 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 1803e85f2bfa..f6b2b0eac0ec 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 7f26f8a071bd..7d04dadec888 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 98ad0bff9e16..9da7dae7e32c 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 afd7898e5301..1ec2fe9d3170 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 fc75d369f52f..6e93b0a1212d 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 af0a55401774..d0d12c09ffea 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 03460604906c..fedf00f41a53 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 f93566349efd..411c170519d1 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 2cd718a93152..e00c30d3d476 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 81958e3bbbd5..ccd33571e8b7 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 dfe8464a3057..8a6868900304 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 2872b1ad239a..503bd774fb98 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 ae557922f5a6..e34aca4cd7aa 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 bddc8a1458c4..6927c99ba92a 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 f9c8ca3ec747..281455341f03 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 3b2c107f0d8e..cbbbeb6790fd 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 5808a55bba2a..4863970b5c7a 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 dc36ac60ae47..4acc2ee60508 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 46e7d2ec71bd..31ae582890cb 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 f90e3eb346f2..d1d5b9345138 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 c4f2506a363f..eac21e20a524 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 7a3b0c4f4da7..21720737115e 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 1aa4945277bc..d97fe35c08a0 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 1fe7498ee4fb..95d1a321f605 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 5b41e89e295f..b4cd44068543 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 4093f6ad2736..f397bd086e67 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 57e48a530215..39199e893d8c 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 265b2c34e978..116aac2af3ba 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 5a8c4fe168d4..b2361f044857 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 1915dcb7a31c..0cae6b1c1c38 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 20d92b00945e..115ca4ce0776 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 23c835ed9ebd..b94000ebf0ee 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 334a5a105ae0..e586e89d7f34 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 7112375bf584..aca64b26e996 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 f3f89ed64e4a..cc38d0f35244 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 ba13de1f1844..0768bb9d493b 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 7dca995216ce..99d9039b1ba7 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 a2bdb0591035..2f3b03cec8a8 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 bb5c0fe7212f..d1ad9717bfeb 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 40b1b269dc04..4f7b92827bc4 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 b1d07dff3702..220f2688ddae 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 576273781bcc..734857457e26 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 21fa4fb90b40..532e7d12ce15 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 c1286f9e966a..07a16e18a0d0 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 93e99b84e1e7..f061bfb5247e 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 5b8ea2a58660..f72b151be7a2 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 c92d2e06d6ac..6c18b5780a63 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 c29e1031a013..be0b38ae3c26 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 ec3ab915d38c..0c3193b86366 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 359b1f14a95e..c62b55944734 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 feeb450c767b..e39476f3c0e4 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 712e9f89fafd..95d333d74612 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 8b3fe1e479fb..2c0f7c029acb 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 465b04f97f6a..cf97443da9aa 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 96968aa6ecd5..97e43aab3be3 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 6f6676de3424..a17ca65006fe 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 b4abbe7f1828..a39c8fe4f9af 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 d2638c81e898..7c669e739368 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 5e3ea82a54a0..ee2a8504612b 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 f266a1833f2e..ccb45748efbb 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 91b737b54953..31c9099840cd 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 beee0829c76e..96f7056c9bf3 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 8256e4e86a9b..f0d1f8f49b10 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 835480fc7864..c33b03188fb6 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 4ea7320030e9..bda0e15a35a5 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 da836eacfb9e..ff55211703b0 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 8b8566c9b5dd..107b2a00d340 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 1d1903d259ff..9830a39ca55c 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 02d2d15d9680..4c4c822f618f 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 17b5168aab54..b4182ca2c373 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 42a3357c135b..cd23d576bf58 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 31e158a21218..88012e1c3083 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 bdbf0e618e43..d4c5efdd4f5d 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 757a2f6cc6e8..cf719b1d473d 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 812360e573ba..76c9c39a0f88 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 f6c83109735f..2e46d50bddee 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 44956222f7b5..dd11ed0bfbb3 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 6b15360d69a1..b46a1831d05e 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 59a8d26966c6..baff0538846c 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 f3f98c166e18..83a09aaa96f5 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 79b6ccc20360..834172c3a234 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 caf7108f2707..b24d8eb07684 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 b1c76afcaf12..9cf263c16086 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 ad7c629b54d0..8f4bd1a4c6a6 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 1b941dfd722a..3fbe707440ba 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 4ae9ca733bce..6b87ce7c97b6 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 dbafcd7b1252..8bca50add8ee 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 d0c523e7a09f..17128f48c3b6 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 155b0433ac1f..d7bcebd582ad 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 f219b8e49e93..79f2719d757c 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 922ae54afdd2..20ceaabb1276 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 ccbf67fbbcee..9c561687c2ca 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 8e567e86ed88..dc2e217eba18 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 6ff381360c23..4be5bf0ec6b1 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 5a467cb666fb..3daa79296dba 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 0434c3565780..53b2a3006171 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 588f3ca39f68..e0a897191f11 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 ac8c4eb08f5c..435d3cc4551b 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 0684b7f5537a..6a6ca88310ea 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 11b3681186dd..386508573aad 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 dbd768cdebbc..f2768069f708 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 85c2cb01d047..9c9b35c3593a 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 09af5eaaf103..11cf054c84f7 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 043241e36646..e26a643b1b90 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 32b51960a794..da9262179033 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 54171fb24098..60c1f6caad79 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 49e8fb2ae9a6..cc6ea2896de7 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 307c8f185c84..e13e23053166 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 35ca31fe07bd..79a4bb98c251 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 6ad0918a81b8..312e5341fadd 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 2fcc36b97db0..480b813dfe09 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 b278ebd2534f..710ce83685bd 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 f4b1aa74da78..8937f452f16c 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 8aa3fa9c9208..1371953221aa 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 20933d8130a1..3a18044bb0e6 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 4aef808a615b..a3b2eb5664fe 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 ae43138b6dc7..85e3d005fa6b 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 70004d157904..d8a2bb241f99 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 863416f868e0..6406907cfff5 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 0971cdace29a..bb724154215d 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 050e7e56d00d..af99c71a4445 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 654273d2550d..b9640a11a59c 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 ae1f03be3e25..02e75d30dbbd 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 0e787550fdbe..83d882f153c8 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 a8fe0ca1b50e..6ee30eb4768b 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 d9af333207eb..5e847558daa4 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 b33fffe11821..fc0157429ca7 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 da70c6b71ea0..7999f1844162 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 259eeb2afc10..98113aa55737 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 a14a32dde4bb..6322b821dc04 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 625c2a0ba420..88f185a5846e 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 a5653a7347a3..217e44b62289 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 7b3a3b33578c..558f13cbc4a3 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 a0b766b5a08b..981c81045cb3 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 26a94935b541..2aefdaa27c90 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 b106b13a939c..d243f5319729 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 91c9655c896c..d0d9a2b34eff 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 457d91a4db38..75c2570df20b 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 9941a04f270b..e1a7952354ab 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 6859a7064387..506be03cec54 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 ba09543f9110..427d4825b39a 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 4fbff80ba603..9f70b8c3e87f 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 52060cabb471..101c3731c417 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 d7e4f32559c4..0500366951f5 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 e36c48ea52db..7783ff44c34d 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 22e3efe6db08..8559a785564f 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 34e367cc0cf7..68a38751d044 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 0069f7ffc745..457f80c1617b 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 a04a9d7612af..3600d7ce1616 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 e7f1c0c5f17f..90cc8abc43ff 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 10e6bedd853e..58ed5e805630 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 c06ecc92de71..19e6195f521a 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 cd9819f00760..1b0999ffea07 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 23d4ef5da118..7dee16f7201d 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 f2b7bba114a4..d9b37751b8a1 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 bdfebaf09968..f12bffc6befc 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 66acf1588179..f55e964045d7 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 1e05e0bad80a..cc04985c0f12 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 b81571c977f7..f7cec1545dcc 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 243b640438b8..9a2833a0d79e 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 629237be5b5a..7557aa1847b7 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 79e4ea9f5537..70da68d19e03 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 7d1526e88cd3..ffa2f40369d2 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 b3810c8ff59c..cb729aa556f5 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 a84568783de4..8482d42340f9 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 fbeca66ab706..7a93c84fd669 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 74c7d21b9e54..8959afafd29e 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 7a073711919a..f571c9e2d969 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 31afbdeec564..0a949f316c72 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 b0b8bb55805d..fb5752cccd20 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 999b613e25ff..b27fe2ebd44f 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 27949d25c57f..eefcac0c417b 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 47bab565e153..bb02ee61cfc2 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 0ff4078edfc1..9e7a044f1b35 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 1b4fceb14460..ff9d7bf80018 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 c34d58b7fcff..4f46cc30cf5c 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 05db8091acd0..e70fedbc2389 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 b2e3c323d53c..7ff1e4bddb4e 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 7e22c1f2f425..81f99fc37180 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 211cf60eaa05..f67c845ebe93 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 7ef2159c3c4e..ecae7472759b 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 fe67d02acd1b..87444e8f232a 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 f367702da5c7..04df0a168fc7 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 7666e5c3e769..bc3ecd688748 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 c9e6c164c98f..5a0617ebf764 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 3b46a3c0b1fc..8a5f12f15d62 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 4ec654b54266..c508ab3c2ec4 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 9ddfdefd1fff..d8458f0ecc93 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 332a375cb387..e93a39dbc22a 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 6e668df55fa0..ff2a96d520f2 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 5ed7703358e4..c0272b25d06d 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 1bb0006c7d99..52c9c584063e 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 84c7263e8589..2bc8cba57e86 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 f66c1e4086a3..420ed1a7401b 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 ba317e837468..ecb576727e52 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 59f7087f03a0..119e6a000975 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 90058a010cba..fe2bb5dea09e 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 26b85469e32f..4a1e29f2676d 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 12d97eefd008..7e29e24d9b9a 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 6e4814730055..1a21ea1cfe9b 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 490b732a9027..7f7fa04ffa6f 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 9408ee15cd08..9c07df497b9c 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 71e4298b2d25..b0c5fac9ead3 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 2c4d177bcbba..277d046f288e 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 eba19fcc449a..c5f42dde5f6c 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 6a01a17a3c5a..81db9dbb3f4e 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 0d092fb6a980..99a458f2bb7a 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 27bcc0db58be..9bf245199f6e 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 8fa9b15b135b..d2b547b51baa 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 4a5fe402c498..9eebfce600cf 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 43f8e1647beb..2d460392bf5c 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 3a63c0732884..4048c0bf9ed3 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 7a218b0dd56e..5bdac102a13f 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 d55137fbfd34..fad9eb32a5be 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 92ee319a69d9..3327b844fe01 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 2fcdc18dbc5b..44e82b9e143f 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 57376b531068..edc8d4fec537 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 c0f01bf1b1d8..6118927d7a0b 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 bad6216d1250..1e56498de93b 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 836eb635e47c..9f02c492ba0d 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 96d34cc34198..4f26cbc5a3db 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 eb4dd154e0f8..1093673f4750 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 2a838cdb3afe..0a2895086243 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 3f351c2875fc..47b3a641702b 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 1cba299c87d5..7d47fb00bf5d 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 2180b4e63e5c..98eaf062c32f 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 d6d783d3e2de..dae12bb09e29 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 3b1f2986c028..40783c0409a5 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 000840d3aedc..f975a02a3d5f 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 a06d4dc176f3..ff694ca4b151 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 555387762ad2..d175c820b9ff 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 97ecbd1c3c7b..32b47866382c 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 d05c6674d61f..a3cb5261a64d 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 79bb812c6066..a8368ed2a4a2 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 0ae6d9a8223d..35084c0d8352 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 a42fe4994299..2ca3e75de521 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 863914415de3..b77409fcbdba 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 9a315b85d456..782f5e0e138d 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 3d25b391351e..074ec7164f90 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 cd220f563251..1c7508435518 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 a5ce01f6e774..da2bd3a58cca 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 5fa71cacf750..a3aa59c8d9c0 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 85bfd2793d6b..e87eef3739a2 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 3e3016f9a05a..61e5fdbcd7e7 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 c3b9fd1a8292..19bfc71dc889 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 8027659fcf4e..bcf10a8061a3 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 3beae3c71762..772ceee5617d 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 74f92fc40168..b7f350165411 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 73a417310803..b7c1c418a2a6 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 c776d9207aa1..9bd583943d8f 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 3a67c56ab2d1..aac9cca88604 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 d912f4f5ed45..2b43ffc25461 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 6db8098da91d..6a04125e767b 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 2c24e79615a0..2de439f0184b 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 1826d594522d..7933fdba355a 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 df97e657659d..e05792464e4a 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 6cd60ce70bab..1ecd1afb7b9a 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 d76f6addc4be..c1fdcfe369fc 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 49d110bebe63..e631025d1e92 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 6f67344e1459..504019c4dace 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 ed47d72411be..2a953e8d4d22 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 49554d077da6..18cdba5eb3b1 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 aea4d1ec0b0a..caf40a47c702 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 e61c5a03517c..9a3789d48fb8 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 7823c780fe94..9d299154d212 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 018aef8c1d61..74f5dc555b08 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 0d716938f26e..ab0c07d3a342 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 ed7220385627..bcc583c6aba6 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 45f27dfb5267..af256563f654 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 9e4f5618aeda..3b94e892b6f8 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 ffa897726882..15ac4486ca28 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 9b0f89a7ef53..88bcccd6dd08 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 fc52274bb573..cc1c403ee8bf 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 47394314557e..81e6cd6c6768 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 e0c1240ef8eb..30e739d8de96 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 82bd505ad8dc..b3fa2fd76fe6 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 f38329482c87..e109dc167588 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 1bd5a7926953..a144a246c9c1 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 5a302a4a18d2..de72165cca57 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 61f68a8ca286..927fe6e873d8 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 33bac7878c42..f1713f5d231d 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 17cdcfcc0a6b..f131c8024825 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 b65acf9ec6dd..60bbb5b1b0db 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 a0998e32da5a..2ca3188b2a71 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 e34775e97994..85a72bd735c5 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 2e808d1ab49b..8a8a817f66bd 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 0ae3b5bd7928..f6c2ed97884e 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 91e44f78c4f3..b8968a8d64e3 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 a3a4f471fe2d..27bc3d32edec 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 eb3ccbb98ecf..ddc013af9505 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 96d83a8d36a3..711e3e6dbcf5 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 673539582b3b..61c81ee76517 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 90631b42cce1..8c5be346bc3f 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 ca02312c882c..d318e784b689 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 c2e699819b0a..afaf0dac663f 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 dc1fe9acf71e..52b142036ada 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 ccd3070420e9..29231238fb18 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 5beaca197c6c..765439e13ede 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 9afdc7220122..4eb1048a1630 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 b4b6e41d16c7..dfac665bf93a 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 725b13c16135..46c7678dcf87 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 806805720aa2..505b9a4166a5 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 9c3782eed3ef..5ae7897872c2 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 ea3a5a107212..1e279b4e20f9 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 338f5ba4dbed..67c149f592f0 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 cfde8c7aa52e..198f61564d36 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 3a9faff8082e..4d355780173a 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 6334efac3dc4..69327d24afda 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 c6af8238ce81..fb9efe2142ff 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 4ad7265691b5..8f426a56dc77 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 adc48086947a..1122ceb04149 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 d0240ad09a48..521aaf90f44c 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 e14fae5694b3..fd3e4aee3e6d 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 16662f7b7447..d52e663dfe44 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 864fb3e7c401..0629f451ca07 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 6a1de3b96b3d..539b8d8f5687 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 c951de61ac6a..66d5389ddeaf 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 a7d9a488419e..dedb1b4beaa1 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 59b8cfc4db1b..470b94d62d8d 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 f8bb214a2269..ae30ecb20108 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 0e08c15b4833..4e97841f97c9 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 5b1eda28506c..6a75c8230afe 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 687791f24a99..d6abb63f991b 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 a134e00e135f..5f3f13bf7a28 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 2b4a56dbd547..96f4a351c5ff 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 8136fc7fe61f..867f1d478bbd 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 b876b87d6dab..94dd08951816 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 3041577ba1ae..ad3ff74d3aaa 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 0f9bbe87dc45..9f52ef75e491 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 694b5d303ad0..c8564ed61ba4 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 8a206b18941e..919cd0667192 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 03efe818bc92..480e252dabe9 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 c2769b255e61..d6cf32e1bdfd 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 d35a4c37d203..76f02082a32f 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 9e37ed7a055c..00b85a7d2745 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 f9d0d75bc10a..3d0b90d56889 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 9c8b6c60d0d6..3ab14d0b8490 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 35481d8e31d0..b46af5f8423a 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 5b6d538c486f..c6f903758f37 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 44f3d1b3cc4e..23dc1efd7f48 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 b6171235485d..3db9920d85d5 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 f96877d0c1ab..fe46d076940c 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 c7558d3f86fd..c681d0e2366d 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 1722474da26f..a817e528156f 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 5b73e109820f..c926230384c6 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 cfd7c3409eff..f14260b4261d 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 833b6e45e80f..30661a1252ff 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 b244afda36f4..28b727acc7bf 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 f5a812399c14..0917398c0250 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 f242f395dc4f..9c28cedac054 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 1ebb0d4ce5af..78ade790606c 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 8ab0ed4da529..60bb935b9b8c 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 61a82c482230..e35d618ea660 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 27532c69d5bb..579df5f0003e 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 446f97c85073..07a8d97345f9 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 65cb75c1b5ef..8e08d0132e2b 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 f3678a8554c3..caa172c25fe5 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 222441ae4dec..008f30303873 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 2bfebd5f668b..77d3903ee6bb 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 179cef9fe816..3d0cf7d09153 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 9cc160121f2a..35f51753cceb 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 53a2b12e9d65..25e06601ecc1 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 fdc2e21abf83..5ae849422261 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 0acad0407c57..642e61c5485b 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 b5fcbd64091f..34f4200415e4 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 73cd7d0026e1..f8d49a3be5dd 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 e77c7b93f1a4..590de9a91629 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 013166f3bc1f..64c46ea5a4a6 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 e39fa9cbf571..b0ea2f20b10d 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 574310c81491..7a94ffc8436e 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 53fd6069fa26..0a81114aa69f 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 505f50ad0d00..181e53b12d16 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 633f986516a6..6468d95ebc15 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 53b5a283b368..fecb226fb18b 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 02ca481a3874..6eb12c11f575 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 4b196c1ea9e8..9150cd8e546f 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 e854e73c5afc..dc0465e2d244 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 6220d7554ff4..6843e9dcd9a4 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 26e5889a99c6..677e90bec673 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 9d9a51237a79..dbcf40343c15 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 53d73ea7463c..784913cb17e1 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 38276faca7c5..acc80587e9d5 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 8c1d6cb11dee..c897261c5ff8 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 97d816f2e43c..8e872213eb86 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 43806b2142e5..d56a432f6a9b 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 7d5ed06ab2dd..8d4e0bca4ac5 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 096b8413de7d..600a8a27a4c1 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 516475b0592b..ee598050f6b3 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 3cde1e7c4b41..41279a88b249 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 406258ad38ea..666484d139cc 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 4bcd1f06c287..6682c0e8b82d 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 b2a380c1cb8c..fe5eb0113f4a 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 ff9941b2e6f9..9d971e6bfc73 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 b29d5f9136d9..c9bb06b2e4dc 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 43341dc336cd..83af80414f93 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 fb84f7116247..37a044c1cd19 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 e2397a402ba5..29c6e8174c30 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 8420b72fd995..6d29179784a9 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 220b150bb8da..bfcebe6d3c5c 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 4dfc0c113b73..ea88a0988ef5 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 eb8831317baa..0b6b10f1a370 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 2b850d5c0e4d..1d4ca60d31f1 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 c3581462cdbf..d15f74c222fe 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 e8a96a1279be..a17c23151ee5 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 7604bcaef40f..6e66070f4f29 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 c80d0fb9b764..19042e45e908 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 1bbdf0d8b65e..566df4daed67 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 8ccfaab340f5..6bb1a13d8bf4 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 3cf0fcd51366..6a23abfd159d 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 4f5b66544799..51b8c602fb56 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 8e1e3023f36a..7f0191b4a8f1 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 74494a766627..6ef07d395ed6 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 485e923d8657..dbbbe8a11423 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 d5a69fb8ccf4..91c9a82ea508 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 77056b38132c..bd432da426b0 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 b4033e0b7211..23b1d0e0aacf 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 93cafc67d286..2e97928cf4f6 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 64ef8d0bc1db..66cd992f75f8 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 13cdf7363c52..8e043be8f61b 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 8d4cc330e46e..66d082aeee97 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 bdf6cc275f44..8c0952aabd78 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 e548629c3b94..94d9473d1c07 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 e57cfe72f33f..41adfa9683ad 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 3b8080ecef57..04e7b66012c6 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 1d498b45f3e1..285862bda3b2 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 8e90ee2122a2..f8bab2f5ed18 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 2a09495067bb..4b0b1b463eb5 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 02a6a78dfc82..78938f1d4c2d 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 26dbbffcd319..33ad25683355 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 d7adef89c265..c5b63f1c0aaa 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 fad328a07cc9..369582e4241f 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 76dc9829fbfd..1bcab795b503 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 9e3e6615a497..9a1b9dc43d65 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 e50d0bf78c0f..8d9474395ae8 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 e16442064118..848865e5d265 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 2d7c6faf73c4..afe979ad3c96 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 f45baa6b2ea3..1f61488dfd21 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 316e14bf8bfc..eb7820fce0ca 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 8228b0cebe44..f43f40236907 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 161134fa1646..5befc6d9a98c 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 a117a29e9d76..bd31882daa76 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 387852284e13..28108617c5c1 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 63d24f221a07..31ff4e4ef191 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 5fbb78d73692..17a54cc4ad05 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 3add5ce1b8d7..2e6506834d37 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 8cca3b520803..2547029e1c20 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 30e2a922bfd6..a592658dfbc5 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 e632c3d080b1..2da88e222823 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 05f8d75a08ec..a37db60a710f 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 335c059c556f..89b69ed7856c 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 c37445b0e5ac..ea1c1490d1b6 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 167bd082c3ae..a9218bada668 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 7b875105918a..311961050978 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 0dc21a9e7033..3f4f1911a01a 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 586349ad1ada..6af9ca8db4f3 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 4774f9a812d1..703167f9b19a 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 aa4bb3b63dab..8e6785ae214a 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 912dbcf6148d..0e72620002da 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 0d6c2bec5ebe..5ebd8d3d7fe6 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 9415b831220b..a521f35cc097 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 7a11dfab5bff..6aea67219a4d 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 0f728dd08700..0d142c49fb69 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 73da3720bf03..8a47b469c32c 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 fcba20cccd51..2a98ec569304 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 b5ec6233f913..c3005f5c048a 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 9d6c9dbbce8a..1f7da8d4cc6c 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 52966debdd38..1d480a7bfbc0 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 29757a0c3d97..076aea641507 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 3555c9c48de0..153a9eb6a871 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 46faf2b010f5..bb16e44ddf90 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 7fb3326a1dd3..1bf036868a00 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 61ba59686591..cbe625a644b6 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 8ae007a5420b..ef0b5d95eb73 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 dec3c9576a2b..94e50cab9feb 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 3ef44cd6b113..540127caff14 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 5c8949611453..d432a778aa12 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 9959448e7f38..3182cc76e91c 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 a7233e5ddac4..13bcb682d062 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 4bc0d5623c44..39c3b5ccd427 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 cadd955c9fab..1570cab143d3 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 cb8e515941eb..a1cd7dd94502 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 7738086ec4bd..676d0ffe521c 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 3d61218bb95a..aaadc8bd75fc 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 73e5287587b8..283968b66b56 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 b6698e159207..a2dad9c2d15e 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 9bee373d7cb1..f41258b46989 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 01dd8f1c331b..38df1c1c98ee 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 18f6389785b8..470743908e1b 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 27ea85616b4c..9e46b5a94079 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 5bd2e9603428..0665bd302b2e 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 3160415d68fe..0e21fd4b2e66 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 ddb5f66ebe42..850e7907f185 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 ccf92b0b2152..c9196d6bac54 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 18e8550758ed..d02db75e623c 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 5c92558d9f80..9ab28b0c4b4c 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 4a31b84c3edf..99cea46a1c14 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 7d6a2cde36e9..9cdabbb35f5b 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 42347fca793c..95198829cc60 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 907723d22bc5..0a67c714513b 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 acdc9fede9f2..653767c76c66 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 7566d19134cd..e8c16ee0421d 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 5317d57cb0fa..c0b43662695a 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 fb89c11e5677..f73e1df7c83a 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 5b64a98bb4cc..0719ff6686a8 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 0b6ff82db40a..d61ed0d5c761 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 01385aafdd69..328f45fcf096 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 2387e32170d3..3ed453588aa2 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 f2df770b1347..11c6c978c8fb 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 cdf9a5388b09..1f858020e0e5 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 e08a284d6ee8..64b981b3a7c0 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 5d14412fc6da..81dfd152cafa 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 483bf9733559..34cbb2b498b0 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 740b1e485df4..444b97536dc5 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 b4533d03ea48..025668c48f75 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 16623032e29d..53f3f08bcbe1 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 10d37516679a..a65d3ae68e4f 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 f8b42d8512d9..730945d374c8 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 5209276f5201..30085996a853 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 e7e31857f853..e98a47880408 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 2915208637f6..fe56315b24d8 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 910467b160fc..7b959278ee87 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 d3572c538d4c..7cd695d57d76 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 e80c56b5c671..d742d562f385 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 402067a65ef4..d4a019d6fd42 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 ae42a66f6db1..f2d9b6e5f2f2 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 9ceaaadf5044..6c64676dbe5f 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 9bc9008b1055..53173ab66174 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 93f1887f7297..f73ad5652bca 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 413cc730bef1..2f115f389947 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 8f1d72fd4a66..fcb40c654b09 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 3f159e628d3d..b880994a5b39 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 e48f6bc313a6..1dac7e065ff2 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 201287f7f1be..8ff6ebbca177 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 513b7d585097..dabf9800da1b 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 279c4c9cdd18..2f867ad3b802 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 49bd17493303..225a1797a8de 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 0dbeac3e9e48..732649dcfff3 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 613d25fd3fd3..449f60d0d7c8 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 7b5307974894..d2a1710682b9 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 f70515312bf6..38a5d98ccf50 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 6cf1364f705c..36edd4196953 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 eadbf9749cc1..3a8e53e42686 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 6209a12e37c7..c3ce7c45bf2b 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 7ef8c739994f..738c0328f63a 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 614e6d8bfea2..5aca9093d528 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 a5f545ba6479..b94cf3576a06 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 b3270fbb49e4..dc0bc2b29a38 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 bf15f9f90caa..90b819843d6c 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 b45a6a94fae7..8a46a599bd24 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 12cabd762305..0cbe2df3133e 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 bc6c2e3182cc..96e63130dabd 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 20965423215f..ceb99e3339ff 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 b4c44f7ce01e..3bd901063116 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 ce37d34684f0..13da82dd73b9 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 ceff9a8ebbd4..12370ac9302a 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 f4feab55e6d9..02bdc7860488 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 0bcfb8974d99..94f94693a687 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 d148578c0393..913e65bc9d36 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 4e8ae5ada16b..ec522c0b00bd 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 675c075e3bc6..c758f95d5e7d 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 39581f46d65f..2e7ebaf2ec16 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 5eca11f70dd2..8836efa244df 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 e38c0e66e234..24c5d740c143 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 369e1fc51703..5475a48f4508 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 2fcdab6ab16b..1f5458384453 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 6a4ea353c59b..a25d3aa77b04 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 62c97760b6cb..759ce12c6e54 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 0e7d62c09406..1020cdc8e5e5 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 fd2eb998fe31..c06190913c4f 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 daef28c7dfcf..364b3b076f1c 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 7b7b651652ef..a720d89e0792 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 bd0ea140c743..04e29608240d 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 9548911b7969..9e33281ffb5d 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 919ff8bbdb1d..6c127c642fd4 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 1fbcf15aa1ba..2eff764f5a67 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 ab339ea2cbdb..32c441c78069 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 13feb593d107..5a17d6d17f7d 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 57e374f937d1..52f56383c4b5 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 97ff1cdb9422..3068debf19ec 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 1e5ba1afcd82..9a53facfec7e 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 d6bc6ffb4a3b..4844de28b889 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 f02d9ca9ebcf..f100abe80b59 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 e2708f3adb72..45234f8be0a8 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 4f1ded2abc94..31582a1db826 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 5154684603d8..30e65043bb73 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 f4ce2b03387e..5b4c043a5421 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 56d08e337d41..247b99706fc9 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 ee1b2ff1d39f..dd310915fe85 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 bf91fcfa765b..6ef011dff51a 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 da3ab45f710f..33ad1d34e785 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 cacdc7352845..4d9537a3e637 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 9faced1b1320..e2a9258a330b 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 20caa0e0f6ac..054bde8c7993 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 07be4a068e36..bfaac76a2a25 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 192fb3f556f8..efd13059a6a3 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 2d50c81fff25..13daa3571c08 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 9382df1056f8..acd24946e6af 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 1a90f4505b69..0755a041beaa 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 73239e657887..784fc078979f 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 699be51e8ea0..bca7e65c72b0 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 c6334d2f7258..9a5109a3d945 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 64954399ba8d..ab138a333136 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 cd9172818e5c..3bd0c7dbf863 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 dffd264dac03..166a54014b35 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 f80a443755cd..6ad255eddc18 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 93fcb924a56f..b0a4309716f6 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 f45ff02a7492..72ede89851f3 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 538df776fc8d..853a8c5a4cb9 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 907c3a6e6cec..9db747725f1b 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 d025bf5c0bba..7a2d9be126a6 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 2b91305a7dfd..e743fcbca24d 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 46972197ab95..7b5059cafdb7 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 caa3d452a120..a6f28940777a 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 4a940488a89e..5284ded017f4 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 b541191fb419..eadbbe2724a6 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 ae7fce2718af..8874a1a5a1a8 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 b0a791205891..d680d9fb80d3 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 bc75252f8c74..5433b5ff292b 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 2131cc062df8..ed669017a4da 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 1e7179543568..6473e4847607 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 5d59245d68c8..2829352305a1 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 21b2879f5af4..aafac7b03cba 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 59b7d2415af8..9e18acac7894 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 6d046a9f8f19..77c66f5c45d1 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 4139763cd100..bac3dcaa0c57 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 ee419bcb7f0e..7007cf735b0d 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 c4f4fc5e6279..8b204c723bc0 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 4684b49857a7..9b7c601ab0ee 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 43e058c0c740..0a070ea53f06 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 28c2e25c1756..767e37fec652 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 98a78a4d20c2..8c656e0808ee 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 bc99ba679fe4..9a3f3263ad6b 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 04be5455fe0b..222db726ed3f 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 9256caff609f..0f8aef7c3966 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 58e3c7fac39e..178f3b345db5 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 dfc522f25910..f5c8fa5bd814 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 63d9bf6c9a26..670bcceb9f57 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 37c45f76f9eb..2a4db08747ad 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 6cdd6ef0f9c4..cf8ddc0f123a 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 f274eae91779..23bc35cd6e87 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 ab66d17b4211..4dfc246e8415 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 0152bbd07111..1a8c8cca4082 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 611d69f30cdb..b0b1bf6497d0 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 c72aba9b351e..b644e18fb480 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 9534bbc93fe3..b693ecc05a07 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 a42f66720553..59064bafbe08 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 a1291ab7db33..c4369cd97152 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 c242dcc2c2e8..a21f376ae020 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 af46a3d64696..db9a73da3b43 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 d771f6d72e17..f9b7348edb75 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 00fcaa256fba..3c0f893fc637 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 7f6c429727b7..3bfb637d3daf 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 557098409839..56f8f1dd4b3b 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 2d8fd1dc6c63..9adbea7e4158 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 7307f2a2402e..5e9a5dbb9173 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 8448fcd7e5f1..47ef4186cb76 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 6cf8a14e1a75..59047ff49252 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 01ceac4c1a14..1d52c8d6db48 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 ff44733cd9ea..c890771e5295 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 597f9798e059..97be7edb2b09 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 fde2ebd6c270..4859992f2696 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 dc41210b941e..b31d9a8a988a 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 8048fe6d3e86..7f459b4fe30e 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 1e53ec6c848d..5c1e90122e09 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 1cc1eadfed5d..03c133f4749d 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 805907363f7b..14fa58ef0a3d 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 127993627b86..798d69bad8d0 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 1c39f7e92fbc..116195f613a8 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 d97a74d735e2..adcb01868127 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 41974753f4e7..8869d7da9fc3 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 0fa7ddc8f9cb..3b2edb383544 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 24e44e85e3e8..9d8b6ec47784 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 b9e40542f704..ddfc9ad58c1e 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 dae12ddbf27f..d7791f75aec6 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 ab08ef78ccac..3c16879acf80 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 95b2df7bd727..33b65f38ec15 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 1dd5e59caa70..807a558c1dbb 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 129052fb74c3..182632a258a3 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 5879ecc41dfe..bffdd6e17de4 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 508d040524af..c286a38e0d9c 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 4ec1e419858c..10bab13126bd 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 de351bd5eba8..94087fff788b 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 339dde19964f..ef7a84d3182f 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 933d3a7a168d..1b44ce61b19e 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 1969894c093c..d5ad148d35cd 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 6f06b1d40b95..c4893f1e7cfb 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 26db18583148..a82955ffc67b 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 2b918ceafb08..b2764acf84b7 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 f930e4a4ae35..cb79903d670b 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 b5ccbcbdd991..f7de66c49761 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 666435f6d8ca..3f7ffe0bc276 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 c1296ad80aad..c8dbca483b27 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 499348bce929..eb9132b0cd68 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 5240453c585a..1051091b7235 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 11b6b8448883..036ce7946020 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 9dfd64f2ee28..bb5694371cb2 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 93efd6006fe1..595b86b4015b 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 d1d622016ff3..ac3ee3e9405d 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 b364014a2421..e890488bab88 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 12f8a43703a5..31b582436658 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 24e055143a27..b1383103cb73 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 68f6a6a7c161..26e813083062 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 4a9877249548..812fee9c4d67 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 52f7317a60a0..682f9b6f9952 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 af6557068419..3159e77d8f5a 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 5e7d55e16cf0..eb01c651aef0 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 645a81bc2ed2..58f413a6232b 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 b5ec53427362..5c4c42c8dc20 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 e9300beed974..3bf8d4303782 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 a7e51608cb76..684b5acb78a2 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 50dbdf98c14d..3f90605550c8 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 f1f64fb843b9..2e32dbbf70c3 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 edb1388848fc..3988850ec211 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 466c59e6a75b..0a1937026a38 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 996d25550769..0aa95bcc2ae7 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 a5e0b01bd6fc..70c61cb3e2b9 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 e5281698af17..3d9bd3cc0296 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 baefd0a4e1af..1f1d87ac9a1c 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 3c699009594d..a9d32b3dede7 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 5919ecd221cc..989d1cd0113f 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 813b25a27aba..70ebb51c3c39 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 e11bad2bcebc..ff855a5b3736 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 1d8f0c455bf8..30f5a07d4a3a 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 2f6424b054bb..1188ebfd90b5 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 c5663bb763db..3946a25cb626 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 ef05d66e6d74..ebd2aebfbf3d 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 7dbd06d192ea..958faf5031d9 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 51c208e4134a..141fc0f76463 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 7a9edcbd3f4d..5a1d60305026 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 15cfe7ca6c54..d8920133f9dc 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 b949b6648e08..756136339017 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 2c4ad772bf35..fcfeb8f7e881 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 e5e3c8a50feb..6238fcc7af8e 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 19d5fb1067d0..1cacd3476e51 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 b1e54118fdaa..7f7668649640 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 1f7af5674602..bd4c07772c7d 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 326bf6a74960..3fc7a6220200 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 aa904558ec88..7a9200ba5959 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 adbac5c6bea0..2abb29a30307 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 039bca77dc8e..910e45bbffb8 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 b0e1b800a44b..fe89e73d6107 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 60951bcccbdf..4efcd05e3bb8 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 c59de235ef26..fbcf4f49f19e 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 a21aeb9bb989..4081d1840bb5 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 030c34704881..c385f4a57e85 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 3d4fe5a333e1..8215f844ce3a 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 2703fe06f7f1..b8f5370ad643 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 97dfc7f49554..9c74b63f97a9 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 7311fc33d334..56502cdbc601 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 fb26c9d7d893..76dc33c3369b 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 eae7a9c4ff08..c65fb628bbf2 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 2da4db55ba8a..00274e849d0d 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 4aecf766829b..4db65920ec1d 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 6a5d61d77fea..59ca17eab242 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 f5e90e6a6817..ee360d7dae21 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 c6c3cc66ee55..89ade6c1e772 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 8aed75779dac..40fdf18118f7 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 13deed1c25ae..c709ae5117c8 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 316e8f890299..5f5407300756 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 f1ae0ee3d809..92a1a3c036a0 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 74258fb45c1f..08ceaaa67353 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 ec88e0c9b6f3..419acc701dfa 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 a7a8360a0726..f6e0ec527ece 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 4ca34b9bfb5e..a7630b461ec7 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 7c5f225f323d..18dca4b7115b 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 8b0b77723f3d..467b07059198 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 14142c8a798c..fe9972687e3c 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 500e82a4e498..008001c71422 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 2ad2ca5bdbb1..c325557c91df 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 7cad42fee775..f75a08dad6b0 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 bd9607e89d75..824c0e5295fb 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 97d98b4d92d4..8ae2c7487d68 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 6b31533ebe5d..5c6f98b8466a 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 53d0da649846..8f3306ba2dcc 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 11c3c07df944..b5b6c00aaf22 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 67bc72349b17..32efd57beb1f 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 b9d11bded337..8aed35e7b343 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 adbe7c138caa..da5671b855b9 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 0ed3ea9e3216..de52fca971be 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 c8af139df710..f943ffbcb28a 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 ca0c64d56aba..0faab1202aea 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 a35b590e4620..5dc12f1fff64 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 d3ce81a65589..320bf7b4dcac 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 b95eb47ce3f0..5ac0fd5d5edf 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 45854af1f93d..2e469a3d53a8 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 f6c92ac927d6..6c55c40a007c 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 f3a81ec21bab..ecc8247468d4 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 5a8f2a47ee16..b3a1db82b1c5 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 36852fdfc725..14c107a4bcae 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 7637a9ca451d..958c06b1eed8 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 b614affdd339..610ef8ae5ebc 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 84fe4c277c17..0faba1191fe0 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 977f607711b4..a8fc57fc9f77 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 695e94d04ad1..3821a5ee6ca7 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 c6d2c51b1cdb..c20c029263b1 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 1a64e8ebc7da..308145e36b09 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 a91d85ef14cf..2d4776d3d358 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 167b0be89612..fbdfe06af695 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 120590ae3983..2542ca710103 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 605892d3c63e..b13808e7deb6 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 1ea3d1ca23bf..386b9fbc3ad4 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 05ae9f501d8f..f89640f3ee52 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 b46e9e7181f0..2b3b1c1f5914 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 c9d88e7921c2..cef1d67f5a8a 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 123d91cbbb6a..d40d98c4dc12 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 bddddaa26283..dfdc84128251 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 399b7a21c2a6..ddc03ac6f69a 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 b5321dcc2205..7c915761bb05 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 5419a257eac7..c49495a2c453 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 b6a7739801d3..ce34052db7ae 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 87e56c2cf1c5..b917ccae9dfb 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 3464f9b3057e..cf5ffcd0b315 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 1b46a190fa50..25fb7b58738b 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 b97ebdf7b575..26a661c733e3 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 d8004dd09ab6..411c3a13725f 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 1d14aac3c519..7ea15fda4731 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 f307cb173a17..ec086f6a9b9c 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 5d6b5f11fe4b..c96d4005f434 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 ae149c71da8f..b2a4570366b6 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 56890a776030..182997cc50ba 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 86307d84be73..29ec1bfdc99b 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 ba2d89ec31aa..6f4090b1ed9c 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 af0060867363..d569fe4697c8 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 36a28cd023fd..7f56e2c271b7 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 0752f2f68c63..a944cad1b706 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 c8e11ad17c33..826d072e29d5 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 00a64f155fe9..922d150c3649 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 bad1e7a08063..d6b95d026ed9 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 895e8296388e..23516992f83d 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 0f177a3227a1..289fde7a7f56 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 df06b58a5368..bc4e04a3867d 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 4fadb99842d4..3a5504701753 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 f2c310219044..68906c8025c2 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 51f4e2a8963f..c35d4ee06650 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 5e56cb9c3b81..12a8ffcb0211 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 d688b561997d..db8eccf8d8fb 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 7d9fe36d0925..26c558385a3b 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 c470bf65c1f9..98488956da3f 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 a1fe0dcc4215..2ba656e67c49 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 c10a4a5fa34a..68c571fc5a6c 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 368f6ffbb7dd..30c99f539ef8 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 e5e11545edd6..2369cd727589 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 6b0122e05a41..fe65bb3ca2d3 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 f771f6c238b1..efdd23bd7fb2 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 9b5b01250760..42f765efb8bf 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 8bb64ca33308..ae885f62d4eb 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 664b74bb65b1..d993ed2d2265 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 1f1c4ae25bbc..6b83cef40959 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 02cb1425c1dd..1b227a28b811 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 1a50a1913548..a7e837f86371 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 c93f9f9f8cee..ac3fa3aaba50 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 576f97c7a0ff..d77cf2156f35 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 487ae3137cfb..af10ef11b589 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 fb3e5f325f30..e111a8b1aee3 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 e790ea84daee..406b569b8434 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 007b80121b6b..5c841067911f 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 7dee8988207b..07621e7358e3 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 78343259aad8..a5467dd105f3 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 d608684c6f79..d77bda01f416 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 0ec5e80c6079..d8eab2e93645 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 5a76bdb68426..a647128133c3 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 e44c407a4522..e711ea85990b 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 25a376cd903c..e92ba77a621d 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 41a1bbdde2d0..f3af6c545978 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 e6e5148b42d8..6649323c1c57 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 5869221accd3..e6b1644a242b 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 0040a804a11f..8bbdcc2ff282 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 f0c81c422eca..4b7327896ab0 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 324f53598df3..ea07aeeec81b 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 ea9dbe2b45cf..769bc8afa926 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 4dd550ee0d44..ea4eaa29e754 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 2761a3c3fa79..24ae2ff0f742 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 da6da7827d71..ad92a338f055 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 7b7019f4821a..d7c2ffebaa3b 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 6c90b43fb460..06de5d145063 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 a0aafe732f65..81db2c098e02 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 078aee595f38..9ed333ee6623 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 a9060f7af3a0..f5fde0476f92 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 9c295f881d19..dafb297ac1b7 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 4d90a0273537..04b96909f224 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 99cf0ee1b2f3..6864337e5e43 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 239fc991dbce..289c86810e19 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 e95046e11e3e..fd8bd4d71654 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 cefd4ed4cb57..727287f393fc 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 59244897a329..28ba84cbc0ae 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 1cd6173f7ed7..58f0626b0963 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 19adeba18326..3fa17b30a7d8 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 b8472e7e5fa1..73e1beb0e819 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 85926772e1f2..c224688c939a 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 c2c0df3aadd0..0db7bb108455 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 07063694027b..5cb156a164a9 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 729f520e3604..0d22753450f9 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 0d7e966b1a75..cb4fa236131c 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 aafec7ef7dca..aa9ba5a84b6e 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 7ad3ae141574..f0ddb8de693d 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 fc8b649666da..e7505bab95c7 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 86854d3849a4..976597b91a8c 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 91ff75a5b020..2d7eb2a79913 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 7d9d59455565..9e0bca83c6b5 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 c586954589b9..55c0fdffe600 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 a433e63bca83..9b7616023678 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 02256cc6f8c9..77f84783b7e2 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 967885d32b7e..c9b68f9ca904 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 8cda6c69e9d4..0faf117d3295 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 4b15a3d5b37c..d96da4750c4b 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 eb8018341ff0..efa36a9e8d70 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 7503fbf75b18..153a64cad358 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 5a3d32306727..f77f9f95223f 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 7f5f4fe38a0c..0a987a0fb200 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 1120e32e1d24..bc7ab963f0a4 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 b8312ee2f833..b2bb1e956c0f 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 89fa566b26c8..7c550479cbaa 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 61b87afddb2c..b78a6b8c732c 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 cbc171d14a46..e15d94a1da89 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 950033401bd1..1cc0140d08dd 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 f2204f51a2e7..20190aeb606d 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 141f0a875907..c8cdf33a280e 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 4435550bf663..42be3fa0c959 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 eeade00930c2..0b3a91845baa 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 b80fd680d1b5..90a59f7fa9c8 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 5bd21e9f6f8d..a4de169f0184 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 25bcc8015d40..f9ab82b98a70 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 955b3ba589fb..f4482031217b 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 a4d98e65ffcd..e6deedbb8a99 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 800b1fa0fccd..84fefa70cc04 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 55ce32545970..ba442e07f128 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 0578fb1c1836..03ed6f775be1 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 db7e25c2cef2..8924838039f8 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 d8e38fd97b97..4d97c834a09d 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 92a771cc1806..963c77339a61 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 6452b41e0d0a..0e5b91b117ac 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 8f5ee2daa281..0dfe2267f850 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 056ac6eb10c2..7c54c81703d4 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 79038b8e361f..4be20e8b7e7d 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 d2fe769aef87..88d6b25fde31 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 c1e48a569cb7..98dabc9cc69d 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 9ce501d4cfe3..c025caac3d7e 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 0be81c015b3d..6511baa8290e 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 2fc311b2435e..9ce0d94e8441 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 10b5bb529647..2e75a7516a4f 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 0c354eda3365..7adb5e3a8326 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 621600393c6f..65a5a0bf75cd 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 13ee3c973cbf..1880a7bf4a02 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 2daedaaf4b0a..e3e05c8ff038 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 03680edecd15..4dd022ef5fc8 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 9e73d124646e..0c101aa7da14 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 7fedeeb9b409..51b52098d119 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 eb56eeb6962b..c5e5ffe3a9a3 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 3f166ff2f549..168aebc24510 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 d21e116cb28a..fe8cfa2d7925 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 e9f8f920e157..bba5b9a4912c 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 48fcd4ea32df..87f2cc3962b4 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 8d194b459f11..29ee91dbfb96 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 afff661c7f5d..4c8ed6ee9e2d 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 ceefa61aff12..b5daf5a25c0a 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 e5821c0602e8..c1ff41c52669 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 6febeaef8e9e..22606594ca3a 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 0ba334ba7c83..ec41f4539e00 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 d7926205c1a4..23d2f8db32ff 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 10f5154976fe..a389220eb4ef 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 388de441f1bb..033cc274efa3 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 8c25494c5edb..d6516b1c7a16 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 9ad89396e763..d1b641f77aae 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 5aa6c3966887..d51054d222ae 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 108d9234bac4..69f17526cd24 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 b4f770dcbc75..acf6fbdd4a79 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 e0871bc77a7e..8620ab06929c 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 1d650f88ecdd..5f590cba5f66 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 454cf1e10b3b..0da80ef57125 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 5fa3094842e5..5c6387bdfa31 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 c4446e2c26dc..f32410654d5e 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 4fa0944bd591..cc392ca8fe4c 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 fb17975acfb8..3826d5b36c61 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 cf5d2799443d..392957f446bd 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 6e147f1b0d57..30237cefbf4f 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 e0173cd457ff..d5329f1272c3 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 90059ee7bda5..5afca17dc9b2 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 a6cdd7621de1..dc10c59052c9 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 80e2f993590f..eb647a6ad90b 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 66605199bf72..e2928a451305 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 757d24e54b91..c1d3613d2cde 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 a0c5e05b6e9e..22b15c2da587 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 dc2e5c4b3910..60edb196d0f2 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 974002ab1190..837ab2f6f7f2 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 f420a4ce1103..b8e0d0bb7a53 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 84f54b3dec7c..0a66cad99c01 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 b5000d8afd36..f22fd627b483 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 8f7ba830bf4b..e31585b1e7aa 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 669e489cf396..62bbbd363495 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 c358c2eabb97..aeafde55f45b 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 b7570fa4f201..642bb9568b26 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 4cd6ce623e3f..e79e525afd38 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 d90e26cce1f4..3a7de9b9c866 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 77f210306a64..6bc6594c6c1d 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 3c9e9dbe43b9..70a3093c88c4 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 ebf816ba5e8e..66def32af89b 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 33f6072c3bab..bca6de6fbd36 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 2bc417bbfc0f..1f0fbac0a089 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 e834dae0dac4..39afe572ad2c 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 183227e60243..e3666e6a4568 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 ac1af38edd21..679e8e962a2f 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 78b861c8b2cf..ab593bc09ee1 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 7f6eb10c015f..56e007659ab6 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 61cb4815356a..de05bb430fb7 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 0829d918c9dd..8ea0d122fb2a 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 9cddded12e5c..fc560687f587 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 e1430b959ad3..edd51ee6215a 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 ac169b5af6c0..78bcf5c293c7 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 1d677cf1cc5d..21413052d887 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 d38f6dcfd112..64040682bd2f 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 d37a34115f6e..d0d6434ea4fd 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 3489fcf1da7b..5a25bb3708bc 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 bc2de22f3997..0831a8d804ec 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 56b0c9c4c940..9b2cf6807edd 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 dacbbc80a6a5..3d59fe05cebc 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 fc8779f39cff..a3273ede2e03 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 58cc60537cb7..e8ec90b0ba32 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 f6ce2401057e..dda4436d194f 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 558bf726e809..30937748c50a 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 a669b47a1c94..58cbdd8303b9 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 cc4986554301..36bc87db5f25 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 caaf989d3c90..f2d56b372378 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 d13c36896bad..5118b41096b3 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 6adf6d310259..04ddc24eaea5 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 f9277b40f1d1..fc2ace2471ce 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 43d263e9cf25..8fbc554260bc 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 c747ef85b7cc..754e9647e7ee 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 8f909e8710da..d69e58422bea 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 d0b40c748439..711555e593a8 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 32a177a91336..658798651820 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 ff72ccdf8e38..ef9df7c5af23 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 57081557b109..309126eaf252 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 e47a0c62d09c..551e5ca81106 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 821f0d8f9fc6..77333b676fcb 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 a75d7af344ad..aa7c737fe5f4 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 2316b32a2684..fd0735f3834b 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 c2f1624e8e00..11936da4dd4f 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 de9726da7637..ac950c04a1ec 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 a03316a770dd..c7ebfcbd57cb 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 29a8b08c7e22..ae69ed190223 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 1e4b4e25730e..5e68846ebb84 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 16f5bae10ee0..635b5109ecb0 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 737f2811ba3a..9777fd6d40d5 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 1c5adb9dcefe..66b169d7c601 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 4144312c09a4..a17065ea970f 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 30a9aafdb544..309850ace6d0 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 3c7f7af75c6a..050bd79b9b34 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 1e08dbe33f74..7611a3760db5 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 ca37e922a68d..b80ad34dc9f3 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 72cf06c2bbb1..cc90b92143b6 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 26a9dee71ebc..7c6918a4c572 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 f600fc8aa4f7..6647e36bb89d 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 51b89c380c19..1c2bdda70cf9 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 1c30610ad8b8..267d6d245605 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 cf402d1dc395..011c41b3aa16 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 ad71c21ba168..9920a242cf66 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 4b6120a35871..eb4365ad770f 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 0bace95f5e55..5dc7ff4f5100 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 963e8c2f7b49..3c37c4265a00 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 b6a197fffffa..7ba3f143c435 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 d9aab5870a7f..011538550844 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 b40dcdd922c0..1313e2096e7d 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 9d8982b4cf1e..8addcdbf8e91 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 c100978cdc22..d9de66156849 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 fb6cf1bb01f5..2089eb9c574b 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 4410651fe86a..eb72e1d7877e 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 d4818f2b1962..92124bfceb9e 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 d6548f10d32a..357f27ad5e44 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 db556b84711f..e1375207f8ad 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 26def7fedb3e..5eb7bee05e10 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 c55c689acd52..1eed9cea48ab 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 37867c7c850b..5be8ab0c7379 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 eeed5915188c..41886ee405b4 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 90f9a2e45348..a43f1736acbb 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 3a14da8a2b50..dba8e88b3842 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 653af7158905..8f17912f2643 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 c4ee7851069a..2f19498aa261 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 4877b6c2130f..0e0dff43e1c3 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 8da5f78d1209..36cd1eb57080 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 5fdafcab36e3..357dfa6dec1f 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 d83cf4abf894..7d732c4075ff 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 d56d01e6dc8f..b484761b98ee 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 eb0ac0a890db..d3381af99ffe 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 4aa48b3439cd..aa18be298c56 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 80c859b91fe5..0d1adc13e60a 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 d1e98d7eb960..842378a8a51d 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 98ac86c7fbef..cf47a3190364 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 af7b058459c8..564c049de7ef 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 143da0b5c405..037ca10629dd 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 ac8321f60575..962e3446f6c7 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 6ec4beab08cc..146a8587c877 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 d06c0bd4a8b6..14251cb7ab23 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 20b18dd5bf9e..811bc0cd746b 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 94de6b9581a8..189dcb6db85e 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 60cf74392635..2e582415bfea 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 f2cb557dfbe9..4e66f3e051d9 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 ba57175af7e1..d0bdd053b02e 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 d69a1640b547..c136fa61ac8a 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 4dfb9c86781b..924d513160a1 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 6aece388e653..c030ec1edbb5 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 0821694d0aa9..1020f141df89 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 63cd80bfff1f..4a90e744d1db 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 b89dd5955aa9..25a9ce6d6557 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 4f5ab792819c..d16fc9c6587b 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 935516a2d1d7..150ade684dc6 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 bfbd9e3dc7c8..c169817a214d 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 1146102145bc..c53fa96a9288 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 17f58648a7f3..f5579ec390a9 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 2dc14ec0252a..1e20ed26bd44 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 7a4bc5c069c8..681881e02001 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 43a9d1e7c7e2..d90041978992 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 ec872f203c95..eecc59d17404 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 e2757afbcad3..e7d0fdcffd91 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 3ff025acd56e..828bf4f71615 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 ed249b1056e2..257f0d438207 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 6f33bdd8bd99..9f95712af5cd 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 5671e2d9f0b1..1e72e9a2527f 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 9391950692d5..615e048f1d84 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 8c2d969866b9..d0255f501ce6 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 ffe80752dbed..4b0764943caa 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 e908236a92ca..b955757e5eeb 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 362359283171..65a1fac08b12 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 ed5fcb3aa5a9..04e4b4d01784 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 0c3961b42938..c229c5a451a1 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 3e4611b1f7ae..c29813bbe1e2 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 b4fc879f7879..06143f843e5f 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 4a1fed9a0aba..641f5f84b84a 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 e4f66eb9bce3..e1a6118204b0 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 96505f2a4c82..bc8326151997 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 d3792471c8c2..4250c89e8d6b 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 a747cd7b19ce..00556a5ad817 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 7f04046fac56..3991faf66f2b 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 3219a09fcc9f..371fa3d383fd 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 f044996904a5..351c633c2d05 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 f66196962325..d5a20e9736da 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 d60aecf48234..20fdb68c1459 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 5337c87614f9..a4d206db7d96 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 6ff05f90a79c..80240ada1c03 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 b0e39e6b8881..4a2d04796012 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 4180bb5b140d..645412ab0b90 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 79aff5207bbd..902938926025 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 64844ce94c80..533fffd34507 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 bc36584fd1fd..120d54bbca7d 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 8f4c68fbf71a..16493bea7fc1 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 42fc7d4a9f9e..ece76e958571 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 939aa2923c7c..915e219cbf79 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 e8f3495351ed..5c5603313dc0 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 c8643aa70d07..93a1507718b5 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 4df4daeffe0d..1a25d76dc190 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 fc8082c035f0..ba7f25e95c17 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 4d77fb604040..994ad4378a0f 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 5072227ee171..096b268d59d0 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 3570bf0d14b1..a2acbd9d294a 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 b167a5a77cd0..e03cb4ef807e 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 6a8a4789c22d..d78d6857b539 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 331d44454330..c76f6d3b03ee 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 43a9e52ae101..a557b597dff2 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 35817d24e018..4db5dd1a36b1 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 3eb2c218ac42..dddc37c432cc 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 f68a49d7edd6..e6d18ec954f8 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 86291b3ef891..0618b079c288 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 c33488ac7af1..6d2f532104fb 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 73dd1c1ad44c..6de6434711ad 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 2d428088e91a..d866c4337348 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 5a4f933440b6..7fbcd51e6d8f 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 75bfcd5703b1..7170fbf9aee2 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 5b7a8396217a..8f6a398e33f9 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 11d13cdc6123..96776bc2b89f 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 67a0beacb38c..b9771c62fcc3 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 1fdb56499277..7ff02e3d7da4 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 b986c89357bd..d9f75259cee2 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 5586b963427f..04959cfe6238 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 ae39e45b363b..b76c8d742a73 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 8752cd963a88..d98d4a4e8a50 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 95f8ceecdd4e..ce233aa5cff2 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 8ed6973da3eb..5e342b0c4f44 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 af68c16fc7a2..e62897cc2692 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 c730e12ae3fe..f098b4f0b066 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 ce740096ce9f..17204e986731 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 23e8226cb525..13928c76efb0 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 f2d863867c49..3dd734f3754a 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 20995d0a2c69..406ed091d702 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 845a848351f2..2b0d224686bf 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 42e4370f32f1..ad135e35aeba 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 9a8bcf8ff805..f5e3150125b1 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 32d5bbf3ac11..ed8bf469cbed 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 113c3a1ff507..fcfde60f1974 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 cac524b790d9..2ce2acbe26f2 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 e6a41b6ac729..9e51af55a6a8 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 6cc31f332938..70a84c923ba5 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 e72f6b1310cf..ea155062c5b6 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 d9ec9851cae4..88afc0139c02 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 294deff67dc4..f094fdbdab8b 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 be897732b0fa..f7edd077db7d 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 480821cf8300..ad540bc2203a 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 4ea1a8235ee9..cc337e4c4cfd 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 e67eb4f0f81b..03c1d0f62d39 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 9e0750dc7e51..a90ee624ba57 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 537c4a403fef..a90ad1fbcaac 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 c9451ebb6469..043fdd4fdda7 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 20ccdfc99401..5f4d27e509cf 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 46c57fd50da7..93457dda19fc 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 e6e952bffebd..d31ad3aedec3 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 0a040ea05546..79e407b8c02a 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 394a551d7f48..86c809c32939 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 0beb30c19b69..71cee56f5d0b 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 c60a3b96c9d3..89b351bb9ab1 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 aad60c29084e..493425f7eb40 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 6760f0c17858..12a287ee3c72 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 d8400e7d7003..6307ceed9840 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 daaa85b01d24..36a320d37fc3 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 92ba3b4f5ac6..c8e74eec7664 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 3eeeda09b7bf..e04f46a9223e 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 0453b06bedd1..b60d1f9595a3 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 366b3ed6fa69..dc1e0aa589fe 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 0429ea018b5e..c11c0f84deb3 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 ee0f0607923f..1f6cb0cfe25b 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 b0aded940da0..c3b4e86f3b86 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 e180857d2e82..5af6745bf7e7 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 47f8cc5c04ab..4535a853ee6a 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 af59d2c4dbe7..00cff2e3aaa2 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 105434439bbb..198e4bdb51be 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 0554e16428bf..fbd1f4ede7eb 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 89b312126736..1895dbbaaacf 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 093d2db1ce29..42652aad50ea 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 f7244c91789e..995912994026 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 427318c046c1..41246ee252a8 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 9d1e01a6bb50..43f91397e13d 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 c2f89f6fa2f4..aea0956d33e2 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 f8ea5e36f129..22bf993eb310 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 a5060da7a97f..5d35f3e3ec1b 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 f15130d98faf..9d59665d1b6e 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 82d40435150b..0391c8aabf7d 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 13101fb11397..4d2b481348c0 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 32a0ffb088fd..8cd371b624b2 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 f6169dc15598..b3ad1a5ab63c 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 1a055a14d512..3789d90d3256 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 8353bfc7e8b6..a665f70fce1b 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 d8a7d760126c..cf06e5442992 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 37a7d02a90a3..d2107d8067d6 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 b7eed54ef1ba..9b36c9d5a3b0 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 180fb7047ee4..cac594ef6f7e 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 9bf57714f4a8..5204082e39ab 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 3f417f7af9ba..943487fd5f3b 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 800e250ebbe0..c9a293dc6336 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 e9d4d588ca99..59f6c1960581 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 52a2b8f52576..4355ca96fe70 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 dbc96735ca39..298d805ab35f 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 297e7a751a19..5c277c5b49d8 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 aa47edbd758f..ea25889e4e2b 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 2186a927118a..0a1c4e2a32a8 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 09ce25752fca..0b816bbc5935 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 08f008662958..c887b25d3a28 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 079f834bcb68..ae5960507b3d 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 4924942bf27b..6b3a94a96adf 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 487aa53a43ba..0062a47ebb8f 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 5353e5b89373..f86345e57104 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 6d9a76575e9f..9d177386e268 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 8632b0e115fe..ece5292fd541 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 651041d05576..1b191cf2284b 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 ad9dd013c345..e0a9f4a7fa04 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 d2619fbba303..bab4214adffc 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 df0090823b6a..64896c2742f5 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 1535c21c69f6..03bd8bb1faf5 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 3847224fdfd5..c966a712f845 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 eb622b82a3f4..7ca044639eb9 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 bfe7bbd560fd..aaec17aac58b 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 ee8a3eb56cec..d834ab4508e6 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 a4153968792e..1b19edeaeefe 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 1ea0f542aa0d..ad35f4cdf4c1 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 b439be6d7e96..8c2fce71eaa1 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 d696cf20d703..cd80bbebdb03 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 5fe8fed75b44..aa64e6fa1950 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 9ff4f98cd827..461a7ad99300 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 ac89b63cc900..b5bfd07a055a 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 473e1e77cc94..7cd0f9753360 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 2971de0f8800..1f44a477a7c3 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 9be34f229769..55dad437997b 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 50e4843134d8..97e25adee780 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 e9c829b5f8a7..e079c3d38287 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 f612729cd82c..f5e21ac2a010 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 9b64cc933683..53e91596e5aa 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 82822c19fda2..bde49a16776f 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 bc55c43069b3..984b5cc8702a 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 9a92cbe532cb..d3e499164620 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 91dfe32dae91..ebf051fdf49e 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 0fe5dcea6c51..baf877b4bfa6 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 347f978d6295..8ae83c287821 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 2b518b4938b0..5f3b36cb9da4 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 db6f53bb519e..a49fd081fc0b 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 a052a21318c5..3059089ab21d 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 efd54d1004c3..97886cc1a032 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 c0108f0347e3..fd113a81157f 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 29d6ba7a0af4..fbe7d7bee21a 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 e052a2d783ac..155287a03c6c 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 18619f598d7b..056c11cf433e 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 c4d9d6a16367..6192b38a4eec 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 36b44b6b315d..a4252c381317 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 76257da8f9ac..55fd9294482f 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 7f0970e28ed7..0c9a4beec856 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 39b2ce736ec8..5f71a6bf625f 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 38cc5ee69a95..d3b015ef51bc 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 051344fb2ad1..02db43461ca5 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 ba38dafab955..3c000bf39fbe 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 76a03c875705..6ba687395ff7 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 033bf314650b..74121cb21eaa 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 ec3aacae2e27..d1b2dfb87266 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 426b1daab7f9..35a64a59a804 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 8c57bcb4eba2..fe53635c0410 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 c812315fd0e9..8a56e7c78f6b 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 57b75b473a0e..07f200c0fca1 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 df739f3c246b..9237f0586931 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 f49ce3a66fe5..d3c549efcbd0 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 45fd4bfdb7fc..53e5669df950 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 d7e83030e98b..edcdda84e228 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 f31299723891..a7880720a82e 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 b1c8ee0179ac..e74345f5fba9 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 7975032858d8..2fa20e89b96a 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 19399608e018..bbf5485cf855 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 7d96263e61c8..8dcafebee510 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 749dcaf0f7ec..2b51094a05ee 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 f2f776c4fdf8..1de944ad4726 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 044c3ee4013b..2d848a800c89 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 89aa1b102a38..a3d6b01a9569 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 fdb70cf6c069..2caab833ff16 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 6ff8e09bc8f2..35d16125975f 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 2206a4236783..de44a9834c86 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 e329da8cdd02..4fda5b844064 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 221478c855c3..58426e15a9f0 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 5b190f1cdd52..736cd1e3fcb0 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 984ba541414b..15b1648bac33 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 d0a7e8d8167c..516e9aa64410 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 852cc1f23b7c..b31b525d146b 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 4ce9015079a1..fc28e9727f78 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 da30b63bd205..678910deb8aa 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 5fbd4921d0c7..b7b97bf1b4f6 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 217128423d50..8a6f1e39df45 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 1056b1691120..9ad28b321ef3 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 68d4faa5341d..612666f885b6 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 70e56882be12..33734b8ad613 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 798d899f428a..fb958aa50bf3 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 60aaf3c4d0ce..4414ba18e90c 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 90c888539a3c..a495b6482749 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 8b24ade1eb52..0aa57a324c6f 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 4c20d50311c0..6469a13b1585 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 551ba62739f4..65455f81b269 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 e8341989bd59..0af7e2f87506 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 d408d5679a31..b096d0b3ac92 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 c7c84731074a..ac76aae1476d 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 76875ff9e4b4..996960a2b4f6 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 9f79009feefd..7802897c722b 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 079b13debe26..2d8d87789537 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 3ee5351dd5ff..4ef9385d05f4 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 826af7bd2d56..aded73426238 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 d4232d0c54ad..9207f7b1b5fd 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 070c7ab056af..f480cc2517b6 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 1ff4f17ef3e4..4e1ec2f41309 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 a3b7886aec25..7c86b7dda4c7 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 64b4b038c067..a4b485d3112c 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 3f806adcc3cc..50a6c7296765 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 0e275ace15c9..94245b40e690 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 68089a5e0aeb..5fae865b2809 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 cce7cf3313d8..9f00e45b5c50 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 3f438508a3ff..c6db7bc8ce6d 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 e0791af0da30..14e60b746550 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 df247051edae..827fc5b59f0d 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 4209f65dcacc..4ce114210bac 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 850112a2d169..0e640b499a47 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 2607d182b1de..4eeabe651ffe 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 63a56deca3a9..28e78e92f87c 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 8ba43873ef2f..09ef498f9889 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 6dff4fcad99d..5c1759fbdc3c 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 794f5811ff59..acd1f56b7727 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 d7e820239bcb..7b9b5ef8c583 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 320767647642..f1845585fc69 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 e6153c537181..2cf15d33cc35 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 6667820a0ae9..2703d1a710b4 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 8e9504730cac..e4b5440dc945 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 292d32c12c4d..f499ba0cd7b8 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 c8a2acb4e715..75f5f17f6856 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 0d5fe6b2a7c3..9f698b1841a4 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 ed830335c000..33e00435352f 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 b8e3b0537d6b..4cab239262ec 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 bc1bd17c1faa..b70821e61b55 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 43482136a6be..2c921fe67001 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 2a4bc0657d5b..019029ca0912 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 8ea516136348..43a3430f8570 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 ef6231cd79af..4f22384a3860 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 67d705ac0cbf..af0530be48f5 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 8bad9eadfd31..764b587dec97 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 6711a122425a..eba1fa09f3c0 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 efe9d458072f..31257974e2c3 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 b005c636bea8..6b484721924a 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 259ac2edbf25..9a7664a66ceb 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 bf1d22524d9e..f6acf6d8aacd 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 af0ea23f3e3b..c485e23c29d6 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 0cc8e0d764a4..c0b5b35e2813 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 f2e7068feb4d..6004028f9c98 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 5b22b669e1cd..d380acb9b4a4 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 2c5d63be794a..b97ef12798d6 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 95f95e7a6eca..d8a24b3bfe06 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 acbaa6c482a9..44ba2a4b9117 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 0cf49dd011e0..a860dac0dbfa 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 2e01249fbb10..546958420201 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 97e119418ffc..4b4984c91d49 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 9bd1300c1090..168b272bdcb6 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 b15585935767..947ec76eb2fa 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 afa0dba73716..fa849d8fe322 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 19ece653ae41..2d125cd508ac 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 3a9229ae1fb3..cb067e9c1f0c 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 831a0ce7bac4..637a41537942 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 0f12be0677fd..bfdca5d4880e 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 cfccefbfd7f9..19b54b235095 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 cd5588c80ae9..f220e2fe2c41 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 32b4394387e3..85c069f48f65 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 c7ada7889699..3825f14768ce 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 2adef2715cbd..4e3eee0b0517 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 0f2c35885f4d..9b76d428d59c 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 6b02d56be69a..10a65a97600f 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 ccdb7b5c0bc1..315566d1abb4 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 218dd5a83808..4db40829ca06 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 d7d699375fca..7892b02dc7b1 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 53747b6ad5cc..5df8c2b2d9ff 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 5f1f26ea553b..6cf685cbda57 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 37792203d7b0..6fa0aa8a724a 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 0bf61e230863..f549428279db 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 2d0071850e09..19cc788d2109 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 7c9ba4ff8d36..b1989d788a8c 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 25e34d4d3d3c..143f86b4ed4b 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 5db24cb194bd..1135d820c0b0 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 c248d64cd8d3..0bc35b213333 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 f813b449b269..cc1dea18ce90 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 61f622ba8585..f5accbe87c98 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 59884dfdfbb4..beb41787674a 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 18a7fe202e0b..a57e5d5185c2 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 d2b84197b95e..7e7d0c893818 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 ddb33e0b6960..fb4a13f92ab7 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 c815adf1573c..54c37fd4bc6b 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 970c76ffb612..4ac04c1cceb4 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 d4e479debba6..3bbaf7907da1 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 814c3d27a056..ca5e281703d2 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 507831718eec..50dad64350d2 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 09f884465e73..ad61dec17c8e 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 c0203c9b2173..a1c6eb9c8f86 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 bac989649bd8..736c134f58fe 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 98b064b56128..0dd813e77237 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 0e3f4952123f..0f6b7ba7376c 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 614f7cfa1e5d..ad602ccb2e08 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 29c86df99fad..b49f9c4da5fd 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 4e1d9e6e6237..a998519cf85b 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 a1f784cb2976..b97860ef68f7 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 5a57a5dffdf3..28f09b55fb1b 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 6758b818be24..af1cde98874a 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 65b646c030c5..26ea554177d8 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 c57070ee155d..94c4e6316969 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 3431d3873086..e6c299843dc0 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 3b2bde9b45bc..19d108ab1296 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 aa0cae7525dc..4a107cc378fb 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 7e398e3c81e4..9a4d4a24ccf4 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 2478dd5bace0..111a548eb470 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 e9d40438e332..edcbcc4a7e44 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 b25b0a6e8f2a..a748fbe5d652 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 deb1769ddf21..4c13e1ae3f90 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 1bd476dcd4b8..4b373dbb4b5a 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 58ce494f9cf5..46d3d759f4cf 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 3c2096b90a50..71e1abd2edf9 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 40679c07bbb3..ff5fe5e2452c 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 e4c93f0eb818..941054a36668 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 70cc42b094b5..a15cd2d4b0a1 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 04acf978aaa1..a062b1b02014 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 3e888f1b005f..22e74b442783 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 2466a9df9003..4994b3ec4f37 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 7c63610de7cf..2a72f611fbe7 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 4e158490fab0..a1a62f6bd651 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 5d11ca0bd513..7b9b3b1cf856 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 c0dc2c4fdb95..8aa8a166f27b 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 56fc9db24fa1..b160652c874d 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 ae98bf445e0c..06e1cf01dca9 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 f7389078bd24..a5e6145bf035 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 ee72d971e2c2..524f4d1e5f65 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 d86280bc416b..14f59efd240f 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 af938aa5b1ed..ac00ca570c58 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 99a4f2cdb5b4..bc9ca886fe0e 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 a5a48b7470a7..9d97122e2172 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 99d8cfa09735..bc2d18814d7b 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 3b94ecd72f7f..d1ba10d6721f 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 232c2db767de..cdf4191c270a 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 33da5ebbbfa0..4c11ab693d28 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 1ccb70087fea..2e17d573cc83 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 629a459b2b6c..fafb7d90a49d 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 2c0cec9acecf..6f1085aa1fbe 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 689e217b0038..a83523c5a8bb 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 99a3c41bf8ec..d4ee292369f8 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 8135ed810271..366760fb73e7 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 06ff926c35a6..bdcf8dcb0913 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 599725a5fa65..00187875975f 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 157f8f890220..86442ae74e70 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 0af061c82673..3dcc31f99414 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 93362e04a238..5427ea70760c 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 0e6c259107ce..1e3ebd848318 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 de3a86656591..cd385064bc6f 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 0dd4e4cda189..da58fd1ea49d 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 90b3ac1def24..3534b5689c03 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 d818a492d601..58b044b59968 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 994caa930a1f..02434caba5da 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 0e1c12dac351..cd20005f4a32 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 d61a551240ed..a8d2869f26f9 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 c0820b0aa1ae..49b6e18aa6b2 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 02c4135de51e..6da1eb746020 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 49117a371c0c..768cb0bb242c 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 7259964ad6bc..f1c655e1f3ba 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 b686cd6d99aa..14d626974e47 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 61048d24b21b..1d7e6cb85dae 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 020e7f96bc55..52ff2bbc80e9 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 00208602ca3d..7a56e8956cf8 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 9094cd8ccea1..1572038c0570 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 fc784a97047c..e1eb7018bbc0 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 22bd6926332e..d1a3d3013b7b 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 a175b5199b79..1a11ab6761de 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 e9ffd1daa300..f9f8712c4c4a 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 36e062344929..a62aa66966ac 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 459c1db30b98..d59371a7ef34 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 6548e1a52a24..d826cfbe9494 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 7429016c2c7a..8ab2ccac1d96 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 5d5d58c78eeb..79bed483547d 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 11160eac8ced..c98179a56e11 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 11b3aeee32f3..367eace09720 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 ed2a0ab04e1d..06f3fff34fba 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 1c519f4e0d07..d9b78a0076b6 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 fffe21a45e83..209f949810e7 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 14e9d6d12be9..e4eab8659205 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 be5827fdf113..480bf03d7c29 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 e7398fd8d811..5add0baf9cc3 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 87751d0fa280..72c9e59f4fb0 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 fd247268345c..282f094e2b26 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 6b39518a6e13..2156fc06f485 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 2cab768697a5..def591d6624c 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 9f8a517e536b..70e881157ebd 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 c42e21fefb89..82195e70a1e8 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 c3775abfc873..8f66f3daf744 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 0a6a85d37200..0ddf23e4d1aa 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 2fc306cc6168..25cdbef1c8fe 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 63b3f0a70709..cf8e3a242333 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 680751c91c45..a6081680b611 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 236745f96b9f..4a6d23a86061 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 2653c22db7aa..e8157f15b5e0 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 b4b19dc5c7f1..165aa7cf97c2 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 999d5b731b7e..1bdaad99993f 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 75829360a736..449aee02caf0 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 9aaf4a420317..448c56a82f87 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 431b2ace2e4f..c85318aec57b 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 f7967265f56b..1a8b70c42ffb 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 4ceb3a255d5f..4d86636fdb9d 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 f0878ed435f5..f785ef4453e0 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 f91edab8eff4..2893e7ace7b2 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 80cdc4fa46e8..983cc768396a 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 a85afff323a1..956214b38d0a 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 b44dc077367c..a6e583ab1f91 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 95348b719fab..d1ef7012e994 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 c633ef23240d..dd54b3073add 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 3b17723c92c8..1079d9bebe6d 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 3802609242a3..106b273b32fe 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 89f9669290ca..c1ae275633f1 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 29a7ddf1b7c9..2c2501aa1cf8 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 1b56fcbad1e8..b78160bb94ee 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 3c1161f990e7..04502208f88e 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 b06df286bf39..d38e13a80cf4 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 e1370a241912..136528fc23d7 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 9c864a5b69a4..c3d25f649b7f 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 7f3515f854c7..479cf2bba97b 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 8f72aa55a665..4d36c5ee696c 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 5670f64cb37f..b2b1d86e707d 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 aa24cc3a946c..2220a9f864c8 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 01e585cf86a4..49a06ecd5f83 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 15a525961607..e0520a065ae7 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 64e7f57d883f..a006dbb5f0ff 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 c30e8e1e4db2..ee4a74c2dc0f 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 fbbf32cad329..1ff7d06b1412 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 6b4551889a76..d41cf4be32a9 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 8d7e943d5307..c929d14c174c 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 aff002ca8661..43913005fb57 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 da3387e015ae..08459fed7c1b 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 716cc76fdbaf..2fcdefd4cb3e 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 ef881bef3ee0..3947b4674408 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 ffd09e75bd9c..c368fe99ae38 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 871b716a697b..d9c8f1830ad9 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 23d1cd965da8..ae453390889a 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 6ebee00da36b..5a0575ce1d18 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 7089f01bf630..04edac72f7a1 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 75adc0b5db5b..8bd55e22984a 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 c37b9133021f..53b8b739f32a 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 83f7aa4fc1ee..24f894547db7 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 e9cd69407068..42ad3f2c934b 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 eb8eafaa2dda..1fd4a55846d4 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 54e825885b1c..081a9917657d 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 47729e51d7db..ad408d8df672 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 db1e53ec6a36..b37618d874ec 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 b450e0ee5bfb..60c51c75a76a 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 645a9adfb34b..b46783d06b00 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 4e37cc190eba..52029268a43a 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 c793ee897c0f..3855264df572 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 8ca3a5665667..37046ae6acf5 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 7a20c0542d73..4bce8c648a64 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 bba949049e53..18eb72c5f5dd 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 d7197d827cf6..8341f32fab20 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 7688a3fbcf8a..3034a99df917 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 dbad18975748..fdeee07a00c5 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 c099b0f3ed4e..59de60ba861f 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 6f9b544af895..3c39a10b5db8 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 9367db9c0e8e..12238081efad 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 4c4d8c99633f..c68a689f6340 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 ce5085b60699..200758a964ef 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 362ddfd1043e..26df45643a69 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 fd4695e56a7c..cf93570b7dd3 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 e8d01544801c..b1e7e24af6c6 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 9e9e35441e53..4708c75899ec 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 d163ea70614e..fbd17514aa13 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 e9f4be423947..be19eb9d61c6 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 625bd65e1bce..068ed2a1ad2a 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 1096da917261..034c280ec10a 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 4f4543b644c5..2d9c74fb14dc 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 526eb3e045a9..88aa33017bba 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 b4d9c77d7e71..581243ca2a0e 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 6a2f03555e21..f28a06e447f1 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 cb74e2ec408d..8a8db8eed80e 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 1e3cb0609a06..a9be16fe5d2d 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 c280f6566702..df31fa23134b 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 dca623c08060..799678740bfc 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 a9ee409810c7..291bb656da37 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 3cb09ecccc6d..fb5e4ab06031 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 5142f7263611..cbc02f33f8fc 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 ee0dc052f05c..e3a2af382ad9 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 14f23c62917f..1fa4c6eca1b4 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 76c7f6b70885..e7ed4f5485ee 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 71570e2ff4b3..a27ed356e6b1 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 748709b88f23..7f9b350ebb69 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 e8faab45a956..f0ea7fe9e1fc 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 81a931390ae7..08333f970b29 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 ba8dda582d19..c144b0038730 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 36ea1fa2ba1c..fe2f3e021282 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 3857095f1d7f..d903d6908d4d 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 9295177318c8..c2963ed852c6 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 666e8a8dc27b..9fdaf53854f7 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 703a0a2cc2ff..06e5c063d4d1 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 00144cea2109..c9537e4ebc14 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 c01e33999f59..7f4eb9b242b5 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 c0ea3d8f3d92..39cba0305cc1 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 d90d9ad739d3..2c8670770905 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 2682ed95bde5..ae4d25118dee 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 c5c0e86bd2ed..61d09585d8df 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 6ca0904420ac..b7ad2f35c041 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 9a3c09fd7062..a419f8e01dca 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 04cd97271c65..9f0a8b4ed8c2 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 635797d49890..d2c3ae5e6425 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 ec8f4cbf3bea..96d865b37d13 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 8cba137f28e7..d7913ab181ba 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 bc3f3427f1e5..1287bb8fc7eb 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 9b043199167f..4bc0a9b03f41 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 f06298503e8f..47c7d857240e 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 72ee9fb12b51..8ce175425ded 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 0e0691e61ab0..824e2983c0f0 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 1111b3c2d094..cdf0b9bb7e91 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 fb310f826c0c..3c2f9f7e736a 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 f30eed31b0c1..bd33d9d42913 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 cd76bdd11d58..e62cba04a987 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 6e9871bf094e..44952ac2c29b 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 34123cd3ce33..bffd475d2d67 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 c7bea81de825..77cc056ac1d2 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 024f6a82acab..154fc6c73a9b 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 c8e7deafc883..17cd96b11dfd 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 d66d77cc5c86..1347ddc68135 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 cb793a13951d..546176bcf948 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 0c2d6770be4d..7822cdcb4012 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 6cdd1ecb6594..18bdd5e083f4 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 6f4039ec8e08..d9e0dc248560 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 8946ff4f6694..7c5bccbbb828 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 0eacdaeb4ef4..1b1aa9edd819 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 7b1590176b0e..032675d74ff2 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 b68aeeae8ca5..14a42b25a4b5 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 a9db751098c3..7e8595fd0554 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 8238bea0ce71..d2bcc3d15133 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 3e012aabae46..f332bd8b4655 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 11674481a3ca..15e4d2231544 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 1083fba5f712..5579f32782cb 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 f745ac889698..8e9ae8621fa8 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 416b4bb2a621..f5869b18d260 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 d48f287ef159..707f159db6a9 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 6e7ebf1bea8c..f7215c5ffda6 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 aa75c44de6e7..a1f61a4184a7 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 79a5a1ade7cd..dce083be8a85 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 22bb1f59eeb7..48de995372a7 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 0ee773469810..8902d66f96d1 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 dec1c84cd369..013743e677da 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 d01e076ebd25..57e989243353 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 61352dea9fb6..75f923743864 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 c7f73aaf701a..54c259c83189 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 c9554c7e7942..6924bf1c51d6 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 5b6064de46ad..8558b84d9bb4 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 8249839371a9..e0b08f274ba5 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 203f4f04866f..4bba8533c57a 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 c567e2731c1f..722c7bc4a328 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 38ca327b9052..051ad6f0e997 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 15bf19472dd3..0f85def20b4c 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 a54600f17de1..a8a3acb8d63e 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 64533806fbea..646ba4f11d08 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 92458d8cc8da..61afc48c0a2e 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 f5a92b85fafe..c8bcdb698d96 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 8479c17506f4..e5c23feda5af 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 8fa565380a9c..40630ddcc198 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 c95317a35b55..92ec1516fdf8 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 6c8662080616..c8b7d8864a0b 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 0da022240e0a..b5737132a72b 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 82d6308f7590..cd57d53af836 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 992fa01b7546..040c7bb72865 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 4528ac71422a..eb5f5a2e3242 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 39b6e84bd6dd..a67803fe5db6 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 392d0871b631..f7366846b621 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 c8f8be2ea6c0..b120d06ba965 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 150f72f3684c..e4c98beb913d 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 046282f0a76b..c362a059d97d 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 f1d831df7a36..01243cea806b 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 eef87d7dffd7..edd2041c380f 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 580ca276f7ca..08cdc01a92d3 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 5ca6b75e6826..f5652aa32c7c 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 cb44536cfa66..25cb67b784d6 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 4102642be23b..d22cc9855d77 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 8a203f605533..ea7e95a76f93 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 35e227d88721..41e8e8c8f80a 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 b3ac04254dac..00ba077b4551 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 7cb35aafe36c..ba579d2dcd55 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 1a863b9b1608..f26f33b0e522 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 e8be176ad358..c9cfe0c6c700 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 7530a76c5ca4..814714924eb9 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 74854126867e..7f8d0593ae79 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 99dae69cf613..01e780270c92 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 958f7363f716..069c2abc0ac3 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 a6e7d468a37f..7dafac52012d 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 7c0d4f666fbc..079181627c0b 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 d00367316d36..e8c15341f2d1 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 1a077bfaa755..983860a406e4 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 5d0165950abd..d0145e3e7191 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 df0939ef9e72..48c4af8e704c 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 a70b73be9c60..80a0aa9df789 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 0f679a8caa31..2955a3ad57b2 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 2142dce66e22..c1e78c751f47 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 9816fcd75527..d0177df87556 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 5ff17b76fedd..e2372f6002ca 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 d92b455c268f..869bfa05195f 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 7bc6c4e157df..031099f4cc20 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 d530e6c75ba2..215db62a205c 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 c12c1031b04e..76fc58120bdc 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 f791bffb7152..449ea8d51d7e 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 9845dcd2e594..25b4ddcf68d0 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 fe3b480ac139..408e91acdc7c 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 d5b7740a34ab..fa7022b6389c 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 c3b172045999..2800480365ed 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 1c029ec8f5d5..5176f03c4130 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 2d815b896b78..0d3420e9d427 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 baa13fde800c..0b8567cf47ad 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 e352ac31b7bb..8b5cad26266e 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 d0eb486c6fc9..3e4a466b4f76 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 12bd090232f5..bd1ca2c2c309 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 220b974bf649..48cab3577be4 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 c14123430e88..6c3892dc4743 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 c513312c47a6..489cd912022e 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 12cebccc85f9..7024b300eb0b 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 5909843bd448..5f6ba6f192a3 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 038e6d67b000..fb30b5a37186 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 be82ee1ccef8..5ff9be7376cd 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 2e424859141d..3e98cb8275b9 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 489567d76594..cab64167ab20 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 560184c0a396..dd6614ac260c 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 9866aa6ad82e..36bfe545d7e6 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 1d2084df430f..034e2b0a823a 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 46a2ef52919c..c4a09f57c661 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 92ab00805c3c..2636c03a4612 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 fea3a5aba8a7..db1190cef333 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 730c530c0314..177ed5a30db9 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 0b39c78585c3..ab3b88194cef 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 f6dea6b91436..bf8a8aee30e0 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 194119406081..70167daf6328 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 7395b86c2e91..5152728bd90a 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 6d50d0b46668..a9a6eebf576f 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 8f6f9dbcee68..99b390285e52 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 094b8953db35..3eded4e72b84 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 a612d7befcb9..2730a0bde9c1 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 f9b7bef3d150..22bfb9c81c75 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 01413eced2a7..59003f39bbae 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 69ceb50590da..23813c1db688 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 c1e558990d32..f3865db9ced9 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 fd51b111e337..a1d393daa03c 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 aa674c7e8e9a..0b840cc918e7 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 e82dbe9dcfaa..6c11109cca5a 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 a8a85c8629fc..a0601a6bab8c 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 888050f82928..f581a68cb811 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 d44c04b4e325..cedbdfe32947 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 b552b1956512..bdfd473eeb00 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 d4ab3b37e82c..0799be9623c1 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 1cb1454f2c20..8278717cf484 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 d20d3b796a9f..215383dc1b46 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 8ea57ad77540..8a08652ddf22 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 fb6621e42979..871724fb4208 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 9a1237bb62c6..baf40afcd575 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 8f9b4eb2f51e..07b69a79f91c 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 69f12ad586f7..2e38b2723059 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 9ba7cfbf54bf..88ce839b0663 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 defc61b8c641..567af996d606 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 a29ff709de33..a45506816ebd 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 f2bcd33c0875..536cea0ddc38 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 70de5fabbcd7..aedb28b8a32c 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 0135f223a1d0..3628c6eb43d7 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 955fdceecc1f..560f7f31f61a 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 ceadd81fe6e0..f4d1de579830 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 0dfb6acfee39..dd4ad235cdf2 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 4d94bd164f9d..26f9f40b2dc8 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 a28848e35bad..73b90b56e619 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 1b201bf8c3bd..346587a02168 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 deebbe720888..4267ea43bfbf 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 483a50e8fa16..44a7c5515521 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 ae541733044c..b218d7ccb23a 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 6da86f9ae586..96515b4066cf 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 b6bce86d8545..5b1bb1b09f4e 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 071ea6561a2a..15076670ed98 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 a311fae82766..9b686c6fb494 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 588c649a54e3..92bf42b003f6 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 c9555e306fde..60d9f0b71733 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 d03279a098d1..930a1be8e26d 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 bfc28f946e6b..66cfcc3e895d 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 8893927347da..8a2324b58df8 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 6dfffc4085a3..f24173050d97 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 e91363fa0aa8..a31786711362 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 511cfd1ca4da..40405848af65 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 219d287dd294..5ac4825aa9fb 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 45662ab3e944..9633f328f336 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 729b1e5c661b..4214cfa7868d 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 800b06b5d080..a2949cd7714f 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 001092dcd5ac..ba81657eff5c 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 866c5b071c7f..b445e3468d88 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 f8833388861c..97bc153dec95 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 fabbbb89994a..a98008be38c2 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 1d0271416c1e..bfea472f219e 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 d8e6cfccec4a..66769a188cd0 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 152d0dd73e01..21036af6fc6b 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 fe48c34c8dd1..bf12442b6588 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 3dcfd80e18e3..c9b77023ebd2 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 ba3b284e63e1..25337741dee4 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 8dbd51eb4072..a5584976b39d 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 0492525ab571..45e413007c8c 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 bf930c95c8c8..a44d0edc3458 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 4731c6482efc..0dad06b6e2a9 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 66218920a810..cdc01368d851 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 67e6ddcf7f6e..275db4babc5c 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 15bf0c67e4f4..df7a4fbba0ca 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 e4ac63160688..2d12208b90ef 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 738f956d23f3..e0695f76857b 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 263e15a435bd..b409c9276db8 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 350caa267a93..832428be2cde 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 4e9af727d241..5607f090c5fc 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 9d1bb0e6b082..04eebad44f66 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 4139048077f4..c7b4cc92f7f5 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 e34f65fb7e15..becacd24d8f9 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 71b8252f87f7..0059788b70fb 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 e910674405e8..8a69af179a22 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 d62ad8e04f4b..6909d3e0b314 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 f01d39afa2c8..c04b7b7a0a2e 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 3137ac4bb793..d4e56158ff41 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 fcaa403cd363..c50c11f24ca9 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 2fcbf3ce9992..da4d0460f803 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 821f382eaa77..0a444d9faeb3 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 781adf5c9ed5..719a59296510 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 c5a4cb71ec29..1fb28c8d9c85 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 ba7199427197..8209ce0f59c8 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 5c845900bed9..33d714ec378a 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 ef628282de3b..993620c8d0ed 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 3f3d7bcf427f..133f627553e0 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 00504877cedf..9007ffe898d0 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 a8abfc10907c..07b46f004b42 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 301eba6a24b3..b96a29811944 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 458bbbc28328..f4c7d2443645 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 2c0a345f3e17..fe15c269e299 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 d21295ad2e32..bbff3a1be0ac 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 447f17bb8394..169ab52a5df1 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 51953f0eaccb..c102c3b5cc0a 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 c380d58a8d4a..aa41081254d3 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 edba29fd2fcc..58af42e7f4fa 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 104ac1c28ed0..5af4ae58f6d9 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 a19ccb95e8e3..f593693b1486 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 7113b329dbd5..3d155dc09ce2 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 36f5f478ee16..81bc3844c5ac 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 8ed6809218b6..f9a3964d9ec7 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 0391d5984ed3..4c6d99bdf51c 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 9008d9fb21f7..a699b7434840 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 640f467a722d..db3f4d9e973c 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 09b02952c3df..808155516460 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 b069ca985e13..747515299e8f 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 a7fa5a74b384..81b1962f24ec 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 e3af30ee9699..f12e30ccb42b 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 ca5e2f31622b..74bd03117983 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 b23e327f72c8..36fc52221de5 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 5914765bfc83..3bf73e9f6075 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 343cf9ba8a1e..4b3224e61f91 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 1ef6285b9b79..abe14820977a 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 328ad7abe221..61df8edff0c0 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 e8d0680a382b..84b2b09cfd8f 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 7516c88b1dc5..6c0d39dbcea3 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 08effbf4d371..d596f184d72e 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 86ed875577d5..b9b0ea99738a 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 caad3bffe7a0..10b3d3415b2b 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 67ae175d7533..cd300ee13fc8 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 dc2701593597..497003247c62 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 24bb3215d2ab..dcac950ffa98 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 a2ba30dc1e25..d1c0202884d4 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 309d3fc274f1..f92b1329c8a2 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 54e1cf86190c..69f2e690b223 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 cbe95d092c06..9f5dcfbec234 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 6551cbd8ee9f..c8131512ae8f 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 37e4b5d05a1b..501acfcf18ae 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 f47c37e25532..c428c5cceffd 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 d1a6804ce55f..65523daae30d 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 d89990fa8213..25be8275431f 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 1cc4d8410f07..eed3dc5a6e9d 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 2e9b4d1bd495..979d8c49271d 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 96b476ebb3d3..7e164d7a1ec4 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 182040d83c7a..f72f05200732 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 6edba59fed99..99277fdba72d 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 c1508575cf07..e4ea53ac91df 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 d52ba7112c74..836dc2fb06cf 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 7ccaac5d625e..4fd2e2704918 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 c2c62ab724ed..d238a0c3bcc0 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 6f170c23bf6f..93da0e6d25a7 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 0c440b9f4afa..f75b8d0bf772 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 755be9399529..cc879abd6521 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 a599224f0b63..3c79d3414860 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 97fd14d41f1f..7704c82e10c0 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 88416055517d..397825ab7f9f 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 d4a00188b16f..ff411ec00ca2 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 920bf123df2c..6ae34cc00626 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 bd466fee69a6..46bfad9e9e6a 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 f6e81415241c..91723e9e3d88 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 bb5c7d571be1..75bcb4460972 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 a3aa75556238..01d262d7bb0f 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 e3a619e6d4c2..86c128aeecda 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 44fcc75efae3..462b5870542f 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 05c78b40371b..9226d0e87846 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 de7aa3a5a41c..291371508c55 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 0e922f89d933..5158d71c173a 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 13ec3bc294bc..205d1a452a49 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 90c0ecf16a5a..735b94ef1883 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 ca7dae4f08e5..6c8743dfc9fa 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 9806980be9bf..58954f744e3d 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 2501b01cba92..fb3ae65cb713 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 f287e46b22b9..065aa00c6860 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 f55e0a1e5f75..3edb2e143c75 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 2057e89fb86c..92b032eb4c7b 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 049ff09527a0..bf24c891d95a 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 80cac3cf4e10..488ce47332ef 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 813a18e4dc4b..c9d0035d6d3e 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 f68d0ac8098b..3ca8c9c72715 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 56d085832969..4d8d14be33b1 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 d162b52020f5..2bc9a0be9033 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 f52be8d7de44..7b5be662da7d 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 ad9e86b886e0..56c787e8ebc2 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 7c2b56687521..39095e4e6c12 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 bf652ef5aa1a..bfa834ee9ec2 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 30d00b5eb896..4012446e35b0 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 51832905e253..88120f0f7105 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 dbd333edf932..7b6912de1c22 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 0301d44de86f..396f7bc42b1e 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 8fbe880b11f3..9e8b97b377e5 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 531887ce6a04..89330aa1f80b 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 eb0f5b467d75..3fb4a1b41a76 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 580be196c86a..3645132c4ab2 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 3e02e60695ca..651cdd625bc4 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 3f9522342275..2319179dc3f0 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 a0a4fa0b196b..5c7b9e5755ae 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 e81097f4324e..50b826704a14 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 16fa8549ccf6..75a2aa9abf46 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 9c9ba8a5c988..e44256ba3a77 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 35ad73073191..6add7950f135 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 2835b4cb7bcd..15c0a6655fd8 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 068dfbbb8b62..82dd5840f6d3 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 06ef0f33a2e7..432409500d3f 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 2c7c2a32e40c..cd1c5dc4a435 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 2f93f0332027..1b3835bed60b 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 a8bae2cfad5e..82405e3c70fe 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 934e29181e75..c0d0142aa694 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 e3821317fa92..57593e14427c 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 2267ce5b01b2..f76373e0fb27 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 aa01fb884dda..cf89e09a2d7b 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 712726bc39d0..67ac2f0579ac 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 7d893db66d2e..aad461e6a5aa 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 b03d3ef67139..5d0a8aca687b 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 11eb8d8a1abf..7241227bf635 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 ce706f48c2ac..bcc622bceaed 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 371d4f3c1f3f..899c9941db80 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 770e1ff90aa9..b31e9ee2bd76 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 827235618a27..9853df3736f5 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 fc235c36b1b3..c0f28361b06e 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 01bf2c7cb6b7..12b9037ba3be 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 70beb9b31742..c29155095982 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 ae32aec6dc3e..d439ce2219b0 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 e899268bf18e..a471537fa7bc 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 f0411b8b5a28..6e99cd30b59e 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 61ed2e90d2e9..1b2db41bc1ba 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 bd9a2376a174..f2a76c2036b1 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 c5f7a02963d9..be3b473ae2dd 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 98f15ce6069d..07061db54821 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 faf61f291728..962aabde1aad 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 e85f9c47cbca..4208a56c7b85 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 7aec5310d085..1cc6f85da33c 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 ae0623251d99..4bef0369dcea 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 608b5848bfd5..17bb65c24f31 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 7e5c38aa64d8..05838e109158 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 077ebb3732d0..e19ca4e9e65c 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 655de9b05ca0..92b98c6a0f7f 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 8ffef4b0a5e1..c62e204cf32e 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 a78d7a294802..5262e208e4dc 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 f4bc9431df89..b0a4f5d0cf83 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 787cce67f0e5..d2c780ecbb33 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 3d59cde74d2c..a0f9ba3a15af 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 3e37f63d9ea6..77c431e5997b 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 793ce959160d..fd54d26f8212 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 d983af7c25e6..ddb9434aa2da 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 441e3d47bc35..41bd3ed589eb 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 f2ec85879da8..137d2cbaeb18 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 e379e7cba5b1..ad14df34b747 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 df4f61358a8f..0b81b4b8ef46 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 5a1c1ec021e0..8db38d9976ca 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 61d9ec9ac56a..569ad03b9535 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 c40b858e2e52..c4f3776a14f2 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 779d922f1787..c323faccd7ce 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 f954af67edac..5b3b66ef8a49 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 4b0183a55dfd..fd55a1edc85e 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 551ae9b535e0..f43947ccf841 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 5adbd6087226..4a00df4740e9 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 00144103d33f..7cb64bebec96 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 3f467bf7a695..403c0953441c 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 683bb29bd184..1a9326fde182 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 53b42751f855..cd42c59af35e 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 e7761029138e..a610f0e6971f 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 a254a61fd745..396b793b18d5 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 abcdf5497eb2..9d5de40a9237 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 1ec996b8eb31..d27220f7b11c 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 75afb1761df9..80ca76e6752b 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 035cd4feb5ee..0ee0f1d4e465 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 894be5a9da3d..4ee55adb6f27 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 74ca11a54215..250745d246df 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 4309f1ce52b1..de7041eea6bb 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 c6533f164f9b..8d88b32aedcc 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 408d5a1de70e..ab19377f6388 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 11d312ac2e21..d860a160c4dd 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 c19cb3611e90..8dc698b5ee5c 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 a71db4e023bf..7bef593dcd17 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 4a98a17d57dd..909c9ff0a324 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 b5c84d8ecf1c..e52e17703675 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 8e1135889a73..2c7eb12bb3dc 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 0f58d1a7b979..3be4e7173dc8 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 a972cd7965b9..cf5a0bb8516d 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 4b50c2b3df61..1138f10b7af3 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 7cf703eefeef..ff83f13a45ad 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 7540bfa2c398..bc5cac00346a 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 84e58fbd6718..3c37fa6d587a 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 8819128f0456..3162d418a4f4 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 777675df1671..4de80b4f95e9 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 dd88d245852b..6c7fcca97d88 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 c146886e6172..aa87be4939a8 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 d95b1e7280fa..9122f71af454 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 52e38c7cf9c3..e10f757b9d16 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 2616e9a6df75..110462665843 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 ef6f923aa605..52485e643bf2 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 69745665916b..6e0fcfd395bb 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 83eaf84389a1..53742d8f8038 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 db8a31e6ecae..6402a5601bce 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 eee16ac426d7..5dcc1d82240c 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 e73c5d637844..a27293d3ac8e 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 d8807740e31c..14c50becd92c 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 0f904556bbfd..67eb868aed9b 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 ecfcd47c8cdb..20093a6b5a72 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 f3d2908efc48..1f2672ef849f 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 6b3b0d5fdec8..bbda0b7fc3e4 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 dffcea6a2955..33e625c805c8 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 4af533458e0d..fe31e3d914b7 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 f2f36526091b..04e86c56afe7 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 e95a5bf00155..0b4a860d2542 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 49038ead9f78..afa648541c6a 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 8b570e971b7c..dd3b966ca7f3 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 af7d3da32f07..909d64d625d0 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 126cc6a265b8..79c81b19652e 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 3cbd11c4a22e..9e5be282d548 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 23d4f076dff0..5f934bad002e 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 6e6dbf0c3d40..dd424b76fdc0 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 a9e4b698b467..b68e03866205 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 be2a715d62e9..ddaf20e62a5b 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 0853eccc3246..156abdce1fb9 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 d33d1ee8bfca..0ff175588e74 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 ed1559090fa4..bd1283b6001e 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 efb4221c8a42..946788d5c115 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 834a4f9358e3..27f3c407ec66 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 55ee9a405c6f..634bad9686d7 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 28dda39ad513..fe4103b3dccc 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 3a331eb92978..6a72d7668296 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 5e43e055e803..d7def1c78110 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 f777ba89e329..03fb26e2f773 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 4ba683c7bca4..87cc31bcf6b9 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 cb934bfefc39..793d0bd4a7f9 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 ddaf138bf488..8eb839eecba7 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 e664e8b0bf9a..4125aeb68d3a 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 8140ffaada8e..2b40b9241484 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 695f47cfef26..231da9b6a6de 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 c2682822c056..0ff5bfc05c49 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 200acab4ae25..9bdca05b5e4c 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 3852f2373c08..8c9ad878bed7 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 8d666685b522..23da79683314 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 f74c9013660c..eae9b4c2a37a 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 774f8ea852bf..07a19a279712 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 654920483a92..ca89f981fe13 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 245f5685832d..86a1f85a76e2 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 844bc6c5bfff..b6225093d89c 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 1fd022cf3d95..102f54f63e47 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 cc7a4c3a91cf..cf01bc9b09f6 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 614bf2eecabc..fa232ef21228 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 62a4f5796ea6..75a587d94f00 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 c761e9198385..082db227ea59 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 3d14cdbfc37a..a97e1ca83c5c 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 31d054b919c4..ee8ae005c4c9 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 ceb27852d96a..99be025827ee 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 2c8a4dde7395..18102ac2e2fd 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 5efd767bbcaa..867c3f48b582 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 9369ef17298c..8365c894e9d2 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 c09f72d8a7d4..912b4c1a99e1 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 ea7d4ee0b09a..f02cd9cccc77 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 13ca7fb620e9..f2c3839743f4 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 f070a8645b1e..50fc5bd9d15e 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 0e4d33bb7fd7..425e4db7fe5d 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 216c30df51fd..329e9eb562ac 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 09e3740e5261..d5e1e708fc6d 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 4a4ae38b5a1b..59edac51b907 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 ff51076fd96e..7a86b757e226 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 3ea52a03f2f3..7668269930ce 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 af6741b826ec..645cfc291ce8 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 7942dea7de44..537221beaefe 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 19f155e36b25..1bab9c18713d 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 bdfd97993da4..3863193ec06f 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 7fcba35ceeb6..01fa16db54ba 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 b37b28270108..08663b769fe8 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 c8701af25f22..813b00eb25b3 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 7e33ecd89123..eb60321dc010 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 70305e0fbfda..aadae53f0c4e 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 31fbc3a74b0f..07ae986c04b4 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 1e0587b05869..132ee49a889b 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 5dfd9059a32c..758bf5c47f5a 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 e38240c49514..d00a8b05c25c 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 fa320b292598..323955c24611 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 ebf687597933..7d02237461dd 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 10d275db60f9..83e53b45aafe 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 7d80b34920bd..07aea03833cd 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 6f160fc2ea06..bf7b36a5a2d7 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 270b271a16b2..5ae5aff77c7b 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 a6eb3e3cdc83..9861895c1710 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 75748cddf9ad..fa18c5446461 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 219b8f08795c..89a3ba1dbb3b 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 1693f71000ce..4c9348dd0038 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 2ebb683d9dc4..0c8f68986a06 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 2c62706b19bd..f413028160df 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 4f0267c568f0..089078bc388b 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 4abf824cf001..852c912708e4 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 cb7ec7ea31f5..f776ce386bb8 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 ebb96c5a67d5..ba573828a2fb 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 3d32a836af96..2ca498349cb0 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 36b85a86142f..e155fa3a2861 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 3c7b49e6ef38..8e2eb5eb6465 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 d52255c2ce65..3242f370ee16 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 049aece2a3b4..59cd9b7bd22c 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 333cc4f0d0a3..7a004be6fba0 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 b9d4820261f7..c8ae96dae508 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 1590d8b4c449..1b96f28dc8b2 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 cb983c4be172..b285512c5e16 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 efe9d6939877..b8e7ea10a1cf 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 bb446152f2a2..777010fa2aff 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 557eb04bf2fb..ab3a3a61faaa 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 d9332672cb8d..fc3e24dae1f7 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 eb349a53e575..61b9a5047a49 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 78cdfeddf2c2..2ab93799d9a5 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 4b4eef616edc..b425358f4c18 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 4d77b1f87c6c..7f4926a8ece2 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 c4ac2c89b77d..9dac663d8a32 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 9dc8effd5c0f..29294b97c127 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 56bd8d6362e9..56fcc2408d54 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 cbedf5c17475..855b92519235 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 35cae07e8354..bf2288b36d69 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 25b03875be80..ec0e19b31cdd 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 86c262738092..eae550bec5b9 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 70baaa99f314..c1fea171083a 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 d0e007d51499..6ec1b2d1ae69 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 e72f2301e2a7..93744182ca65 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 736d7f3efac6..2e2567772fa0 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 0a3ee11d81d9..f01b1ae6d7cf 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 a10673c90757..3fb6d2637b0b 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 adc7d164e768..259b03ef385f 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 49f09856d6d9..1593443e6455 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 4ca115e7dc09..738715653d28 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 0ae1003072fc..1883103d8d2f 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 90df09721fc1..d5b309510885 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 90cd2faccf8b..205f8137968b 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 8cd812522398..934ac7e44433 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 bf0432232bf2..d74a62eadeae 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 55bbb9ed4933..d52a51b7b4fc 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 630c2a825049..34bfb7337190 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 767c780a4fba..5d67922024ce 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 5b477c140008..eae5480c461b 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 38db528b7fc7..30402f3a250b 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 4f787b89b4f3..696a2279e4a6 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 8e3214ed97b8..5ea695de0c92 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 ce87911d20b5..fb57ab30ac62 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 fb48dbaf5247..973fe0afa4a6 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 4dae23715537..c24d9d5a41cc 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 cb9a2db0ee9c..4135ece75852 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 c841042f9675..adb2d7e81869 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 9210dcbacbbb..535e7a7cd9c6 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 d9bd18d6085a..51503d7189bb 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 805131ee8a85..948f64a56018 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 bc0c290d4fb1..304a25579726 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 d5453577f539..01a6cbb85ad8 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 0c446b98caea..d312d30af7d5 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 2c11e9f77e1d..e8f47e81d3ae 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 cbc125232576..35bc12749a81 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 68e44cd785ac..e8ca224c857b 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 054c3d9c6a8e..73c036665123 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 8310d38bdb47..514815260e92 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 792d0a953805..065c699f0fd7 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 041c7ee02e0d..9e71cef9aedc 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 c6e0e9bb3154..31f22da9aba4 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 45d36feb3a8d..86e3d991f627 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 479f31396604..7339e972073d 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 d3ac375df456..74be73474487 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 a8fdfe7a2885..99e420be185f 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 b5b19332dbae..2d879229bb4e 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 40d7c6049634..0d6377cbb57e 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 2b7ca5e34127..f350eaeda783 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 0250eee8eb1f..3cc7bc3d9091 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 e69ded476554..5f4ebc314a5b 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 e391a8fe8e0b..ff5d9a291edb 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 ab83ed893b7e..d96d4c6465c4 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 3e7eb21320c0..fb8c8d61b330 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 ece75fe3e74e..aa32b053cd81 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 d526137c9e71..9dd0e7c1c07c 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 edf0c87515ea..582b6d0505b8 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 790da5c9615f..559576565de9 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 3f63e95fe804..1459de50bcb6 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 dacff3232827..905590574b53 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 c4df543b1472..7dddc67f27f7 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 93251b38cc92..1b337cacb70d 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 9bf62fadd83b..3155718502d6 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 a4e138f9b785..ba6cfc124827 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 bfda50c620dd..92f5f4343ed0 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 3efbd9687d17..a171d281c45e 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 8008bc1a6971..b1e4f9190fb1 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 adbf87b3ad72..9cf639f25740 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 82548dcedb91..88755800a493 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 71e0002142b2..e3d288c76afe 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 2abb3ac89681..201755982086 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 b8b158e089a7..62bac0944728 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 c001206dd872..62d0cad4bf16 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 d1e66d77f679..976dbd346321 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 bfa0a1d1a3d9..2603d85ad7fa 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 fbb71a856721..7a197f74dd3e 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 04462cc70184..1b06e2e88b8d 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 faa3c2bafc01..0f2717eb3d57 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 fa5f5188693e..978543cea99e 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 ea1cf64e8768..1523c44b7ff6 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 33bbd26ebdcb..3ac2c7f5a4ed 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 ff44370053f9..a4d8da0870ae 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 40d47586173d..4900d9f766af 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 346d3465d993..eef96e4a182c 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 bb2ecbc2229d..69a70f5c39ad 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 7eaae5823b63..e0132dfa755b 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 3b9e8f64f6e7..a8938799b777 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 6710f7b45fea..77a06bb24918 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 ba1cad3678e3..8581c6de7cfd 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 362c47375338..962db5395c19 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 2b91dc8d9961..576681a860fe 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 584ca9f5f61e..e0e59729184e 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 a0a248274693..50b47ac28824 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 00e3cea067af..f78f1b49ed9b 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 156555223ed9..f45d7e0aeaa0 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 921ab35b21a7..47790e37a183 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 5cf555df8c8a..9b3bf582a202 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 e9d3b21563f2..0f9d9178baf6 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 02d16795de07..861cf86d19ff 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 73173f87d463..3c4fce3f4c12 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 f0fcb2dd00ed..bb11548a824b 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 027c962efca2..e686828de328 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 bee597e7cf63..f595057300af 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 d2e5241e612f..ffdbd508d160 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 4d3a1fe3ff0c..d4893a17436f 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 49f7e25aa984..028db0412c22 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 f90f0e3e61e7..4a744408778f 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 c80074121618..8115a6fc4505 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 539e5162e528..9bf24aa34c52 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 c99b440906fe..cec9bf766286 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 91198f83b46e..0f0590302e33 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 5aba3d9f658d..5aa8be8f9808 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 ea21b6b73501..dc6453641018 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 bc0b809ab567..d02483308414 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 66e7d9abbc2f..93180235546b 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 282d90ed6598..37b77c9b82f5 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 609cf651826e..7f0dc3d8c3b3 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 66805499c7f0..5f309261c3d2 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 3f879f943681..59d9cddc675f 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 78f1fcef779a..542d1f02f165 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 293e0832d7a7..5cd89a741716 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 81cb98238411..ca189162df9d 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 d6d616916095..b21a428f0bba 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 b0dfcdcc2c3e..995fb3d3c402 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 659224433927..8f4adc5cad0f 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 9c3037338fed..0702090cdf21 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 641d60498c83..b41945d5c497 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 cd4bc518cc8c..7eafcc41d6a6 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 9f75a6cfa547..a33712ba3ac7 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 e9fdeee5528e..b84c74746996 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 2cd1ea649df1..e9f4e294ed3f 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 7975ce279d7c..ba215f535195 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 dafeb572281f..bde7178b5d7a 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 f22b3cb740ba..3699aaf038a4 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 1c007fad7e6b..df42e1ae1fb2 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 6f29d3460cdc..4d55e84ef21c 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 8c3f0e8eb756..4cadf6f44a98 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 fd628c48f4f7..f05e62e620c6 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 e2b9b7b262dd..7a152be397be 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 824c71f50c49..4de8395e098d 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 72e22a302c6a..a46e947bfed2 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 f686a2e88ed9..217cd5308dd6 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 4412b7a5c293..59c900c5d16d 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 e37627ae8747..cbf1f0164bb3 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 ceee9a003c2f..33a2704af354 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 a5173b9746b3..6ba8b3d0d14d 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 927a2777b339..166456ccd663 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 8a49abf75f39..6c3427c8b867 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 ccdd3387116a..b71ab19fe02e 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 0e15aba094b2..efaad7d49530 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 3d02f95f6811..6ecd2559e27c 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 0f2f4d075217..d525613d4c9a 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 f7e7287b836c..d23033eb0bd9 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 48be135f0310..75a6df64e23d 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 58100ff493cd..49fce71f9061 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 1b09b9045c85..cee5bacd4520 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 a889f346ccfd..de45b185d66e 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 8970858d4028..330063a04efd 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 a1d725431c28..fe823930c969 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 80f9cca1a1e1..be131c1f4702 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 5a281feee6b5..e71a3ce7dca1 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 ed1a281318be..a9cb0bbfd23f 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 dcf52ff784c8..54d7a2a71b16 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 d9f5ab9fa730..0cf0b7694a03 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 daa21d160612..4b4e2e1b96ab 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 39099f8e02fc..7f6a83683807 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 aba7d39e4f09..668a6657c18f 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 1db0a129365a..98bcd627d895 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 597d176074a5..8761fa0aad75 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 2213e967239d..3e4f6b296029 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 362c4930f241..f6cad7902d9b 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 8279da9a72f8..fa16264f1172 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 8d0748b5fb84..bfaa634e744b 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 d64f7df37f2b..32f3f95e1233 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 fe3409696a07..ab01bd3effff 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 682b47d0894d..4a78b5e4e5cf 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 1704e1f3ac4b..57771a4ac1e8 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 4fa29988c5c6..7845b189d2d8 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 097df393379b..85c58f8f01ee 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 bcaa636a2c52..b7a585c9351e 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 8632516e4f71..0c5a610dc34f 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 1215baa07f88..34631e0c2d26 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 54b7e27a56b7..cada1b02d326 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 9363e33de2fc..367b67673b0a 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 dab43896224c..a30a259d59b3 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 9d67e7bb4e75..285058579c79 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 a5d7c46b6abe..0db9dceccd26 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 b4b35adcf870..cbccfdfe8a67 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 92bf0dae9b50..14116418c069 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 a0850682c58f..3d0d0b866e27 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 9579ad621b64..d14d42c662fb 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 1ee3714bfa80..8bf44d59e618 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 8b4cc5d39e19..314863e32738 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 a2fc708e90c3..a4a075d8a2f2 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 75ca7b5f567c..d39cf103ee3a 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 c87bdb09a29b..3b959c665e77 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 665ab67f818c..9d6f2e96eef7 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 7be0cce3bdf2..6374bdbe9361 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 d0b74d39027c..5540fb337370 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 c9fd416fd200..c7245c53ae39 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 c596287dce05..d8695c183bae 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 ea52512aa264..e8baf7dd0494 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 ba6a3161645a..8e8bd308e761 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 3e2ed6cd52f1..017c586e9e5a 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 6ddb3b855e9b..316a874d9667 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 28cd5d31b2fb..6f98a042bc07 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 d645cdddf182..fd0513bce012 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 a1f7729634ac..68ba483a7b35 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 61c1a848fe9d..5da6195ca519 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 d479c9c2aa59..39ef272ad7c9 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 b00503c1540d..322ae3ccf501 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 f9ed37cf5735..2c84a0090391 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 3f86f3f98702..0f8ce1d8329f 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 811ca31f53c3..6d38b62d8c3e 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 ba5a86068445..da51df62f80a 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 1f6880c631ae..90f08e4e9e6a 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 43f07eebba23..082a8bc3293c 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 fcfd2b3970b0..77cea0377968 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 d87c3a9ed4a4..49627559518b 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 f03cc1a8eea8..c495e494cc05 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 76f9822caadc..d7b3efb89f03 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 01f090ad4963..e01f0f56d02b 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 c120643b5aaa..feb1435ce075 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 d88ab29b2f98..f1df837a85ee 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 acefc422c594..d855227b64f5 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 13523ee383a5..a3a6a5baa09e 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 da3875595a01..c91a2bedeaf8 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 55879105622f..0b2bcd4e712b 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 2dd004e77b6c..f3ac45dbbb79 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 1896a9d55305..f92beeafcf9c 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 29fabe0c0078..46ff5a0ec424 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 90042008f1ab..f428250649f1 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 a36c4bacbc97..76ff7c6a8332 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 497cbcd70404..f76d72d923d5 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 2e5fda5f8ffb..ce985b73f975 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 99b5eb80a15e..4b130456a800 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 0b5f35a6c0ac..bc38ddffa021 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 deb7390e6d47..3bcc261d3fef 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 238dcf1f9032..b9a5a68a8b33 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 bddff745cd56..f2ae1fada66d 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 c47669522d5d..ba6874e522c9 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 30ab005bd41b..2bb33228f5d0 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 80a793d57400..5878760a844c 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 0214493501f3..bfc17be97a54 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 2c08c6cf7626..12fe8733d08d 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 f5d3ec21b055..ccfe6ad4856f 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 13097ce25da9..7678114a49d1 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 b638ec72fd06..21f3efa949e7 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 df7853511dfc..6bd20550f41d 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 e1a0a4905a6c..5d464bac7280 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 d6c9227e7cdd..4ffdb68cc94c 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 7c2ee449f2f2..9ab36f6a2bd1 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 bf5c5335babf..6f79147efcd4 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 2c37f0dd9600..66ac52474133 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 11d48684f6f4..55875154aec3 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 7dc254acc862..f649f3e2b33f 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 b6fd509fb7e1..eb019bf03de2 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 39313435cef5..8432f0a084ae 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 185263e90246..d987d45dd1ed 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 e19a4a198f18..922a79143f13 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 834ad4a9bb87..a24cc768e8ad 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 41450de5778c..5b03d347d033 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 afb7d5d0ede2..9ee3e0317cc4 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 e13d524dd2ec..819e5e2ff37a 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 3ad5219acda3..dc8638701714 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 ff44a5c50f9a..a3822f2f145e 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 1fe9e549ac7c..42894b1aebcb 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 d3cf9cd1fe34..82e9d6bb3955 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 4d896ca2e1da..4de36b2396df 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 e98425694cf9..2207bc187975 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 4c40e71a6e6e..da33730235ac 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 79dfd62afd5d..35260e247031 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 07fe038b87aa..8bc58e34d136 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 e742d77528fa..7f14b317ddc7 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 27a00324d4a9..072697520d21 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 50cd9a31025a..2139858f106a 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 39537cc5cdfd..14e83fffb674 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 f573fcb40667..dc95f7840487 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 f7f1a7c40b34..5836f6676ca0 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 ffef8bd5775e..0efc3a0624b3 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 7fdec7c7f2aa..cc734183b812 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 6d6adadfb498..e7afda20c5c2 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 8adbda6eb776..a1b94fc1127b 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 67d8b17ee813..d55fb7a7143f 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 8bc388d4224f..0468f0a07f0d 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 94c130d0b226..3f9d518968a7 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 b79a8a412dc3..2d5f7540ff65 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 d10bfba8ee89..46bdf8e191a9 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 dedf9ed55d3d..b9931757f6e7 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 780815a7c3f1..ca0a42535a10 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 b575118411ee..205750c61ce5 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 044d0ba6ea39..7ee7a5172b23 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 180ae72abaca..8286dd69a272 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 6dec142ef4dc..dc10737e7feb 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 42c0d0cfecd8..e2bf72584b10 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 ecfd3feb6699..e03b2772c7aa 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 1dd8f1c1fa7a..052a294c85b6 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 7ee0ebb9438e..74c9bfc555bc 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 c7a44140dadd..8249f76f2c8d 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 24de67f46714..f892e356973f 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 833334786b50..28b3537de0e4 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 728a56da79b7..de93bf60cfcc 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 32235a8ad51b..3e3d3dc4163b 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 cd3cfaed292c..54e8f67fc87c 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 dd967eedcfa4..bfee12296896 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 2db2d9baa4e4..d2ad1562896f 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 75bd830be01e..bb15c02a48b7 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 08fab49e38ad..9b5ed30b9a3a 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 062698539dbd..e48c4a6d948c 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 6dffb76e8810..d3bc92280905 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 e4114ffa7db9..b651990c71ea 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 819ff53fc021..3d18305164fb 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 c62142897033..a39280e8df1d 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 f57a6b5d3687..47b0aa11a8ec 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 45bb28a19247..c429110ddc05 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 1503eea243e9..8884c92f1240 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 d102120036fb..14ec5579545e 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 47f382297630..c97b13ede587 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 9b5edf66501e..5547e0047e88 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 e95b0718d43a..bb2c4b4c4ac6 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 05b845d22756..0f5e9f1b16c9 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 d54516e48d6f..8efd1aac54fb 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 789b08de606c..5f90cc4cfd6d 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 75348edc899b..15002f24730b 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 035f6cbd051a..9399b291cca3 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 5d2cef91f457..aa71c44f41b6 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 8ca85e9c4cc0..1080888f6f1b 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 8308dd6f1222..afff04680f22 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 568975a79da0..3c3d28997fc8 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 ff86e4d1eec0..ccf7728a5d94 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 56b051b51b1f..d736fed899b5 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 2f5db959550c..2dabda909d6e 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 75ef1e913194..0423da8f0dca 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 7eaac4f23386..8a7fb774861a 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 ab71db8d2d03..74facceca247 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 e27c110650d2..2e394359b186 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 71bcfc630d3a..e942898fdf22 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 d5ec17e7c4c8..5326bdf60126 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 97f9c35c7892..722b3484fa29 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 7eacd0e65c98..b95240b64a41 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 4280ef2f788f..e17d70c03376 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 b70778c70430..b507707f595f 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 6d891ba95b94..0df1bb5e1aee 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 079fb0b2170e..59f097501141 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 e74e30a457b3..65dd657e65b2 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 9c90f8f2db62..b76a427799f6 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 262b31d904a8..2005f5445f1d 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 68a3ade7ccc3..8661031d7454 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 da0f225f1218..eb544f62bc91 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 83306179c0e6..249f2f28798b 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 d0404284ba73..9f34c037a70b 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 6854ca2796fc..6624dbd6f461 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 6d7bdec67b7f..6e6a0239a5ba 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 982f20c42b1a..b41ad24c3fe2 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 8ca1d1fa46a4..35aeb5e87045 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 8efb20dd0e4e..96c1f87cf3a2 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 88592652f34e..cdeeb83ed766 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 3c94bbb52627..6c891dd4069f 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 464b34c06c5b..60df96997ad9 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 c152bf281c8c..e35473300c42 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 dbbc4fa38816..60ac55dc5980 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 d35e3867d89b..da9cccb405ed 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 9874c7abc981..61cee5c405d0 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 0c98d2ddf758..8f6a893230f4 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 62a639797ef8..3fb41304036a 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 fd4bfc86d0d0..8fee79ab9b36 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 7ac71e9b3724..3bfa90e170fc 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 47706ffaa166..76116cc5fc86 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 f08b5a7185bd..e42be80f1602 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 284f6ffd87e6..e98b5a407376 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 62f07e6e7c05..90434fcf0fc6 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 3f015268f555..0d690ad7acfb 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 08acfb465ab8..e4d48a49748f 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 0a5658c98208..82eaf8a6466f 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 cf583c5c348a..32c7c5858dc8 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 19a86211ecb7..ec0b37cf515e 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 d59a174effc7..a7c73e5fa271 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 0e68f2242004..60574d73b512 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 861be1db034e..c6ccfe44f2a4 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 045ecdfcb0ee..c17023a0f7e9 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 82a8e735cbe0..c9529ab5cbc0 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 9eeac6e6c717..e1dea18d467e 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 afabd7efd582..85d0d5904fe0 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 72f603e8c9f9..0b3da1eedc22 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 b29d1b940e1e..f02b7b051c02 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 84dc9eac0a9f..e74c82953527 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 153467b6af86..de8b898887a5 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 ec190dcee3fa..5da3cef5648c 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 3e5a1b0b81d4..72fe820d8050 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 13051efc5ca9..e11a55a48e52 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 84ac2fb9ff5a..9c122b8d1d04 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 27e1e053a5f9..652a37671a5a 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 aaa6c8ef9ede..a265dffde59d 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 fba3a2c094a6..cc2ffd4ff21d 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 c3e0d2d7cad8..b3838a4a3866 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 63c84e1a4d6d..dc3ea690a9ae 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 292f99a47094..1222b53e6993 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 32fdac6e4433..30edc22706ba 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 6324d689732a..05ea10e5f079 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 c8755d0cc836..78c1948d97fe 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 6acc76806c38..05f26c68a78b 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 974109692d09..97d9a1c79d51 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 4da5e6e10b18..f3e387f059ef 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 069b79f332f0..dfb737bc61de 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 83721491bbe7..d959debdaecf 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 db5e5199bc7c..08b6f2bfda46 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 42cdcba9f960..8dfa5aa1a0a5 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 8b3e1fefc7ba..7de72ce706ca 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 11849e8ca4b2..56409c28e464 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 672f1470d274..88c64a318fa7 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 22e3da495b31..c2546e9dfb3c 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 0f60b32a761a..bc382a092943 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 3746b65d308c..7ff279c8ebbd 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 d57a247d368d..a1ec1e92042b 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 617dd19cd8e4..0d6f64b27b79 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 2062dcfd3556..844eaa14fdd8 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 e441425b6add..9589b7b18c4c 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 7f2aacca3174..7f50f1c44e43 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 538a3d4c45cf..836ee0be36e2 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 5fd2f0742c3c..1997b5625468 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 6be0299e7694..546f93ce8f4b 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 d6a262bb638a..e7ad69700dd5 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 993c2236930a..1e30156e22f7 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 f6f8a6a4ba2d..67c89de316da 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 9b7daa68f418..6343751f49cb 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 acf518c6893e..946731210756 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 641911376474..c33c11b59606 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 4bd0c4dc29ef..f073ea12ee49 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 f56db2b40dd6..300f44b9f943 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 026b991a17d1..2720093c0457 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 43c576dd63f5..11417265154c 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 75483ebf568e..be453c223352 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 50a963aa26f7..4eea792b9eee 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 d7caa56e29ce..68fa991421f5 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 7de4000dc192..fb26eebeed38 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 3efd015485ad..290b13beb4bc 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 d01fb8f205c5..eb8822c2cd34 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 13a66d5794b4..cbaff82f64a9 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 8ece797cdb9e..9e2b09ffaf7b 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 a0fe930eaea0..991477b7613a 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 fef2e4ac5292..d97a803c71e1 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 5c6b2a0042dc..a16faacdddce 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 e25d097f6144..846b411dec3b 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 5837b8e2ef2d..d8f85fc5f550 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 7b385b134fb7..246086348d35 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 ac147afaf91e..3f6318295a4d 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 cf2d408b8bd2..10b023bbe279 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 e2742d2ba81a..58c12608cf1f 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 cdf9f6b4b05c..aeee6472dc55 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 6913c5fa9d12..2b7734664738 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 f5254e9900b1..03049f6bf5e8 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 f6bb5f50b91c..c0902bb0e3d1 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 0c2e4595ee5a..19c0e07bace5 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 b533db7e93f8..50a152a8b084 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 747c7bfe1fbe..4bb9e7e3df10 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 8de189abca8d..53dc89e923dc 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 b3ca709371ff..108d2af30821 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 48972a8198db..a9711e780178 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 a1db0f3bb9f6..f9b921b2211e 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 2e8ce97bd20b..480233c18dd9 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 be3d0893dfb5..d38510f2ca9f 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 be71e0ec8415..80f88b5f7b7c 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 ca042bff0939..3b62626cf79a 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 8d3280ac3b18..a2c18fbc1cb7 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 88b5f412186b..694f66348177 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 02b0323b1bd7..2659f4d3967b 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 c31b63bc026f..514daf6519bc 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 012165f4d228..ff053e847b9f 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 a166c3c07094..bca57da1a281 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 cceb7ec24d7d..44e5711bf882 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 0301a0ef05be..cca1466b48d1 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 f051bec99557..9ced7f2a22a1 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 13f7133e6f2a..8da5fad01701 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 c74ac594a585..40e8544ee97f 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 feb19a65fa9c..5e9b6d35cc49 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 122cea169cdf..ecd99f898d9c 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 49158053cb3e..9712cbcbe968 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 692c00f7507f..abc962fb98e4 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 e9c1eb6c522e..285d23372109 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 bb15fcddff9a..95a29e5a5cae 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 4d8d713ff363..99bd610f326d 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 75a44c3c356e..4a6954ff2a1f 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 74fb593c8835..91499adc6d9c 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 00bcad4f6d67..4d0a3107b8dc 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 0329e45994ae..640df146521d 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 7ad936fbb4d7..6d1caa92ffd7 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 ef425affebfc..c62fe2f1fcb9 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 3a12528ae372..dd72ff98c9a7 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 f86d139a3563..4d385f6b6b4f 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 15d8a12e8983..8a957b84778c 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 c83491a80a14..8cfdecde6e56 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 07222e4f4c26..75aeab15c152 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 e1ad4f812756..9e7b6835bcb0 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 cb143372f21e..14ac42ce516a 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 e0fc7c95dd24..fe6e570d107d 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 a56ce25b6f4e..51fa00e8dc2d 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 c3678c16a18d..54a62e66e8fe 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 a3ce10e5ae26..9a766e98f477 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 d0895d8ebd0f..1db00972148f 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 b1f9be4a90ce..42ba75334c74 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 ea20b7b602cd..7d3722f493fd 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 1802fac577db..0aa2e1ca1501 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 7ac19508efb7..18616521da32 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 71018b583dd9..6b86f07421ef 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 85c60b4c79b7..451f554bc952 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 eec6ff3221f6..92b246490425 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 ebfe1b983757..5c6a09d4cfce 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 5daa46924bb8..1b136729ee13 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 0136834397e0..50cf5d3a0780 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 1b82130b9f69..d292f430f517 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 56e1759bf8ec..f35f46e27f6b 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 2d7f6152c27d..673735b78538 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 e0911c815fc0..91fc0eda1628 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 86dacac5cb98..c1760ab74db0 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 24ab330d4cf7..34b05b36c1b2 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 de2d05173617..2d4fb117a28d 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 a3d3d5eec759..2cdb4870a382 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 46c8b1e46779..47248ca20456 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 58cfd97c6a92..e3f903543115 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 3b419396e44a..abbb880bbed4 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 0d3225a11428..89a3dc15f4ec 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 6cbe6eaf7a68..78e89abf0217 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 ecc78c4a4ade..597413dc733a 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 e83bde3e1fa5..b4e8ef1ff176 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 efe69334d6ca..d1ab873ea93b 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 6e1ccb5a9e0e..4ee4531266aa 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 9a30fe921f61..18e415225367 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 bee7ef979233..a315a6e9c3c2 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 8df1b803a274..8dbe3cb4728a 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 b1cfc80680fe..34b568b56ba7 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 3546b9368f04..25c97b6575fb 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 fe9b4a15518b..fc039be86b20 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 536bb97eccdf..6b4ef29ab53f 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 8516ca736ecb..57a04a979a96 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 bf64d6c4b95a..32b3765720b9 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 ea69d28e0122..2a6748a44d79 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 a9bf5f8c8ba7..48a801238cb8 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 bfb217d96672..f88d6223f41f 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 b49a5095b54f..773289bd035c 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 aae09fc253e6..664d619eb63a 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 f5329fb683b3..605564825f2f 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 1d2f0e666b08..dae6206544a1 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 c28d6bf3bf8b..a36ec903b4da 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 0e4e5a864199..6993456da59f 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 80a503c8a009..f2bf61de2a59 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 4fd49af62384..b30a0e3caa18 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 0b630ef5b913..554bd2d018f7 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 351fd6ebf191..c6952f19ad61 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 6fbde774b90c..7ca4f5586559 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 c244beb671d0..e92092de4275 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 ea1c0bef7d3c..878a34748bd9 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 831e0667d2a7..55b4e80952d1 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 c55cf31c1c03..4c457c53cda4 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 9623c3b53f9a..74e63793ce25 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 bf8ec581106b..ae2f316f0696 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 af6ba5134bc8..ba6e27f034e6 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 fe340087d147..20f7d4d62551 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 85cb41915c80..48511bd9c9b5 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 aa35220076d8..951f41715cde 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 1789b6229083..07eb5b6725e7 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 333289d19a07..7fadc6cd5687 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 4f22fc70fd4a..2bde7772f94f 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 76d94b59f285..b0b1279ee844 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 7128908368d5..a11515dfc188 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 3360bde99b63..8e7cb48bab8e 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 86fd2b9224b2..5e271c29b724 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 3daa1a1eee06..03270443844e 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 38bf5348fe21..418ac3211e4b 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 cef343bbfc1d..a69c06989615 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 a146779e0169..e1b4652256a1 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 2e437f4cd0af..03487920020c 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 156bb1241edd..8b0968120e7d 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 705e8a6778e1..9635c6e33bcc 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 bcef585b8676..ff28ea5ed715 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 001ea2516862..c24e1da00cfe 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 2eb29b5a8515..bffa07463249 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 6b6fdddd29cb..0e56ea2fd6f4 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 770a1e559892..0b835f5e4d16 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 781e16bf93f6..7ff4b53e0a06 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 2d610596d360..f005da0cd6c6 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 4a018fcba890..f475b3cfe653 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 4ee17c7abc4c..8d68390c6759 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 9c3077855bbe..245ed23e6e7f 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 77d455598d6f..7e601b2d8d9e 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 d31e31e18ad0..2dd08f413392 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 ef10ad4ee4fe..f88da64af6dd 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 e7f8821c6e26..e300c3741c7a 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 7555edac0ad9..0ef64ca050a1 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 5d9c83226605..ea9c09ed4638 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 f120ec551bef..2a46dff93235 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 428f57258b71..4c39712dd298 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 6021a35a70e3..61a525191fc3 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 32c599b94783..1e5da4be88f2 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 62c70618a911..8622c6d03296 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 9be8f5edbd9f..f6cd1bbcca7a 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 1a2852144a60..32cd69763e8a 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 a2c22183c1bd..7739f1cf95c2 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 4414aae1973f..41de49327297 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 4d6f82862051..0e515edf8fda 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 d627584896f1..7c80e3cd64e3 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 a5e0997c8bd2..913f172813f4 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 49b9e4870199..278332240789 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 33e3ab9db551..5205e637749c 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 321af7d1610f..6c87d1bbf0dc 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 eabd8358508e..477f94568478 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 d4ab194b276a..6825c605014a 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 602fc2561d94..6abbcd252ffb 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 9ec9e731353d..6553d703d97d 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 91f2fdbdc8dc..b4e9e4c7aa9a 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 e40ba479bb08..fac8d5612074 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 7d9e9d9e063e..e2e2bda07954 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 e49e04f34166..33b177adf9ab 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 a2efc72a5d61..b03e14111693 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 a0719a52597a..bf772f31165d 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 04e08db235f6..8631829cb9eb 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 fde9026456b9..c4651e926e42 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 fd8475265291..13cf174cb566 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 8810871e8254..86bbea5c826a 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 88b52bd9e040..1151ee24a8ae 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 6015ecc260cd..43ad405ca3dd 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 0b8be7c5e6dd..0bd4c5c99f21 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 137e87f947e4..a9d297a8ff69 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 04e2eac267ef..d91cf513b561 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 390e44177928..0cd423548662 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 3ee993d36b74..06676e6d0230 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 1ccc0c26c3b7..8a896a61a06f 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 1bb8391afd29..7f57ecb7b908 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 4bacace2c190..206e95a1fb86 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 dc1a91a057a1..90ddb9045398 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 1350b9da9ec0..033a8e62ace4 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 e92b4dec8efa..43087fb731ef 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 1dd10e0b8bbe..f2a205bca379 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 56651f22ef8e..98d17f2c5aba 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 78699ab0bf14..e664dc7cb1e3 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 eec98c4c1e71..57b613f450d8 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 983b1a935304..1a6309b9f162 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 0a4e872cfe26..4b78459bea37 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 dd4cc43a6205..df6a88c287d4 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 3bc88d1e11ad..a941b8991c1d 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 cece9a930c62..e614025320e3 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 2450873725bb..6a08546774ad 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 23886c8bca7d..d8d934fb7b22 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 f62e6f70a0e3..6b5b3fcee441 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 2f19a5888468..23761c71cf44 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 7e49b60edc4e..9db940b15d1a 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 2b0deaa8109e..f445a825013e 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 122c14e3fd90..1c01b8ff1884 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 570625eedc6c..443688a0dd04 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 eefa02b411df..98a9f7a88032 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 c2c8370523e9..2004f16894c0 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 302340023ce3..b9cdd6596618 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 8f79ce52a70e..91e01cbcf60f 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 2d303849fad9..66e090cb9c75 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 5613bc786b69..2f92a4a2ac5b 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 5bf33f8f0ed6..5c6a9360708c 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 26f948cbf6e6..dcd4396c336d 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 657bca5fa609..3dbeed33c651 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 f3a5ca8abaf0..67fd74eab867 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 04202a798915..3e649159e09f 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 5a1b4a519bb1..7a236121da5e 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 41bed008ea4e..7d423a17ce54 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 93f3facaca22..2905f20d2c6c 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 c1d530dc635d..167e8986ce9b 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 6d1cdfb6ca53..11300845754c 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 a7825a3695c8..bfee2c412004 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 a79ddc0bb348..9e829a82c7e1 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 ccc4d3ae813a..3d6ed8c741ea 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 e13074fd78d0..cbd5847f5f75 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 49a3ced229dc..f271286241f3 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 39724259dfb3..94c068fc4133 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 f68e7dd8d995..9d6fe2bba2eb 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 766cfdf6de0e..5d0e659b80b3 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 4ff74ea89d9c..e6d38bcf97ca 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 030c7a4195fe..9e66a2847e0c 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 51e48bcccf65..345054debc2b 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 82ea0565c401..01c2403b7bdb 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 304b6f36687c..158d79227741 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 ac6ad597a251..ea4bb89a621b 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 6e5a5f5ca54d..3d0aede99dd9 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 1321ab69cba6..3fefa07be2e6 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 c36652dc8d35..b472a02ac698 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 8f24ff2f55dc..bc9d9ab87daa 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 c42ce2c2bf40..efa38272ac3f 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 6ec134ff5bf4..6e88a6954dfa 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 1d547190b3a8..7a281400fa83 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 4f18e58a8769..b5dfc5fbb2a8 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 3a8a94b8bdbe..f23bf7e96f1e 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 d42549aa52d6..7116d56e73d4 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 761535f813ff..55c8cc16c194 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 09ecf9abc936..9315124ff21d 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 a710fbfced64..b187fb18479e 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 4607164c0f5e..d13c872d253c 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 a8fbec240978..da43257deb98 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 59ec7592d5de..7217c7ccb240 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 4df2c3434d47..bc210f9fd6ac 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 662304fb3348..adb6ed50fb9b 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 4577e2669e7d..c76e7eec2ff9 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 07df0cb3d239..c79fc6fd894d 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 464ee3726143..d55488837486 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 d08e2fcee375..3a14a722ca63 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 0ea1760a640f..64a257fe6f7e 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 51c3ac17552e..bec0b5b33fdc 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 bd5e5d00f4a1..48ade75145ff 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 fe3e6368ea25..88134ace3f36 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 0bccc06ce461..1f31704049e7 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 a8834d518c4f..35cbbdcd03cb 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 672617a76a94..08f0f59d2864 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 e700bcb6d864..34db355b0d1d 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 20e9f615309a..65c91b617578 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 f2d0893232d0..525d0907c5af 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 b1c497a034b3..9bc67f1ef9d7 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 027a813e967a..c93cdafd16e6 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 ebe6c3aa6411..29a6377df476 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 b0d86036f4ff..943ed17bebe1 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 4d613a8e87b9..f37aa681008b 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 6a3a2df75272..491f3e2539d9 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 b7d85b28a47b..ec2e80b29d04 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 506fb87f61a5..bbcaf4b20b9a 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 15f55f86c690..68ca79f0c8ea 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 c5cb29e61b79..19e82dbead00 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 9edca9eb77a8..992caf153524 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 9501f0c3429a..690399478743 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 b8b429be198d..60b9dc9c8c40 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 e43d722c5d81..c1e15c571526 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 61c48775bf14..9d6739088879 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 914e5312d9db..058283bbe6c3 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 17e56b3ca762..a811e19a294a 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 057d90657250..f9de7ed59bef 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 2114a0b7ef29..a0942743534c 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 9b943d57704b..6e91f8ec9951 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 fbb812bff70d..13d7f14d7983 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 a9d0766eb717..cb5fa44b377d 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 dbf2444b2e15..e33d83acba27 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 40ede8acd3c6..7471cb35132a 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 9a6cc100093d..8c48df22f7de 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 52e8b1731e62..4279c61d6793 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 7a54dd9fc74b..2a2b172856ff 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 6efccaeb7967..b14ce9f42866 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 666995767a11..4e9995505cfa 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 0c2b226a430f..9b5889481556 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 ee63437c3701..bb2748cff16a 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 3c8b5cad00f6..6be5d2c50962 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 84ef51feb9d6..9dc3f3f67721 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 1a7816e99106..9e8042e819b9 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 c4d29c3f9f0f..1f1bb01c762a 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 d9dfd5ae542b..98fdbcc96bd3 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 25e5cfcd404e..c14c6726f939 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 62e970652b49..44bb2412cce5 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 547e89875547..961f414bece1 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 1f344e17fe74..d1d9263dc980 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 a20995e48377..cd0a1b403ccf 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 fc3afe80dbb6..5ba1711802c7 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 4021fb058733..c92896ad7311 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 c6a2914a64a4..569c5f0a25de 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 e6aafdd585fb..920d2b2ea782 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 260a17630152..d7d20a9f6c88 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 5d8a89e155c6..10ddebd323d2 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 eeeb005234d1..29940be90d6e 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 6bc4ef3c797b..7d689c7aaae4 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 978610b08f26..b99068f596f2 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 de224dc6104c..0ea841a2b04e 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 a17ba8065f62..684566b903bb 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 0d9f4149b8ec..7daffd3bfab0 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 b9617069a58d..994b3dda9702 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 031cf310e652..ea58b350e641 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 6d13a09945b6..2696fd845b33 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 a3feeffb549e..6a302813f4d9 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 da54c1e3a5f1..3963af8070db 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 edfac5176dd0..6b5c7ab338e7 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 0890d6e82fa5..8137b1ca3548 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 2ac1b951d8b2..3cd365c0ace4 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 8f4f06af57e7..6f2335e42afd 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 6f42ad3fa0d6..66d2038d63a9 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 0acabbc456ab..b29767af8ca8 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 6a85c9f74014..cb1cc6a16ea0 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 26b879a92527..2bc645197849 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 58d0e7d57213..516aaf8529f8 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 705db42da068..9201ba4bc1f1 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 677d5f1fed0c..37eae1e29764 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 88fd7cba34dc..565c9132bbda 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 38f56024ff0b..4ceb227e8cc3 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 14abd8d7f4c0..4a37524ef9c3 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 6d71ad64132a..d17c3d7cd49b 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 38b59fce1f96..8f1c9f2ba215 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 b401b94ab3a4..7ff2d80e7095 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 9e05e406b7d8..adc4642782e9 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 652e125d2e1f..cc60d0ca84c1 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 03841342e4c5..e51bb21a4af7 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 551dc0649405..7b840dd8ba96 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 76d9017950a7..e4580f25bd70 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 803951b89a96..59cdc0be6270 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 3eab93a38833..9488d2a42cb6 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 5bdfc4ef2ba7..67450d628122 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 0ffafd92c5a5..495a469c89fe 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 329ad38bf8c3..6b487cdd3bb8 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 665f6e83c520..dca4ade24774 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 15f3cd635d59..d82c4198d4af 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 4439b43c5d7c..c42f2db5b416 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 9981751a9b8f..909046297aa1 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 80a951b7d63d..e844b1b28b13 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 6fb2e2eae639..bde201ca05f1 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 935d0677cf52..3a3ce10a2f58 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 3ab7e0edb4f7..1bffefb68bb3 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 00d8a9bdb1e8..8ae9071294b7 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 3d40cbd9a146..a0778d53fcab 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 336685aed71c..f446430a409d 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 b7cc2adbee8e..27ef26b722d2 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 47f8a93ff662..68ccda979070 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 71f7d703f320..085b7bc161a9 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 50c49ff62a17..244fe49fdf74 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 c841fe0b9f1d..30b906b32c4d 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 5ff84bef021f..f0de05c17f28 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 a7c8ac3342b1..a8cf6ea19085 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 ec5ed24e57b2..c85de47a40a7 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 9c8e37704d74..7c3ea381c017 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 e31c174f785c..9453454b7031 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 27d856225b56..248b3c38e543 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 928bbf9f6c03..e4bd4e4de602 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 287df7af0335..e0142a0c9c49 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 c5b5a5a439e0..8e7471479415 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 c574b5db9148..5fa89d76ccec 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 ab04a9054cea..1944a7a11529 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 9518f7f920ed..68d5dcf1f9ff 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 808a4e0372ce..db84bbb8b0c0 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 921dcccf2d40..3b3ff19c131f 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 7bd1a171b19f..99cd4d5d5df1 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 7c9cef37c7b8..256730ef4451 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 6d6797f8f6c8..41ead172b6f9 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 be8b72690527..ea80d1600e5b 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 16fcbcdc57b2..8495f1268ca1 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 b168a2db4bd6..fc2f1a58bda8 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 2c0cc298de13..da90a7e11ca2 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 1cd489f611d5..aa0c618918ca 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 6f7b51337c77..3ddd436a7200 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 3d24674a0809..c53e7eed989c 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 e0ac30015be6..a5a78f0a71ae 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 f572fde3d14f..3acee3ac316c 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 78f94099b5e6..fc6cbf1542af 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 13ba0382e4cd..98cc5a1d85a5 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 cc4611b5013f..6aea22fcd9ff 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 1bbfec8dce51..e704cfbb14e5 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 c2d5071977b1..fc2a9ed70d46 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 1f21bb5ce53f..84fc62ce0f8f 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 b5161eeb23b9..f0f9b3120309 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 884dbae8c0a1..f1bcf4f578bc 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 0bd1da1988ff..c83bcef0b071 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 66b29186130b..3e9f7b843edd 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 56e4b71e6a48..340ed440c638 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 aa9d2e38473f..e7f8a591b4ae 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 b8e67adee235..693f32c2ab62 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 793309183b83..d709b98cf6ec 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 a590fd45f8aa..10c563164c7c 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 4865beb7c6db..ccc1ba6a699e 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 46edb61df46a..314ca55b4e41 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 469b4eb0b484..ce2544fc6e57 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 c3c71e8d370e..576e1063f5f7 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 4066caee151e..a8d39d357623 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 9ae52575d145..7d01a4c9ba7f 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 8652ed37d7dd..5176b24b0261 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 c99fc14e4a06..f653d05d8619 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 c450a68d4597..f7d9ce6254c6 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 1f11ee22a67d..73e781b4243f 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 a32aaf2f3d0d..04e40c67583b 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 b9d7e20dbd7f..46bd02588e3e 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 c5e87f78ac53..e5e39c5360ef 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 60b1e54786a7..4a15f54931a8 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 51770e54ba24..cbbf285c2672 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 d2f1e9ad0724..fde386e62e2b 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 61e95ff2a247..1d0a18bdd3a2 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 b27dccc078be..96c151c0d2ae 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 dcf577cc64de..76f890624b53 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 2698f8eb86bf..9b4a57b657c6 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 4e5c98e74bb2..591c8139e312 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 b1c5ab676413..93ee670945d0 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 a39df094e114..33faf2764606 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 f6dbfb872fe1..7cc0b68a3a20 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 cca9c38f3b68..f4a9319224b6 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 217d59a0d47f..5904496de4aa 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 e722e5eb0fce..293f30ed1bd5 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 5dc16c13bf86..6bfca039c4f8 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 c5512d184d3b..5f49c649c4af 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 27093a166482..9bb025c4a2bc 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 9497f1a57b69..dccdb909e566 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 9603faadf500..da365fb2b930 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 159dfff10e23..bea5e0a9c758 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 ea61821cbfeb..90a5bffb2d40 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 a5b3ce9f7de9..c7b655e849d9 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 212cfa216efc..ca449f601502 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 5258c0cbaa36..e7f04a85214c 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 b8a39c1cb503..1fc39a677589 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 73e4bebb50a3..90442e78f1a4 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 c29a3605acf2..fd9ce8bf21b5 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 ba5e22fd1ba5..ed5969142071 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 384b6f83df06..f95edaf06312 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 172bbaf538a7..03566a8f7e10 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 02cff0b5c193..c8bb36c7fc1d 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 5a03fab12d24..e76252f6c4ac 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 b42f70ffe585..98a133afca5b 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 7907aa73fcfb..32a8c94967a9 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 87d497ff526d..ce5d487cc384 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 093a6f9881c3..927149ab7683 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 7cebde9158a2..090d3fb108c3 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 72b71c02a689..731d7754b012 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 d4e6a0a571dc..5be4e34cc7ef 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 567861ae8d9b..f2e3c7e5f20b 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 1705f29ee14c..ad37cc788176 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 73e32690c458..68a5916cf600 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 ee7f8db14502..cfcd9bffb15d 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 bbd48db03e10..6994d578dada 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 b9ac2f5978ff..0a4a072b1869 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 e74baed381fa..bebe7f007f22 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 cb8bd602fa1b..48b6fd53bcba 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 be689a73b1ec..3cce08754082 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 5f54fa6d45ce..5727351371de 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 e6b5da74d77a..0dc612602e97 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 ea0b7177158e..a6ecb38ea44f 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 6d150dcd9b5f..83f6f0f87815 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 4eb76f462e21..d353d2d52322 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 3f7554c8299a..3c124962a927 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 4c604396d4da..66994fd7d2f5 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 79e507e7d12a..dc14d1be9d25 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 2ddc3075c61a..afe351f37843 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 0a20b11a42d2..0d088c099dbb 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 ee4c71e2ac19..d64900596d5b 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 2c8dee33ba26..80d4381d09f5 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 8a5f5e20ebd5..662d314a23b7 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 54f6e1a34b7b..26f225137dba 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 046a48f91d6e..71bd1556265c 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 b8baeca2f990..d06ebe7069f5 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 28bd8f4e169e..6f0a6c45ca06 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 d632666793f9..8f05cad1e1c4 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 a89ebe3d3213..0da6683f3d3f 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 0fabffb75c53..020857eb8917 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 f6f996563210..3c25a81ea4ab 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 65b0731d0f46..906b9b5336c7 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 9a2dc21d0ea7..f77077f92a0b 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 92c01444ee7e..9bd4ee259d9e 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 4ee37b4f0418..fdae724c0bcc 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 a4214e428416..b30886201b5b 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 2d474c8c1f4f..a79e1fb28174 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 6943ac944477..ae72248fd612 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 737f37b4e16f..aca74e1a21f6 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 7470406b6ac2..d12032882726 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 ceed34e9ddeb..0bd84922ac75 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 074d5d3a2605..42be5a4d49fa 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 1cab14f0725b..20fb63fbd594 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 3475d4f721f8..56c1bbaac40c 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 49555da85901..a40374111bed 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 224219260cf0..4a71ba78f348 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 49f08c67309d..1cdb3233ff53 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 d8c79e6e5913..e67302ec4219 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 0fce9bf4d4ca..4e1bc261c065 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 8719cb4a1011..19d1700a173b 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 c3a28915b057..52388543ef9e 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 0ca899c30658..c8aa10e61ecc 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 5af9419f4f6f..3c72c67e9498 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 2b3933df0676..b0d46dc18973 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 0b63935735e9..80f2b76682cd 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 fdbfef37e8f9..55a3297728f5 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 715f457f8920..61eb94700e7c 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 8819fee5dcff..a9fa15863bc2 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 57d7ffd7806d..7d773f892501 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 222b2b0aa662..176e7da2b4a7 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 5b2f02c781d7..75e5535045ba 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 0f56ae22feb6..2fa37f0d828c 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 31b092fc4849..b51ca6e63835 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 1ecba3ec4045..e93b7c598ef3 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 03964db93f0d..d3f2d2e1ff1f 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 46c664bf89fe..bfdfac619ed5 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 d783cfd20c1d..9c8d847886ce 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 0f7240133145..b3886f57ed70 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 e7f562139d81..47fb9f111c9a 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 7464a7a6adf7..89ff640099df 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 af0d2223bdaa..f25939c08803 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 63e32afb41bd..e9a2c9cb42b6 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 a23e0b2a6363..d59b89436f3a 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 cfb9120a1022..ae7bae790a04 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 2f8425603972..f7c7017f39e3 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 c6f7d570ceb7..e64c8a717756 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 de3219a981e3..74c70338334c 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 0e5cfdea4101..bdd9696299ac 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 1c4e4b2e3d52..b8d318773bc5 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 748f8783a2aa..25e05859b724 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 2c44dc41cb17..5f217fd77fc0 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 fc36386645ec..cec5d1bea2e8 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 9b2f970ebfb5..b0a1b26c6bc4 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 8b8865f27c2b..0b702b2a438b 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 7d60f55e67c1..6c3529120f80 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 65bd35f2cc83..00d99435cb29 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 d50b41075bea..a0930a319310 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 8b847b37b240..7bb6a5ac7994 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 54ce5b4240e2..98adf1f8bd04 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 2b6b01a4a445..e816e4d8ef71 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 64d83cec072b..ac5355f05e73 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 e9df7385efba..8b7fcd3108b4 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 3b38da11c9cf..8d4591ca8d4b 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 e09976a9251c..21ed905aea65 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 d2c2936d9415..c4bbc4a3e91f 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 c3db02e94137..864bf0cbca7a 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 102ff476681e..d6295b8998d8 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 834666a31c62..de30b40b2def 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 95e2e29a6d98..fcfaa0290684 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 c14be8c93547..78e93b6c1af8 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 3b5452b253fc..eb7333308c16 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 d0f7f0619d7c..abdea8d45015 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 2cb282b74fe4..9ec10960c0f5 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 b59eadd72d12..bd9ceff3e415 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 b6ee75250b38..37a6f47fe101 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 2d38876c74e8..36f58da7c627 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 672dbeddb847..2cdf04f8a75c 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 58c1f0033dc4..014c03bce89a 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 e273ed0abe73..096774ae15f6 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 86f7ea1cdf7e..6749c96448c1 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 1de6edd6181d..2b65951afcc1 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 fe61609013cb..025f0ee33d6f 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 92f2e6609b6c..036655e742ae 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 802a85e0cca3..d21df5830313 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 221639c868be..e39a8a7b4c44 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 ecd57109149f..fa09ee9b8923 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 1ebfceadbba2..067f128bd8a4 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 98ffd6cc404e..1d86109086a9 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 7926a5ffb16a..9da677eda305 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 da75fdf50937..8b32ec889bb6 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 d70b97150d99..f74fbde5ebfb 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 ea74da4e9fd3..85e1764f391d 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 8f3946cf2c8e..c02e285b8f3c 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 67f3804640b3..8cbeaee3558f 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 4b1bc886af13..e2d64d3a9479 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 01fd3592a3b8..daac2c665fa0 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 e9ab6a51fb0d..d4bedc5cee59 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 64d5bc5c6590..73f21a8751ba 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 5fef2e0ac98e..2a1dcc3ab380 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 f6c73a62b04d..0b3b7312b023 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 6bb655beb562..246dadc4ba0f 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 6fa562ce653c..2d02fdddc7f7 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 a9c612ee429b..da7c5c792e51 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 f75a77d6fa1e..c596f32cc622 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 7c7190506d7c..ee308bac10b2 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 30ab554816fc..879c0d0992e8 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 9e572c166adb..f95af8e14bde 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 15e811fa4dbd..1fe292817c47 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 c8620799e381..2774cafe1c3b 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 fa87ed2507e4..c54dd60f6f3c 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 8077e2fca369..9c79fdb73fdf 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 7e177b1a7d57..ab05c9fc10ac 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 6956e8f0e590..7a22736b624b 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 c842e9e2c6c7..b74e902b6d18 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 08c09b61fe60..ad289f7f06a2 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 b5560ffc47cd..722b797e4036 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 cddae270577f..a818db33e49d 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 d36e35460e3a..4ae70cde71cf 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 b558093d0b34..eea51fd11136 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 8f1e050d970a..761a838c0c0b 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 e6302dbd56c7..3927f8d7374f 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 d411fabd28a3..4afcb3a99ef0 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 a5776a139764..3a0a4599e3dd 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 00bed0e40562..6cc19e76ea16 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 ff2b476b0629..3ee8cda76561 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 c4585365691d..d44c68075ab3 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 927ca822e5a4..fd2f472c424e 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 2791471f98fc..f3ad36870f33 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 b64e6f519ff6..2a21d6808ae0 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 f908ea9b56d0..25482611a9fc 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 fd3943f9db27..f72f20d1f756 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 2dcfffafeba4..308facd7eb69 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 fdf5b1ab1521..fbe80aff000e 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 a813eaa79fa8..840565351c29 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 43a252f5c36d..b112f5955e4b 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 64913036133f..c2a06b980131 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 46832c65c3a2..a9bfd79d732b 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 8fa82ddb238d..9e1c30b32c88 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 108fe4e19dbc..467e420e9e2d 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 da762fa81013..24ab345da6f3 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 b26893731486..f1d7e5fdf559 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 4e8c51225edb..95ebaecf5272 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 80c66468e60e..cdb387581438 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 b734f83f8ba4..a404b4545fd6 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 f88dbb931898..f65765abbfc9 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 688785da5ff4..588cc54c8838 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 9b9a45141bbf..04524a15b301 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 a8f313ca1b5d..f4197c0a6a01 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 798b07f5d7c5..f9d4debd0ae6 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 fcae6f1b3029..4c4ef50e37f2 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 4740f9dacfd3..3f7d7cd4386f 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 b6d7591398f0..61c6cf7aaa66 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 28ed6d2107fd..6f8b971e92f4 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 244aca99e049..88379fd0c1fc 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 e4515ffb2832..ec728ad8da52 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 18e768a6e22d..579680c29054 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 9e78beb9df44..56f756f35ab4 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 3bec63c93c42..db55fb854933 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 4461bdbbe316..d148a9830fcd 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 7ebcad418d75..41b8d8950816 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 519e3f383f53..613c505de04e 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 a22a4f492501..cec6e264f741 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 387cdbf11614..56eb9de39f0b 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 c3a7302ed371..ed225bff2c41 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 6760845cd893..75b4c8244205 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 562d3359002e..6b85d81aab61 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 cdfe1f245ae2..d80a88ef3f8c 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 ddf0ff5769bd..b4faf5a9679f 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 1de7c4056ace..a3230183fbfa 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 9593ca343e57..a6344eb400b7 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 bc6fed57d0c3..df2fa4146efa 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 12d4d541ad81..3fa2f307e681 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 f0d882e0c877..e757a8c2c81f 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 65835e822d5f..111016581829 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 e2b869d90fd5..5ba4c71381ea 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 081d26180d6d..4d8375e06ba5 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 b0e74d86c224..7db16abfc77b 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 e777922ff2c3..e95453f102a6 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 bb5ebb37b625..a6aff465b6ad 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 3143da3976cc..ae4dbb425d8a 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 ef37dfe731ea..c12069850ed2 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 760f853f0e46..cc1e6416f15a 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 f83e566ea087..d2cc883b8507 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 6578d59eaae3..02eb66acaeed 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 b733f34b1056..bb1783beac95 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 6bb38f7cc91f..f98d942814d8 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 bc03fd8ad9b6..ffff216d1668 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 d3653cba8f13..59d26e526bd4 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 ab9c7a97e2bc..c7559b65572f 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 4b1ee2332a0c..097347b7ff36 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 b43e8a5ec833..62d1838eb1dc 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 f76972704018..f96ca0acf625 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 5209a21a4295..4e6683fc3407 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 4735bcbd066e..c958cbbbf259 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 778e204d5bf3..41785781f38a 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 a523936c4c78..1b2d7f9df185 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 ca546d0907f8..dbadfe6004c2 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 ca731913703b..ac30e41f6872 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 f4949b4b5fa7..156aae67ac27 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 650ca8f8a4a3..45cac52fff14 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 ac85869fbcd0..6d1dd33581e5 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 fbe1190d0223..155102c764e3 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 8da241758427..1e8bb4440635 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 d7c9cdc2ff30..ec27687fec63 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 d9602e39b0b7..c2114072601d 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 58fbf436b6e8..05fcde1b2da1 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 6a236934d518..3d9873a3a812 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 47f828eb5323..4f112cc840cb 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 d081e686bbce..86b0842a407d 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 ce4e82ab6f16..27a32ba1653e 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 2b47a7cabf02..ff45fc2fa729 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 a861a3e2e2a3..f8d05a816d13 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 ecfee921841a..d9e1f99236d2 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 6dfe29314db0..9139a59db961 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 32ef2013d573..8807324bb9c5 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 96cdfcd49652..234443258c33 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 0c62c24c8f9e..71bdc8453e47 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 222deb6b587b..b1b9ab43a66e 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 0e637fbdcdf6..a93050b70709 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 df09f343f33d..6dc3da9bfd30 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 e023ac44429d..2dae1c54e07f 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 acfa14c8b0f9..55e15d6f8581 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 a365e485734d..830ebab0b26a 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 942b82554c02..a68a09ee865c 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 4169fd87c792..65d7e755c855 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 456184bfa74f..011c8bcab858 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 b7d5a980fa1e..28100540cbe7 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 b5ace786d396..8b8bb2a329b7 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 2101546637bc..49a405ff3a26 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 602166603915..f56b99d32577 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 5dfb51c190f5..2ddc608c71c1 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 032d2a6a1661..461440ae20b6 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 9c2fd5abd8fc..90a6808d095c 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 1ec117386bec..ee9da8adf6c9 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 3cd280632784..d941357feae5 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 e7488ca6d4f1..02ebfc651651 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 bac4e8534d25..9cf48f05c25a 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 fe383609cdc9..b21244ec3b16 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 788ac487f203..7378a7925bf1 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 5b020a4cc61f..6c5d9877fb91 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 2273c8e643ca..986d52e7d113 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 26b3eef620a6..4e30e16d4ab4 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 67423b077a05..9c14687be73a 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 02e16def8961..e3910bb48963 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 8a6b2cc6ec78..3dd41e787ad0 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 71ac387fe212..b0c20ca07fec 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 f34514dd6ff1..9822c45508e6 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 0587d8a68dc5..7ce68a66f30c 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 bc169dd3f873..293a0b7d1000 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 c159569f6d00..cd674a1b205f 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 436e77d0e30c..dad359282bae 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 f4b69a1ad138..c1757a27d261 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 153f1cb074ca..e5726735f229 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 ed980bf9d78b..f5ae3429c9bf 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 6e626e8e551b..40ee6b726e47 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 726ea5d52303..47ad58919eb2 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 bb17b4e4fab9..8e51253ce0a0 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 9a03ee050855..345345ebd4f4 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 11b6288dc62d..3ac76efc4d36 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 1d312a023ea0..01032fb66cd9 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 06d1e9d00321..afdd9da39f76 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 35ecf0ac90a1..13aaef1fb428 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 3ec142e16fc0..f41f2121f893 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 f4c54b0c82d5..49c103f7582d 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 f5aef115a65a..1f7293f235b9 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 902a79461030..407103bbbf18 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 73a367d80662..0d674275a9b6 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 02c2fe963234..dd05c8502c26 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 90292d2f5818..2590cb8febab 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 8c373d9869eb..1cd7ed685571 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 84948056c971..4fe878014eb7 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 ca0d318121f9..6dc4334b385a 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 04f979a83303..6c9b8e8f87da 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 e705a345892c..57d55923fe45 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 74a8d834ef78..c07914ad1214 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 fde3f4041a7c..420e34e887c6 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 d2696ce233f2..6c461c4a82af 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 9bbac44cd5f9..2b2a1b31fbfb 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 2f5a4586281a..e02235e52be2 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 4456b543ddc7..0841abd0c9a3 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 7918a82db0a2..fdf080dad0c9 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 aabc9652f88c..0a9891c1f9b8 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 d4f5933986a5..063b40388fe5 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 159cbac08d33..9c2cff8adc0f 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 3d1e65e2516b..7db29942ced3 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 0bd1ad6e6eb4..ad910790b21b 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 b0b209b4affd..8e03b14c16bd 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 cf202d329451..b9e4c3f3e065 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 e158ea73de86..532de22d285c 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 f2e44a2bc4af..2ff2c18e27a7 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 981dd7ab849e..f12051c4fd67 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 a8e28fac9813..5ee2cff12b7b 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 a592cc44bb71..54674097046a 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 370ee6ddf1d0..bfa13c24eacd 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 f8f7bf55cdd0..07bedf024312 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 9aedc4a5dd41..d610274ad78c 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 131f55989b3a..10973cbb6fa0 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 0183edce8092..8c8660c1ec8a 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 1b83c0beac43..2c9aca505f37 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 ec08dd26b0a5..4dcd0cb480b5 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 947f83538dab..8fcf5790dfb8 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 ecbc53991469..c5283f09a083 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 5e87b2c3f6d2..31cba5bc8e4d 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 31e3c1b6f4c7..6d28783599b0 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 e2131d8923b9..3a5d6c52af8d 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 98e22864d810..760f2a5db570 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 91961589775d..9231ca7a6265 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 1693d8c6b89f..1ad1bb9125e7 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 39f951508442..329c62ae4534 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 e814ee539f46..6ebf0004408f 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 77aa896ec375..6fffa6814c8a 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 e36eb4fd39b5..ab298b9e56a4 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 6ce36cbf7b11..4a3cde7f6ce0 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 ece3fcc0d6de..d135b99067db 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 af6ce41d2d5c..80e7ea090db7 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 c9ca197c6ff2..e8184087834b 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 7b245209facf..57b3399b1941 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 45cbb412890b..6a95aa3af22c 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 2c29e6d35569..ca8bf72ed72a 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 27e0a8e4b08a..aa5f22d89ec3 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 d6988a6aeabf..341640a0dc56 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 3f06a8f54aa9..70a00bc936cd 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 63d965cd66fc..b44202285846 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 62c2d802e9d8..016383a8da08 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 400b72b04317..716bf76b4c48 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 863fe43cfcee..612042b7fd1c 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 ddb39ce77289..7767ac2b3e10 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 dc1aabd6c58c..1a242947a33d 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 bf5fe955fed2..1fa1d9509548 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 f3fd18b7983a..fd86fc835818 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 6f8f1569bfd8..a199c87d0fcc 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 a3fa4ea4c309..6ce93b6d9eee 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 3c8ed7f627da..ce69c0e51872 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 4eb23af4385a..a94ce73f812a 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 a7dbeb8b924e..e64deb20987a 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 071c1bc116c3..01d606a47fd5 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 4f853e0c0b71..463c70ed8e53 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 d1dcd5799f7c..2297c75de2fe 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 8e6f145068db..b80cf966b8b3 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 8364f5c9d805..f74fc64147de 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 89105cc5cf5c..9b3e4f8d2f4c 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 ac3340924432..9fb153d01a48 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 91fbd4166d85..c3050f975f5d 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 f55a1eb4badd..68c3670fb72b 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 187018ec578d..dab52764152e 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 23a855cb5d97..0d7209c43e5a 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 768b3f4cfb63..181bb929cb9d 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 836f3e3e576a..1365a1bd6a6b 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 56a76c6439e5..6df020a006d6 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 f56b1cf47bac..f543afab7492 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 df5cdb8d2fd2..de4ca81fdc9b 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 6284e601cf25..5027df8043ab 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 cf81c6ddc2d7..2c577f172cd9 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 58394efd3b24..782110423d91 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 3224210c2075..b83dea46e228 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 dbb530d59cf1..f0dacd909e2d 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 d0dd5c39a560..65341bc88a44 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 e1294c82350c..303b0147b3ad 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 2e86634a39fa..c0317e1f176a 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 a1caaeca9f01..69bec5bf4846 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 bb66f6eda063..c98a8268e3d9 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 3402595f87f7..1cc700531f2f 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 e95c2b4ad227..a273a9f67c35 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 c1dc6eef02e4..5afc6260445c 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 7a6839b56256..147449e89432 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 968ef437e7a9..cf2d3b75ed9a 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 ddc06e93fd5e..b36c3d44b136 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 60a31383baa6..9df801af40d4 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 f36137d298ec..56a43f193195 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 e16c84414e5a..f801d7ff08ff 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 643807bb5e2f..2be44c4fab09 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 1e7d3283dc48..5b16648e979d 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 a30119a22a13..503cfaa3adb5 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 4167f7737feb..d75127e60acd 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 6fab936a3f22..54eb906d45f3 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 6a3e4d1b43e9..ace2cbe41b63 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 b8d373bcf36f..30c538ca3538 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 8d83e634249b..a14bc2f65974 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 7b83a44daad1..021e1be7c157 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 e32d8914be2a..bfaf556ec75f 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 e3c9a3871933..68f0dc85a5ce 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 268f319d3787..d3ccf35585b0 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 3c924db15c00..ea548fdad9d3 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 0ea9f3dc6b1a..0b736fbbc240 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 92615802a9bc..086fb4499a35 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 7b317fb244e4..91612dab127e 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 8b82fb95b03e..d5a6b4ad3e06 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 723f74cbaafb..e06c7e89524b 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 57ca282a9450..ac0e868642a8 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 f0aaf0638922..0a05f61fa8de 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 6ad5bb5eeedc..7afedaa548b8 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 4824dd8c7618..cfe0a85c1c07 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 70c2bf0a621c..dea0649ca3fb 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 c3dd8d41a5ac..732b43b652cf 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 2e0b2cf4988e..8816ed26f4b9 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 46a060a84d79..afd5294a3042 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 fbf128e14120..8f62b8a11c11 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 476febb19a28..d664638340fb 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 dfaec585c28b..beac40932451 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 a8aca057525d..c5f10591fe94 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 ff533820670d..69771be665e5 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 ad997204284f..ce976aaf9016 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 d3c3586a8f7b..5a4fb4410603 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 df959688b1b0..7193efe1193a 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 402f7e99f0f3..e186a80818c2 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 6a755069ed32..1cdb1fdab191 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 4812bb4b6e6b..d67b3c488f97 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 38dee10f9a0f..af077154a106 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 a9b0c958a03d..4fe9113f2e52 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 255f5f296c10..77971b2cb14b 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 fbc42a9f514f..fb3adc6125be 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 afdd175a75b0..5b78558c0ce4 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 12f60ae5ef83..128a775a12cd 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 f40fc7707e2c..96c09a57cf3a 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 823fec990da2..12dde711cc04 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 8c62f4901377..0b5b78db43c6 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 b5f2a0b6375b..2ac1280162e9 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 913970ad1a48..b7d70d261e2b 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 c4609b31e8fc..8ba3ade0f991 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 d9c7e8681739..aa0785d2512a 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 e35da9f7f08b..8a69695e9090 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 0e8dd578bf34..c2698a322b74 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 ab048c4664fa..6f72d4225ea8 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 a775108769bd..93b8d9e890a6 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 b60e676af0c5..c55e3a657965 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 d0c647b0353a..7ed57ce18eb8 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 ebfd0e1bb4c0..b390ac5539d2 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 9281c7517c3a..89c729b590ae 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 8973ad51e60e..196940e02813 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 ef7880673e07..88bf54fe54c8 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 a2642dd345c4..cb85a6735e5a 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 8d916549e3e5..fcfd6b40dbc5 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 cff4426e982c..01721d38e1be 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 2a96e7b6f2f7..9d2925921c61 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 f241879abc8c..7b6b128d7b44 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 947f9051a324..934d887bdce1 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 1b07af7ce3cc..8758f61cf2e0 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 2a7f37f037c0..c9d124a51bfb 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 9c6407e23551..ca578b76e016 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 b25396a97330..7fbaa2defbe8 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 2b8af54c8d98..e013ae38426c 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 9bda8340bbbf..f88d3cef14e1 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 0f1eeeea54cb..7a40ad19cda0 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 ed7b7155a1f0..d72222a7aa86 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 b3920e9c1cfc..ccc6574cc865 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 453c9c35710b..ac897851c8ee 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 63eab8cf5cb1..0bf34ba43629 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 91557aa59157..306be1900195 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 42a453d9edba..61115dea18a2 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 9dcc6132a2a1..4aaab31e9a35 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 1c2d1242c805..9e3781b1b711 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 1c4904414e54..faad12107b60 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 285924de4c70..c67360b1df77 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 dca8d10e821d..011350b70dc5 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 15cb12a65d97..1c3d4fb548d3 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 b90c7e67ffcf..37c682044bf1 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 a900ee4778fe..15f8c192ee28 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 560e72063260..8e839019c916 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 5d5dbffa97ad..eec99a448b78 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 0ae3d7a32214..754265f04cfc 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 e34ec77c0c98..3547a6012a5f 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 49eabbbf8342..7cdcfeac8022 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 c1784e63ca6a..ef20e4f41299 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 b86b6122322e..2cff17b7c8ed 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 0ec31eff1775..fe65e57ce340 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 7bf3a88b9f5a..15f326b4b691 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 5875ce62fb58..b9f44d5a7492 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 6e4d91dae0c1..b3d893e1d351 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 b7cc5668f9f8..dd244f9cee44 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 2ee632d243c8..8c302575bc40 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 59a685061426..06484e40894a 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 1d0a3572946e..869e42b70baa 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 8fedcd80e010..cdf36da2b8ef 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 17bba8e59523..d04508696853 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 48e78cc3dff2..874d3430532d 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 757e89276cef..0d6ed4765797 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 79153a3d89c4..4d0953803710 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 987652a9fd7c..c0af10ec358a 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 e8ab3532fcd9..8d4be7d44dc1 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 d9edea757f22..50df9302859d 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 7163ceadf65a..60c76818009b 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 8b3a5b16b6aa..f7957ab8ab00 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 e8235391ccae..9f1f3e1ebb02 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 bed723618033..00dad335200f 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 806546e878aa..3f98434084dd 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 7788225fde17..5352fee8e490 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 14e357103a33..c37afe5fec79 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 1dece4155372..bec7b5045e0f 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 421d2ee8015c..c4ee4006a1e1 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 d6c1e94f3b73..7ba6e43b7303 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 6ab97b991de1..d06e17a10117 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 bf3765273e2d..25dc69752084 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 c7e16c9026e9..e440c7f0e769 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 7908a230d51b..66e1dc49c713 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 82a74205eef5..4b269b2689bf 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 aab56ba64951..ed4199f6fe6a 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 687982c6819a..b6e1c4cd40a9 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 2b03c3714eb1..cff877b5a4a0 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 1fc62ebb2c6b..7ca629ca832d 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 cbeeb8120ee8..ab5b0b5e9292 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 a0948971a162..8f471a7a3b24 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 4dd31cc7e41e..3f2a5c4a6f7a 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 4999454d316f..a16886ccdcfd 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 8346d199471b..e54e27d597d5 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 bfff51a36d5e..0220d097401e 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 1db996416664..3f83377d9764 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 672c67e8a937..3e0cb27fb40b 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 4bcecc0908d5..28d982ec869f 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 d52518655e44..5b1f43c20628 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 6c0c41836546..3eceb9c4f385 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 3c0a9fb0eed2..37474ef47096 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 fe54208b002d..57c6d03866d0 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 0ae494910dd3..e6fae85a5b25 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 b9850e0e12a6..94d7013c0267 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 58dac9b5deb7..54c4fb725ff0 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 eae55af607aa..da89ab401c51 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 34726d2c0a3d..30eda8f2063f 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 3535e961d47b..1712196ef38c 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 83735b266044..906d4fce9826 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 0c1c1777d8a3..9b9ec100bd24 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 6c81a92bebdd..fd6fff502c73 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 d0a463bb4694..512ab76a4e1a 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 d700415563e5..8b2b01946575 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 d0833bf57167..856b9d205852 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 d04ebacf5ec5..a97a70d0b4ad 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 446d4866c6f9..279b298e4431 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 e4e7ebe08625..58d22593124a 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 9a89b319102b..ebc5f10bddde 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 052ccb26064f..96501c77349a 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 38eb19bfaa99..a5832684ed7a 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 f583d0573724..0bf28e1e5087 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 c349d2395454..042fcb06c877 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 5c6547d3bce4..d43fa6a6ae3b 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 a7a7137c7fff..acd9cbb410da 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 aaf1d6c77e42..603c47ce18cc 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 9b62d5621c3c..a82b2e65a908 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 7395be476fe5..908838426477 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 58443b98b9e3..8a9b76f7101e 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 6ea1c8792fed..c975a41acbe3 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 76d90e2f6e75..561dc3e0dacc 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 625f19addd8f..a5efd9d9172a 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 b3e3b97a1cb7..9171d3531820 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 b0982db920fd..ddd130af8541 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 2bc9489fcc10..1279ec04e6b2 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 6467c87a2790..8374cda7d71b 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 347f69e87157..424441cea528 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 58e8f3193dfe..08407973307c 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 2fa316dd28b7..91477b1df610 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 b7c0c0dbc833..c4be1e405fa8 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 5a789544ca49..2fa11f54e201 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 453726ffba4e..040b796f026c 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 c8e833344b3d..af2bf4783d5a 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 3f13503df149..5c3b592aa827 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 95706b64b8fc..9a838bbe54b7 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 fa29c2cbcdb4..fea73350c0b2 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 2c67d2019bcb..00cde797d603 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 17b657a074e7..64bc3a32fd05 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 cc7cdecf7a18..e3ffe8f59fe4 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 d1e21c65ea94..c07db0823843 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 0edc941e768b..9fb2962efc61 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 fbf55be7f004..403503d12501 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 b49c38d4e02d..74d74382649f 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 082a61c523fd..b950dbe4adb1 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 aeff2d8f8aa7..557463eb3c19 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 06c1c1cede5e..4c5038ddaefb 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 7ab74ab80b36..946294706d7d 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 5a0b78049132..fa54d2c95d1d 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 8a29c1c3b076..ba8b7d14516c 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 806ea792f31f..d3cf795a9fb5 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 35be2803f962..5d121e806702 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 26f3ee1403ee..ce5e40170e97 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 75921fbc405b..497d0293dcf8 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 7f2d13edd57a..3fe1d4eeb312 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 3f41fad2e131..f601c8018ce1 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 d30d229f5987..639974e0532e 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 378043a8b990..7512859dc1d5 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 427a7ef96418..d664773cb1dd 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 9cbd7d25ef9a..b88033d1b97a 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 c4cc5357a007..17e6e20922d2 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 4ae73ec0f0ca..6b7de5e419b2 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 023361f2ee86..bfe05b5a8e1b 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 8b08dafddcee..53fbe4ae9b7c 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 8d666aae65d3..fa2428a8c0eb 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 f5641575b3dd..8d606a00b5cc 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 913f371cd192..0312c8884124 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 f54e163205d0..cabf5d3a4b5e 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 ffdbafa6acb0..24ce6a4a43df 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 3d1742929b41..8f9f36d52444 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 12146be7f3bb..56f8e795e663 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 368332d64698..4c19e733f296 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 480c8c49662d..a8a6a3e2a8b3 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 8ee5ff977dd6..fd4c9a0ef6f6 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 9468bba4af7b..74aa10903455 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 5e78e83c9c8b..69ac403fd1d5 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 7b805993e9b3..0bebd2f9b55e 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 c1de38e8104d..966eab1646e3 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 815a9640f489..40be5e8a203f 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 3d481ace545d..3bc49a85ac8c 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 adad67abb1b2..97daee89682e 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 08d246a82aed..4af1d10e7427 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 bece06db8155..9a8f43c7a441 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 d7616181b97f..a2b857e07684 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 1a35dc3b736b..e2a574338c31 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 f796ed1400f5..4a30ea791561 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 fa31ba8958ba..0061bc9ec38e 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 bd5adbc8b5f3..b9a444c8eb2d 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 c495af7f8244..b5678c00a9c7 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 26a36dc1d243..acb365eb1609 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 1c1048a90194..d1473ceaf45b 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 7c30f47e7ead..d0a07704de16 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 f8e61749652a..4c4bd4c3b3b1 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 487b4a5ec753..c0f50701b32d 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 e8d9139718b6..31352fc4a042 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 972091aa5439..160f42fa47e8 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 856297959344..1d1694383a14 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 69885fcf3b0f..b59e50e7396b 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 b0c91bbd6db1..52a5aa3e1019 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 c6c2b7cbc3a9..83f5cd93bd5e 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 03e002d2b460..4e393d350f03 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 37dc87025a76..ada8dc7a18c7 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 b3b3bfa59c05..e4cefbf8d031 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 8f833cef2013..f1a8d13314c1 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 ec340a7ebd67..20283844f027 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 7f34807017c5..bffce2163463 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 42526c758d45..7bc0915ea7ff 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 3b407b5a1ef3..0c01be533dcf 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 139cb40f0b69..2fa51d30eca3 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 0f0f2195d884..128392be1155 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 56a3df860324..07d9fe16727d 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 25098db3341e..b338fa6a9e69 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 5c1ea342ab76..ca0a59c6618f 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 f4f0a47b3ff5..e3ec9c1ae10c 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 49b50e90b7fa..13f400309add 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 30da3d98ece7..6238eade8436 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 828fcb87efbb..07d093c9dfd7 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 f8d287e9cee8..095c42f9d6fb 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 e8198f691641..da30a8844984 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 ff3e69dbea60..f7f7a73cdec4 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 b6c417b05208..76eefa80ad8a 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 f8f6b19980ba..993ba17cdc9b 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 3176a325d1b2..b41d58f86718 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 bb1aba0eb816..760e139e07c4 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 a78f4773cce3..419c6014159e 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 90b685f35891..3f8a79aa4ef2 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 671c7039b666..70675a2d8988 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 d96973820adc..cca7194ad3c5 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 de7e5ba214d5..4569711415f0 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 d77c63c7ab5f..64a0ca1b24f7 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 f0d079729aa0..f54546e8e2ef 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 2873829ff1df..cbcbcf43f4e7 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 7b891e7d535d..cd240c15bc03 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 db87ae890bdf..48f1d2f180d1 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 d7bdd650ec20..57e71a94179f 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 145c62063bc1..810c9de6cc95 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 7cef1f2e2392..ee70ebfe1b41 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 7cfb39469c64..8a0ae1cfd4fa 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 f4f713658ba6..0abe1f81f615 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 9cdd51bd6c2e..0e66749869f1 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 23b91c3d95c3..1fb9724642ee 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 bd6e6fbd3ddc..388225200a27 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 0914f248c41a..c2cd82d462e5 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 1f66904e1a1d..166a81d18a53 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 f10be0a15613..9a396960e66e 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 2818de7947e3..8cd1fa754696 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 8ab5f72ac1ee..16e93a8440e6 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 1bc35d2ff104..54a62e6721d3 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 69adb98f4f28..b551cd250a1e 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 a62f58577070..f9d9ea5ea7de 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 dde601a93c6c..7c2c755ab8f3 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 51a4a1997f10..df7057cb203d 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 9b9210cd8229..d8592140033d 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 d4a124ce8942..212891348c56 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 28235b2ddf79..c048d44efb62 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 35dcec2c1212..de2b0adc975b 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 83ef177895a0..4b918d17afd4 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 3b5bb14a57cd..81849bce8ef7 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 9a7c38f33121..40ee2c5f8713 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 49eb26f81080..628319e939b0 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 9420582fd4ac..5c90e1545f46 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 d4921e0d8650..2d691147fde6 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 0f91483fc6ab..1383d8c65ab3 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 5c71145bfbe3..3b2a0c2e5ff1 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 b4702b14b229..46da4ee3440e 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 a865afe4b43d..aefb1bbc959c 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 2e069270778e..61616a2c8ed9 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 745bcb9598c4..3c3f07a3b2bb 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 07751cd035bd..dbd60b5f8f52 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 e6366054438f..6f2989984d82 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 957815b8a2fc..3610999278eb 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 5d4ae0bfcd81..ab623fe70349 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 30ca2efd4a3c..390123a5c15a 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 0f60a410e808..eda0deec5a9e 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 49c4fb966855..83f566e03186 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 c97ea87b7059..1ca681c8342f 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 7e727dd9f347..c884a4ee0e5f 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 21681e61df92..f708b7a56866 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 1c4481dab282..be2acf01c7b7 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 155034158f41..1a03cdd28e8d 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 c39ee2c1ba85..b9c193723675 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 af97b2d04685..ae1cd6c7a5e9 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 5e77c624aa72..16935d206f7f 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 cd4eed94b128..7052c706a2a9 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 44a647513e1b..cb6c7926fd05 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 cb471d2ee01f..7e2cf809c0d7 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 953035ae2ad4..579596ffee99 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 83e35a563666..15e772416f9f 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 78a0cc4222e7..936144aabcf4 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 fbdc731ebbbe..b21037cb1db3 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 c7c889855411..3ef766cb9207 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 e38fd2003d13..0578df9ebeb0 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 e67ce8a6db24..93c18b089860 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 546368981e42..5e6c43bed58a 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 b6a688c4f204..80f1fb5c2fc2 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 b7814b1c5278..e4ef2680120c 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 cda9d6188553..2327548f6e5b 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 cc26873d1c97..3f2cfa0ee453 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 e0bbcd150b43..cb0323500f16 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 72e1d6710337..5a6c5820ec6f 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 3aafd9d50911..e01af6de487c 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 b01efb8362ee..03c657246456 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 2db5419a6b38..e81218417010 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 556b5957e492..d617bd908a7a 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 52135d34a9b9..6d8f449d4e59 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 2dc5e8e72985..0cafc79b8f86 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 01336605274f..528f70605d48 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 51995df760b0..a8162e706936 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 c611cf49c7d5..bdb71c72c926 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 f70e7d096dac..4d68d98088d5 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 b0d9ceaf1765..e4caa2119d7e 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 687d5794be35..1ea7d3155481 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 3521e20adf32..67041bf620cd 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 5c4408c63366..4101dc216ae2 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 85420ec0494e..5fdb76418a94 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 67e37c578542..fc30d261fe64 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 fd65202e7b4d..b0e773b89adb 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 7bf97c38b8ba..3627fce3a8fa 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 1a2b117652ad..fd9f0908c17f 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 5ffd881d57e0..1186b7562991 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 d1982663fb70..8488243235fd 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 da6b6692fadd..ff143422dd1a 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 7987ad877a3e..cb55a337f2a9 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 7eb41b5a684a..890216b41b95 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 502e41087b2c..95e52f72dfc8 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 c2c14e9b8aee..9305138839fe 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 d74dfda1322c..eda4bc00ce55 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 dc7e694dde16..0e439e199926 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 b02c7d39cd54..60867aecaea5 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 2f6a52b07dfb..a8635b446f33 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 f7de94abfeff..1a5237040ee9 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 b67ad16d67ab..7a04b86b406c 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 3de9c6cdb323..fb55b7ca9a88 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 77e73e64929b..61b43a09bd79 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 fc9cfd56b7c4..dc6a45725d9d 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 6086a8fed871..dd3ec110c94e 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 33b21eee03ee..9586a9729760 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 8447fd196435..5969d3abb748 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 f4b293558a63..2452fc93a8ae 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 e226724823ec..3c364c3a5b4c 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 8a22b3147b2d..865790f99978 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 1f98c609d71e..4babeb46b8fe 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 c9fd117571d3..a5b5ece0ca85 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 132513bd626b..b9ac09e00884 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 2bae5ac7c5ec..53704a65aa8f 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 7d53ade02417..26e8d56efe3f 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 e2d28efc48cb..04fddad201d2 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 924bb0e3d981..7d29534c112a 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 4c91e8645bc9..0e0e3d97c95c 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 1db31d7a4f0c..6aa951c9568a 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 8e99285a6afb..4ad0a6ca93b0 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 dd12eb01d25f..63cef386bb87 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 6aa8ccefeb5e..7e7390cd7523 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 22222c95bf0e..271d205570bf 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 b64c2bbba7b8..2037413911a6 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 856e555cb1a1..548c04467bf5 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 455a81d6c068..862e8ccdd140 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 c537a99940a9..65c1bd77c040 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 545caadac3fc..a76f522fbcf2 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 a53f9eedc394..3e142e8bc517 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 0e5243ab9244..6d6280a7385e 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 2f5e21ab0b59..cd72229878e2 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 c8f409d20696..62014a12350d 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 fe50f61aa526..a9efd82ff4af 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 a8addbbbbdbb..c342db2af707 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 41a42d76235b..7bf11e4249a1 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 851849d58116..2298dff52522 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 db8214d9ef49..6571f19f4174 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 88e8433178ea..750d38e7f1bc 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 0885a7e8cd41..450cc492896d 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 041814dce869..45da41d7a7a9 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 d0a1e5853d99..6aaa58423806 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 8da28c1fb28e..3e9eb87e307e 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 50f287319409..bd16d44fc206 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 2048cdd66ed1..e1c8836ca4c2 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 c0c6138c6c8d..ff445423c32f 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 018603f86d9b..89097bc07909 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 1bd22f74081b..486c6c5e79a8 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 b25d3e1d66a7..6b4a67f49bf2 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 f5ef2a4e2e28..7507ac820b27 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 ed4a92781662..5399dcee3268 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 18a21d9d7c5f..8d9684398619 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 64167f211e17..f3dc97364a3a 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 213f828f7c3c..446f3c43f575 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 e12596639ddd..f7ba4c4b9929 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 b503d1b6dd3a..fa38c982b615 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 c61def9df4f8..2106aec30030 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 0d606198076f..4cd9730477a2 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 0d8435eb429d..6388637677ce 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 60827421fa9d..1346a8059bb3 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 b4ec5bc022dd..8710fc622d8e 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 3ba210a2a231..8567c709d468 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 2c55b700233d..d4bd4582263d 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 eda5fe727f22..84529161acfe 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 5b68c400681d..748bbdc2465c 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 9fb2e2b9467a..61ff94895a3e 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 88d7604315b6..f33e0a6bdff2 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 877f832a2f3a..dace6a035bb2 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 47bc17e2ef2c..b5727d091482 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 7cb8233ee445..b52e36dd2e06 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 bf796c97f8a1..a6a2d7efadfb 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 95188e70f15f..3e9f67873086 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 5e0dea14b05d..d8a7511400a8 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 ff25e0c6c0d3..df2da9e2b9bd 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 c3f82b01633b..cf2bb90a0794 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 d9f7beaaf3e1..981ff309edb3 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 9c14c37dce90..a506dd389801 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 c41c64e82c04..abd607249813 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 1bec592d616d..0d62f1d8c78e 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 30dd793933ed..dd5066e0b97d 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 daddb9681cb0..5539a186bbb3 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 294f396d0a85..310024d1be4f 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 beda85e2fddd..bb62514eeb83 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 56dbc0b9f74a..55ae157fcc94 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 03e211eca864..2ed4dfc1610a 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 a12d746e670b..144beeb14955 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 26b6f8e8b835..d10b0415f1cd 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 2605e9dcb49e..f4f1a72f08d5 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 ba0593be9fd1..d9dc699c1b00 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 d887fd72b1c1..1ada7e54b542 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 972014a60d2e..ee4e189f0590 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 0a12d7d6a917..039866d330cb 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 45fe739cda18..0af72583e1b9 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 f4252faf6407..7bde23d3922f 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 df5a6d355085..65636a17cd77 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 4d793cc3ccf0..5e9b032993da 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 6852492f9ab4..0a7cd2a0afa1 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 cb9837fdc978..7f2c438b89d5 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 bbe8f8916866..7f0b77d14f8c 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 a1f702eff05f..2a3316a85ac0 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 47a349a5343b..43232cfdb4eb 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 37ff3aaacf5c..b50234029606 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 b1018c961728..fcb3a74b06b6 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 cbc48e489ab2..b08f9e7fa266 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 6f2c2d525887..38bee4b71b63 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 bf6b0026447e..596d4f26fe67 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 8f8989a85084..2b7d4b194fed 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 1347defc1adb..50aa8885e39a 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 ef5809b72b7b..fb4752b555a8 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 c7830b518ea8..92ef5c3b3dd0 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 bee6ad8b9716..3823ee73bb71 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 5237b23c70b8..92fd5d9a984f 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 ab1f69af4fc9..204af24ae0f0 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 83a227274644..6c2c7406aa99 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 351900982347..2fa543309cc0 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 ae2445d2977c..e63ac1d16ac2 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 d180086902fa..3874602c6986 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 2b25d22db1a7..7cff8af39b6a 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 3200cab22be0..133e009f0fcf 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 444e9dcd8c1d..01575ba25a8f 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 abb37b9c1461..25000830b756 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 bc5145f9e2a2..757854c24c4c 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 d6958fdd5980..2ca529a521b1 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 93e71c687f21..3254080414d9 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 207caca53c4e..99981f2c1e46 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 9d9714e65349..98ae5515e17d 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 d2cc64e7f009..2cc6197d2f91 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 2cd80fdab1c2..a483c2f3abbe 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 95ee95774bc4..b8773770938c 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 f5b89d7d326a..0ca3d37cfbef 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 221aab5bebe9..1d53b50e93e0 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 ab9a7285b845..854b422a5de7 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 a1ed957515e6..7d6391bec093 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 7fffbdf7973c..42c48f3fe228 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 83e7e2a1947c..d05edb9e17ea 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 619c3693b34c..33a370e3f034 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 51f997480a9d..29a097f4974d 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 c8dba61ea83c..3c66253f797b 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 9cd3efc88405..d489be9097bd 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 c2b857ec6937..eb73974b4e8f 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 c1741a506b38..ccaffb296f71 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 ee35bb036d94..16d53e109f18 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 43b3249153c0..5dc990c271e7 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 e73cb0405763..b22b08f4d3bd 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 06c13327d47d..fbf372a776ed 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 291db74d6e9b..b406b9459d69 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 1b7275250da3..3039ab8022d5 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 8b88594524db..adfe99458d5f 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 f26de9fd1dd7..912baefdb009 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 2394ca2d3a82..8cb4442719b7 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 0e2d3b74f023..796852b9fb72 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 25f93b165873..b90638764fc1 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 28de739ffb6c..1472ca3f103a 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 32ca48e0ccf2..b3323143c48e 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 701c20d47a97..f87ee196f83a 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 431443336e6c..efdd60e9c6e8 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 88c060baad64..4dbe223534d2 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 87e5673ac067..e9c4a9a648d8 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 6815d129a30a..402aae1e13a6 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 ca14f51fe33b..a5c8668379e4 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 495314c33da3..fee4a4cea02e 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 6dcd13117884..786cc62dde41 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 eb398602cb5f..86ed2b452584 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 24ce92b9918b..6152d612ec1d 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 9e09aa4d6d03..24a26f12ceb1 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 73dd73a8bacf..4bcf55e71208 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 df9ce84993e4..7917b6ef9ce9 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 10631f7b36ba..f2c7dfd9f768 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 6ee2d8dd8412..ce2a5573f5fd 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 387bf7205818..462833c39bde 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 bc612a49df0c..adf8ad0dc5cb 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 0aa7ade5c121..11694c909ae4 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 f45f4639e7d9..d6d3d4e1d095 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 fb837e1e9b20..8f70295d1d91 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 e05df5ab4730..38cd79be0c3f 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 076d030f1a87..08fc97f12523 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 754d7989ae73..95abc6d22202 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 1ac157171552..cc859f8b97ba 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 9b1f4884a753..09ef107d480f 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 a828225ab938..9384dbba165a 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 c61c02d4a646..2988083474f2 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 13a07f669244..57c044e43fa8 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 381443e57684..a062e5706102 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 e5522ae54a56..71b9af632e64 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 2cce8d8a7ee1..2e97be1237d2 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 082c3b4c3376..924b5c84140d 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 71d1a739f652..8ec238d9f961 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 7ac6a62e3a63..a6cfbda5897a 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 eb390c6ff660..cb07f8d10734 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 6e1fd6169bf2..b9311d52f72f 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 82a274320134..8c6714fef0ce 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 423cda933776..04ae0b334106 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 e488ab0834c4..e03950e68d64 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 03b15c5fd598..4be4c14da8f7 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 c19ab62f72ec..a6b90b8a0401 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 34e6961d35dd..98f56167859f 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 2171891d4d90..2735c20223d7 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 6daab5b1acd6..163cc4ef3394 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 ea4c10e21458..9c0eaed50d3a 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 0af9f0a382ed..b04d5e703b4f 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 cade20de5674..1cccea10b3a4 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 c5a317bb6ecb..60ac22beea25 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 f4e25e2c4947..207aa814effe 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 eac50ddb898d..162d8bf36536 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 cf3f985637cc..76ab1e593125 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 5aafdf091fe3..ce977799de0e 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 b9cf6ccd67d5..d6c5191afc34 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 bcbd7dde9303..7343867ccf4e 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 59c1a97d6b18..6ea49a81150e 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 349d37130315..0fe2ad00ba77 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 76f40febf223..7e35c9db0fce 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 ddc82ccda043..edd6ac991464 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 4f2560b2211e..5bb3dbe867ce 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 86c3e443198e..93d3a980b2e0 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 2b1473485364..50a648762309 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 a356a7a8c8f5..9b5e27d81f86 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 e3bdcb232bc8..9c64df0fa11a 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 4baba2a785f1..b3c899003d75 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 f1e8a208d261..77a66e86f0ea 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 eb63303b442a..bcc049bebba4 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 eff98e27ca06..399e57dd0743 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 68c08b0e925f..74ca8734596e 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 75d02044b1b4..d9cb33995029 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 1a65687a3794..c27d6c25ccbc 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 e0c6df09e395..31912d4c9f78 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 578521c83b81..5f897f37128e 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 5cef9dc1c5e0..708bdc13775e 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 b272fcc61ffd..e60fcefa3884 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 097b3080cb75..44682aa05240 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 918e2efcabbf..ecaff8093330 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 db02012a903f..4e32ff2dc586 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 dc76389718be..05eb02f3c928 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 9796e2e58ad5..1f566dafc6e9 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 b13c2e80328d..61179594e675 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 cd771df78f52..43a8758c27cf 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 cebf1cc7562c..1d2351f31117 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 38945b0d2890..3e28b61edbd3 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 da851b14f48f..f932b515ede9 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 7aa3d693946f..0377fbc54ffe 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 3a30adae4d38..25c352644118 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 c4fc925de320..424a3c035aac 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 d385d8263483..1b263c422fa4 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 ba01dafae0a6..fe1ea21f411e 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 e6cceae61f03..f5c474e8ed76 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 f61ebaf1a623..b07962937696 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 f5627ae826ec..60881e1b8432 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 6193e94b7832..b2932c6c3bf4 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 3ebb3aa25db5..abd908029b1c 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 d1bbc61e8640..98445dabf622 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 562ca0f07195..236a32b80934 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 d4f9b2de1ed4..d19e97f5a198 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 c994650bdc77..2949a8eb822c 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 9d393618fcaa..09456f06ad93 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 010ed19b8f24..c28e8087dee3 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 dbb764eb9a41..dde1981e3c9e 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 0baa6e682adf..0331ceb22e9c 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 bf5ca24fe34a..5d4e745d4116 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 f79db839a30f..2931ba1da2df 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 fd128264a0fa..3db90ed4b6f4 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 2662365b3441..b0cbad01a76e 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 bedfd4eca9a0..9ac55622062f 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 b0a2e0c799eb..b604eb16c6be 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 5138cd60b5b1..ad5b651d8de3 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 f90d2a0b08e9..adbad77b4009 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 f9eb0374d41f..93cffc74865b 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 eebc0c4363f1..9a0fc4eb4f53 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 1823a064f5df..7c4d20feeeb8 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 61cade41af7e..e8a2ff4c7d78 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 d73d33d5b2d8..935e034e4576 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 f9743aec11a4..bb81fcc03856 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 c84bf45d9d9c..dadb8fb66732 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 cc03d85e8be0..34cd07d879fc 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 d63889e89e8a..0b4572384cca 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 37e2ece440ef..00d109a6d0d1 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 1e18fc5cdd1a..47eb4bf2e0ba 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 7184ecafbbb8..729101fe47f5 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 5649ebe10e6f..08fdfaf88149 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 d06472ae6d9e..8c48e99b7748 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 482b578a8eda..b77d7c2e5618 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 4e3d37e5788a..1d474d577019 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 7b4f1ad7cab9..9d641fe4f9dc 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 13b40fe90845..3a59e7213f9e 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 28d33d85d091..5f3744532594 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 2540ec20df83..f54fcf71ca97 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 ef293d5f8a3c..42f24c29ee5c 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 351903ad3490..e6000bfd1ad5 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 b708415491cb..36e345fc7bc2 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 8a59f2d2f511..e60c6376c565 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 d453d952244f..c8b4bacdd2ed 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 d4fc14236543..49d1c10cbc13 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 f942fb7a2b83..6a6d35fdec96 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 8936d26c53cb..1cf6040dd50b 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 ca9366229671..b83e741ec726 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 9f98f2052ff8..54bc952bb6b7 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 b5005a43ea91..e8fda4a962c6 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 73e04c842338..5b1b30fd5b38 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 ae78bc5d2787..1cec42421b7e 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 fad2ea8dcf78..bb10fc8a5ee0 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 bc0f5c2d063f..1a8d0d149bfb 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 18ad4a72f674..7150f57137b8 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 82e9148f83e7..9f6071fc86fb 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 dee5dd2f8ecf..9dc407b8380a 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 f36fd9f21a52..37a8f133e483 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 8bd37e5ccdcf..67bf24c0f4f9 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 3628cb264a77..4d58a9aef08e 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 076919a407cd..d0c3234c6f6e 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 8662b7ae3ecb..3bb998974606 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 9b3b0675551e..9c2d765406fe 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 69be9e4d69ea..dfb615473d8e 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 2e86037cb512..5fca2bc5f973 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 1060865e2ed6..23d1bf2badb8 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 eb45c9dd9bdc..6286ca3324f8 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 19d71d5486da..cdbf9ef632df 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 96469ec11147..71d7f08e6d07 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 bb932f1488ac..a223212935c9 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 b9b2b13debb4..ed60b3de4199 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 518f1497d43c..dda9b2f83878 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 09eb21253e45..c495a728746e 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 a686fc9bf4b1..37339ea995f9 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 7c144b34d3e2..041737e2d930 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 ec741109e899..ba669cf1f710 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 8ef3b1fb6638..3ab53767cdbe 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 4187d6ea31b1..22bc4271a651 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 dcaa9f3851c6..8d3aac0c97e2 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 d751b4f0a381..cea3db58eab6 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 36f7fc414c0f..0414c2cc0c50 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 dee969d0be74..f380d8f5d5ed 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 a48bd5a55ad9..488bc3c105ba 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 ab830f4c255d..5ec660be09ef 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 ca4b3a114fb3..7b3eaeaa6fd8 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 85501b0e51cc..9ee4eb7826b5 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 3f719872a799..38f82ed77ef7 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 5ce6f426e476..645628fea819 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 148d9c5ea679..ec0b596d8d30 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 11ae212e3d30..4933dd721516 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 b4768557bbd2..47a244ca819a 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 b35c76feab32..81767a035259 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 78319de50ab4..691d10355865 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 56272d679f66..ea6f0135640b 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 070ffd377bc1..be99fa25b46a 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 27d6a5ac91d6..a79306b17836 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 18f032ba30e5..13d10bc1f8bc 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 85bbf355e64b..5238a78a0397 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 3ab6bea27be8..6f3c731f9369 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 0c250c451f77..989c2f2b86a6 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 a886695f7d1d..408931488321 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 92e8cb6f3b8c..50903cf6eae5 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 2b2f06cf37c7..7aa06515841e 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 37c00f26d9e1..966f26cc0d22 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 0957cbf7c102..715f37da46bb 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 622f15e0cdaa..841103bbf1c7 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 c39455be4d1c..aeaa7660efc0 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 6b75ccf386fe..6a33c0d23717 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 55565f4c0ca2..cef37e3e169a 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 7970187dafb3..7fca34818b34 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 f90246b90908..284cb2c9a968 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 361b00d61284..d4b9063667f8 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 cc2f347effe9..0298bc8a3c6a 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 f85a77b332e5..0ee1d4d01333 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 b001666c27a6..b1e57f315cd8 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 917a6e06c84e..d9132561d824 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 e82e5fc22ec5..5a708216496a 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 47e24206556c..56ea975a141d 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 db3f7f5fef37..328bd0738a82 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 b8b6403dea16..e506b4a9a21b 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 3f3840af87aa..b0b8dc31bbdb 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 af6d2ce4bd1d..4ec2043bce54 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 cc8e3d9564b3..1327a06fd92d 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 8a691c8b5572..bc3d9f7e2f6d 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 496441e12a73..c952d8985af3 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 b42586c4b573..fa7780e1a9fa 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 adeee29525f7..8629a80d54e9 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 e46721124aba..616c9a6a9cb6 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 9841dc801d42..9ee9a7748461 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 7eb15a03de61..9839c87668d7 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 49e018382216..ae8cd0dc5549 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 a88614b8954d..a96b030088da 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 8d3bce300fd2..ac716b6426f2 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 ec9b407b90d6..ace7d4bf6c32 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 86e288ec3d16..baf914b6a75e 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 8154cca1a523..d0eac62aaf58 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 c51285a068ca..40b7292a6cf6 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 1900b8a5a433..ec97a89ebfca 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 5b1fa857c5a2..25a907477c16 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 1e842ec079da..897339cad974 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 a2b40cd2312e..f3d47f08baad 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 c3dde1829db5..098cee140f97 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 ad2cdfb7b803..fcac4a823e60 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 5cc35adceaf8..56dbb5b5b1f8 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 c6a319afba5b..278a650d3e19 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 c1e4f3f9e600..0863b8d359d4 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 25560cbc2728..be97d42fd3c7 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 d9ce22e16ff3..7018e77935b9 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 1772bfa9eb76..d137c9d357e5 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 9a6bcabbada1..fa80bbea2296 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 daf5966aa25c..aa235996298c 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 93ccc7905a54..f96730e02395 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 c43ff85f9c22..863d0816eb94 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 aba9c6c915af..beba19d22ed0 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 cdc7ddcc8494..448b8840e993 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 29c52bd49d14..37d8c7bb6ae9 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 d42cbaf94be2..32b40e5024d1 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 f67b9a350f4c..bea565eeb9e0 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 535988387916..ca85585f72c6 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 439a0e073218..19853916cb98 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 494030c95fc8..9c8f0ca615b1 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 7b6d451bb672..9a70fe98472d 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 f0170200dc8c..10ed3b13f299 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 080faea92632..5f8602392297 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 9e84ae268661..fe55b1de402d 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 7b337aaec11b..35fa31700324 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 ed26571af739..2492d8155319 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 5e69e29e61ef..48ee88e25d25 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 c46168a15e9f..4b9517803b8a 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 581f501ca76c..2daa59a133df 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 1e69926c75e3..bae79bca945f 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 93b3b236534d..ff278e6441f2 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 1f5767cdfcc5..f5e57106335c 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 e26a0065987a..0d620b3f6c41 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 89460778c7c7..4c28743638b9 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 2f084bb545d7..a55dbfb10f7a 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 3712333ec6a4..33bc913f0982 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 66f4c8232f8c..fa098c3e55e9 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 52eb9900f3d4..1c3f4543db48 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 64140f25c04b..56658df7a1a0 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 8ee80fbe77cb..6bf05f7a250b 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 a4cb72c49344..7009edb51ede 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 1bf01fe5d86e..21c51fc8a8c0 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 b93439dc72fc..2ad300b706e9 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 cc41e32ab9e9..4af91cc8a03e 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 c92167bdc78f..36888903113d 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 35ad8e0d8a21..f7e012467cb8 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 9d0faf82e923..bddfb1316a14 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 683d7fa9be8d..d5ff0a213f9c 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 40733ba308f7..890e6869911d 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 41371b5458e3..b25392ec15d2 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 b77e992258e2..1fedb65afd8e 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 f2aee70c9e74..ac5b0a4e3f04 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 a640a66276db..4bbeb7994f8d 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 d76b11f010d5..8040dd028c54 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 e2b2364028c0..ccbfcf15bcde 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 be9b4eed014d..fca95e0451e9 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 691b962d97f1..85732bd87a2e 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 53489fa20cd9..80cd1c462abd 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 2dbb2de73031..4bc61f4f2356 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 69d77903471e..7ef7437d4feb 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 f3fcf179ddeb..f115f2658f2c 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 a6768db61310..817df3428e0b 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 48d85cde3a1a..a627daba8005 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 7244b11e9544..5cf36e8080f2 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 cdee032fa38e..bbc0b5c61569 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 91e051fb7cde..005f212c7bda 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 79369774c163..7de35acdbf0c 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 aeecded3efe5..7193ef30bbd1 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 b7bb286695e1..3b0ba8532900 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 af947a11cadc..d68fff3ea14b 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 075da1d8dad2..f470a04f3562 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 7449c050da26..9ccd8e218e4e 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 3e7b9da80be2..c18681b33e40 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 798ce976d059..833cb0cac0e2 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 63c0621fffc2..7589ded846de 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 d06b74432e73..1292f05d4cab 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 5b5185ff6a2d..253fcc09469c 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 9966b414de56..83eba6118aff 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 00bf0c1ac64e..689cf0c1d209 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 fd45bd6d067b..3c2e39b7468b 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 7f59384fd631..4b308bf436d8 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 287ae3b1e46b..aaa847aedefd 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 88df079929b3..37bf4c40be60 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 ca724b05cbce..539c7bf51b7d 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 ee4cad2cbfe0..64fc9fbf03ef 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 bd0c86ef1d00..0b710de5d1ee 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 0c16f501a1f2..d8a8afd92905 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 e4dc0517d523..1dd298091392 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 3111088fbe2e..94357b842c69 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 1d20cb3a7414..5369ecba6c77 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 010ca5e6a088..bc9420e075d1 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 26f267fb0516..20a0eecd016b 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 074d6bd7970d..108d072937a5 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 2de6fa3e5668..cb1b0b850a8c 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 d2bbda69fdfc..7967ef8ba36c 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 4258465651af..c97842766ccc 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 29fbefd252ce..196d28bdf819 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 32a9aca5f850..24bb243214dd 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 ad5c90ab7207..8d1a054f3144 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 93b03fdde3db..4c75e3fed83c 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 f5272b8d5aba..1acda51d008c 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 a6cdca698bf5..55e28c8f928a 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 57ca3f7c5afb..8b0ee297aa1f 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 c6c1063eeb78..58eaa53fce42 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 e5955aef99d2..73c5ce5d0888 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 b4082da2be3f..48604703f724 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 3d1c0ee96d91..486e69e9c283 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 de5c0c56c6c0..5c9623888090 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 f16d090cbee8..adb59b15cd05 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 564459428f61..7bdb0ad1bfb8 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 3885d5e21d2a..e42daec94712 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 3becb6d55511..fdc02a2600b7 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 dfae2e181889..405e8f8e8de2 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 eac9f084117e..218afb316038 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 218c3e122688..1d29ec9c86fa 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 752714db08a9..c3cdb38a4ef0 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 9082929688af..e5064bd62d73 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 09ab885e515c..ed98a12544f2 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 d0caf15c8722..e999dd8a3f65 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 63feb52b37c9..144f1f45549f 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 6d0afd3931be..d6469351d4e7 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 c36ea9aa2624..ff2caf63c9fa 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 1d59630b8a46..35b10b2799cf 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 7b9d5da2f10f..299945161841 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 f1e22777cb5c..77acd0d06c0f 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 7f92c053e79c..dbae81cdf663 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 13a994cd8991..d27ec99e6dcb 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 11670232e20c..a74b794b4f9a 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 a84d49442f69..483e68b507ac 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 1249c430c4ca..4b28d3c107f8 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 ae5991ce19cb..acf12ba4a8d1 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 8f9c26ae34e1..42e6867e4d21 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 354901234022..74e6f632ceff 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 50c89ee8223d..6f61a837f864 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 df80bcf20c9f..0526e2be61f6 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 29f613f8178b..4198663759d6 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 d7a4d8b544a9..c5499c503d24 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 06d9403d558e..afb04c237d39 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 86b21ea797e4..47199026e6a2 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 22a58659d3a9..03f15a6349cf 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 4e98fc326d66..0da756de4379 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 a18c3cb6b53d..fc704ab1e6e8 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 1b81be96c300..4e07d51cc184 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 37a5ef2dec49..bbfae0b83099 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 bf4da65be93c..ed3f0f3725a0 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 eefc39f0cbe7..1c7dcd853cb1 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 703e4918302a..9a2eba308cde 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 af71ec7b42ab..892a7121344f 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 a26bfb08c3f4..581511e0dab3 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 84a72aaaa1e1..c9db87b20e60 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 4c609def3d7a..8c409a97cb5f 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 90acbea304e8..e6a3e39e7c03 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 96a53504624c..f122fc393ffd 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 a6612f62df43..282f1124c56c 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 0da39885f5a9..95e4ac6b0ce1 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 0262db3cfc87..b4899f13847f 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 b5721b163a09..57fad9c13c14 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 4ecfa2d86b7c..80432b5d543d 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 ae23bacbf946..6de4010fb792 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 40f9211e8c4a..c315dc816ac0 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 8e0f6a34e887..0df41c0f1663 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 ede5be233a44..a926d9d73157 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 6e023144d3c3..c9414beeff5e 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 d531e206449f..a36df3504176 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 d49c67ee4994..61bb9edad826 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 28b34123cae4..8ebc37eaecfa 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 48f0d3a8d4e5..ce2f9e967d50 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 6f8e166fce1a..8fff93292c0a 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 00863aed14f5..bbf5c1522f81 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 fc658d2e9f70..78b2fc86235b 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 91e15540deae..5c71b94b4f10 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 27fb6f8f7753..54e7e987b1b0 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 2d22f262cc7b..463d12ffcdba 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 036c1fc3f443..6863226c5551 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 b978aca8425f..67a7c5cac0e0 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 ea0c6dc30c97..3842cf9c2935 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 649ae0fe6e6d..135b3d9cd3b7 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 46879bb97425..3d40435145c0 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 f665a8ec1b69..2232e47561c3 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 49ed288a1f4e..65bdb33cc39f 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 29346e78b658..ca4fd2cb6433 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 e1f6c73cbf11..c58ca1e713eb 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 599cd71dc045..71e77193a67c 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 570bea837d66..d60c0d1a3518 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 676bb45105f7..000573e2b164 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 e5383da854ed..54ea9a1817cb 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 73262177ff7d..86f0574f87fc 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 96c4e6adfa9c..2af7099ce336 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 8ab7baed1a71..632f9b761eb2 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 8771ee193ed2..8d9d8f27cf70 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 f20e0bba705d..a35bb921358b 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 c7bc46b6b529..641a8847e25a 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 f35af71c760a..818049573cf2 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 1247bd82fb43..66a847fe189e 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 307bd2ad5332..683ce26b89ae 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 9069071511f6..17e4e42e557f 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 1d46872fc6b4..7c1b5b784a9f 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 1704f7303f05..0d644dc49df1 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 61556fbe1aba..973d551989e0 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 64a46aab3336..782a55922faf 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 f8ce4d954692..75120dac9995 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 e75d12dc45bd..aa4a2d5a7991 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 52acda7c8d98..56d226208cc2 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 e6d7d031bae4..a6886b241cab 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 5d3210f40a8e..bebbbc2299b8 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 1e5ed4b815b8..69de69f9bdc7 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 a18406fca887..8728d8c1b5b9 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 60e1c5ebbd22..a7c1afd9c70a 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 b7addf6abb0d..301048fcd9c0 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 cfc416343888..c3bd53e32043 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 afe945b35356..da37410b6d68 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 b217682d2536..ef0a94978db9 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 65d1384ce83f..36ed2c3cbb85 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 ecc6a78e842a..ffba96cdbb03 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 67e80a51b8c1..1c76005a789d 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 7902a072509b..ae9c944bdbef 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 be9e8d56a5d1..99a56ec563b9 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 d0969e50aa43..8a5c88de2c9a 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 9a6433308ed3..67c76c9f9e27 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 4e73e92c92b3..d6f6681e97e4 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 dccea77d8d40..b2e1e834d0f4 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 9e6849eca093..abd073a0a01b 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 1784ce3a5eae..1791f6eb5ebf 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 5c4c71d333e9..062c1e5db529 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 6f76f3ad7503..273f7ae1716c 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 cb1f258fd21f..1ebb561df770 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 3cce1500b27c..0237a6116596 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 e6449181ec7e..c46f17682bba 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 3d433442bdcb..43dd8390202e 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 a0971373bb3b..4e486ea8c5a9 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 bf5947ee1475..6bf24b18a9af 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 764d002c8f01..ae1baa1f2348 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 baa29eedb8d9..4370f84d7294 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 785e54c81bc4..1671e3518f9a 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 43cc0a0ef3f3..2e9a3dd9b2f0 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 04fe77ab74b8..522a8331fab8 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 f75685c2c3ba..2630d2b7e55a 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 be7b8c6b08b7..d067b41b64b6 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 a519391a7d74..0a4449aef771 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 a6ef8e1dd6cb..7c0251e59055 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 17e16d5fd2be..1b768151e59b 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 06033a0336c6..58d1228997fb 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 a82ff4fbf84e..a0b82b4aca9d 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 c287eaaba99d..f1e4e9e4fcbc 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 d1916102c950..1a7196956217 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 893361c59398..090ceead970a 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 edc2d8348101..af6662988f04 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 fbf77532399a..d2d37a932f7d 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 a54e19f3dfa1..05c0b4718d5f 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 a1141f45a613..294845d7fa19 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 e6f0db72888d..a3f4373faf81 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 2ca9e75f06b6..2704a70f4949 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 9a6b9965b79d..afa0d4698d29 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 246548a67b98..4ab918f9fb2c 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 f728e8be5634..9ab2f5c89749 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 0a65096fa2b0..aea01cc8ae77 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 289a379f8db7..fc9658878767 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 9440e92248c6..811e8a0c08b8 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 dc6f0698559c..28f166be751d 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 397e6cf31735..a910e54ec4f2 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 44547b0f1194..5ca48abd090a 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 e38228600590..e962928dfe1f 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 d83ac9b803bf..fb65f8c98acb 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 a2a5e136013c..bda24c4d3328 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 c25779f8880e..2aa825df1712 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 f99bcb4c1a4b..047c130a174f 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 0ad3568bfcbd..0c41fd539633 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 35a4cc39d15c..ef4721e42446 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 f860b1795b35..22239ff361b0 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 a1aa42549bc6..494adcec4692 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 452274bef1df..a60027587bc9 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 35c700221eb5..343cc04b8fbf 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 35589a926827..8416b9419e03 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 0c114cd3d941..df0e1c209dfa 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 7666bfce1686..79dfdae0a1d3 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 83d38a05af01..0c91ec917a03 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 58016fb9d0ba..4ad35e901e62 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 6313310ba134..409e4f1508ee 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 69b6e1419b5b..808bea1941c3 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 0894baf5005e..36303e478e53 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 24c379683eae..d0a5469a3c53 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 f8a503c51ea3..2d31738e8851 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 462a74805681..e6bb7d110745 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 8f43e77fb42f..31af0083be16 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 60841170d219..0f0626e7c369 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 11392490355d..4d0a031ec4a8 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 1abd84cf66e7..0f33de16c10c 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 3f5b395bfd09..509d1b4f49d6 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 c25b371fb9c6..994ed13b7866 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 97c88a83f893..7ea5f3330e34 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 fcf1408e0928..6262e1f63265 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 c74def74f484..d6c7747e620b 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 46ee3baf4eb0..31dbcb97463c 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 4af64ad378e2..23533e18d2a9 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 f657b028ba1d..a8fbb7e479d6 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 84e8a1c22e4e..daef1536fb83 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 f8fa7665d1dc..aff84ecb9e46 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 81e91791eae6..3ebff7b2e68b 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 46a66e52b8de..ea70dc2211fa 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 4b48bb44e1a1..8a861c67ce3b 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 5c740efa4598..7610af09d3a4 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 9a87a251c870..683e41d4245e 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 7f101724018a..32a1bdc0a0d5 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 b7de1f070225..beaa18859534 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 37cf7429031f..38b773bccbec 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 600aa857d0eb..d9bccd0bb5c0 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 f2739643f7e0..e95eae4b77c1 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 52e6ed7db918..706a3bb8b37e 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 7582436ecc50..261c3813fa2b 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 3e246e952b80..155f9832e015 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 27928b9375d3..57819328fd97 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 3a77d020b259..9fc948f86803 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 adf7b91511ba..23312649c4fc 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 0a47aa13d845..ee627d5583c1 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 39e3b124b9ce..63d54e3651a7 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 ac26d7f39475..5a51f4e91d9e 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 68981d5ea37f..cea24ce46769 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 1d96ed46c0d3..60ebf65c7551 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 1056045316ef..e97563b44c47 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 af7ceabbcfd2..683cb897103c 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 25ec1963612f..57d2c6c80074 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 a203122969e6..fb95d4825595 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 81903fb438b8..73b07fe13f04 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 e981322fcf91..e84a61a41876 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 da22cf90391f..a45754c38f06 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 582bc43ac0ef..e612f4db6eb6 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 a9cf2ddbeaec..052e8ae7aeae 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 9ec029dfb8fb..cf4153f35a1a 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 5988cd5d1fbf..ae42525425d8 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 f0288af96c48..f5727f54df8d 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 50f44f2903be..04054a56f9b4 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 8493bc0881d3..ba1720ed2b4c 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 736da98be8ac..cf628516073b 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 1d209521c205..5ef25d882d6d 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 7f2d95e9c93e..f61356ca749b 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 70a2b06525f6..af20a73238b8 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 75b97c10a18d..993f0a095856 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 2f255637cc8b..b2a8d5e1fcd7 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 da4b3f3935d6..87314a5dddc5 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 d08042c65494..082f0b3fab87 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 d648ca47b312..4a03db8a4db0 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 bc467ad103c2..56209d3a7923 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 f9bca6848c45..bdd12497b527 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 d9bd6a18f579..1008975ba5be 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 eb1eae56bd54..b02d6854ea91 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 342c40dc0773..11270069f753 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 55e7986f2c34..8b1d50055676 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 b793dc402eed..72d37f2d3ef0 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 da3f616a1d5a..fe1b1911529c 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 8055ea5981ac..e9a998002c51 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 a20ca4328f52..0f550c3f58ee 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 679566750d6e..21c2df4580ff 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 5b6ef67b4220..2293255c6b8f 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 e3035825b768..94fabd321f93 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 cf00f550976a..a928f5795c2b 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 e3245ead67e2..73df9f299d01 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 94a6869db231..32c8a1d04342 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 4b1cfd6d6b61..f99c201a3dbf 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 e68977d07691..0b77b3b73fd6 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 0181e6e25a0e..85a51b2b8905 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 ff70bde76a5d..bd33e6a706e8 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 ae79b36f4174..aa9efb5fb629 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 cee9bcdc457c..887d4cc8904d 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 5a51cc671473..e16763bc9dd9 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 aaca2297b566..d023e2c39b23 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 83bcba530b7f..6cb5346616b2 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 5d650645f45b..5abb3c82b912 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 8706c3d5dc94..d48910d270ec 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 b7368eaecb2a..cd74dea83cf1 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 eff1b18f432c..6b95b5e22ee8 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 9452e5705965..3adebe3f7163 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 ba2420bbfe4a..c4f2e4e02f5c 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 d521869c9235..3d4f61bde08a 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 976da275b161..f56021dc8064 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 0d5dee2389ff..7b53cad87684 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 8c85b8eec579..9f052e3b91c7 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 4f9e3f505fcd..a30fe8877b50 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 7328f0dbf7e2..a9d56822f1d1 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 6a06d6e87acd..a5e12dcf8a76 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 8c017d11149d..d35ef8e8616d 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 4a3d9ba11a7d..3a9d84c58173 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 44651c8e8f6c..7f9ca0f0df1f 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 33a2ccd77ae2..3df968e99f78 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 a2f13846033e..c157368e568a 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 46e59bdda5bd..c59f3e5aeb63 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 3ee3145ab891..9db33ada32bd 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 7485e8e6cb0a..20e81175cfc7 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 32621e8802df..9b34146d9a87 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 f60145c8820b..3936a6431043 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 226de9bfcd28..b8c25aa7c113 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 34bef56977f3..daa66fdcda6a 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 2dcafe5d32c5..d62acfdc026b 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 0368a3fda00f..813d1d3c143b 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 282a6f74ab5c..d71fff152b79 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 ff257f81d94b..7a5f1115d08e 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 194338cf9567..6e9a9b45c967 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 0d141b792bd8..6d85256a6c22 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 98e32242cf31..ef87f53c8695 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 bf778b97bbf2..679b9691e61e 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 45da98d5a79b..dbfa7a4da731 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 8c2a83467a3f..5a01ac51d4fb 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 d780bcfaa494..87a20cabceb9 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 4b3f4d0a2d27..d4312ea5c8dc 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 d4c1eaef67ec..e1d85397dcfd 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 2d231ebc3af7..9cb58934dc67 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 07e5e86f7b57..90e83abe3f56 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 a95a704822ce..d4ced2cec1c2 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 ce9c27a6e431..e932b73f9cc5 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 954a7eacfdd6..d4cb239d34eb 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 86ff344cebbb..dc7089729c1b 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 9661a2602b85..5ab2b435cea0 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 2681abb0bab5..bfb69e2a31fa 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 ecc51bc4a145..b06caaaf1a5d 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 5afb7430c080..c6e815dcc037 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 fa4bf5bf652b..337188d748f4 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 c5f8c23004cd..314f58b29b1d 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 dbdd9675c1ec..b11e37d1d3c1 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 f39379dae535..00052287494c 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 00db1f1d0229..210e74b26eda 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 44686eb7980f..424da096230b 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 cdf29509d4c4..befb128bec8f 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 49b4e1274ed9..849345590820 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 c03ef6929104..fe15eb88a96e 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 763af6d1bcb3..886aeb4acb9c 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 7c08f35b0ef7..2f456c39fe86 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 7f76e746f5c9..2268d61631f9 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 ce9f1090bae2..9efdfb53903c 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 e5c0c94b0708..a545cc981b5e 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 2c54c96eed55..e6016be2a7b8 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 2d47607a1341..cea986e57225 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 eecb4d05d298..cfe545067cf1 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 e034a5512388..5184e1375389 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 749567e6470d..266744f8b1c6 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 a99b7f9b50c7..9807d521b6b9 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 70bdf3e1d2a4..036a79714a64 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 277f3376f5fa..bd748400420d 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 58526cfcb784..c98b98e250f4 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 5f73224a6e98..86756c1a473c 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 0515c523d869..b3c527c0be2c 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 7315ea0d6f9a..45d0a0a1f584 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 1d351e5905cf..3a2885214df7 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 34b52d21ce46..2fc912f424f7 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 ec86c3b66f45..4a83163c877e 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 c88fe85208d1..cdc0cb09c6eb 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 bbaff126a414..993768357e4f 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 b5f8807d886f..cf66b6894a77 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 669af3f180e4..4da640066caf 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 be6609af350e..a7fe57549fed 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 61542efe685a..17fe1e7dcc15 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 7953e58d6751..543c7fe2876d 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 7534f9a063d7..f463af8ef53d 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 b74f3f3d449d..ed4660f2aae3 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 b1321f1cb7fc..9218e99db93c 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 f98e25c0f3da..857d506c246d 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 631b209503e1..030b33fe3c7c 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 0af4d55d9680..d908aa2ac4d4 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 db19951a71b6..6a3c8186908a 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 e9b46d9f5ebd..c3f1eb6ef384 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 db8db229aba3..51d730e11b68 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 d3637fb8bed6..5b18d7f373ca 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 4078f1df8539..a9ea9923124d 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 d11225c5d8b7..f05e4be2f83b 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 f44dc3a3a3e2..61ddd4a236ff 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 3e1f94a91e1c..9cc4434b67b4 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 09c014d51f5e..99350021572b 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 fc3d0373b8f0..d52cae864955 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 c0b693e11724..73cf327e32b8 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 a94c9c1b736a..4eda6fbd47be 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 c8a1696c6e97..77e3cb1df29a 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 c3f8af643ce6..95370e0b49af 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 b05184e667dd..e9ffe2f03130 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 6537dd0d3d01..fd7d0bb7211f 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 67c31c2d37b1..37fcdc136835 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 8c45d265c89a..67e7a52952c8 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 0a25f502e5f5..ac574642d2e0 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 9315016d93f4..2de6d22f1140 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 e049a14ce00e..4d6778db4e0e 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 d411196af4f7..28591f2afce9 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 5fb281312c99..e3c9d9725ab5 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 117be3493dc6..22593fdf3f58 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 4433db46f271..a5d6cb34f271 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 6ea063d17333..4053221e05c4 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 99a6973cd634..db824cba87d5 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 c5934ef69546..2bcaa3d285f2 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 75534df2b90d..61bfe4696960 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 105f138986e7..de82aae3910c 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 efacb59da176..154054d41cc0 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 6badc1920224..1711d7c96805 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 1082caba563d..791a77005a3b 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 a118db224787..78ebe724f91a 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 60028815bf69..a1da132f330d 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 8a349b36bd26..28c08f29d6b1 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 59fce20daf2f..193f2b44d520 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 855ccfecd271..d8e2e299cc3d 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 defe3a8f2e99..ff82d3bc4e51 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 fac175684764..e0659ad9f3b4 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 b907e9dafcad..12c1aadcd1aa 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 0d5be3e163c0..9b2b3e71de04 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 6782e0048f25..c46bcc70e044 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 9cdb1ad35198..f3ec6dbfc9dc 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 dead988e9575..4ba68c9aff64 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 0ec0b2b52138..7de677ee22bc 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 ac0fe5524825..737cd305930e 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 0f77af78186d..f9630a326f1d 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 3ff3b32d9d71..22f010ec4c3e 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 f5e9a728d672..c5e2c4026a38 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 05d4b8b9d3f1..4416e9755452 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 353e9dcbdce9..86e066de978a 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 5e757e2aa849..4a982e99166c 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 7b97c88317f3..aece86fbbe0d 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 f12378cf3032..48ef7ab3c248 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 dbe78917213c..3f04caed3fac 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 1fc602ec43b1..a303d0358d93 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 c6e0e546c383..01e6f97dabb8 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 31982b16c912..5436ae1d1b35 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 6fa46690b8c7..4c7f7936af2d 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 5ed5fe4ab2ae..3d8e62366886 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 6227f42efcda..77e1a73d16f8 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 6d89a52f260a..6d85c98a7812 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 e7097585e673..75709bc11fb5 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 9806ffb022b8..6e09c8129cfb 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 d5cb8d102de3..f8b4f5713036 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 41354e6727ae..d039685dc681 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 28067ac5a36c..091b5b070e81 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 76ab10e81999..d12a31a2fc54 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 efca7d46c1b9..b168009e3795 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 61f78f841089..93d7bb2c8f02 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 cdca30722e83..3b131821049c 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 a16d74784283..7656ae258707 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 188a7f8e6f0e..df04d99e4f24 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 8bb2a6e791ad..53a6483e8d04 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 a05bc61b64c4..99d0f50ad7d3 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 a9680d57c7cb..410c6ce6f2ec 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 8f7c0f3dccae..d243ef16d977 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 077f75b65f29..3e5a124554c7 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 95e4fc94349c..b40395403aeb 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 68414bf58cc6..d9fb0b41a71a 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 e1f4630ee45f..d79f31baa535 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 f0e9e5cb93e7..4d9d4959d554 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 beffd54143bc..e8ca2fd5813c 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 a7712775982f..248343a351df 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 65492aa7585f..23e219273f3b 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 fa284ababb30..6ce05e3d63e6 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 512d386b6405..c1419ca49650 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 d72e55038e66..404db98de864 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 b9ff782addb4..01570631a2a2 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 955757efcbe7..1b155a8b6e7b 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 b0ff972c911a..d8a2417a9d15 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 ccfe578def9f..4a077a982c7b 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 42c3a7b6d728..aff211f2f6eb 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 3987d3c54b98..bde349638e90 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 5f5600a01ff1..8ff8aee18386 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 82c02e3510df..1fecd3160d80 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 69133bbe0dae..569076627de4 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 50d1bf9cf375..5df1d5d08087 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 14cab6e14a7a..a836673a9399 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 64fd98b7376d..2aa56c3989e4 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 89e28bce59af..a051e2c10c87 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 039abe6beb00..6528e315a1b5 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 ac35e1b60000..a3430f0bdd55 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 77b81491c400..f1ccee9137b0 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 025df70eb367..f9b911d0b9b1 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 35eb9328d611..def21b0f7161 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 60ba714a4153..898be0cd17f9 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 bc409ccf2725..0036999c9372 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 c8e03656f6ca..4bc87d19f13f 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 e6ece1cb23fb..5b5422641521 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 a80b2dcf3538..7aa44883522b 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 7d341ebe9700..15b32d1e425d 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 1f6256226e35..4ebb640ecc5e 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 6ecfd6ff1760..4e3cb0929378 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 d0bb5d467917..84c27065c2c0 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 d8619e9efe18..322c60c43895 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 c849e136aa60..8ca096cb12ac 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 0734a39230ef..40405ba39a55 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 49243fd39974..8b752cf09878 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 b4535e40af95..2b3dfa6550f8 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 848a98786da1..8e42408bd422 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 7cba0a09ddaa..ecb11266af28 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 d476f9ff2ee8..88a0c4ce2ceb 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 aff93582af5d..58ec9d6551cc 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 2350d43de105..27bfa7c42d5b 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 3cb70173cceb..0e4c86a0ab27 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 fffa93e8c8ec..ec1a5625b567 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 378aff7d1f21..8fb9f9e581f5 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 6355f398a2b4..3b9ab82461b5 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 63c4bff8b0e1..d12db4236b6c 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 a41a3cc52763..a38a57898695 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 295103043524..8e3f6b78d971 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 1e639d735a4b..15cd62f6c9c9 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 fab05607846f..4583ac0284a5 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 1a132b2ea927..e2f3231fe2b5 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 26ced4d1a5bc..46da7e00b0d8 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 2e161e34235f..4273c038ec60 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 ec9bce64fad1..f8682337882d 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 e8b238312834..a5b399ce8b4b 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 9c30bbabd687..02f0416d1602 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 6b07be245a0e..4dc57e21c2c2 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 f9d153b42868..42c70efaeadf 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 b31cfbff23fe..ef8f81af0909 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 bbe05d4a2527..5e7c21f0024a 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 fe61ccddfdb1..ab954e4a8e90 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 9d2aa00e9675..c1de9ea504e7 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 1c8df6de9e05..fe94ee0af7f5 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 08e4d4cd973e..85f9da6e27c3 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 1929891a40e4..e1256ffa9480 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 add2697c9277..36ed49ccf4ca 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 2fe46145c21f..dc81802b7421 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 cddbf5245b70..5d90d370f3f6 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 297ccdef91b5..a4b5eebbc05e 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 e9113076fd98..24faf947ff8a 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 a425564040bf..fbabaac2084a 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 f9ac17fc9b4d..254c00f36d13 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 b41f22e200df..41a75c47947e 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 9570597c3e9b..d9c9e4c228a1 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 f4629aca4112..920b832c0956 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 f09c1ab3e7d2..e8547871c28d 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 c956df64c6f3..662d36233ad6 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 c87e12edec90..77f6b23c3abe 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 6fbbab5c4b4e..777f86a835eb 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 ee9c20d5ebd3..5d4a21d36a7f 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 96b6434898f8..559be3226670 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 28df75e10123..9b4a6e45a995 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 f267be5b9896..727e6df1ea0a 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 09055f5d7f3b..62ca1f27ca4c 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 88e4d4c1be58..71e3224f468d 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 7e1741865ab4..e4a0e00ad88f 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 8cc0ff1c278d..3c2a8056d8f7 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 7b299c2ff803..7d03e51344df 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 17d0a039be0c..4e3ba82d4ae2 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 19e4a739fc3e..a8c940abd3e8 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 657bacbd5572..0cd3926c67f1 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 6a7ae24cbc9b..33aeb39fe6b8 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 6f30bb21ec4b..9e8a910be999 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 6a3fc5ba8863..4b10eee760aa 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 f5ff7d0602cf..1e3de882af4d 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 38cf6e1b21a4..bb19600ca301 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 8fb6ca45ea6b..f68abecc51bc 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 71d0aae316f4..e3907932d4fb 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 75cfa30d32f8..e567185ac5c4 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 52c01d33a702..03b47392a208 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 71268e9878cc..81bdf4de0819 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 22923df27d33..9e8c8f237801 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 4814b0bf37f7..40d77d8e5e74 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 17c61b5d9cd4..81f07ac80e6e 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 30fa435404f1..da8f829a3aaf 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 330bf90eeb81..d236b84e1595 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 ecb1cc74247e..b187af9530ad 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 a507a45b3ac4..ebf8805aa2fb 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 c3bc0eaf5365..e141b5739f1b 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 4411616a2e0f..28a27eb20b5a 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 20e45a1b5776..b1a8a084260c 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 bbdc27958f36..103c5fc454e8 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 28b4e005a9af..ce9c971cc603 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 10d61bf5b99d..7f2bf38e978a 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 e5129998ea4a..f8e2af85a26d 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 b970ae51c6c4..adf2587cca7e 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 0f0a01c4be6d..8ec3076cba64 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 15855df52b15..9744b2e79e15 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 e046a434e860..ae5a925fe989 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 b6420fc0e1cb..96087d39dca6 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 5bf25b780f7d..f99fa307c80d 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 94554a75bea9..035f0132dc42 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 37a591dea8bd..c082208b15d3 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 19ee4a225eaa..b8bb4174dbff 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 6157dd6f6e75..3923ffc2903e 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 1e3463c6ab4a..5686edd5f79b 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 1b7cb3d2615e..46cbdfcc602a 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 63325ed8e7f8..304680cfdb63 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 3cd6f0e7b584..dc3faa0e2bc5 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 ad3083f9f556..d736fbcbb661 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 c56e5a08086e..42998c2f1004 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 18b5dc8aa760..40abe7da6851 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 0fab5473793b..3644648d2544 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 37c742d429fa..8dee3d2286db 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 59805d55bbe4..1b909945cc79 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 8de8bb77951b..dad443e5cbe6 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 7de7f556f826..2b27c541786e 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 772b10d14124..1f51192767f1 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 9f149cb00aeb..ace061fb3157 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 800d3f850c81..0e1a2c061ed6 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 f208967693be..c7ae9a473b45 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 42b2a1fb1ca2..f7afa848c93d 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 a1f30437c941..ef91865d4278 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 a83fe883b4c5..b66586fc434d 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 18248e683ff1..918e6a012871 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 6c173da54593..b2c4c2dfb94d 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 f1fe77c13cf5..f36258cf4ac5 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 78e5f9fd5c74..d221720a54e6 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 95797530b02e..085b3e2981c2 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 4ccd3beef263..0c90b7c1b009 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 b8fbbd5ca0c0..407efd85906e 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 97064f5b24ba..c07a86e210f8 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 1e9b9b49546f..00bce07eec62 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 702f850168ec..455715de16e1 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 d8f1b71bf850..7da1c9b4dc7e 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 56ff14a80bee..96e575d88166 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 90268e135a56..ba8bd33b9a18 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 b33252816a75..6d505fa9aad0 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 34c6fe651ea8..753f67b7a42b 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 754c45156665..baa4e7b62d56 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 d8dd93d84f00..33f0b7ebc46d 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 875e2780b57f..267fa4134273 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 e5d5d8d32061..e8ef13f33d92 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 46901f54ec5d..553311912361 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 542bb6bfa7aa..62c2d9d87046 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 f126364e8a42..421dfb7deb71 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 b73ef52d35bf..85ba326c6318 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 6f0864af74db..60bcf7e32c9a 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 28ec7cb111fa..02ad2bd735bb 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 d30521b67495..ceb1d60d456b 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 76c69ed7c9d8..28b5611f57d9 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 4047f1eb0fac..6a7039f62e66 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 1edf0cbbce10..6fda2c825751 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 492ebc71aef6..706f8198a817 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 24decd9afa19..768010419a96 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 bfbcdec416a2..f70e1067bafd 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 69322fc49a16..0633427343a2 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 61bd543b656b..9d446b90ea5d 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 eca7abdac415..93298aec6a9a 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 a71ad24ba291..b9ba0b3b3992 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 01424ddd0c44..1f1dddeff04f 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 4834cb6a516a..045db06166c3 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 ad0c1e2fcfbe..09a561ea1a03 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 87680c950e0f..f0c3cf700298 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 71d58d2acaab..ceaffdb4e01c 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 9fd6b74ce95c..91ab7abf086a 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 e86f4f868d5f..7386e92edec7 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 0b03ed3a5988..90db9b88742f 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 bf018c164f1f..776e66f4d8a8 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 6300aeb98f20..225bef962e50 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 8dcec5efe355..926bdd59ffd9 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 c87679a2ca38..cc8c5b4f7d95 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 2c757b567d7f..c24164fe040f 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 730b790a3667..700f9feb56a8 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 5b47dc5d5387..9c12695756e0 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 d962017c012b..761ad0a7cebb 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 4b81b4b5af21..386b4546139e 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 7db99055d2fb..641b48e3786c 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 934b041f4ecb..a372e2dedf88 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 323669c2b2b7..945a8df97218 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 04bdaf188992..1b570b570604 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 34cdc011e7fa..80c5e3244e52 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 c56cbdf8ae4d..8e135dfeb62b 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 0cc956cef1b6..6e9405402584 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 cbaed270eb5c..f6e08f215ee9 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 acb61946aa83..5c2c4763acfe 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 2045caf320a2..67d5c817758d 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 08abc616abe4..a8a261ed96e0 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 9d1faaabda1b..60d25cb54aec 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 0cc925134863..1c3cf5a6d00c 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 916c1237e7a3..22ced6e9ab53 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 39fd441607e0..edad9300cd31 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 0a11513f0c2c..c4fa5da88a80 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 93061619e7ee..e7a8ee75a7be 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 d022bd5d31c2..36cad729a7a0 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 b93aba283bc4..a11943919866 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 542f18bbf317..aeb72fe21a74 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 b72ef3d5d389..6448d5d77f1b 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 1fa49980c084..aa589ed7ce8d 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 e26cdaa55bbd..5b2dcedc1f1c 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 8a53af7427a1..e8ad7276cecb 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 3c4924a31d59..fe9a3741d5a5 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 848408a99795..b7074041b850 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 7bc1b8942bc6..578dd90f64bd 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 cd51b2320d9f..051c5d7c8f8c 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 d85bcd411322..de88f9f08fc0 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 ec6cc3c8814d..768305b1e0f4 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 250b5ecb90d0..6a6ab8637a89 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 ace968013faa..936751c45292 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 fd670cdfc004..1eba2261da22 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 98637a0d319d..700c11504fdc 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 7d1c8c944b6a..a6b5954b1823 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 d1870fc82726..02e614bb5c4e 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 97c9a7791ba2..936a950c8597 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 c783be5357cf..c3d1f4041db8 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 dfa3775ac5f5..4870c89cdc5f 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 1d724b5af202..c7aec0d3185e 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 030dd30f0732..4e9b661343b9 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 537bd774d2e3..ed99dfdede0c 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 57963dbc18f5..5f5e04abd67c 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 3d2ed3d94ebb..10abe2c495a3 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 2da78700826f..be7e3e3f1b2c 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 90e4a452f9da..1239d7e458d3 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 8a6a1b783eb1..d7901f8ec8c0 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 c9acfc2ced7b..408818ef95cb 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 a3edc9569f5d..d6ae7d3eab3b 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 b5f753f9ee24..86f20b9e04ff 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 6ed5020f40a6..31f41632a082 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 d56c3fe2c80a..732ba26c0037 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 419fdadd7338..ffd1fa9a74f7 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 2278e50b504c..4122066ba31e 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 0c3719986d46..26b7f84b88a9 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 25d333a99c1e..c2aac0e3aa0b 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 a5b4caf0eeb7..d1a56d2c7bc4 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 5bde197f5d02..3c4797546846 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 c2b7d83545c5..11928d073676 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 3654c9794feb..c0eace6682ea 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 d1012e11ef86..acf303de1e8f 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 3e758e0534f3..3705249d5f84 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 3886fadb89ba..ec81d65bea61 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 cab7d635d467..9abd03735888 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 266fa4e4d904..d3ee2701644a 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 0feaec104bb7..d246a780b3f0 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 0fdb46e0ea51..5ecc1acfdf83 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 d9bcd97c04b0..c0c254451887 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 71822e9247e3..76b39d8d883b 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 ef7ec4a01f48..13bed16ead1d 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 d4f039f8ffd2..40a9043a6713 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 f6d31d7faf52..753ff1b4656b 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 c014ff12c1e9..0d755e9629aa 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 52a3b2d8a650..56a80fc6d1af 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 a2560beba6fc..03d5de3454e2 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 66cbe14fe068..5796f424d2b4 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 2b1d9cc364ce..18a70cf200ff 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 6b60d40f4e18..7b715ec8b70b 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 3e236b823b50..c28686d0f026 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 1773c8205018..43b5ce81c960 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 8935a7d231ec..80ccc45653b5 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 2bc41995b203..2c55ad481c02 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 dbae52ee91f7..376a9f43ffc8 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 0efdfb73954a..98c7d808a040 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 16c296e2b98d..ca55746a9d04 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 7cd412ccf904..766df56c780c 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 cda8504eae2a..86d8e90b0a91 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 53f185943e13..a3e9ff1e12fa 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 7f7a73f20a5c..031337ad193c 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 6ef4ca1fde0c..edc045a8466d 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 697d9dd2be2c..ec17821a2ccf 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 4e567324cd12..0069af963578 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 7f4b42ecc10c..32448ecae50b 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 32ac654ed48b..de3894ac5c26 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 781a0d1b8595..551abe014beb 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 34035faccc31..926ea58986f5 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 b2d9029ecd43..06fb0ba0c58f 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 5dc93040820d..a7dfb5c029c7 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 6a1058e60fbe..ae48c3498c87 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 9d4b7ccaecf2..c60ae7a7f4e9 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 1ee2bb8c7a2d..2f12d103cf7f 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 f6d6d4dbe09a..79eed5e93816 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 f1b3e35313fb..ca0a46637f1a 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 a510f245fb9b..5cb3791cee3a 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 40d225dd02e2..518c9d0640f0 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 9e97bbc1dfae..0845631fb23e 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 0fd727d34efd..71214191500d 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 2859a14b624c..1870a38c7253 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 a55e3dfef7c6..a5710edca345 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 7765ba61992c..8e48757e3bb4 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 87a29a5f8d89..1877e45e9ea2 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 249a624f38f0..fe1dc237696c 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 33483d6658c6..cea418c2216a 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 9cd64738d2e1..9ad291b0a888 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 7eda6a546629..0dc144c519b4 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 9cb535c3651d..32e7ce1d08a1 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 c8414d6c5d82..c66f8b299c32 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 20f42fcbd2c9..175fb63a63c0 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 b07d01967046..a3f5b6513d4f 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 66ae6c679308..4968de59a846 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 c7548d31b10f..3cf280b7f685 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 ad811817e516..34b6cb019f60 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 dd9ecf8d1ca5..3c3ab2227cad 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 0333edb3efb9..84c411dd61fa 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 a4108517a6f2..d3c67750c270 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 a053be32d2f4..436e7771de49 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 77eb27033137..db387d499b7c 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 96cf121f5ebd..0b919290e429 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 d1f3c9b7acc9..85a8e8937c94 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 12210701c294..d037077b352e 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 789a9c644d68..6fd5c8a4e4ed 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 cb97189fbd43..fd9b92870713 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 50c04073ef47..a5d20f088843 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 40fca511080c..3f9083ec199b 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 8ba1e094af4a..ee74571a8362 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 9a05975ce1c5..5cc59b7f9ba8 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 bdef0c438953..7ebd31eb778a 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 c619c48bbd5b..d89fd000a048 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 befc09a1068a..60e0e39ff96b 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 4105bdc4594b..c677b823e2ae 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 fc49517e946b..b79ab1414a79 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 48eb48b2c7c2..9bd389bfe6b2 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 baa5026db4d4..64ffe58da42a 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 7d4618b3954f..50ef68ce0135 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 a9eabde0b9be..10a9106439a0 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 c10a199caa84..c12242934596 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 ad30251c377a..b09e45ddbae9 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 f571e1685408..19918b4efc4a 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 32ec601fda54..0a9daaa8696a 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 787d3ef9577a..6a48c07ebe12 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 4eae10ac143d..97da4a0158b2 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 0be9b32f5db5..3343dc6cf494 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 8e91f757d832..750bec767f02 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 30d4339132cb..2d90419b8e81 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 5311151e99ca..c5930c124f31 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 1555d0c0e78c..197225a945ec 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 ddf1c5e0a662..d607c74feb34 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 4b1ea0dff7b9..7f4debff81bf 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 cfbdfad08945..0704449a61ff 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 dd7cd490c449..e38f53bdac20 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 19a8be1eb62b..87626a3b99f6 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 2d7f78f3914b..6c85c0b85f52 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 1557b0fc471c..f5a9e3a771e0 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 41900579d2ce..91c56743b63d 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 fb02ff839a96..4e7ecc32a98c 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 40e9cc48794e..b1a460acd00b 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 bcf432b59e9b..65df05bc547c 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 920aa500cdcf..11a30a22b053 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 a21158918415..73855c980e40 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 7051f9471d43..83cb20f28805 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 5934d1cef341..0e57ba46f55e 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 18d38317d6bf..1791e9e475d3 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 c0e57acaeb37..da4962f7fbbf 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 60ffba3215fd..da99f5337c38 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 5563d023e85d..38ceb67bd86d 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 57278c3dd717..1902ed0c7180 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 fcf14346384e..8652bbd197ff 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 31bf48beb1a2..617c6d351f5c 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 48be212a38a7..89bac1779aaa 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 9addec32f884..109f87c79b0a 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 b90235982ea3..d3267a9a0c11 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 da78bb9790a4..69f9de351694 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 9ee770b6ec11..ad0b120aaa47 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 668488f8fcc6..b8dde266d167 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 b6445b24511a..5c9c1cb66044 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 5ef33d154804..e062e083599d 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 4fb444ea01d9..cd53511d0eb3 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 0ad4c3189a7a..e67b674d8823 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 0ae71209c134..0523b04151f7 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 b62fc7863f98..14fbbfd75491 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 2c9a0e82fb69..8af1a49206d1 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 6630060e0200..298ff4b4550c 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 5ba1507ee013..9bdd9396150c 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 aa44566c90a3..4b38b80ade19 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 a1826326fe94..149c2597365b 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 a9cf6f7817e0..2d49579645a0 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 a848cb06f38a..7b6394e753cc 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 f7072bf80a84..0d9d0e43553e 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 af40de9bbcb4..a3507a4c458f 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 fed7cc6820f4..8f2da1e85378 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 df3931978068..134d3d4d41bd 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 e86c9fa8a54b..277a136430ed 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 22649156693f..6fd2213a0029 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 1db5fa857801..c0d3fdd93b74 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 55b05693692d..cea0bc8a20a7 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 391f9a16315c..82fbac7fe98e 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 063a5181321b..b2971b0bbd40 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 bfc3ec35e0dd..d65d22ad33d6 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 0ad7ed66c3ca..3fe6c371a210 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 c0e936d5caa2..6374b0205bc4 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 1a48b62705a6..066c9ec553b5 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 e4ea396d6f05..f5dcdb8909b7 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 1b88561fdf2a..d225f64ac5da 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 e12c676bac53..43f7788bce03 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 d6d14b3b840a..fef6f8ac6583 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 d6a2cf172cd2..8e3e963a33c3 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 eae3f6443775..d7cdf754a35b 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 124d78fd69f3..91338a911e32 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 a684ad51bf18..580b8dbf1979 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 050bf0b12e46..a877b6c3dd66 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 5a0e50ca3b2b..39f4867059b4 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 fc5d4c669c81..b609b8878870 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 0c1c3da4ffef..bfe12980376e 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 c0b7b93d91c5..2bbfd2e3b73a 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 e793616d8460..db4e6b4de842 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 6bb21bf72dfc..747461a42260 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 db701fb5fc3c..8d3edea5b42b 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 c7e2827648aa..2e23449da65b 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 3bae85e0bfee..2a89ce65d0ca 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 f73ed3530bf9..2a2dbbf2ab43 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 4e35f3ffdd88..7491af7868d5 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 b9fc069039c9..20899e72fa94 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 66717cf019b4..d24b723dc8b6 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 eb841258ec0d..5735b6f79a46 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 78d6d43c52ee..a4917845a8b5 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 ec40acfdef39..50afd4d46ab4 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 71088acc1ece..788ad818248d 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 4c965b58558b..35333065012a 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 52c7bc8c801a..afe7e78ccc3d 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 c27756dca777..f2fb06184e2e 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 94a3fa1c34f5..e3ee68aec885 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 116e9c3f2994..3398cb9bfd94 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 6cb4ed452ac8..24cd2d3e34db 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 641c623a34a9..34776d129ab7 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 b66f353b125a..c3abc2edb1ef 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 1dfe0f76cf0d..d09e32aba3f0 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 a9f5999c030f..0322667a0f55 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 ea0cf951d709..0ca406586232 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 94a569b258c6..3725ff0f0402 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 32da7b5b7fbf..3c28bf88987a 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 21679b7f53d3..b908bf038bef 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 6a8fc60cf344..0eb5c445165a 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 f184a2f00fbb..8191f4ff367a 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 21b6a85e1754..3d79a1501d4f 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 e2b4f27ccd26..530386e2f096 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 f2342b6f89fd..29a1cb042a1a 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 720893d635fe..d0e5313adc7e 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 d3ee95ecc810..4c2ec23871e3 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 b0750df0b394..1b9f0b0b0d33 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 3023de8fbe11..059fb0df7f8b 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 91b88403271e..bb48d097ad6e 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 47950e9301e1..5c402c58d1b3 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 1c19f1706b84..eb437a81c872 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 272f6b85310c..fc57932f3bcb 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 ec65e11d071d..8aae519e766e 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 2dc952ce4670..b70aa085c1ca 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 41727511807f..483cc06541db 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 667aba36fdb3..e3239328a3fe 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 452186470dfd..bd4262701a1b 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 2f86341e110a..ab5e6da5ceff 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 9b9d299f4c4f..d67cf6e11f7a 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 37b785370353..b3fd646a9f4e 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 ae480442f399..f9d75ed234c8 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 58bc7a00b837..d2244d34e01f 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 f79260b68cfa..1f728b5234f1 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 4f112b27893b..99cea34e7216 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 eb517d8436b3..bc0361068bd0 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 03b9ef9d3b48..cf06ae7c6ee0 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 55469e7d7236..533bc7ca304c 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 e98178e2bcfb..41cba5c3e637 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 b4048defdd3d..beb7ebf02ec3 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 019730dbcdc1..1e59b8273735 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 d88df3b7aad3..9f4480f2867d 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 09ec6c4f3609..bd7cd9ae2546 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 7e41ec7de22b..b7cc17993879 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 cb7ef719f0a2..21e569d86c6a 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 9a0eddf7d0d9..8fe149bbbf72 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 fad31289c6bd..f6b60194f6cc 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 b0b547a153c8..83f38cfccdd6 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 8901dc1a7cac..cc9cc57e4ae4 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 9c3b341da863..f587c946a3c8 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 245d2f38500e..5a73856c594f 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 c34f7b607b73..b05a20a6c388 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 35107f11410f..b4417abd8c78 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 7c9de9c8e924..ff4acbf14575 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 55d7a5fcbd6b..67004b5be23e 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 fc3c7bc57973..2ccfed123711 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 94fbf8d4cf57..77bcb72bf65c 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 1c814f75a0fd..6a4dca784b0c 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 1457fe0be842..8f4ff4592c64 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 2f60a3c5dfcd..b13b9132fce4 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 3ccfcc4e8620..60d847917ff4 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 dea67eed3754..cae5558a6bcf 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 4069cf99b5f0..63034452514b 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 7214701b99ae..76ccf8076261 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 f5c2bdceee95..db69db2deffe 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 e0115f1ef0c0..7cd78dfb5648 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 babc381d40f9..1a12df4eb044 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 2c1d8ec548db..ed4e55b0719e 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 dd3217971ba3..0ac66bb9cb6f 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 2198e33621ba..b7e91d60e5ea 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 10415fe6e9a8..3149a6f0eff2 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 26056237bdc6..2a37427daa28 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 5df63baeac47..b70e73c825ac 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 a6b294d909b9..d5b547c6bb83 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 be0274165045..e2b3f124e7c5 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 5b189700fe1f..881cad27861d 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 a8dd3932a95b..31923f9dc20c 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 165ac44d62fa..9fe60d4fb9e2 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 931d6a11dc9b..4c3a05064349 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 350b58d9eb39..d6d7d0f13c08 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 8f25817cdd2f..7b04612c5e18 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 3d5b3ed4fd73..ef05f7591a08 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 770924c6c9c4..0f8b7a034214 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 7e02a56cd64c..aa1ac1e35fa1 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 a9fc598b56a0..bb2ef94332ff 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 263761832e44..33cc07e8e539 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 4044eb50453c..1a875e0f0404 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 ad6cd31815d3..224e146d6986 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 eccc3434f833..1ccd7c984c22 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 bb67015da78e..0032d4b1831a 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 6219237d4a11..4508ca785be4 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 c1ccde3088cf..3c66d0d152ae 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 2f4116a5c608..cf9f7286a6fb 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 4f664fb90770..7d3ac2d97e30 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 37aabc6b6025..af256d52523b 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 a253ebaa19e3..1e4b7fda96a7 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 99111b995df4..6b099204b371 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 89233b69480c..503fadbe0644 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 af818e7e93dd..6d54c0a77d5c 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 01c017dd9646..eedc18bed2b2 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 96ed0b73cf44..8f989a1f422a 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 bc523416011f..4771f97bfb16 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 ef5694afc2fd..2916796a16a7 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 e9a6169d28cb..4b12632d8c0d 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 3ba8e69f8506..3a6ffe405043 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 6a5dcdf8bada..03484437fb43 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 b58dcede9291..86610739417b 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 a457c947044a..d9acb7d0317c 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 ce05d153b933..1a9d93a0213e 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 23b1188f3415..e6091008903f 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 77edb06bbb2d..213ce6af79cb 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 7a2e6859b97d..046487be7c37 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 69d64604183c..e22e0186037f 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 904963750a61..645a0562904b 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 0b6ebb713f60..bb3a2a1575ed 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 d60c22ee0758..dfe1f51f0b31 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 bbdca93e3b35..2958dc5d90b2 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 ed2e99a2a804..e43c9d6286e2 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 b26dbe4fb1de..3a950ee7ddb1 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 7b7d78c9e261..9879dc837b5c 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 10127bf3c17b..1f671d66476e 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 2bb302e23e64..077200856202 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 2c0be575fd8e..0915d6f3dc4f 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 454b8f304129..f7f2cb77a71e 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 7fd76f67298c..91a52712d7a1 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 184a300c4b0d..028a7301a4c4 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 99df66438e51..aa66825283d3 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 0412381e8d00..defd4f38322a 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 91b7e4a59ea6..8c12edfb3a83 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 66a82dcebd15..b21ed16d5f88 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 d9288e3448bd..498479953351 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 0f659305bff5..9052723aea14 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 0c0ae7ec7082..a6a1fd6d3757 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 1b0903eb985b..f899ec1bc5a2 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 8ad55d96f42e..7c72a2a09fa7 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 cc8dd31cfac6..52b3ede28e54 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 595d9f5c2b7a..0b6c9f696c46 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 70057c5b86f8..85c715926dce 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 40e47e1b184b..1a6af2299f1b 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 6b5e809769f3..1726eabcb4ca 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 9515115b5c48..09a6a7fe7b6e 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 ed72d037026c..73adf9ec566a 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 6ad1a8299c9d..6ea6fba2772d 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 ccb7bddd4744..1c3c5957eb35 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 b3f9fbef2812..15d084f5149f 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 56e58034abd5..c720cfceee1d 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 7933ef65e6db..a12afb6cdfc6 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 d9d5f2b1294f..93aa9f28df58 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 cf3d81aff5c6..25778afa3472 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 414609f4298d..595100bbd264 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 91ccf3e99130..815dd68368da 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 0c8eac25a5e4..50514a8a4efc 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 0945d1ad297c..ae8ed28abaa8 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 d27d998719f8..2b84ed17201d 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 d89666e503ac..60383ec0c461 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 55ba2727ad99..21c78b0fedd3 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 22be8db07672..946424283e9c 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 1288e9451f78..dcfd55b29df3 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 12208bd1e600..6e81e1a6eb0d 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 b7ff1c1f8a7e..6f0ca98fdea7 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 bbc3ae5ef594..c7c081e28826 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 43650449cded..f5ecbea6ca0a 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 b290288c7041..4de3733e58b6 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 407fff9e02b6..248915229491 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 f1a7ec886e00..7357db9661d8 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 5469a35fe5db..a559edda2d66 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 bccd007d41ab..45e1b50ac0df 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 a14f9a510137..24bc87751774 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 8a9986457572..313f21e29e4f 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 17203a806252..4f0469ec6722 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 618d9e7660b7..a5a2bb713634 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 e210095c2994..ea8e7d96f1d8 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 00f8af736f41..694f4a924c69 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 9a362a9940f7..72291dd212bc 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 92bbf28e1811..1941323332da 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 04fa30bff594..9e23b6a3d23f 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 e9d12e27b800..d5fc36618a84 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 d26f91434e22..323d7d257965 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 40327a94e66a..a3147c82e0b0 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 2509ee6a8bd1..2e826764d11c 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 b63547dd81b6..d73c42ba5bc5 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 ee40582dcc68..7b3a2580ec46 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 158b574b4985..6d768ac0c628 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 bed8f74d0db4..413b271de08c 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 6e1ade43eb3b..e9ea16256aaa 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 cbad79078bfc..71c6a1bd908c 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 5c69a49037bc..4e2687bd3985 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 3c1889d685ab..3aa1c0425275 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 5a44f94c562f..0c349e41c5a6 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 be4ddbea9ec9..664ddf66c983 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 da6dfafb4c3d..8673c09a6ab3 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 83c31a72e1a7..992aa9c155a5 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 7ab5234306a7..8bea2591a382 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 65cfaa4b56dd..fe2ffc1188eb 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 1b1d08fba0af..de9ee7f84a0a 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 d61525e2fdc3..0d6eed94d523 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 55639af6cfe1..22e374802581 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 6f86c37bd559..ae865453e0be 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 224c69e6b2a2..37173d0d41c1 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 99275efe220c..1b2543f5322f 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 ce7520ab1bef..64024e8d8513 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 b22e8c8d9c02..d649be245092 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 d65f3f8ebaff..2f067366a048 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 1d490335edf3..9eea52df0ff8 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 65fe4b531fc3..d39003264b66 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 8593da7b3f66..4d9cce13baa2 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 642d9a6871e6..de1a9883618f 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 343fdd532a06..b70467d06d49 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 c4d86798ec43..75b512bdced0 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 9f385c71af5c..6571b6aed3b4 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 92b9dd436818..882b41dc3861 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 ecd79cea9f82..f61b2ddb1385 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 d88bde4505ee..9e013b4354a2 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 0e8b2a139ac1..1d39b8f5264a 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 a295998b8b24..1fc8a1f7f50a 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 8650fa15760f..577fd9f2828c 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 b4c8e99e8908..a2d0d20c735e 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 17fee433ec49..097e855e75be 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 5d9a2e7b24e9..4095744075e4 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 c03d6eb9d619..b3dbc14c2555 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 f64b7d3b85ad..90a0b07b9c53 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 c90703ba8c01..4530a9ed08c0 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 8757a9a557c7..ee1ff5645372 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 86ccd47ca7e3..c4de281e3e09 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 59622dd13653..e527dfa157ce 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 276ab00f411a..030bc77839d9 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 13929bb64ab3..5e07c42522e8 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 18a96c6dcfc3..618587a07b30 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 8e13a0f864a8..6cb631345653 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 0614178c71ce..70d86df19e86 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 730ce76ecaa1..92785240baa5 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 968dff81d29c..46bc9fd81706 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 aa9bc1ff3ea3..e8e4a2556179 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 6372803d28b0..7af6f73333d4 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 f80adb04827e..3ea22366268c 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 1dd8a4f43063..9eff352bf116 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 b49bcb83b391..c0d735c0cc21 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 3a06ea6b8c9f..c7da5dd9ed2b 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 7d549240b0d5..793a6fe3d5d1 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 0a5ce8d13c13..8d22e83bfafe 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 7553b4b3d40e..ccf12c25eab9 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 7e3f09c6fdd2..538723d6c8fc 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 bc008f0b18cf..efa95b8bb666 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 ee6a8744c701..8614528c8250 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 eee6824118a8..580ffe23a055 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 5e0d4b51acbd..c9cc39cc4d0e 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 f94f67312c28..146dd6a3b041 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 f42f00397ebb..a4ba1d721acd 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 26da7ed09c5f..454937a59702 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 1973a443975f..d319c2a0f5f6 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 3bd538a22142..4edc7a6787f9 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 c588dd4472da..73b75a541e5d 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 ed501c6441f6..10560545ec83 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 65b0fa646464..9d661ab9d9e7 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 b24673dfaa6e..2d776eebf269 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 83ab5adf1e2a..3f1346a0ccac 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 a88f4f9b36ec..851b34a0b290 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 14bbc5f1ed1d..78522d0c31a9 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 58c6959aa314..490723924b92 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 bb72432dbf63..7489dc5c48a8 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 e0de0f2e6465..998fdb612a92 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 f9d7f261c67a..ea33e07b3201 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 dcc6f65f5ce0..88440c9333f2 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 a029bb89dc9c..85b5d32e07b2 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 27f90c959d1a..a9673f32aa27 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 0c07a1dbc79b..4d1f5c51d158 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 4e3b99b3d044..b4d133cbadfd 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 181bd6f36396..a8d555eb9a8d 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 c4c9fae35fea..49a87ab9dc06 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 0dceceec30ac..5a02b6d64fb5 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 1780bdb58cfa..d3e3d95c5cef 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 26c1d89f1ed0..19201e8dc8ea 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 ca481bb87132..0428df778cd7 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 3a639a76e227..bfbb305909e5 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 04877780d5e5..9126e437b6f4 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 65dd7d7fb96d..2fc2241c5e83 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 95e0e0982b70..2f9d4a438766 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 8d9a6a31cbcc..b3ac1da130e4 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 1254480f94e1..7385b8308128 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 875dc566bc9b..3c3ba4121570 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 1402df9969f0..d11e68c2f553 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 26ed332c803d..32b72e9eb1ea 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 a9bd49aa42e9..d24abbc13898 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 874dba65c23e..76f019636a88 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 69c5a0905290..4946d0bb47f6 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 36685710f366..744443a6c8ef 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 71a6f9f87d46..39bcf5892888 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 9dde4899811c..b0d05049283c 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 a8f1957917d6..cc64f27bb887 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 f811a1ad5ffd..95302d6dc1ee 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 203525b64085..3be8bdaa1e40 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 86ab996c4c3f..21a367f64b60 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 61c14dc9fdfd..276e8deade59 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 7dbdd51a138d..41d6515ef3ea 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 5455af143a36..b8af953fa1b0 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 d740dc63fa08..4a37ef883fcd 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 54cf3063259d..6e8fe33da0b1 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 76abfb7b3f43..e050eba11920 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 0b0878cfbf07..88a75e275611 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 dc3b55728a1c..af686715f0a1 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 39d25482eaa2..cd4c948f0f3c 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 28ed2babfbd9..2e4973255ef7 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 4def105d7b3e..51dfac7ce939 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 2917e7f7e71d..ce1ecd77f3ea 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 7a3908f601de..a67e3176342c 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 8a1be35e2055..ce97b3227a61 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 95e430f95184..bad07cb19eb4 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 c510f1e81234..9fea9565f270 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 02751127da25..1d7bad6b9605 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 10d3fc3e3148..6afa92d95a4c 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 47d64fdc7c24..3f713db4b3a7 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 dad4af6921e1..9c02e3e52515 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 9d6b542e9d2b..c4a38ca7f162 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 7a3d0fa91bb3..d51454253a4a 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 979c19efd8b6..6e6e49eaca96 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 fa481e13de94..15f9e946874c 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 6054f2b7d8cd..45ebcf17fa55 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 9b19e4362db9..ecb73133ff0f 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 bc75c277af51..0a98e919e84a 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 4520d4297196..8ac591f710e5 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 15ae644f176a..d960d548a77d 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 dfc4f1e66b9e..f1f511c0f4d6 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 8babb4757853..e25e589ba203 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 6c814a52cff9..1ececb67d32f 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 da515011f23f..64da3a365a4e 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 fccce0a3290f..b6434a2fa500 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 7653ae9428ea..951c5a216248 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 452b6e99cc67..8b72022ba122 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 21583888ae56..e4763f68e947 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 c7e204ac1272..0b385bcb79c6 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 2f8028e96994..a6bfe20de4a3 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 27328f6bb288..78864181dbb8 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 8ec101461bd3..de9affea8194 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 70b948d687d4..ec42a9aeed7d 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 4b48f4605601..811423546508 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 6aad6a8412f6..d57bd9e6cdbb 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 6ff397e76586..0dcaab70dbf7 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 fb54cab39b2e..21a5731adedf 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 08a6330b60c1..4a5d9c461660 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 4f301c66e006..348145e2903e 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 a9162d90d0e9..42656d4596b8 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 4afb6823cdf4..7d9968711604 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 499f5623d356..591a7c2f4d62 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 4f2ff020dfc6..f03258f8c9d6 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 e8e0b46e6173..6ad50450a328 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 55eab251af7c..65d038237f0f 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 a031f62e8d5b..8ba11ca674d1 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 2729b2fd27df..b7609ff46d7d 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 eceb0b0fc0fb..a0246a87df0c 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 9874b48ea0e8..85aa174ee2f7 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 46ad8c0a5598..f5285f4cd6cc 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 6b1f8724c98c..b74c5b12262a 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 0f808cfb87cd..f86f09c9a09f 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 4e84ac0183b6..310f4bae66fe 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 29f53567d3ed..3885176fa67a 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 33225ca570ec..3ac3bb19f72f 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 84d58c3b73d4..f55ed85eee68 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 528a7d6c79e6..57f2c2a810f7 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 0b8b3efdb201..de1774712581 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 df87dba31442..bfd64c1b191e 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 5cf1eeb8258e..f359e5923c3e 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 de2a789092e2..a7ba5f76afb9 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 8e1cbc9f7323..e459075639aa 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 040a6945ca30..b30e90228cc0 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 ef66e8ce2d98..207ad7e5db5e 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 5704e84c8b33..2d5dd06436dc 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 4e24a6d990d9..51069741cce4 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 6660b9d20612..a335b65f9c69 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 d11ab7e4f664..e51187ed2bbc 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 5d430504ed9e..ff4e3954c659 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 81e06689e67c..78d22aaa68a6 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 4968d761b24c..11f1c3c73462 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 4e9bd9ff16e9..d08cd8ed62d5 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 0c023d4e3c87..379b1aeea312 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 eb0096e7609b..f9320cc0acea 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 8c8cd9697476..b07577f62881 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 f79b742fb003..0ab3c7f306b0 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 ac10e29ecfe5..4b9c115ab4b0 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 b2c4de6b3003..80b2c33b5227 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 db0ade3c76a3..03b2bcb11fef 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 cd3cf04cfbdc..fa744ef81364 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 ef5d3f962e20..3831105beaba 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 1322b6d08a04..82ad14c21c2e 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 be4ddb8ea154..8f120a0bac04 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 9eadc4e831ce..9d3bfdbadcab 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 11373ec1ecac..f7a1d259575b 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 6b1ec8febf5e..52b5fd4b7436 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 79d1c9bf415e..b6f1bb765a5d 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 81d5ae3ff995..a6839909a696 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 bb9011db7fd1..04bb42a15d64 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 940c00be9949..a05bed05450f 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 560c51b02177..ff1d02cb5377 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 9a0f2b3b5296..e38ae63c46f6 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 5480fd93a10a..622814514c3c 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 4571ad785c4d..b5f249173cbd 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 e50a8ca34391..9218f42fca1d 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 494e904148c8..242d13583e53 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 7f57423b204f..44a3f45f5445 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 cc74b7800709..cd5c9893b9e5 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 09c9396e46ac..270fcd83a48e 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 4500d338ebd8..3241eb02b210 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 b3d151b904c8..3a291461e5e0 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 ef031fd584fa..e10ba9c80972 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 227a59116093..1b7e2c4523cb 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 7473f030e547..df335976654c 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 b428d5c3816b..33295b5d6125 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 37cbb236af92..6791a93e962b 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 0187d3c79c7e..e4142282b22c 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 4713b0be44c9..8ae748859643 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 e19240350fa2..78867fc59a04 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 a94ef76f6079..5eafec2730bf 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 7cdd28d15588..8fb686d9a45f 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 77f8f602ecda..09b9e173e3c3 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 9291a158c648..6fdd24a4cdfa 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 46759e74857e..1ec89ac1b719 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 540d147e7ac6..02feb6443057 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 2d4ffee42159..8213053e6fec 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 1963b6ad3511..6edb9ec38d18 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 ca852b318c07..241bb1823949 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 701dc58db966..f06fcb7df729 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 d11bba8af43b..356e47b4503b 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 18918ecc851b..794866e765ac 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 116cd32a42d9..c4b22354ed2f 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 3ee7a45a1469..3a455bcc2fef 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 50821f3c6dc1..476444f6470c 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 4609a1315ded..f372bd926f9d 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 50e0d43f7e1a..b43311fa3bd2 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 19c3c9aee2d4..960f3d00bbfc 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 40ea03a40043..f8aaaae843a0 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 9c4e352c86dd..102b70c714cf 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 daea55e4b22f..80a57cc0e06b 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 7344afd31cce..0e7c01287b0a 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 f4b1b4405bf8..bca34f98cc12 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 c92e3d3d2f0f..6b5ed92cf128 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 cdd972a8377e..7738f522fe60 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 2db599737be3..6b24fc499ca4 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 faf379030501..bd164a651452 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 6ce7a72015c5..5cc6ef9c3e42 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 01aa7330f18f..4eb8b9853b8a 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 9e76fe4406e6..f44c218273a1 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 88189b58af60..83e873d48402 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 e4371314743b..a8294a3a7ce3 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 f3f862ef8368..c0c5fd9108d9 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 2ef129f89209..753c17b7d2c5 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 d6846405cf77..5de2f1397aa1 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 b5c48f258005..1c2d47710498 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 5acbdb2636ae..294ceea4d0a5 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 10602b3a3943..7e104b5298db 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 2d3247bdd02d..99c86219f3fc 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 fe0985910a76..3a9c8c403efa 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 c83dde49d8fd..5ceadd948ce3 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 f8aa4d4c77a6..161d79fae506 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 73c6cb81e659..3bb009fcaf2b 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 0744bd7bb7cf..b820380a9f0b 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 f2b3969f6beb..4d8db3f096e8 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 293498a26f1e..6aad3b9596b3 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 3f2007a0a9d1..4e63c47ed4aa 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 b596e4870a07..6c61abc30b22 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 bb6aef26861b..d6c306024504 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 25db85ce5b40..d28ec8fda5ba 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 d45ac31691ad..ab5ce011b847 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 2fc63d4b7bcd..7fd967480feb 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 ec4c60960b09..fcb2a5ac6933 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 d997ea161f6c..04cbfbee74d2 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 247440f91339..26e5f3652fec 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 61a06fe8cc98..b1794496f2cf 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 c597e03cd8af..c615204af35b 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 06d85045c4fa..42c87548b51b 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 3ba35e6d0616..119aca9ca00d 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 fd08eb827be7..7f8c5eb37159 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 ae1adc58fdad..7a3e11725b6b 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 edb1df5a10de..eeb739427fb3 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 e7771333b3f5..1b9c03294ee7 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 d775d7b7a47f..599600ce19aa 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 928965ae6da2..aaa474f019cf 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 be256fb97586..4b1faf3ea851 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 29506f2df976..29fea8f661c4 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 c6a74ecb2943..d9de26adba01 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 7466bc68d8e0..48db216e971c 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 a9f3e1c01f76..20e96fd62f84 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 111eea6e4ad3..b522ba3432dd 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 659d7d447b9e..6e26ff6d0b77 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 8415bdbd2601..e1856f44ae68 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 909f949c3b18..6c5125e6e935 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 e810e7d80bd7..5b2fe482c625 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 5f0e8c05bf32..f204f947027b 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 390f8e7db69a..d5b4d109293a 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 bb9f31319410..b8fcc39111b5 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 7b178668245e..b565d5873dd8 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 e212e4e42426..f09186ce1e56 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 e14e22376ff2..c4c657a0049a 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 8b5141548c2e..77a5f61d60ff 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 023533b52a17..e6ef60a684a7 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 a347ae41c871..b89ee49d4697 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 e8fd4b8ccab9..da233f69adb6 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 3a079a36e985..362270d5ea61 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 df11f1741598..9e98b39c20df 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 22d38fb73c6c..1ac568892563 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 de4418f7cb44..5b0e5a8c5a18 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 eeb58b35b0ba..079725c14aaf 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 dc00bf5cf6c6..19d238db1b78 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 c7d4059b41a3..3fc79de0b7ff 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 ffea1f6700d2..74785e48788a 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 274d68e57f46..84a86d5e5dea 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 1ba622387544..3949e27d8134 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 cf1072462aca..b9cab7d9fb29 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 eb53a2e57a1e..17095330dfb5 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 75f8b37064f9..de60ca8cfdda 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 d854ebddba04..37c0ca3c8300 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 2125a813435a..9dd14933e0b1 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 29015f6f7c7b..76eed2590adb 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 10bcb1c78a5b..2cfe281faf02 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 54cb7a2e1aea..bef110789284 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 997e99db1d18..a540a7a6fe71 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 ea27d094ec5e..740ea7144612 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 34fa40bd7e1a..d6755f562ef0 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 b23137238f07..10dc75e30c4e 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 ee0bbf3b6bd5..58d5834b6ce0 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 7b4af254c12a..5b55d7a30f05 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 7ea99cde8a6f..15d0fe187c52 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 480fd9a3648d..e2ec76a95e7c 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 2ff72fc81e6c..0fc4088aae77 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 a67386b0781c..27f2c181dc4b 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 4e0dc1373306..e0f1bce1beb4 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 1ebd45b27e86..5854a8eff567 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 58a6db707524..d24fd5ad8cd7 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 f9993edb14bc..4063144ce87f 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 0ab5751b9756..265bf03224f8 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 0465c2a876f5..b8f6b0d3b035 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 34a4e35cb539..5675f58b7e7a 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 323a86ee8182..a2725172521d 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 2bd775ef4665..0d61e749bb32 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 1271c4707d46..e07c229819d8 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 408a5ad24abb..e983532e1a44 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 1bd75f74b82c..ec7343bfc72d 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 d4e1a147e41e..7fbb6e9498eb 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 0b7e3d0dd82d..b7dd70cbc98c 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 f388039d7fbe..b1ac037e50da 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 e066832906eb..39ead1400e0c 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 bba2bd803d7d..938499d058fa 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 682373c0027e..ae015465663b 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 f14fb90b9135..95ed54e8b6aa 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 772fbf7cc31b..593586a4b295 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 de0e3d0f00f4..d89ac85a0a35 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 2bb1b6a70720..be530c455bb3 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 202a2734be61..339bbff97244 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 f3ea9cf5ab5e..feed39ba5866 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 636ad7f5999b..2f2992382434 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 2bea8c1eb765..850832e6c90e 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 37f453bee141..c3381e3c9e74 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 5d327fd0f38f..ad0dba0651c6 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 d36da2bf2cc0..4b4b3ec6b3c8 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 f58ad17ce068..b3d59bc74e79 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 b64c8ca18562..5f257ca9e239 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 8a279fc8fe66..d22b25b4c459 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 998c44c91ab7..e62db084df1e 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 4c64d1dc0131..57149eaceec0 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 a07282da8f16..3e347908b82d 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 d40fe3282bac..88ba455fcd73 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 9bcef747db4c..fceb85b2592d 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 a9bc7d1c1252..3172ad87bb4d 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 501c26518f7d..9b5b88a93da4 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 85c635858dc8..477b37f81a20 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 918b882cc9a4..1f84b238de18 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 935707f7f7f1..37c996f8abd8 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 c81593790981..7805694521f7 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 538076434dcb..ba50240e0afe 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 850a29a0aa4f..73fab2ae819d 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 a3a7875dff73..19a97719d09b 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 35cbb71e1a17..d79862f3f352 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 b46321ab713a..5758570f5449 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 92872c419b89..095571b3b8a7 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 632a23cc0e5f..5867a63b7e56 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 2721c2be5910..059d8027250c 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 5999c95ec097..830605a0920f 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 a655f27fdb18..d430ba0dd1c3 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 33d26171c51d..5c1e2a21f8b9 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 58fa01a928f5..17d22928e613 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 fe96007ad5ae..b57362dde843 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 b8a6b58b0177..12627c6b4f98 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 ca161ebdd210..d58f082daf45 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 3ac544434e23..d91f1309b1e5 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 a75cd8756d42..0210f9a68835 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 6c799ffbb523..5c69556d57ea 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 d3a123213fc5..38229a0c34aa 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 4ecf74daa3cc..4a34734e3dd3 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 7994c411936e..1ba020ce4be8 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 38e8058e881f..fd4246e8e255 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 d8f4157a7638..aaa03af2e1e9 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 26b560abae4c..a0426a807391 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 aba1bbf2f807..af54f48cbef4 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 90d739474b6c..50349015dc21 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 8144b15b4912..32e095fd682e 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 de43883afffd..83477c75de19 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 451d6a1051d1..25cd9c9576d6 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 68457cefcc05..4a15a1341098 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 11ca2e951fd0..32126f32ab57 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 b3d97d2a67c8..13dc942c4310 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 d7fc321e014d..0797a27f8b4f 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 546c5c22f9f7..72efdafb9b2e 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 45c52cc0bb7f..c1d7144b0046 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 93b052a255ec..c6993da7c738 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 e26ae32687fa..7584eb1e5358 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 a761e71b483d..3528df27be57 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 88b0c5cc7705..08496338569a 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 7677620f02f8..a432a47994e5 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 4f6688b57160..207e4ffa476e 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 ae32ac5eefb9..a592fd6ce7ba 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 ec622e01002d..525fced8bd58 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 c9d213477594..760d922c182f 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 994b04ed750b..da2b64437120 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 cbef2d2020b7..53d938b2917e 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 9aa69d804f27..82b536334f15 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 dabdd9e1b5ce..88f7d0166445 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 4adb12c45219..594ceba3082b 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 788d59250b89..7d06224639ec 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 a7e0edca2731..11d498db8948 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 689bd86673ce..9c7110e43195 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 c7a3deec759d..38f5bae496eb 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 95d6f3d4c017..db50c5ea0191 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 d5145cdf5e8a..0d5e9260cac0 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 e20dd45c92cf..03c0e6b02834 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 25fe3be9c238..50846bc6215a 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 17921148dd80..7f69e52f386c 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 1abee84b3414..5b62d70831c3 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 f5f9c9a5007a..97347d2ae61e 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 ba59179cff1e..4045cccae4bf 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 a7b600cf6251..1699fac9bf7c 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 376140baafd9..dde18240bc8f 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 252b26318c46..2c5cf2d75be0 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 c01c775736d4..d5d7e761f362 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 8d528b96a727..228b6c99bf1b 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 e1ee892d2aeb..c5101891308b 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 1191459d6b14..ec0937d71f85 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 39ebde9c4b59..54e5a8f64732 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 2d8cd4fc4348..592a952bf411 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 1aca4a844415..234597a90c72 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 852db013ca00..fa9de2a81b83 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 2bc93e26210d..baf0cd9f3a2a 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 555e6edd431b..37462843f12c 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 d3148fd42d69..cc06a9f8e9b0 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 47e426821854..7eb6e6e5063a 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 a39b2399dc8b..52179e573f02 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 f5700fc985e8..6845307719c3 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 a6c5dca8c98e..e13a184ca34f 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 beab1d9c55f7..00af2e839fd5 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 a140944c0c04..74728ee014f8 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 17c13f2dddd2..93c69fd8a72e 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 02b13dcc8e1c..9f5fe57de702 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 0c83d2955348..f5a6b1a04bc8 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 a3f824a75c88..ac0c2e829793 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 90167e88c637..52a060644fe8 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 19400fc3197e..e08731362038 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 13cefc106cda..b95412d7f6cd 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 e3028358dcce..582c1fa2ba73 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 39cdc93facff..88c21c2cb33b 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 1056839c896e..651a3c227066 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 49b8f29e1dce..8d7dd46844cd 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 f3c9f4fd0a50..9d9a1c98a7df 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 c93815dbb01c..3a48f6d701fb 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 d6a1332828d8..37cd4e752a2a 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 be312afd4639..c026aac5cd90 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 fb7f4d27cd49..8adf89701798 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 45c1a2535821..0831de9338b3 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 f5124fa4f950..2084ae12c64f 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 d154804421d7..3d111826bf94 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 e17a9e98a0d3..6af28b569cda 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 cd7f83d3cec7..d796b81a11ae 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 95d52d12e9e8..9692239b4fe2 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 47751fbe26b0..cbbd498e5382 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 02ee0eb6bf00..cc08081188da 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 30c64580d68b..5b800cb0f4b7 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 a9a45f28797a..7adb816fcc3c 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 6761f70790bd..1c666fb5576b 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 541cb6c58b38..b899d850fff1 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 8ce74ff04282..6ab20f71b3b9 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 39f783da34a5..95fd1e20dd06 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 b976fd1d22f6..0c11484aae67 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 addc5fe0fff6..1cff125451ff 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 54dcc5ab0214..7ee8f697223d 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 4b2ae8e55f2e..583cdb8aa8f5 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 e67e951fff79..06b153e1f677 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 d9f94d5513d2..89ce7bfb7001 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 bab31eb4afa4..64dffb2bd3d9 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 0a09c398d084..154c347a16e2 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 58807f3dfe47..1d900915cbed 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 7c2c0cd1030e..e83ceecaf9c2 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 094f22c9ee89..2d0be30db49f 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 0dc155cdfb5b..79db32a5edaf 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 c695a4dbfe88..9129ece96b36 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 37df8fec5b8f..bb8019f6a860 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 779f6481a8a5..59b7e3966c73 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 7a88aeea9486..ed3270bf267e 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 3e1ee51dabb2..031718da4040 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 6441922e14b4..b446e98c98ae 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 971038a4129a..254a56f78226 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 dffdc3f6c2b5..a53bd967978d 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 f254e7afeea2..2c5fbbf49b73 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 c143c3ce63b9..d5b8a7763a4c 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 5574ecfa8b97..106528712c77 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 20b3136410ce..11c481cd0cc1 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 91cdf0cee528..37b9fa25b2e7 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 7a40c343d75f..796467d6f3a8 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 c0bb5cc0043e..15d487db0387 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 7903888ceb90..ddc8f88e8cb9 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 eec0aabbee6c..647a3ab7d9ed 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 d8c27f035822..7e1e9f6ee1ea 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 f6bea79ecb45..54ba58dd7eb8 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 bfec3745dc4f..aa0daee6e871 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 e2ccbe2feddd..aae05c39385c 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 c5df8fd13090..4b3d1f0f202a 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 d9f275f5e6a6..87ade191b789 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 e6a14eaf564c..2bd8c3bd41ec 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 8280bbb340ac..8cc6a9616bce 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 e9ca83579dea..5f1334b2e4d3 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 7873d832f79a..77837d887001 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 12d187de5d59..d377eacc00f9 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 626584d01e3f..d91c772ee34a 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 6ee21a5fd5e0..6d326a24707e 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 7792ede0bc35..6c407284d49f 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 bf9b4ebe359b..222ea5b63cc9 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 9ef2689944ef..a19c0465ea96 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 72e5947eb646..91bdfe2b3608 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 1379f7d514a0..fd3724a828ff 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 7e414d44c85a..f6717c44a8ed 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 16edb597eb30..840f71733c05 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 8296f7cf9cf6..5e53616b7dc9 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 b33dcfc98477..269302b2237f 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 af8d10a477e4..846a32265f1d 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 6ad89f694ef8..758f5d8a52af 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 58054a83a4ed..c5c634016736 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 52fa115f297b..6978ede34f28 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 e50cec0c5b31..2cab025a0991 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 dc02385df0a7..33485779700f 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 76e58df99337..d9b4fdde6a05 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 f6f97e4935e8..c11a4dd29544 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 ed9bfe76b3d8..d849423a61d8 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 ef3007644774..f5d25bd42937 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 d6faf992f372..1001a2675360 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 34509e6062da..0b124e8fc811 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 4ace100c2606..f967cded1298 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 c4d75594c001..8608f9f3a6f9 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 d27027100827..902af920f176 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 f85ddc914495..a428a775dd36 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 e43c6bc6507c..15dfd54c0bb7 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 579947577a73..e0a999f47cb4 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 43526cc2408c..b48c0448c19e 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 052844834843..a00d40b0c5b8 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 fb14f3a33455..a9e5ebdfa6b3 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 d7719fe8801b..72e207685589 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 9411ee65032e..c739843a7618 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 11613282a23d..ec30fc26fc0c 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 cb845067a99f..62221dae7658 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 1705090718f0..670c8eee7405 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 1c60086835e3..282c02d63bb0 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 1933110b48ec..518c0eebc11e 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 1bc33f1c8443..ab950f8bec8b 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 fb534e108ed7..1486b44f047a 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 805045a87944..199539d16fa2 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 d831e103f93b..72f3c0caf8eb 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 273dea8b9f0f..66b637c08c88 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 37be7f8fdbdc..3b14f7c043ce 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 8d70da272e50..007c9247b5a6 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 44e0919c64d9..260682e29080 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 a18f21fd1847..3ebd34cc8706 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 ba3bebb234c0..f0088f603ee2 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 eb4ba797bab4..cce6c391ae62 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 f73b1f9efec7..5c7c805b4ce7 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 ac918a75aa94..269843b04940 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 b824513acdb4..feae4a0d920b 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 3c541301fe04..bd6795a35e4e 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 69551c5f7a18..f2278d886a02 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 04c229035bb7..abc1dc733ec6 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 b3ec3960fcff..a9ccb649410e 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 fe65914af41f..e27a4bfe86e4 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 0a5099999976..51e425b9495a 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 93b5750666e9..1c7b269b3910 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 aa6a6a05655b..2a8d58b8719d 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 d730339cfa08..0fce4ed18b02 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 f27d2ecaac6b..34bfef913004 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 34146af9f0b2..3bf9f096ef70 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 a4abe771e2db..2a3c4112dbce 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 8c567f0433da..c1bb3df362d7 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 331a5cac152c..834bf1af0451 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 e242f20dba7d..9d4f70ddd06c 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 7719ac74c8b8..7f2c94a02fb2 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 6f6bd684ae8f..8291dfa5d173 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 ecfbbe21d307..788098f2f074 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 068441581081..3d1c077bdb9c 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 d5ea5164dd23..6c9ff93a6dfb 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 4624a2f58fdc..98d7be8b6622 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 fe9bee640644..f845ce133fd8 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 92d3100d6b8d..be100503d073 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 c76ab5468b4a..dcb23eff8206 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 f6776664f225..0be55956d8a0 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 812091de73b5..d11c6e92224a 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 a1cb7937a9c5..88d9b7a5e48e 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 dece237f1536..4b2ed4e32321 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 451f70dcdf3e..181bbcc6d1bb 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 4b5265f6416a..6f13ec31312a 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 bc16d463a37a..133bb318de65 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 7a189e3c9c28..c0fa8fac5536 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 03e854d7e291..678ff8e226a2 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 b5f66dffc2d2..4d89a9583453 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 ab29ff5c0811..c706c04370ed 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 ffc7343dffac..7c5bc4efa383 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 0c61d1b653d6..065a20197f9c 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 b9c11884340c..9a0ea11760ee 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 07b1b02ac9e3..ee7c7c999998 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 f83a6f246420..dc87bfba2e15 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 28336615dc29..77ddbe71173d 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 331997472b76..7911dfdfa456 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 edaf3fdbcae6..940e4fe25cea 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 783e5d3ab5c9..5e812d6ceab1 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 fffb8d4306c5..b29b350ac333 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 7d8a99117799..c4aa95e9e570 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 8db48d5c76c4..cbac8173152c 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 b017245905e8..7b62a7453f91 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 db6a8ea2d86f..985d9b7cbdac 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 92dbe9bdce93..1cc8c1980450 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 73bd2cdd61b6..c6f123657a13 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 b9b3e4b481f9..5e7a3c3f195f 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 d21f57fabccd..5b592cdc75ab 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 0c87ebcadf7b..7f9d2b211a49 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 d681b9cafaf7..b33dc4b64742 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 59037cbc5119..173dedaf22f1 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 38d196586561..60be68790c95 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 d6aa85852714..5f97e8816f6e 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 4515474a2927..0c59702d81ca 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 5033a5aa425a..7d981f74a5bb 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 ee957ba52870..f1e1cd2fce4d 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 4d03f9b64a83..8dea76a73b60 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 78a0634245e1..42be8d8802a0 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 8975431b0338..1304c7f9a61a 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 11042dd38fdf..b6ee578021b1 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 db9a56de087d..c2a5e98253bc 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 fc875a6b7434..bfd75b0b7e1b 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 9c1c2e60f7f4..2df05e64e4e3 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 fb4e5aa1bc66..583e2d44adc5 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 58dae19f59dd..9cee4d3330e6 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 e5d26daa442c..4a1b8e998c41 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 ddc4a9437c45..c1dcb468f0fb 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 3f57001e7f1e..793e4caedd5f 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 0c55e5a836fb..d1ff4aefa265 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 1d63a34a4935..ea33054eedbe 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 da9b7982c508..96dcd7ef2db0 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 43eae98a9e68..08fbba889d82 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 372dc4b3bcd2..a6a64f006c9f 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 506ab28df9d3..18c5f14af242 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 e5a9aa2f87b5..df55887f6d9e 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 e717278829eb..3d1c1a20a1a6 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 a640c25c9da2..5d6d9ad61cb0 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 a4f03c5e2617..f73c7ff653fe 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 c48e93c4a570..217b836e63d1 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 bf7cc1ea2808..7716ba4d28a2 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 a9cde8cfdf30..c54c03a48725 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 2f42a89466da..107f84ddae00 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 db96050cf1ab..ed5ca754263a 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 3ed50297ac38..669bf3a81144 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 7f93b01c04f1..64ab1832eb16 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 df07cda706b8..486be4871e04 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 ed49e06caa05..8783e0b08a02 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 98b139b0cb80..7bc39d2a5eac 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 cc13e9a9c866..0004f9d34050 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 51ddccce1b7a..2be3a0f6a93a 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 2860dabc0bb3..d7279ac09359 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 e1010d2972bc..9de37524aebf 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 5a30cafe5fed..8face8577ec7 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 50197c9ad520..39f15b6e23d3 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 e44366d62026..5114189a42ff 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 68b59630a02f..a5f9f2dfb981 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 954d59cdb5a5..765ec96c4a5a 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 4114c63fce94..937e5389d713 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 dddd38771d45..6b27306f847b 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 c4fec7841ba4..b775d1e4033f 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 f7c2601cf3f9..eef2f68977e4 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 b94389f51dbc..250db1b72176 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 a2d965b385ea..b3850007cd8d 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 a3fe80a2f255..dde37de09044 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 3a0108263747..16546a6587e0 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 652f3714a9ed..97208006d38e 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 fa32e5b9e8e0..f59754bf0ab5 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 53dbf10172ee..130ef48531b4 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 ed08efc686ae..52007307b336 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 ed2789d4a246..c29ecac2eb84 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 0631b5fb2cdc..8bb8de0d2646 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 8c9891f98794..af527c01171c 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 8f1c50981c5f..1034d499dee8 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 a07ab4855dcd..6b3f2bdd9c91 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 9b85c39e3269..0ffc28b72d66 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 e660a32bc9ef..d256902dbb8b 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 a58915b7b632..2749433deffb 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 22e2fdc5cb12..8d9216030e81 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 3432503f628d..411166183409 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 da5172a131b0..615026c0af29 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 62b2b0634006..b46fe6af0364 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 00f58f5b7428..040fe028f88e 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 9475695b18fe..cca1bf093119 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 b26983207177..6fc84926c655 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 a4114c5eac34..3e9067d8378a 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 23dde41555e7..9eaeceb00b07 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 f91997bf0ee2..e32666cc2e92 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 dc3ad8d7021a..ae48703988d5 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 8a944c10f1fc..65d16758cf41 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 2331c218b9b3..9431927c4957 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 a4f7fd8fcd1e..6df9f60d4983 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 48854b5d71db..cab68017e575 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 f1d0e0e72a05..01abbbe13b08 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 c4aed954f4b6..d30fc308e7d8 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 2e36e57f3e59..43de68cb5258 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 492a97210608..8b4503f4feec 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 beab12d7eec6..ceb6dc20f217 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 eb0ee2a1743f..39e31ac7ef4e 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 22036facdc2f..425d1ca7e929 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 3922e55d960f..e97cdfbd9a45 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 1336511c271d..9706570e0877 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 2edd11db573a..906a32e9e91a 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 ed31b28c58cd..be70d8ad8e52 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 07dccb8b3ac2..c8565477afa6 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 da4ab78654a9..78273d1146cd 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 c128b2109681..65e60ce8b8b2 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 de3237128082..1d2681022865 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 b8d8bcd19ba5..39f8c75dc851 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 a4050f3a2ebc..68de8a43a4c4 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 89b0b80e78fc..a12ea9378249 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 4e69ae7ede6a..ad953283bf55 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 952db97a4665..c1ceaa848708 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 ff338faa6ff0..9c837eeb10fe 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 f4204bfca6b9..7c21b2c5b1fa 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 1c79ffca2b12..04d1b0b64055 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 c9865cbb4a68..bf398c9e976a 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 c921858533b6..ea35e5c3431b 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 ac34a0473e6c..3b226992ef98 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 e500e3fb4857..f06774ba28a8 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 5c57defe7e7a..d54005b0586b 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 0923cf4f5cf1..c7598e36201d 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 91f45c366402..e2ea905b165f 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 1c8eb7ec97bb..6373494407ca 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 192a3c86e919..6c2186d62843 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 6637caa715a3..f066d17a2830 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 6aac331c681b..b3d0f07e2773 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 76ad769b5bc1..38311212e339 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 2fff3dfc4e0d..d233193620cf 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 dca574b46ed4..b45c28516e51 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 2b0b8f337675..98228ef8c940 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 c0ee93867a8c..172147c5c9e2 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 6e502054467c..9d5b57a7008b 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 05c2f0539141..d9eef9feb339 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 df549efa9750..56bda7e14898 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 3eb59558d746..1d9a1471e3f6 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 46f84330a646..05992b5d64c5 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 b42c87d967fe..6ba57b00405c 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 11df675e6484..7a27fc3ad7be 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 7a2b08ca0fa1..af0057b0192f 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 e9d92c18f577..39f742035197 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 d8d6053686dc..e3e6b88e8cf3 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 7225031baf12..ba108d9cf7af 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 7ea01827f889..c61c40fc2561 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 e7bad5470a1b..bc3ff4e4586f 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 eef0c8b6e25a..d4f8952fbeed 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 cceaf1c50660..5b62bab8c3fd 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 fe4741d561e1..56145bfab19f 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 17b57e14cd88..c0dcb51c863c 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 f5051d299b74..ea41977731c4 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 b9b014e19c71..77c1dc1888ef 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 89afa1704486..f41514c8683e 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 0e8de0aab01c..7c60aa825324 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 079019d7f52a..ee3cda2b47d3 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 8808a84bcb5c..89d396de68e8 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 f25352eef049..72760f8e6662 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 93cbe37ec7be..9c05b36be41b 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 b11e5ce6edbb..72385a96c69b 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 e14b886ec8a4..475a9036f4df 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 ef3c9edf9ae0..43ddffdbfb01 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 9e6aee27016b..c3fe1eacb6a6 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 957b33e0ef75..2730d952d54a 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 0b9857619ec8..3f3ea175a633 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 d3c8b77b78a2..a44ccef9f999 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 bb5056ac8ca1..0e137b385f59 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 15788b037087..25d73323180a 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 d847f7b05420..eddd3ae88b33 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 d64d37d1f387..e32b42c06cfd 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 56734e6757a0..2a5be8404605 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 facc35645a60..d0b9f051499f 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 7676c44eeb4b..6972aa28841b 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 96ff5c4df62f..78ef68ca8ce8 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 0397fd479da1..6106d2c1239f 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 db721a72ba47..f82c63bf3982 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 fb80202e8d47..43caf9d92804 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 02fd3cfcc07c..5db58ae62283 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 3092dbc6bb77..66129661663f 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 a2f260bebe57..237edbdee911 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 4d6706fc6212..248e29b5869d 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 9810a6abf986..47750e72bc23 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 143ce500f931..515ac781c6ce 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 3653626cfbad..7f1c73d1b35d 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 efed7bece780..75f0619841b2 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 7aae0f2924b1..3dfce37428b2 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 54ea9958c0ef..49939c1d256e 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 20dd28098450..7671aacfbfd1 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 7e79978d68a1..944c31c83a1b 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 246c78443dc4..5b4c6e411aac 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 7b0f00da184b..b507e08c33ce 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 f27ec0f2132d..05b366cf4311 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 b26ad28331c6..5c492d5d71b2 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 8cc8864849cd..ff689672de37 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 21c2c8714095..f3ee51440811 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 6e0c144fb6cb..affb195e080c 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 e5e8160c1296..d680273911f7 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 13e1f7c6f0ca..cb9481839486 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 4cde1f66154d..abb67c8bdd05 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 bfe463c73dbc..7e3691f41acb 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 6ead2c00e938..7d69504c30a4 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 9d70b473ad23..c05c12ea8aab 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 2a2a0ef76726..f4f49e3c2f60 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 3cc6600a8f5a..2253ee7608f1 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 4901c76ef7a9..0ea105f48b4b 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 755d682a7218..18c19a5c7b1e 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 bae2dea95375..872ef2a9834f 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 3d3b2ed75d46..fc674f0cd30e 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 d2d740febed1..5da4474b9e73 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 122da339edb2..33fffbc37e8c 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 8b9cff2a2eb2..445a2b8c667a 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 09b40182b463..bfa9ed434780 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 1d3d3077b059..79d6f429eb0e 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 18de69a2fb87..51c907b5605b 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 d658eb29209b..9d01002622ba 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 46819a4d2acd..a7ff54fe2cce 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 9ea3496741e0..36bae238852d 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 734d94669d02..3645c6ce84a2 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 08e917c9ab8f..848f8647cbc6 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 77148f3321c2..7ee191607428 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 02d316fb35a3..7ea68395cc08 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 2cca787ec860..ce64ac49e42a 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 4aa353e5b07f..11e486ec5d43 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 67571ea7c3aa..e6eadbef57c0 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 878f044f206a..22d995b2dc95 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 4d9682f905e4..4ef405ff03fa 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 2bf71586d570..f22bc23517de 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 67fdbcf36e2d..6582608a0170 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 cae18219adb6..482cad824b4c 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 2a6ff6ba3b5a..91ea35e20ab2 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 c370566adc9e..aa54109e1431 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 7258b1eb2da3..b0a3646c551b 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 9b6bb76df579..cb5a3410627d 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 4ba523bd8aca..d8c9aa3c4654 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 cc76672906f0..e5d15a042751 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 c76d63101ad2..1ccd9ca81775 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 c1fe493266e5..dc170dd2af24 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 646334486236..e383087cec24 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 d21e3c278ec8..d4f239626779 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 f23be379387e..a10e34bbe861 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 388ebf1958e9..7cd5d2cd486a 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 14e8de95ea68..a8b39103d915 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 3ada7c1c25e2..3df2744b63a5 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 3f6a07d57706..375e896e6f48 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 a059be52ce32..d4c3dda06791 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 97918da1f1d5..a8e9188e4bcc 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 558e3631196b..43c03bd4ff4f 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 8db10b9ed797..1aa69dc6325f 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 c013c1f3fcdb..bdb872de7757 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 d6a87563347b..fb0db766cf7c 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 65354a840a3e..f648e6b01b17 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 4e06ab1e0f97..66e0bdcf865c 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 e61daf282105..8d4863ee3489 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 5ef71c905bb3..d5241de87198 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 9bbb4cac4d26..21a2f4143abf 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 e98ff5f5c1bf..27c4f09dfeef 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 4df0362e86b6..a9a88c0ac9a8 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 ce4b4454bbc3..7c8dfe428dee 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 38a00228d855..4b8f77917628 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 ad28a4ad0573..a655b3b41ef7 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 3d4f4148f5f2..ecef4e642349 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 302955b8d1a6..bda4d2bddd8a 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 14041ece8565..12d25de0f2e5 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 c4316faa30d7..3f297abbd832 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 1b93db5d9da1..e81acfc74ad6 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 aa0ed2f2e1e4..b2adb84f01f1 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 81fa4e378aa9..8053e5e32430 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 3bdb4aa4d7cf..19010582fc33 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 8324034f34f2..5dea6c08c242 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 ea1706ef8f2d..60d9b34f13bd 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 8a8df8b59b35..4da32f4c6bc6 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 e68609d66322..7877738f002f 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 55532fd8dd8a..b41bfa595516 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 ffebd847b978..0b4f6f4c3695 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 1ff5559f7150..3fc56f4ed291 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 02a9bbc02905..ac20a4ad9bc9 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 324e917e90b4..88699721fba1 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 3e6a667aa467..58272c8a88d2 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 606ac7c2300f..ee025aa03784 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 eedfe3caf136..9813d38c1a7c 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 902eac22557e..2f3c05cf6bd4 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 374086f0f74c..b0911120cacc 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 62f31781023d..ce970df78f26 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 8d15f9eee73b..5bd91296d732 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 e00ece72cf3b..611b8bf433ae 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 b078375826ea..d33583d6e387 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 0ea15589f135..d96d3eef600b 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 814bcfa42f30..fe92c187997d 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 51db5cccb6ce..b96cb8ed2671 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 cf7796676a0a..45526f51da2c 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 bfa66897069c..71579e1cb1f7 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 189b551ca3a0..8aeb9d6a03c8 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 613dd316d7c3..cda4fa15b0ef 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 11585d811612..05c25468e55b 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 2ccd8530db43..65624d49d06e 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 39e5d31e598e..00067b3e3e4e 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 bdb72506f8d5..44a1be74e436 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 62185d81f653..da0d252be390 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 0447266eedb1..01d878d99e92 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 bd5ea53bd635..acee7322fc8b 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 870cb853b2f4..da1e90aaf3ec 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 22a9f4db8a67..b261914d065d 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 182c5fb6c3e9..c963a4163418 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 32b31c5f2a0e..a868cffe6200 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 ffd0fa500ce9..36c19c7a3684 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 c255c13bd2de..9fb556cf5452 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 5d4aac54f212..ac5a1c77002d 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 4d1c2d274844..79eeae2ac7b4 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 f3e3bfe4e8fb..304ce38f31f5 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 96da28ca0b33..7fea8909da3a 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 1879c8713ed8..9d3e72603edf 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 b593fbe1f9c8..b2cb0ad2e98b 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 efc1070faa8d..1eb6283582bf 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 4d6311665eeb..1b9e7e00e5a5 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 73c1c184f241..d80722aff5d0 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 630d93eb288e..3ef5ffdeb39c 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 653804cb930b..42d90003a386 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 b8fb6a778d1c..1142d2d29bee 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 a66ea6066ff1..e69dc3b20310 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 415f9c9924e0..7f429955e04b 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 783698a6695e..af572d12af67 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 2fa534f87acd..cbb07c16d68f 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 8f3faacd853e..a878fa914895 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 33557bbc6f4d..ac6806237824 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 72e3a59c27ea..245152c6d771 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 0eb750db5a41..c4101e234d02 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 6b2d7afbf1ba..3cd32a8f6fdf 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 cea0794b79f8..9ce2f96218ea 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 789e4cfbb379..5813e9de9de9 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 ba34ae626232..ce9a9397fcf9 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 80f2a7eec1f4..3a9206d1b0a7 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 4587741aff52..ad407ef88887 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 c496e94aab5e..c1cd0207e339 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 ed8ddf3b6773..8a973001bf43 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 d11aa24e55dc..796e32f917c9 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 af481fee0084..2a523eb98991 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 f5af943a43c4..68ca3257a4ca 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 54b856b641f1..f6eadcdefff1 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 bf132ecee0ed..1d399539e53a 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 dc82d8341b97..289bb949b58a 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 621ab595d1cb..ac8dbc07c599 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 7fa92c3849d8..aadfbafe8d8f 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 01cd5e0c38c7..5980fa62e12f 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 7de2365397fc..011f31e660f0 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 50a168b2faaf..1a877a12212d 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 09f4e0ad5250..132f3782312b 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 7e62d3b39a2c..42655c29e4be 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 40bc4ee2232c..13fb9699752c 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 df67a12393e1..17f13ae5bd45 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 cbf70d57b561..9ee2edbaa6bc 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 1c0ecab1267a..1322a8ad9cfb 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 2718cfbc963d..2c7d37f40587 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 140bcffb2f49..d0d2f35ebc39 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 44bffdf3a684..aa43bed1a56a 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 cbd841e39b3b..592e25e1d9a6 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 052bcae5a364..aeb9d527d850 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 ad5fe89b37df..282c488b7fdf 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 c8536e303127..d0e030b2d87c 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 b7a3ec684ad2..39fda6827b34 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 f7af0f6f0b68..80bda110ab07 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 298c3f2c5d78..fbcc5a4e52a0 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 9f102111e778..1b6cc1a94f15 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 0c6c85d648e5..2dadbb297fa8 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 f7b6486b7cc3..3d5d9df17726 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 7065aed5379f..f473d1e2cbdd 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 639ec255aec8..f7acde1b7875 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 387988819986..d61f1d986b8f 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 d7214137ab4c..3597df41e82c 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 0594af6fe586..b4b5731518ae 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 4d3acf264f8c..d74c17560905 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 4a2a344079c3..0e81c012b79b 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 06f089cfc849..5b153db7ab01 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 05958b98f268..98226a8e7f09 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 12e65fcc12a4..6ca855ed3801 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 3b8e862eaa34..aaf7d49981b0 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 4416e7123942..ad87927c3a0d 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 35b91ac44b58..463a2e0fdbad 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 f8657aebec4e..a7974dc00d96 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 d8363466cbb8..4d87654390d8 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 7387b51dac00..6d024da8bd05 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 9439ff565ce1..8c5dd7fa24fb 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 027fd9cbd018..49632efaeb8a 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 f6137dfd44cd..f1d695e578ae 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 bf5b6a2a6340..3aab1a226ad1 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 747b4a962549..150910a73180 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 da637eca32d3..cb7f20b7df84 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 7a13a17b48c5..a37de836e8a8 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 fbfa5a305d98..a489ffcbc0a7 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 183a60e51453..f93a7456b0fe 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 0bcaa2781b40..2d0c6e48bed8 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 12ab2b32d488..2b158be0fe3a 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 4fb25e71dddd..b4b0039fc0e1 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 9926b52e7770..bd4b3d7e4cb0 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 1a156edb5c59..f638c173ba4b 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 9337b57ff92d..cf4f2a0195b6 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 e61875246cf5..2f22e291824a 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 a25d695c67a5..58fc22c9be21 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 9a2166136593..cbd17a92e789 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 ab35787b51b0..4baf2870ae33 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 110570fb87fa..f0fa550df496 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 7aa3960b364e..534233def0a8 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 8219225c9733..d072041552a5 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 20029bf3385a..9a2d0e62d544 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 d8ecf8a21ed7..23a3afd3127a 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 2381d4cfa7d0..484c87451289 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 d8d02c479013..00a1deb3f001 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 2979f76d0a1c..1e30facae2c6 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 1b1bd30f4169..94e756f3246d 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 25fd997e480c..975fb9996e17 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 b4547e92b9aa..a3990b08c7c0 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 9d10144d86ef..1cd913618694 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 afa89afc82a4..ca7a8425c909 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 0a66157072b9..70b75c639736 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 960f462b640f..89b19c67b6e6 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 d6193b6e114e..d5a8921e5072 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 c7a454012891..06f28359ac99 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 07bfc44abb82..c2a6db8094c7 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 cd4100f04aee..c6f146315778 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 fa7beb5fcafe..8d97c2b88514 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 c243d05a5198..e0361739a542 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 4664a65656c2..4d33f6e6f137 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 80004fcb3526..5bf9b9866874 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 3c73271465f6..8919cd14e734 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 3b46c56dc405..cb5eeea2a06d 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 1e4e88337960..482d8c5232c8 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 9ce96290bdfd..1722dff45f29 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 510149d5470d..cdc5a2b28ac7 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 612fe289bcae..c20e4c5e99b6 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 40636dfff08a..c6787c2a67da 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 291f1b80740b..c689799643b8 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 b5fcff2f5a92..d06f1ec952c6 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 bac3298d4aaa..74e27b109484 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 ff84da43df6a..cd0bcebb94e7 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 e47dc50bda1b..caf8ae015b8a 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 5f7e1d7c90ee..0d3793399581 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 c12893761f55..d01dd16b002d 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 2cde8837d8fa..21c3834fb03d 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 3084b0df3bb0..987c7524837a 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 6b53128b498f..a388b5b94c90 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 de5423e61796..8547b8f20a03 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 315fed0329c9..a2e8320dd489 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 de496b69a841..39cb65ed3d80 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 695abbf9e618..1010358c98ba 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 c460776646e7..3ee05d731905 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 535363ebe00f..ba10df2f38c7 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 a80f0872de73..d6259baa52b3 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 61bda6aa1439..d035ed3f0c77 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 25643ec17d1b..3fd7c65436aa 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 8e1b6a264834..09a1a5174500 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 4a322b61afa1..9d6636672b3f 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 0e6179bc3747..8e6ede0ab73b 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 593b4627c6ba..04499efc30f8 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 d1aa55797e6a..f7581bf43d26 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 fa47cba07bd8..204f92d54412 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 8a5bd553aa8a..ab263c5cf77d 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 8124df85c12a..a83b3088a2f8 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 d96ec68537e5..d2e79575ef2f 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 a212cf093adb..03a9be0571aa 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 e16259e3019f..35015450d4a0 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 1df910420bc5..c37bcd438368 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 21e6724762b9..9b8720d0c37f 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 aa6b0e183030..b0bedf112156 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 87fca63d7747..bd8bf00255b4 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 901a33ac2cc3..e26ac3c49253 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 18170a3c0f47..a71d383ee595 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 0e68f9c40e8e..ba651d879cb8 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 c4a8462c226f..b8911eb4a8ac 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 b5dd6842151d..d5afe4a66148 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 a2d6935d9091..9201a3a2671b 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 7737e12cdf2e..29c874857f53 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 4808b11a82e1..a00bd0d98a1d 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 76b0580eeb9e..3dce33c3d5ca 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 cf7770666a68..0f31d92e2c97 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 04618f55f037..2df02624d2a7 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 270d03b4c8f2..f77728c9b280 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 a9a5c3be40cb..b3807639b734 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 1b32cbcc4079..aa9965cabc77 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 bc75536ec567..a1d2e7b78b3c 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 f5fc9055bc76..5a1d2feefe52 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 52d537ec8678..2fa665f772c1 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 e5db0406813f..8423cc959965 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 5f2613516691..43c99ddeebff 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 d75375205091..7535751eefa1 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 4d2157c60db9..4aa8c80b8075 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 9552a3bdd7b4..b1284caa7bd9 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 70062bba477a..f43e530a8ba6 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 e4b5198e2cf4..e2cf5ef9c803 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 7429f0728389..1d6d9d9042da 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 e8396f53ca5f..8b08b0b30f98 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 e8ece791a9b1..d19c04551a00 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 ad393c36373c..e8d02692bdd5 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 026a2e33a64d..07fabf79949a 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 3e1bb67db7c5..d947fabf7c69 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 0bb958cd4e44..8e76bed1e396 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 6b2faf030524..dc1c907712e6 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 611fb31faa3a..85c503e8667a 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 8dce04798d59..be5d4a29e19c 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 4205a081e796..0dc923f5b824 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 d1af63328fb8..9614cdfb1eaa 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 1cbd8145d31d..e3889129a8ed 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 716561f86b38..84733e6d9735 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 cf844ec9f532..5630addb11af 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 3019a1c25488..fd0ef9618b00 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 6fc2235d6a7c..936b63bda9f4 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 1fc50a890ed6..d92546e0abc2 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 d010b69aa768..367451dc5672 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 a01adfa19270..bcc8a18a29d9 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 aa4c58b9834d..2340425500ab 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 4e7131f0fb90..ac8631ed16e9 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 a21706ac3aa3..3135420e5286 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 089ece91bd23..954df605a38b 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 afc789157dab..a715c8e68a94 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 020e06eaf044..4c9651e41df4 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 c32da48983bc..b2377d5d76d9 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 e2f1470900e2..c86b2d2d2f0e 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 ad10fad50565..b3116fe1d504 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 4db6a54a07c7..d7a033d9f4fe 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 e1f4a01164a6..80302cdad24e 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 701fe52f0f35..70ea03c6fbdc 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 28ba48af5078..b20c1eb24e45 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 08fe5e846405..99ab0cb81cac 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 534e74e5f968..776e595458f3 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 42d1d88e953c..73a74cfb27eb 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 a2e3746d4f18..46a79b3ff951 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 bec04a7219bc..3467244221dd 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 f9efa1573f17..1a7b75ca82c1 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 ac39eb827570..7a4ef7a9e384 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 1c8fdce15225..6c599bf448c1 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 cf98ec97b25d..18b63e218be9 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 6c71527e903a..1452d543edda 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 477753f2afda..b9eaec85cb1e 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 b8d460d8c0e9..9d02180a23bb 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 0adc8057ff38..f9e2cdf023c2 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 d4ae3ef9bde6..a2eee5e524cf 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 c516180616d0..ba41aa5a6464 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 719002821847..9a3f0235b48d 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 429b0104a99a..cfa18a0f575e 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 e7c5101c72fd..33d951c70037 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 40f13cdd0135..b56ab2d14f77 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 1cf938999a6d..aad5b5b6d06f 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 344c2bcae419..7123615e4570 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 b148a89577e3..b1889690facd 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 f3a888da9889..afd2c4a49ae4 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 74f65d0196a6..ac90d36252a1 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 55b1b699c346..79c826b6d283 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 891dc4c5b553..86600a3110da 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 dd096fceaac0..ac1ad304380a 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 a8523684ab71..aa08855c3eb0 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 95df0c2049d4..f92e7cfbbc89 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 4902a7acdab3..97752c4f6a77 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 8e160e5ca683..afb1a1acebf0 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 a4b7c3e7b5a7..3ce8bb1d96e6 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 09ffc8572693..6e73f6de4dbe 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 183734d66bcd..5e125f2051ec 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 9c98e6a68aa2..98b0a03fdee4 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 06dff91db464..4e9ec1bf1607 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 61c710cd93bf..8182ce40726c 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 0eed62e579bd..5bc16cc76b8b 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 6d13e055ff90..47a29dbc89ef 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 4ab4b38259f2..d2a0f1b48fc6 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 d888930686cc..ee0b84dfe97d 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 e72f8dc82f96..936d0e4b4c92 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 4b417885c656..19053a5ad7b2 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 62a207d4c8a1..ab087344f692 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 44eeed73dedb..732f21975a50 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 2a2760e40a33..1e30290b77f2 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 10f5e461c0f5..d2c6adc90388 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 5739a125209e..7fce38c93dd1 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 245feed988ea..5f18a70018ca 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 8cb234e4e64a..c9cfa369b919 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 801a5f3f2ff3..d1940dfc438e 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 6e06f17108c3..b014792fdde2 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 ef0f95082e4e..78ca4f177a59 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 e3509bbe2aad..64d6b02da1ba 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 acc4f159819f..d88b1408a31f 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 1f46e4884f6e..b54d3b21dd8c 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 1b6434118032..4e4cf077d5f0 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 b78cc6d0ee2f..69e450e897a7 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 5db06d92bc61..00c73bf926e3 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 fe2f3f58dcbe..f82b25a50e21 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 6cfcc4e10e4b..2177f20af25c 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 ecc399f1d479..b0c5e985532f 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 f2fc2314c8de..169dbde883a6 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 973959d2d492..14f2a753d52a 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 8a7c9c872bb8..b1230d0cf90e 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 0412c102dc5f..f35b308c10ce 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 44e748b532d2..d74fe028d21c 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 ca572160d44d..c94ac11ceb98 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 545046913b91..d44a2eaf0bdb 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 26ab8a33f736..c7c7cd72f81f 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 74e3fed5687d..d400adc8ebb4 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 c9e88a500679..aec227d81087 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 f4801cb62047..54387e848417 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 582f6c8c97c5..d61b2caf5d2a 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 12e837515d23..54c902a435fd 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 7cddc488c31a..f9b45848b6f9 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 5a2a257d84c8..0bc7b35ecf88 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 a9832cc59059..7c2fc011a3e9 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 4ecfa16333b6..973f3faa5f07 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 3eb6555f6168..b32737684f41 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 6f319dda0d44..8ccf3da78296 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 5e64a55e5596..b3d32829a83c 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 216d1efb78aa..9a5833c27559 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 56cbb97af9c5..bf60bb4be4d2 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 7ea537b7d08b..f59433c67dfc 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 4c7e2c785c4b..669596ee8240 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 1802d4724f49..ae76e925363a 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 b024480fd58a..f84b91cb81eb 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 d206da7b9e0f..a8f6e5f501d3 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 4106fd5446c4..a9a601ae49ff 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 87c0a34a2d8c..1deffb3ae7d4 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 728c8da0c471..cf16a260c90a 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 cbf8c8bbdb85..d22431692988 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 5f067d663f78..c95598716378 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 685cf0954a19..be38f94bc7b9 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 5ce34d59ec48..8516aaea879a 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 3aeb2ef79f51..987248ec6912 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 3220fdf96b2b..39495e99744d 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 4030b6b26b1e..2a870ab24887 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 237406cc2cdb..f0252ad8966b 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 938e50dd5219..6d1edff6e927 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 78d44a4e1c3b..3797d53d4b38 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 4e096556b69e..6ca701327fa8 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 d9236460b971..ebc489478a83 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 aa093bbbeada..13ba7b8624d3 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 45b6c9faa985..c3a2a687a7c3 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 481fd2104dcd..934a659d5c1b 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 7641be6cacc5..8f438cf00a74 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 7f69af213982..5393580c2da9 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 94b581e3fd45..2148244c092e 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 068bec1ed098..82da293b0063 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 3024226b8712..0dfe621890df 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 73b9056d5ef1..617a684e15a3 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 2df7a5c71a28..233b05e6f82f 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 0f83cfa3fc87..c5de61ea64b2 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 2f168793a268..0197621bdb48 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 0443a97cc1b7..663d5710bc9a 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 42cc7ccf6f33..556466aaeda7 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 b9491b49a6f9..66b9c5290518 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 5c5f44d0b589..2f1b367059d7 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 ec64fb361885..5a20f2b5fc20 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 43ef06201a7b..1c2277cf3a7a 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 eed1faa17b9a..483e3f591ca6 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 ef4755962928..bb3d2db049ed 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 4574b93ac925..10baca7e641d 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 57dbc1123abf..95ca332eee65 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 26f155d80f3b..af2f035e0d39 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 d7d0596df994..ec07bd385dc4 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 020000214767..8dd872781cbd 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 83016a12361d..722e115a9f48 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 302ba4450765..d6d81371a7e9 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 911e019ef3da..203e3827193a 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 9b8d55928b4a..8622190830db 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 1f842dd7b376..14a6b4699851 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 b87652e4e36e..ab51c6d314ae 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 cac45e46abc1..5afc78a30101 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 03093633c84d..2586a87a4fe0 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 0b6335d401b9..957a35836ca9 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 c5c2d38c7641..c9fd188df168 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 e3254c710376..de441273dc49 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 9ec421c9e4b4..4a0f15d3e9ee 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 25e5ff3d9044..aeeafd9989ce 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 d153e34d83c0..13b761a1e6fd 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 f77e8410fac7..17a2bed35eb8 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 f28a5ab7a572..cfd2c9311e48 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 75b20272399c..48fd6f888751 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 84d3777bc7e1..eb0705c7c5c5 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 37ebcb97eb73..dfd3d5ce539c 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 6ec7c51b2114..15ccc8aa1d5c 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 454c68366b18..11f7e0d56c31 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 f43e8afb0537..3e72ea604f57 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 7fcdf547cd9a..e5e2082b2987 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 7cfe0213aea2..6b126a938876 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 7685a82a29e5..34134dd60cdf 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 75b3006dfe7d..0f2b271ac2fe 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 560ef1fbb1e0..03249f120bfa 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 ce44462a79cb..56e5d51c1836 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 0d7cc4dc32b9..b7add5924d1b 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 8e4e9d20bb7c..7e0ada3eacd1 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 59e5acca862c..bd7ad7adc5eb 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 1701a9bece2e..7b45c9b9ec24 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 65b992c412cf..97581b1275ea 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 a6b2627c7064..843f0de71334 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 dc342c3060ba..7d936a028542 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 51485b12e884..f305a2bbc4b2 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 d5b95073a151..bf5624557033 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 71fc54af0301..6c4fbc4dbcbb 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 a1acf1d0458e..081218dc666b 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 a2c34f893dac..6561dcaa5391 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 6a54f99381cb..8074876fb191 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 c2a8b9104e3b..6297c28def16 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 a05a5297d8d5..44ca6df47813 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 8ea8338c99d0..75e628abbda1 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 2d2209b8e976..1add372f0603 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 77138ed80081..0ae9dd85c906 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 3ea1329acc84..79f4591e17a9 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 aea6519a43b0..c9238e697c67 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 94394e6c855d..2836eb3543d6 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 ed33fcf062a7..9bf4ed70835e 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 ee7964afeba9..bc239aa15377 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 db5ac5174981..96b9c8117758 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 e39e2e5dcf39..47bd22fcf62d 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 c22581a54ff2..74b279b97920 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 efc4a3fda91e..83ade4df8b3e 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 6a984ed54a9d..812c6d061384 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 ee568198790b..36242c91f35a 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 8a15099746a5..1d74bbf1de32 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 7d8e54d56b5c..9877625c73e1 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 c43020394bd4..635f54ed02e2 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 0602122dc351..82e903b54de9 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 e50b763dabc9..6e53db41a545 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 734877fae44a..64073a4c2e46 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 b71b752784ba..80fcc7845a7e 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 bc05279ff548..c575a80328d1 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 1ba280247b90..ea5446fb5702 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 d4846c67914c..a8a30a0a40fb 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 51f3ac2686bf..88382395d0ad 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 27264609385b..de19c7ea3eaa 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 17b798d35198..d107d6856e58 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 a551d33637cc..69c04c08703e 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 c823810aea7a..415249cebdca 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 000a9318863d..45b55166987d 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 03792cb16c7a..d9a145708b0e 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 90265e9be8ff..6e155143a1b4 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 cba469ac8275..63170edab526 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 0776216617a2..5d29db299330 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 d7e5c6825d6c..7a692dfce148 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 a77cb1d09500..5cf3763a1899 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 fe90d8fa6d03..91b2feebf971 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 12f7ea54d2e9..a1f3e10b78f6 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 7473f38c364e..24357e679c06 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 d63027a8a5a2..9d561d06596b 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 fb5f4ab98986..d55fbd2e9120 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 03794be38681..97235d2a6a24 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 50fd742ee548..a50c0daa1a62 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 2163eaa77a30..f9a2c2a6e27e 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 1aa875c14f29..2e90b999b479 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 e16c39577935..1c8a69473d9c 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 4dbe5d6dd34b..483e9abe0f21 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 d4d0a0956e74..c820089a1a35 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 310f1555019f..a8e98ed37764 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 e1ebd49ae9d1..b8d8244b8332 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 b773ee8ba2cd..025819505c64 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 b16b83abd8ef..1520148b868d 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 19fef2bf1d15..caa3b3cc0eca 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 a91c2eff3580..d33d56c51201 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 a25d2eb2b4d5..edfdfa01fb3a 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 a9aaf3fc8cf2..9ec0cf3d4aab 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 955f89d750b6..7a3dc2078eb3 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 eb2e66e12e96..f74df99d1612 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 cb08730a3ef6..471de8b475c2 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 e243f1e82656..7927dbc6516c 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 3616ce02824a..23a52134b2e8 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 6b55c2ad8cac..d729e698a905 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 0f7cc919166e..f947f7e24244 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 c5aa8d4c0288..566547c49beb 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 b7828b7c191e..86c245ed969a 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 a111a68a2b97..ddaca513c8dc 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 0257f3ecdfef..b6b510951cdb 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 61a23f5db801..fc8fcd37346d 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 9fff258aa048..cd417bfbe7a7 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 f98cf7b13146..5e3b30cb2937 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 0dab6aec4162..89146e35b062 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 e035cd2a9e51..7ab3a0f16446 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 251b0e618bde..ed4da2d161ca 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 73dc9f014fe7..5110d057b42f 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 a1eddc29a04d..d559c662f3fb 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 e7134e2bcbc4..1c649a9234be 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 999a0705c4cc..a44145f8ca27 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 1683fe7534cf..c2fd28401d96 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 9dcbd14b7242..8153ea859f3c 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 f1b21608b1ae..4d52f13553cc 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 f82bbcea3d96..dd5f5e7be1f3 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 f5659725c7a2..6380290a27a3 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 1b4daffaa335..5b8dca954130 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 ba7f19a6314d..a9e8e029f2d5 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 874ffae8679e..75fe8bdbbc5f 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 ab316ad0e27e..3d1f59c25e11 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 77bdfe03b1a7..5511404decbb 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 835a34c49fb2..4d23b5b90644 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 4f000171cd7e..d3ee945c441b 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 354fc72cda8a..74df79142197 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 76fef119501d..7ef6e98ddda6 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 3001ad61a475..12767924944f 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 cd4defabfcc8..a073249d8cec 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 48cd0abe2c7e..a312c868d069 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 43dcde9ab43d..4f414773270c 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 851dfcc3de6a..d70a9debb6ae 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 ef6a8acea954..2c914d63434a 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 d017686ce6a6..494379a3f428 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 5266dec22862..bc4317dab098 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 67da25988b5a..3d5b53510905 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 d24017bf6e20..b53d42629fc9 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 0eea92277492..21b412b9ef83 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 65ba533d6560..a085192465b2 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 8c8b3dee7da5..259f0fb0bcce 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 edeb33c948ce..0a8379ae8681 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 d5de1a926275..776bd71cf794 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 498989df9940..b3e46f7c58b5 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 e117aa226bca..d9726d744ad0 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 04abc99a0f0e..f6d13b26e275 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 6a83aa35eb7d..72a0d872c436 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 38b55afac16c..3ff0cea831cf 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 8c592dd09ada..f18a619c2911 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 a845a4aad24d..7c1795a15111 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 a6b57ae75e00..ec8ad42b4383 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 b0b4f8d7f8ce..f9df90588f1d 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 22695f9f5c1c..ff471a479166 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 e3593b68c5c9..549f67c39190 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 a38962f11586..02b6c5338c50 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 3f38168996d5..c5f4a865ce51 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 6ab6982d48f7..fa51b0e50451 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 7075eb8d6459..60771855bdb5 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 7cd86074efa9..831300ac7ebe 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 4e2c56cde915..2203f56af26a 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 cd189d6965c9..b2ec037768e9 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 bac3789f0b86..b9863cb352fe 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 fd4b2a47cad9..86914ebeb5e5 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 37b28100e681..5e22a7e2dfee 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 2700e66d06cb..c01776f257ef 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 03bfa89be77e..c12bfc98c756 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 cceee160e287..378267247f86 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 c1941c55707e..90834f73bde5 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 f601d6fd5a90..40257f5667fd 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 fe70c102310b..badedc20613c 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 a24eb861cc2d..9895eeb8605c 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 eb97a71167ff..a48013f64f97 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 0c9401d1f29d..e2d75ddf14aa 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 8ce6cad9144b..c5ca58d40a25 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 c65c350ad2b8..34ade24e7369 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 5e6f6b0956a3..1ba3e29f9d68 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 d2ac4172f21b..ee7fbb76e36d 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 3f68d543d451..a16419fb3da0 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 1b9efd6c9fa0..7c991f12130e 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 dbaff5eae2fb..10326ec81f09 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 f1bb10c877a0..0c29b23c7c02 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 46b628853315..01c9b76b1600 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 36856c42e910..b58e863d5589 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 a7fce2b281ce..ce80539a6de3 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 ec12c1e9887b..7a94edaea43c 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 e49efb4402fd..f853d563fbc9 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 a06c1ee42801..60d39acece83 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 7b3c43959dc9..6daee7690ddc 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 552d9491d61c..a7833c6a43a1 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 868d0a6eb2e2..d9b715be8e91 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 39e5ac6359c7..edd152275cbd 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 a47440744956..f1a178834f85 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 c3722d5d6eea..832d2e220117 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 c33f592a3461..0557a634ff92 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 fda2b0620201..8a35de0d7012 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 5722ebbd8214..4471e464bba0 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 fbe2b61f69cd..db8650539486 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 3aea5202d225..c3762ff44204 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 b9ffa6906c8f..c04fc9fd008f 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 e37fc892ef42..2b205f355566 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 0334cc09e0c4..125b8e6d895d 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 719215156268..244a9739b266 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 c72c88e86aee..09bb13d122e9 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 4db64f8cb0a2..4aafc4f83c1f 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 a1d5075b3e88..8116373833d2 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 a77ade764ac7..5e97d1e5e178 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 f03ac49b81e8..0bd6fc72adb5 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 715600290f8a..e868cadf94f0 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 b7cf47665836..28009090a07b 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 bc0b2ceabd7a..f523851e5b42 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 8c2c1bd3edd9..d416ea06034c 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 3f1af9746109..531b4b491ead 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 a0fbaaece2fc..5b2c773c4b37 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 9388e6349676..4669e6b27106 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 1bd1d9d6cdbd..d1b94cdae42b 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 7c77a400be33..54396b9c541c 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 a889dff1c158..4a29dc4433b8 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 c3e1de60f27d..aa4ee3cd0ccf 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 8a119083850f..0b79dcfe10d3 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 8b60f4668651..72ec1c6607be 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 e35079f6601e..21c1c6c52521 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 17ce79d6ba02..d2d1130db57d 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 fe69d64067d8..382b6f2641e5 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 98271a1520ab..ea01ed66dd48 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 9aef8db85d04..782826ac79ba 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 37cee62082e2..c5e100820c82 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 fbfc8021dcc4..879ac8114043 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 4a7d33ef1cdb..a984c65123dc 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 4a2a14b67cda..17a2bb2585bf 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 adda89e073f5..407a2ba29c36 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 4ab896d00167..becbe3a7b597 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 435413744d42..c0b6f15b1b27 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 5f0655cd6e15..5dd4a0e06a5e 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 f68e1ba3ae9f..1a5e19926cb5 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 17c027a9a725..434561fd3f23 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 1278086b057a..0ad718658f89 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 1dfb16a81dd6..6611f5f51370 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 abed25366979..76f677c878f7 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 731ddbad19ac..bd871a45e752 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 5a6ea47d0b88..5107dfac414b 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 ee863bd9aad7..ed34ff796e73 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 502fb66b9c72..a6beae6f224f 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 19d773856c23..a86717e1b872 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 281303ce04b0..1904729b727a 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 a69b5bd9bb16..41037b7e6c62 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 43a6c4181ea0..6d79dac57aaa 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 01c0e94dff5c..bf232697d44e 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 b8b992103a83..e9523c2173b1 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 0095b501b094..558f80ee4acd 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 eec026cc44d2..ed579fc0493e 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 1522c82ec992..bd46088b704a 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 5d01d07547d9..a53e496f671b 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 1e43e394ef3d..271d94d001f4 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 71e5330aa3ae..b4a48c5afe35 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 ef00cb5e60eb..6a12695c70fd 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 a248aac80b94..b00f4ffe22e7 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 1ed8cae4a555..5b2c7300f222 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 dac5fb53b4eb..093653931e8f 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 89b8b14c9402..e22aaf021d69 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 a04a3b56e3b9..05be58687800 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 c2fde801fc17..ca2e51a59911 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 b3b93ace9a41..59239b3ab25e 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 a0b25694689b..0c4960602239 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 88508877f21d..2d49923ac7af 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 912f5f69423e..e5feb9a19680 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 71b0ddbbd3a9..38bac7ab9779 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 7a183aff8da0..96f0323a5657 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 e5cdd3cbea54..563be35e9f0a 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 07d2ee3efb69..a7f3b2b5446d 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 f7330d71833d..fb8482c4861f 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 311061e73bcd..db1f760e1d05 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 33c55b8a988b..4c37caff3457 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 b8e795dac776..d5123cd73213 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 07bf5f66d532..aed2e5f57b7c 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 d4995dace2e8..efb0b72ad8ae 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 8f2191dc3e57..3812b58ac0d6 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 d95d52f1bec1..1a0b72180edd 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 0d9f8d458f0d..b1c68cac4289 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 63c365a39aa8..19024a276c0a 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 b245b5ccb554..274b6e24e105 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 9aaf809246f4..5fb7d86baad3 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 8cbe97f3776b..b8d077199c5f 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 b8c09d2a6a3c..11d3dfab4186 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 8bdaeb02f570..61f30d4f7ef9 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 38bff0377cfe..d21aae4f7286 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 260757b72077..53f455628980 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 128e751d122d..8c167d324750 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 ebe773634e7f..66f40c6d50cc 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 e91a08402b02..0bf68b4cd351 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 0840d80acb38..46ea0e174d34 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 2c411dd9569a..8ad5971ec645 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 72f1cc65d90b..d4cfe58329f0 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 073233136099..4fce3e4aebda 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 c027d6504f69..8d75417e50cb 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 68492e03ff2f..5b75f85ed820 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 b7ae3606dd0d..974e2fe8fde3 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 a7341caf7831..e173e2cb4d10 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 26aa45cf52f5..9ec7919cb1e5 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 392909d468ba..468de04c4d5e 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 dce554d1609d..f394991213cc 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 915bbdafae10..be03ac2e098d 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 10dee68ad7cb..9b1f4780b8c0 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 2fc46240c9fd..cfd41324f03d 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 b93016c76402..afae7819737d 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 899ca34b8611..1a4fd7b9a04b 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 f44d7f5f243d..3e6f7e3e489d 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 715d4fff129a..56100728b05b 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 277715cde1a9..3b6865e3bfd7 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 3c3f9e2603d4..b06538878ecd 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 4c87ffb7c4c9..6b524cd190f0 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 6e77d75b861c..dbc09be6fdb6 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 de4254fd9f84..20e35d13d94a 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 48af2a2d5657..1c79c09c9db4 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 1c57b1d1714c..7eabb52f63ad 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 301f330a2958..465bbdb21f56 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 a08484b929b5..3385325d7831 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 632b16799a51..6b0faebe1d86 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 e41061e74c84..e78d4ab6150b 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 c024df94991e..737a84c3eb14 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 0e9316cac8f0..6f1b4b6f104d 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 0d133c7ae3de..a10993896bf0 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 eff1c9f9d7df..68e27eb935e0 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 61922b23dbbd..663650a367a0 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 6d76a6c9a334..7153935a7917 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 d57724ec76a0..f2b810f5167e 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 72edf83cf95f..72193eb2bc9a 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 32b90ff699bc..e5972f7dbabc 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 4b7e35b7697d..9068ffda4766 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 2e1f9a36f5be..0a63908359d5 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 dc3539adb452..6ab08bb5f348 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 61065267c8cd..6654ae3bc16f 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 cf60cf3b5461..abb928fce1f3 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 b2c9c6c77578..ec68a2e48e4a 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 722e61f71406..1abccd923dbc 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 aaa9a60ed336..6d4f646e6575 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 da4be0ed5f2b..0f5d05be1345 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 27b9a342f5f0..32dd6a845f85 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 2f52c7307bb4..8d13af31412e 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 8b22572a7700..2f38eaf85c9b 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 6c44ff6bdae4..fb826591326b 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 55b03f085197..02372bcacfde 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 c008aed517e6..e393366502f3 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 8b8fd3d4f52e..3124c0690868 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 c6e5f485a8c9..fd0fd54b7c1f 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 8994fc03665a..9d07516e096d 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 ec7907e5cd24..424279a019df 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 48dc58c696c1..2067027f1cf0 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 d3b1a44601c9..ac7f1b31db2a 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 efdd322bd6ce..0c104837e6a7 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 717aa510beb2..6d662afd203c 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 7eca606352fe..5fe10abbb99f 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 d494fe55ed31..f0636b4c0467 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 6b84687abe39..9b5e9a3940dc 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 b0aac152b100..7d6c35f31572 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 70355e19444c..415401cfa67a 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 89c4fa85e072..7fbd8d366ba9 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 4cb2910217f2..97c7b48020e5 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 95a8edeb6b63..92305975f150 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 db92be6cf6b0..56ef267841d8 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 3b8e52a22e7d..68cd0daf536e 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 0473802d94ca..f4256c849b9e 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 8704ff92349c..0ba5f238600a 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 246618fc6290..665a19f96b86 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 fff4dd3b0ce6..63ac269b3121 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 bb70afc9ab06..306bec3686dd 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 a916d9081a91..75c24e32e939 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 9493ff8b4b52..c696c6b0dccf 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 e373df6a6253..32e2e769c2e9 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 46aacaae37fc..6c3286f54484 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 380b3e4f9a1d..0a1726046033 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 a2d0b0af5955..1d542c45990a 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 eb947803bf6f..fdf2b03025c8 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 f7e1383b6766..573ee7d83d78 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 62e5919887be..d5e93c3ef818 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 4759f1a680c2..20faec9d9fa6 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 fff076a18248..0802e6946ec5 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 40e466c438ed..71b8ab15f59b 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 4d3afdbe8c41..7f663c892a4d 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 0c619901001a..4f80a3ae9703 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 943cf99191a6..def41259396e 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 d5f6c9f72c01..e060f938e739 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 b4636439db2c..c84310930175 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 649c8259ad26..18e26a8f3407 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 da2961180190..e8afd7519cb9 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 084aff6eb19f..696323722154 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 868912da3bde..d0a94fcfdca9 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 db9db39b4301..d51266ca521e 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 8b3cd6f97568..33073fa49593 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 d13eeb97d6fe..4e162991b3ed 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 95710be72d87..dfabf9327393 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 5eb768b56cbe..2b0ae77a46ff 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 5ccb044937d8..a350703f8776 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 131a3dc4e246..1e308f0e429a 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 c38c3b2bd83c..0f4a7da889fa 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 f9b4ff08c297..ea59c142e17b 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 b5c4c70f0307..575fbac4691e 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 886f83bff161..e575805ba1bc 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 88f79babec7b..43ec6d41d3cb 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 7a16e41451ee..813bd1a57fa4 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 e415cb586052..f4a4d21d68cc 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 426f5525677c..7a5b4c6e9b3d 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 a2096acc4f4c..8f5d6c9b33c3 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 c9e210427e5e..49e9e43f895e 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 7580a279e148..356fd02171c1 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 3b40fab475de..4f42e350cd6f 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 1418b8aa4f98..1b62c99d988a 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 f57a6102bae1..4cf23d291e88 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 8aa92b49eda4..593957efe725 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 7d051b320dc3..2c7a92483147 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 2d5127a7e92b..094dd62535c1 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 d6b66fc37610..4377412659e8 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 cda3e4260a2a..aed536241665 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 e351f00c620f..007c04481171 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 b6c3ea59435f..bc7de93dd454 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 7c210cedf936..1ae6749e201b 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 c23830e71365..ee63c9154f11 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 750ca1cd2e37..a58d75b6067e 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 181c2171ab08..8f36c5b6ef39 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 cd3bf62c0b39..29462be42449 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 261afc1b7766..4abfd4a16ab8 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 123c6772cecd..2729f5547394 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 51a80f032e6f..b93bd537da38 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 d982b1376e2d..326dd8aa69a6 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 a91c453409c7..2dd71710466b 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 4d0506830b54..92a6d77248e2 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 f2a03af13e12..d5ad4d2e7982 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 7d067793b98f..83e3f1db259e 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 419e6ac2d683..68a6c69a00e1 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 d95d8cda5553..d7f9f225578b 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 b07836d20a8b..21ba4ff34f1e 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 37ae9ed03bfd..bf2ada17a568 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 9fa690ea07a6..1b312cb36540 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 0db836b9c75f..c4398a5f350c 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 4e61f154716a..8f4f38ede3a2 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 b9d3606cb082..53aadd5f680b 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 174f287b40d7..1e661062e0c4 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 e281c87773d3..e195ad0e2f10 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 b5d6a977837f..6d01ce7b9d0d 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 dd1b50de0a62..5453255ee4b3 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 193d7915570d..c1f522af4b2d 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 475d13bca262..c463bc44ef32 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 34ae75d35c4d..b4057e58fba8 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 30b2cbfdc219..03542293316d 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 1faf56521d57..57bc75e435ca 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 51c6e3f75be4..298587f6b1a0 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 f0ad60848b64..857f4f6278bd 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 276efe0c9ac5..d2f876b57661 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 f94f101f82d8..6a13730ac26a 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 8efa1e8f192b..3fbc88bec687 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 dcdd554b0cd6..83812e64649b 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 000b1f1c917b..79ceec5eae6a 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 1d4647764c7c..00f940b258ec 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 ff47cf853f82..5f5ca962f3c9 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 24471bbfd03a..8a0901ba8e8a 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 e5029dbacf9b..08e4ed39e995 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 bba2584cbed4..56f2d151eea9 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 73359f606e51..5b7839dd8ebc 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 1810ef98a8d5..bd4fb0f1f816 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 06d8860d573a..7a161a9847c0 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 e31f38b728f9..a49779f21b7a 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 1c70d2aaaa12..bbaed9245785 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 4d16692bf5d2..606a5933aeb5 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 f279b3d57d75..d0cd3b9febd4 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 745cad8c7f3b..d0815284d722 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 69054be51d89..f550709b68c2 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 2d5283fcb617..4da1649c2d3c 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 4aebbe57d6a3..f23c42d5224f 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 b47d5ef02fe2..9cb8ff0a9c3c 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 37a6f503ccdd..824a203d3f68 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 89c4a3564f6e..6976fd3efdbf 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 57319753e3cb..dc633475ebec 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 96a9540a5abc..12b12002cf68 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 a7126d5421bb..ff0171de13dd 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 904b467b97f2..03cf09b9925c 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 b5fb0b6417bd..25188df75b2f 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 415eb3283ebd..79e60bf957b3 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 c965c8ef02ab..4f01dedda2a4 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 78e7c063f2cf..3f0952305076 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 104b82465314..aa5e5934a1c8 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 ea6ebc1f0d89..1f7c21f28db6 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 63842f1e3594..fa7c8fa5a049 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 9ac52c01294d..51cef0424bc5 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 bbda4fdf3b78..03d0a2e7b52b 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 74df48614ba8..287ccf5fa04f 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 3bd1ae67db7b..a66ab27f0136 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 10cfa238145c..f2481056f46f 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 d9e7d395ff97..f03fecbf35e8 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 3b3b8ab8d857..cf254c1dde10 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 b5f4c43ac603..9f65232e4168 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 e65a5467823b..baf363df673e 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 3ef0cc8ac266..fd9c70727407 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 75be010a50eb..9b3ca03bea9f 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 983c1216af47..37f959e1e3ce 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 fc13f2de44a8..fa6c8cc65a35 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 9ad3785fedd8..2a79eb0c84ec 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 a7ed04ae8c7e..b4aa4c5268ac 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 c61f3b3eb852..5d434c2488b4 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 b19b32d8819a..d52845b15415 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 2a714dff345f..da530367b895 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 a2969ac58b26..9c3147b12629 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 19793343754e..7aabdce7b049 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 0d46f389a319..6bb9a656dda3 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 a29377af8447..32238228b5ad 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 38bd37f845c3..b183a2219f75 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 f2434e24c6e7..b7375b5754f5 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 add76c17a93b..869b56136abe 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 14ad52f822fe..fbb7b4cf651d 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 3efcb157faf5..5c4ea4a079ba 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 2a3a4c951e1f..a20687ec9d4c 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 034760cc39ae..edc97e6f3354 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 221b69629b69..d497c402e255 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 a358b18305c4..630fd9e139f6 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 c7bd2d7dcf83..2117a57b154e 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 527c646b7d2b..37ea6b682bde 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 3d9ef174883f..7d3638aada95 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 a4a2ea89978a..46c9f0a23ed0 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 8106955d76b1..37e75448a8d1 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 b4bbddc4fe2a..44fd2eb22d29 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 78f6028f6ea3..c668a5d843c4 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 4d4bed9de348..186dc49d51c5 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 40b17f45ac3b..e92d7210ee8c 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 0339a891d63b..3378649bbb33 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 1095a6514916..d14c01b9d6cb 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 6ab604a102a6..39960ab03a16 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 91d0e44cce66..97f50228fd88 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 eb28dee0f306..4439ff6e065a 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 2db63d249e21..350783429fbd 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 0b8d20a90097..dbb17197b7a2 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 650b46952985..62d4d50bdf56 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 ceecd8216f8f..58cf369ccb1b 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 2120340f6b0b..90dde414a672 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 a4c0bda9330b..5ab1364595ae 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 667859cee07c..46741e99a3e4 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 760b646bf80b..fb1cf4696f40 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 328e75af87ed..f8c34bd4cf44 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 040ed752abb4..ba1a4cce51df 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 fce6998f03bc..21cb20cd284b 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 0bb557eecc00..eb7e67500684 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 bbe596f47a24..6effb138a90f 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 ba6842906d09..fc23cdb758f9 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 7f290607bf15..5ad6cf99a4ba 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 deb6dadd3121..d0c5ee1d0dff 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 a0b07add80f2..61578dd0d029 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 afd193ce1a19..9313aff3a143 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 5209db5b484c..71fbfcbd75b2 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 6ff8eb1bd014..6329b0391eec 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 521fccefdb77..49ac05299ea4 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 fbb9fab5c1d1..5cfd5c84da1e 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 33358f93eb3d..81cb27e2074a 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 10a04d11fb1b..1d9ff15d440a 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 a1c187a36ce3..4728baa260ab 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 b572572a6017..64e1526687ed 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 7274509f7e10..62c61b970628 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 d2cb3ff5f158..751e12901b8a 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 0f1e8d8a6ee6..4740034da2bd 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 91792ccf4cf1..71981df5153b 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 cafd6523f229..08d58c5584f2 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 ec3e2df749c8..c1c4cf1ae51a 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 81c49a7fc4a6..b5a15d36c71b 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 2ec479d87c61..30c1988ffbf6 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 311832034a61..b89d0d3c1e21 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 b559845fed23..b8f8d0feb269 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 5948178a6c0c..db1165bcb691 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 07421185fcbb..879e19a1e263 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 936df0fd11c2..0b5174c92f63 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 2454507b80b9..381100ad5200 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 112f253a4844..573d3aee34fb 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 2fd7453dd322..f3c83a2d1b67 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 eb62e1dafc7e..a150cbe95cb3 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 ad2fe0361f5a..f86f24059950 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 a63bdd75180f..b6cb48e54ec7 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 112b70e58a58..1d7e67a3f486 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 69202588943b..45767fed0d2b 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 aa83710139b0..d2ee98247311 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 40366c5abe3d..5921f90983f7 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 4592a05ef38f..d9309697f84d 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 79b53e14433e..297629ee5b76 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 8720e32c0900..6b976dce9286 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 afbc26040ef1..7c00f73fe1ba 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 1703b27a1166..eb7f40289205 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 338e50032742..53e35707b80f 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 06a63d944651..58d018d6d5aa 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 b3c7bbdc59ed..a5363d566444 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 4c081a1fef6e..3670b536d296 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 97d3441d4386..313ad378b48a 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 157612837170..56bd6ea4b9a0 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 8f66f9b7b0ce..e67632c3943c 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 bcd875d97a46..2059e2833a6f 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 edbcd12f2270..772e7bc5cbf6 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 021d951a3585..a56492594d01 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 95c1eb05bae3..157819aff43e 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 a37f2050bf8f..52957d9cd2ad 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 5f4539e73f5e..fc07fb5a9008 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 ea01642c4ee5..e9f68ae0ac68 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 c338fbf67faf..a38d103e86cf 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 f9d52c203f57..d709bcf4dc8b 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 3422ce900451..8d2d53327ade 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 ce9533070a08..b274b0e79cca 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 4b197b3434c9..e7f56690337c 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 e0ffff611ffd..1876e4f3a151 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 f6d0a5646b9b..333e1921bfe1 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 973e241ce9a6..5cd847426e97 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 d25df3c9bf67..e60eb3352b72 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 91f0a6e11a42..c8dfe53a4b1c 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 b341e54f416d..f13036162c13 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 90cf123a3ead..3b5ba8500204 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 f6348f300849..9d7161f783f9 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 6baa7e958550..2c1a01e23214 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 392d2a9953dd..52884c6fb4b1 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 c31736030767..d9e79762fe1a 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 f3e7bed38da4..32d6b1177bcf 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 ae90b3d38c70..108ba5ccd02d 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 3e53ceb730d9..13230b6e7018 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 eb4465a2ff3d..bc53f77923fc 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 8dbcc36852b9..cda6b238ea85 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 f13387a0e15b..ecc176268e78 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 c442661678f5..cc73c00e8be0 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 191bbdbf33e5..a1373e99ccba 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 91cb5e658ad6..d857df9274f0 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 98b95f21c26b..c8b4d097ccd1 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 12f5ce274ae7..fe1e68bab087 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 84bb71cde34c..1e58edcce4dc 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 1543a303720f..6090f94db215 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 a5824eb36d8e..a5f878eea7cf 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 2429e1818dab..029b7728f785 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 f6a6842e5ce0..1e568f2f6022 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 ee3d346644bb..b16e7a7e598c 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 be8985cbb597..509aacdfaa9f 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 0c4e54fd0d38..f283af658aed 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 248535d760e6..21dffc51a00e 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 3cd55e5f4cd6..abb8f103d291 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 02334826b174..fd9111809dfa 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 a1a0951f48ff..3fcf81fc8b45 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 8f2d35128115..49d745cbeb3c 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 8bea71ad7297..e9f860345464 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 575d4b428f6f..b1814430ec04 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 423ddae56d76..2699e31ea9c6 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 39c62613386e..8fdbf22508f3 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 65fef32f8917..c82a42c94802 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 997d31b0d1d8..c79c54575b6c 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 ecfe1cae4e15..3e7a39f24d74 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 7e158d0002c4..c7a2dcb1d5c0 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 da4f112df0c6..a0b2eb589cc3 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 9482c67dae75..6a769188f357 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 277cf9ccd549..cf3d9a53ea40 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 7e20e2df2f97..531d8b5c6161 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 902f51aec700..155353898791 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 5d92e97c6be6..626b3cab4603 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 1b7e581975c0..03e03268a917 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 03e96b5a6e07..161a02cefc7e 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 e538a022d96d..b66e408cc1d9 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 020777e62260..9b4577eaed06 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 a9569c738882..4e268aef19b5 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 bf3a1a04fb54..bc0e9434800f 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 db4cce169c25..9ed242b7e517 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 7cd158f825a2..862df0bd3b31 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 91dda0bca703..d31b5fff7601 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 148833444727..4430ba99bdf6 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 adaf7cfb475b..7cbe4e67eb7a 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 1d4ab73282d1..42766986f61c 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 eaca8a5ea584..e95d2aae0887 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 df19c6ecefdc..7c3ec6207ac9 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 ae655d47a229..4e0a72d5f5c1 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 48d35ece5ae0..3d3dfb5a8aee 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 97a9ca5744d4..69bc977c3a68 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 b1639db3e5cd..681587ef06ce 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 1e1936a220de..da3ffb25930d 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 6496f6f42911..8d168e29f999 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 7bf405f4050f..01a38fec4507 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 2937fde3e74a..1a620972bd47 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 6698b669e4f3..2d17cedc6244 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 e13670556a82..cd836faf381e 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 733783c97c11..f194dab57cde 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 1e99cd758f37..03da69e7e7f3 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 ad3352008c5a..d4124fd66e6d 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 e89427b4524b..7c246f9a598b 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 0368eafd7e13..819a5cbbc83f 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 5336f02b5bf8..b5fdc4456ced 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 18591b86b53e..8d9f9e0bed90 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 cbb463ddacdc..f4b2d09dadbd 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 db8b5918abb7..695790922731 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 5b740b30a072..1a60abcc3f2a 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 2a45988559af..9e0211ce868a 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 ccc1b32b08dc..bb0651b51d34 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 94e99ad566a3..46f8b7a9ccc9 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 8782e5f6158c..6ee5153a4752 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 5f652b368573..b245d70d6178 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 b151eaa0e48f..af607ed5d862 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 72cfd7f28ce2..6c3966820d66 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 e83e460fdd64..0d49c273de0f 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 85be766de58b..dcc2af9bc89c 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 887dabf585dd..7e814ebff68c 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 ae6e7ce94492..408a00170dc1 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 f7a0f3a8a75f..60a930f73c87 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 08bf754b4995..c3e97ee18bb8 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 2ad0b583d114..ee8b8e4eefad 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 13dc278b4682..fc650827d6eb 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 0afd577e6269..54bc84544bf4 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 7a647816f03a..c0bcea589145 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 e1c02ba48645..51dc06ea21b9 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 01a94ab70744..206544eedd6d 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 488890227ca2..1ff2f632e8cd 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 aee92ca56995..8b28594356fc 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 ed04ac1cebdb..cf0f405909be 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 30c2cd6f7910..e6525ca563cf 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 4bb98b0f45ea..f634906b109e 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 e6fdaa6d6e08..04855748b499 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 96e673f08279..56c9b1d93e15 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 4fa0ada2e911..07e3c5c5d8fc 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 45cf331ce67e..69111fea3bf9 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 1d4eb3227afd..4021a76bc2c9 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 cdbe619abdf6..5d82706b5808 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 e375b1df8056..cd23e670540e 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 38fcd11171be..e7c67903cc7f 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 08503b627b01..dbd36a81c2ea 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 2cf538e26858..85800b53a4f6 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 73ea0213f87a..39f4cd9ef4ee 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 74bd889cf47c..43f6a9bde881 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 c68cb0a22ff6..8c550ab4d09a 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 5ba3447867c1..b80110667a1d 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 c6720b4ce79d..df47839f542a 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 6e81c3185073..2b2766e9b5e0 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 847782373976..1dacbef87531 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 b54c49ba047f..cdfae0026281 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 c6f342428690..78a8f98c8e92 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 6446bf739bfa..8ccf80dd135d 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 fe2afeba9bc4..2d699546810b 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 d34e36693e3b..342a6a77ae35 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 bcc7daf9a82a..823040b4ea17 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 5fb5296c3989..a289049092c1 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 33be890d0479..8dd17b7778c7 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 18f4d208385e..66334b36bfad 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 883a73508411..bb1a89b11726 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 cd12288708e4..96701048b040 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 c52bf003728e..cd1084bdcfbf 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 24c7f60242f2..2a68d21aea62 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 d104e7304c95..496be8845549 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 bb29db5bc957..586c5db29acf 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 5a5f8e15dc58..4babc85bb2c6 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 72e1718bae3b..f77d0b2b561e 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 3a62eac572cb..a09734f34bf5 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 f8cc5809eb99..d57ef33ee4e6 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 fba8adb8167b..c01b3ac7df29 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 8f3a87dca7ef..1fbe5953ac96 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 75d5ba7fa074..1df85a7e6dd3 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 139c933ff426..c0747548b581 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 842c4bc7c567..487fc128ef52 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 9fbb6785c8ba..bff34956d2f1 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 ad626547bad3..4b44217892ae 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 f0243e4b8f62..c5143ee12df2 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 e934a5005438..cb4f5bc41c63 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 92164922edff..aaec0fafbf59 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 a00572f05b7d..8259ae68a582 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 8df6855934a7..0fade6ba0964 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 c0b359eac768..cd90e3c162ca 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 fc227c9d2a93..4cb0dce61df5 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 fcb7eb40d30a..60b989e62092 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 da623f9dad05..80f9079945aa 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 d653380a9fa9..f0796d56b37f 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 5ed4a9277773..2943074a3ee0 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 75629840bf48..eaf851b25e18 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 0a930d397ae9..3ad2cc4cb28a 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 0d59cac13a7b..aed2c9a30381 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 4d6bf058ec49..be63efc68162 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 14ddb1b7ac42..8a6c98d17a08 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 bea6c01a00c4..bbe93317d2dc 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 942e322adada..94bb956d9c03 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 354bb04d8c94..7e0fd4de74c3 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 1be0c676dcea..e0c0daad04d4 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 47fdaa707ec5..3a117844ddc4 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 e6843dc09010..91d504ae4d2e 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 171fae329463..729ee4efe79d 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 4885f1da14fb..8e7a45492eea 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 7bd7c164be5d..ced9e30b296e 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 62319703c7f3..17fc7bfd8bfc 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 fc07b8ed890d..42240886c5e6 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 12493073ca03..7fa900e2074b 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 f05ece30ed45..a3054811feb4 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 de803ed8133c..1d55bce007d4 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 2c040ea8117a..8132145f12ba 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 b2773f109d7f..f517ceeddc90 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 969620cee060..e98483fc7ab0 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 e6ceba630dfd..375e355e5ddd 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 7a6245d7f060..827465859b73 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 29f18b587ea8..2f049c496daa 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 8a4f41d171d2..ff26e9a0c2f3 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 b245259fa4ae..92cf9828ea06 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 290c68ec1f80..dd4a82bb6a93 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 0e68c4a26ba2..415bea507c37 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 73ea8aea9191..993edb3e1895 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 bae59507ffcd..70a50d9d08c0 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 a31620a8eb8f..874dcaed2472 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 53d4a06103b1..301fbe4314a4 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 9a647ef091a1..65438295ff24 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 8d53925b4e4f..274ada542b25 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 cbd8672d1f38..774c5c2e6ef5 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 84a01559909d..f3694faf1091 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 36e455c601cb..f126c198dda7 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 5d38c9ead8ab..672a1b04771f 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 f0d0c9353b2d..8240e76615c9 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 28718521dc71..e89547dd876f 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 4db85643e45f..f06bcf1def1d 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 9f8c5c20c148..385a0827ed0d 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 064b6445243a..7ace0c88f599 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 b0ead98c3161..cc990eb281b7 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 dea8e1e1756a..7860418771b3 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 003f9cc53889..7b163b1a06fa 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 5a0fa256c720..ceb5f553132d 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 f392ce2241df..050ec3ab9f3a 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 cbe8760c2eed..4e65825dc1cf 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 968078d4a740..cc62a3212f8c 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 cebc2e8ba8fd..4cd55e335c10 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 223ab1ef3e35..92a2c333db30 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 f9b1fb49ee30..804b04f25505 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 69c79ecbff27..1bfea0ff13dd 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 641e511f618a..6f1ee7de8f7a 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 0834958379c5..d30056b9cfe9 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 0eaacd8917ba..c06875263c7b 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 89b189c20fa5..2ef3c896222a 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 a9950794bbd0..e08463920964 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 218f1b5420e2..151c63f71df1 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 936f6246c91e..7d773830330d 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 b8959c710466..54078aff778a 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 24eca60a8d1f..99c76260529d 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 6ede4c7993c2..e6cdeb9cee8b 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 c84fe36a3dd6..0b0bfad9efc3 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 2f9bf68a39c2..c8499b03ab32 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 fb79c31452ab..065f636751b7 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 89f7c92ba3a3..9dbec45da1e1 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 864cef40825d..5eb524e582dd 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 ea8ec54387f4..72317ed2a913 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 ccc36b928ff8..66219fbc6989 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 81f2bb39621d..378d446f255d 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 36c894299791..3bedf164a2fb 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 ddc3d5ef7966..8466b0067f8c 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 99e649fa9bd6..1d345aa52637 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 72c87ea49ad4..c63abb0b3f5d 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 aa213a39239a..547b4db554e2 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 214eca3ff792..f9fb67f610c5 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 bbae85023661..d6b63b0bce64 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 995b24af7999..c83a5a5d09eb 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 3bb065c487e2..8ae6498733a6 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 4e9f7d4096b1..2712b64deced 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 2cf8a766328c..761d52d60f9f 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 bfcc01675c39..53106f93b0e8 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 88d04c57f40c..b98a3175d9af 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 e316d766ab99..da3207fc6e00 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 bf804a022628..8762eee13b34 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 84c4efe721bd..d311003df686 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 1b2fc26e9a5f..de907b8bdb62 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 36184d323c7b..3f227c9028d1 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 a31fe528eb2f..3c267c71f329 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 c77e7c0e383f..280ff3a26907 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 cc24e72aa388..b3bc3478f17d 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 13ea9d2cbb38..185c9787ac3f 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 e93e3d390811..70794b4ad0d0 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 f250e710056e..2fe418fe21b6 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 d9068450af64..51ffebf13b4c 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 1f016098fd59..aa2b60651899 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 8334aaa864bc..bb766e12f9a7 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 83698224a312..92acd1d97888 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 12efb6bc770e..4a55167fd0e1 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 478b351c3740..2463ea7ce044 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 82ece0ecbbfb..2550b7064620 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 6a5f68cb24b2..f0fa9dddad97 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 7fc3a95e9584..d23f51da6964 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 1df4291f061d..9408187ea7f7 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 b95e71351cc2..2f8d0f72944d 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 d65f9e35d753..04ff1d01e92d 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 76a69618a3b2..4d3c710052af 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 c1823ee6f9ab..91e7de886bec 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 f8fb67d915c3..2dc2e2c3235e 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 ba7418f3a1d6..d7231bda9974 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 5b7fa3c596ff..66b517af65b1 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 ce74b460d6f1..2f1259317ed7 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 2c26118671dd..4eac9f1d1cb1 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 18da08063d48..703791be2be0 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 949ad048d0c1..b14674721fff 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 c0a060e12a45..093c352a6be4 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 02fa14e0c4ae..b43473823bd1 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 93cc2ea15dfa..2164b6b7c2e1 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 6a62ece16694..4230713044d5 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 f5b6f95244c5..6a2baad6a091 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 50bc63ca613f..69a3515cf568 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 851859549385..2e06c1bb723f 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 56d4523ac5a1..2bc0184db1be 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 42e151a25f87..6c91fd0aab94 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 90407590293d..71635b3a2abb 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 4a8b2076c836..347d2c1c3dfd 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 2dff7785ab10..9cf9b7bbe411 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 a10663670e5d..b37dc1b900eb 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 8c9deaf50013..15a9a946639e 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 439d695f87c7..66da1853abc6 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 564f2a96c7a3..18c81874aee3 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 b18b913fdcf6..faa4bafc7755 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 906f44dd8df9..3899a2849057 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 4bcd71c79398..c7ffd4104045 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 43932ad3f83d..9d378ea3bb4d 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 9ba47b7c6d5f..0ac9b7732c81 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 5e71f34a6271..67cd1191a6f5 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 06c837813fc5..b7bdb75b16bd 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 a553e1a0cb2e..95332269694c 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 b295ef86743f..6b9251eeec61 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 9a048ac7696a..ba8045094376 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 a232a0e1cd6c..4482e099c48b 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 ed47f6bb44b1..525408de4776 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 9a4051a0b068..2a64f84c3c8b 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 9eea50ff44f6..a34c531f9138 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 df36d03061e4..9310270e45d8 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 274923e66b31..ea8d4f4e6105 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 d417419eaf4f..0e347dd5a34c 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 1068785d3fc8..299cf5740e9b 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 c40cc20a9045..1632d46cb59d 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 0be555b090d8..e29a241b8d39 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 f67b296a788a..7aab1d919b1e 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 4e1cb9fe5c7f..ed85c29a6f9d 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 8d6f9e1b7b4e..edd14457b482 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 9feac34b3489..bbea6c074fc0 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 172939765308..24ae34f11da9 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 6cc3734f229e..d9604166303d 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 6487afe8179d..428ac6783afd 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 6fedd59b3783..fdcdf41a8984 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 6f5ba80e3220..bb5ebe566bca 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 8c3a49d86ce3..9faba04f316d 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 557a010a230e..1018545c39dc 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 326f9c54f583..64374b9f889f 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 1841c0245155..bc595885bd0b 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 92598550aa48..9a862340bc25 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 09f418a42ca0..85acd2cc27eb 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 a9b88c182ac4..ef1a54d88ce8 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 41bdbcd879a7..57107c499990 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 a58502357e4a..f4df6efd00eb 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 6a65e5d5208c..3fe0a42ae4ff 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 d85134c20901..6572dc66b317 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 28937fb4c997..633bf3a7712e 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 7b4b1a5c20f6..56b0ab45de7d 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 6904e94c672e..7bb74b855acc 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 9931368124c3..2dbf9b2584dd 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 13d503d6edcf..3bb63872dd4d 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 f5d9cc9b2fb1..0c1c8cc3d1e3 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 b0c56131f12b..6d735e25240b 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 7b4ba37efe90..b45052c48727 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 61811f61e9ff..7a34655c85ae 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 a8c898b55c6d..e30409816bc0 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 6b574dd6df45..136c05da2c61 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 6b36d3d84d33..c99782f53007 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 1e78fc80ac1e..c8f6a11914bf 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 03ed6d740d74..65bf2927ba43 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 b7d7fca5c0bd..a9ccd73e07b0 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 3de48a3823f2..ee5a5cf001ed 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 190944bc50ba..c66effd196e0 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 1a250b4ddd76..80d9d0a58845 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 8a1754605370..1afcf719fbbb 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 31eb483378cc..9be659892382 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 6aaded89aee5..5892fc68518e 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 97f137e5fc6e..0efbd8fb9858 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 821cec91f918..b3cf793128f9 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 72c29d6ed6d8..0cf8515f1a3d 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 1ada3937ddbc..ed38eaccc600 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 beaca3205a76..7e50520a1e73 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 6641fa68a4a0..4c5e197d8e33 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 0a47462d672e..f47f49f81963 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 7c7139b742d0..d39943aa2655 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 0e7ed8ef416e..ba6abdcb5151 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 5d4c238c3ef2..d4f025d3a16d 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 15103ab6ffa4..6e24b767b8e2 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 d26deda23071..d98052fcfdf3 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 f9dee76073ef..22c377e7d0fd 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 719d9892f877..1c41cc4e8474 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 fda3d51c3596..42d06cd545d4 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 ad82128163be..00d91f191654 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 d0d0e91ebf9e..4c0dc07069d9 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 adac269fd798..99b154a91259 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 2ceaa1daba3e..102f48104abd 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 175e27fae7fd..2f61cf6afcc4 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 102422c8c50b..44eea02e0d8e 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 fe38dccb4bb4..68d21a1372ef 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 c4b00fee944b..0ebe468abb01 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 80ed2ac08608..a3a371f1dbaf 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 ff0f1dc273aa..2941ad88b156 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 c5518d9df63d..3cfa55b4af42 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 d96c87c95549..f6b2878cffaa 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 22ab405cdc26..8fae3c35897e 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 923c4a253a8c..8ec62ed1e48b 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 9f418a259663..2c5fe82c0b0a 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 7baf5503fe4e..fab6fab2d30e 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 b92f913b1b80..f57db7d8367e 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 daea46f35308..906b969bf34f 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 9732ae832f1c..f1fce4df7be5 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 3bdd601faa51..14d4eb51d7db 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 17f21f51c8af..7be3c683ce1f 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 b252ff4fe1b3..760222129d93 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 255a1cd925b9..ae651b53a719 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 f101d0e7cd07..f9e4fbe35f00 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 164cbd3a11f3..c715b295c61a 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 4d34c43420f9..8798460ee5f7 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 71c8f2e5afda..89a92bd7374c 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 0c5a755f7579..21e577fa9842 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 3329197ff112..7d5c87175b87 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 99d7db83972a..6143439eb374 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 5032dab6d953..35e019e91a08 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 889b686bf759..b16f9d62061e 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 fbb2d3bb47c3..ac44573f0f9f 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 d8597a02a310..cb53dbcb5f00 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 0d4b3057dd82..f980de5cf8b3 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 c8bbb0142912..b58ef504bfc0 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 df2d66d6bfaf..77157362ec2a 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 b4350ff785ff..882eb9823ac5 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 b292aac6e601..4ac3b9177702 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 e7ebb35914fc..5689b58b5f43 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 37475afd0684..8109574b1130 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 46f9094cf57b..f8dd832fca12 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 8787f7f6ac6d..663279cbef00 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 2328d1ea87f2..35b0551dcc25 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 03654bc904c4..29cbf7ff95ec 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 e5f21f285772..b759dc257b53 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 24fb8da495f0..14a78e94ddd8 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 adce1f9b1e19..4d36e4c99e79 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 6ee3c91e9e07..2166e5fe78c5 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 57dbc2bd0141..7e3bc76055ff 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 af85488666c6..a7489337ac1b 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 c43213d0c220..16b28a9e1d40 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 361c0993fe48..3174ba7c5d32 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 ab95ff746cc9..d2d5e9c84c65 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 45d2274ae05c..659c7ae49586 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 69fa9ac19d56..0630115f27a1 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 ae6f21f4076c..0529133fe325 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 1b07f4d5ba4f..f8a9dd8a4210 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 a42d19f772ca..b94f097bd8ad 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 e9a7e653c77f..2381613fb74f 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 bd75434de238..70ebd2fd1a6f 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 4fd21f9380fd..e83451b3957f 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 a05cca61e8cb..c40e249d83dc 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 e06202b273f3..c38da10f1b76 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 2d8d045ad4fe..65f265ad35e8 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 956464dbb5f4..f70c8f6f76d3 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 9e7aac974c62..d497cab4eb8a 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 4485ab84602e..1a5701b83f64 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 d887ce20ef76..aca586f9732d 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 25e4d514073b..34b12f5c22f3 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 7ab80b083005..be1064714734 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 ee9f10f255a8..f6c33fc2a4fa 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 0da95ebe6e9f..2bfd7d825a3e 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 3258fff12db7..0dede451cfcb 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 ccc7194c9418..1b5041a69c55 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 5e6a67990453..3c41026f074b 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 b9d13b3263e7..8630ffb427f2 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 0adce7f80c5d..fc847f46319e 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 25e7181cc539..81d5666baa71 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 cce881a22cd8..619060323cf6 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 2207e0b1e7fe..fc304e343fba 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 2e14c3c7f6da..b7b979d6e7ce 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 9d949026964b..46fb82505275 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 c9dce0b9ddfa..c3bec62d94f4 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 738d866137d1..ed1c6365fd83 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 5bcf1f2f5eb4..a7af2741bd12 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 b86d35488391..45432b1fb34b 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 403df1078fe0..7b0cdcda04f3 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 bd55aea73c5d..215c88410ea4 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 9f3d428f8cc9..2bbe094a14e9 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 a9608086c18c..7b8cdc7ffe81 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 82570100d8a2..3fef83978365 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 614f1ef0c3c4..bbb5d3b10494 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 1bfad45ea45f..813f179fb73f 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 904731699b82..255281aed099 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 50fc65143155..d3466b47b804 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 eebcbe8ba0bd..2f3c1c73676f 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 bc48204c427c..0aca83d86950 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 4b56ecb8e438..9115343fb8e2 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 1b69fde2cb97..506a68c621ee 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 ce60d402ac84..98531a185b45 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 2b2416eb6789..fe47e6c92d8a 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 d9cf455a63ae..83e130fc3594 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 9bd76bca08c3..ab1ec6cf4e0f 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 9aa20b6ef7a7..c5ed23dd1fa0 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 aa731cac8306..d8485aef6e9e 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 f32196b90cc3..a02827f599a9 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 ff43509cf500..3d3971f995a4 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 ff805d73848c..93e71d0523d1 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 4295b3ae8f13..e0018e481f5d 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 83662da96eb6..f0aad10f065a 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 40e1074ce56b..a19bb025975c 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 9b983536bb26..5d381b4303c7 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 ff56fce98751..42267e3d0e70 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 7ec8e8919f38..c39f780c1a02 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 397818dfee8b..e231118fa6f1 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 11e5eb7e8f97..9492ab24b998 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 7654284a5f90..150a4870983e 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 cbe825b9465e..948984eed881 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 5b8da25f275f..7023558bcbd5 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 735b00787d7a..d1d82696aa41 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 c9ceb4ff31ff..cff3f8c6f13f 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 973d971bf74d..0eae9c3cd500 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 a638c49922dc..4422570c7594 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 7990d3bb1c1c..7ab4d6cdd3f0 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 0cb896a2a99e..60eed49740d8 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 1685aba2179e..c5fa23ad1154 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 00f77621eadf..5b44f5fd8c60 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 175084237988..5895cbd4740c 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 72746872b1a0..a9adb4f531d2 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 e4b05258e967..0750a6186ca2 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 0255743e9814..1f20c6a4fbca 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 16d4c750641e..bf911d93f648 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 0da4c07b5b60..35593b83206d 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 6b482380c73b..aab0a09c069d 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 d36c0754f392..925aedcf9ec2 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 087381bdf126..68f07324018d 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 b961e6ed80bb..80a4de4ce812 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 baf793ae1d99..4ccf52fd5d1e 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 6c02f1349738..f20f79d3c9ac 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 bcad5897265c..fb03b7bb04b4 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 b2186ba7f969..e77ff22f0f22 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 8ceebd34e6fa..9f9c330c74e5 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 ffa5f5639ef0..52a2634415a2 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 81ea6567e2ea..4a6ce2e48370 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 40b294d5c1d6..82f8e49282f7 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 ff17891e79df..f78ae8c109e9 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 66e6fc050352..69ad72b144a5 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 ed31944f22d0..5d11e33b6b5a 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 46cd04bdf248..bfc9fe960343 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 83a2a95aa80a..efd10c594384 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 544699d02fc5..eeef2ddf55f8 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 dffffd48d4df..b93eb3de90c6 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 e3fc6eb78844..27f66b037f66 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 8e2f53a9ea13..be77fac58a58 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 9e5a6bd94c06..71cc3ed880f8 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 3454efbe4c48..5392a1d468d8 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 b351c0a0b5ca..b4a0e25a31a0 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 392192a0f690..1c7fdc968e93 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 7d42175a9252..a74f96af1e21 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 ac6ceada00f3..7e5718c7bf91 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 659804a7eb76..5faeda95962d 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 41c6b7f9ef67..bbd8a0831933 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 79fa9e4b15bb..6184a84445c8 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 89e8d54710d7..0cd4d05d5f84 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 4d31b5a2d792..97908bfd64b9 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 94b696e77286..1d93eebb7ca6 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 f982e213545b..b4f77cbf20be 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 f663cf67b42b..8d93fbed1f15 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 0b9e8548a31f..37ba919c6b73 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 7da4fafc960d..85323904995c 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 f418ec023fde..f9d6538419d8 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 cafb2d6c70de..1f2e8e53cde4 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 dd2317c60892..b011d2045b95 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 4abd6889fbe9..c7b0420374f1 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 e7156fdb39a5..978ae6d2fb11 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 5bb766840595..44440b0655c9 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 b5d0b06d406f..1d78de7461bb 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 82664f317da4..8a671f4db975 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 f54956feec65..bfab5e8bd569 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 7ade1cdeb9f8..5f5c4b738e92 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 bc31eba097dc..37601260805f 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 95ae9d1b8661..7396a8c55525 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 59ad0c93b499..34ad2ea65de1 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 ff4dd998ae47..c15cf7669dec 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 9b1e6701b8de..b099fa57e4c4 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 a8ac553070de..9a85117ee9ff 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 3acbc86df3b2..0a96d8129fd2 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 edf380f6d87c..16ade4a12980 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 22ce52527689..b9d75e411304 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 76a4beb6354f..5b7ddd3e41eb 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 4a5c711ad4ba..ec500b16fa00 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 bc3f00903f86..26c1463c8e14 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 6c9c5959f4c3..c1626d98f965 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 4f7dfe254e5e..14e3a19547eb 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 7c3f86e167b7..22d629e8f842 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 e37854f110f2..7b438840153e 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 2fc8c707945a..f6086d56300c 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 36ae50616a34..44e5a940a181 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 7958d29567d0..dc86e1c4827c 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 c19e80dc4d2d..b8b166c92551 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 a6804f743c29..7d88a546762c 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 2eb7565e42a2..3822eb37b862 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 bc7bdb1516f5..178a796fbbf8 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 ff879994fccd..899c54c6e5a2 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 23d4b4372ee2..14d57f2dd95c 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 442a5514008d..90be4bc0a7f2 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 55812b1d0114..34b4d2d80ae3 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 0cf4a3b66bb8..080cdc220518 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 08770d7ff17d..d40471d01bfa 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 0a236b0923b0..e2138d6a1ca7 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 32434e805a4c..8002f15d22da 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 690e7d45989b..369083fa9a05 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 3239ef3aaf05..81d5e699e85c 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 cf56a7ea2f53..d7c4dddac439 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 d07403356ffa..35e252f565d4 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 a5086b040c78..0a66812bed9e 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 be6eff15b781..4bb640c870ff 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 f415d85fc62d..8d59272cb7ed 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 8fe0c470a3c2..2f387c7209d9 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 f9f52da49f86..9e9e7988ba4b 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 aad888ae4a5d..8b6c77c20bb3 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 54803e43195a..b3fb4eee98ad 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 66d2fe85484d..4bb9a9d9c676 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 01e5f3ff4470..4a5eec83d6d0 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 608eb2963770..1e291bd2bd74 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 edf99be3a566..d30f25cb7105 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 85542765472f..14202d146f21 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 da746e8161e6..39bb03a9a716 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 09d4cfed7a30..e7014d649802 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 ebdc18a64adc..c9a008689953 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 abe62adaf480..01707c01a626 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 60e6c6110102..9ddf1f9d51bb 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 a87073d7384f..1da3a5cf117e 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 c6be92433553..0be40e5d7358 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 3d29a18b1a52..2d4cecd33bd0 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 1c67e4a081da..18a880d2f1b7 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 99df6ddfdf85..4f1910ba8d4d 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 142d272ba509..b0fddf753331 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 e547597ba277..6bdf497e31c6 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 26db761c0f89..c5cf7c60f7e9 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 7ff2904128ae..a8f3aae3b029 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 f1a151c087e0..50e1752c6d11 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 c15248460f68..954d11bd05ac 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 f216c9e0a5c1..d0999ab8903d 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 11fc5ec90d4c..9570d57042a9 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 effffb7c7724..fb7c32122f4f 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 8c7eef6ab6e7..eeedfef64cf5 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 28c9bd54902f..809d0d343e2f 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 8edad2958c41..81cac9cc8c92 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 2381b307d891..864a262e206d 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 e809b3b685d2..dbaf3f223af9 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 3f8c74972c97..719dea2420fa 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 65912bee339d..a4760ea9f014 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 d34691cef8c3..7bab5c687bff 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 4b6deb0b85bc..32bc6a065929 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 f62ba64a7f42..d7dc7759e97b 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 91487b98046b..974c4aa2ffb8 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 afaa5c607ffd..145b2a993ef4 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 7e49a9d22da4..c9612ae9e84a 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 89dd0371dd8f..33404f4424a4 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 d59e9c1de397..e93bacc774d2 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 bf5d8c9ceed0..9a379ce21e8a 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 ac60693ac731..e5262ca54edb 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 881e06f56e6f..ee01867fb4b8 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 bc9d8e44fec2..710b19bb7306 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 7b776ae5b0fc..777f976b1fc7 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 18388b06b089..5dea5905ff5e 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 ffef4c091be1..b724607d4fc9 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 5aeb35d228fa..ab269b85b082 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 f9bd7718c947..e4d10e41d2aa 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 edcd79f46b80..b3c25aa11966 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 3c7358088408..0acfcfe2570d 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 31f3865c373a..557565f9f5dd 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 64c1e887524c..d0bbe65165ab 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 6a3d4c3dfe99..549f3d50dc07 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 797d9b6edf52..dcb8c87773ed 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 2dbdce1a1c04..739ff08d99ee 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 e2f84af34ebe..c54830d5bb86 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 cccb54c36035..16d1034cfdb9 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 d8ec53e96b4d..c5b0a5b7716b 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 93568ff0d07b..15244cb2099e 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 05cbeef4a9e0..8ddada139b11 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 f3f7065036b9..777e74bbb4f2 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 8e244675217f..865ee77d3688 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 467928994845..8b331fc343ea 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 c363b5c83fb3..06d1130a07c2 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 1bb9c45682fd..bbfde32823d1 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 f9aa40af029b..e75f7e57bc6d 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 3e5a81860616..2f1654572aeb 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 ebbab6098831..55860a95618a 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 90efa77b7972..f3e69db5b9cd 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 7c5429a389d2..002244cdcd5f 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 9e611edf8f39..03ae79febe8a 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 710cbdad446d..0b3fd064994c 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 db398f3072fb..c2301ab451c0 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 9dad54aef41c..ec382ea20a3f 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 52a6f9289742..ee714d8c6064 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 e2d87d1c71a1..6a74c127fafa 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 3ea651595853..caa6124feff1 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 90e7099f7f66..4835e99210a9 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 dee5ff1c86a0..4f36bca72c7c 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 7762a2fb6907..4af194543702 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 7782ee7e9845..d084dae9209a 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 d491da94e39c..b0b63d621fdd 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 001f8458db68..7eb4b7f5d230 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 1191c04b414f..313161fc8a60 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 a32bbc66acfa..7e60f9801493 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 a55243722f14..3220e730dc1e 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 edd2ca04e344..01acd1ba1440 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 a8246ed72773..2b63c1ba08cb 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 21f62c3259dd..856122c776ff 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 b3ace5cf7164..b289cce58dde 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 e1e0854361fc..c1555c0b2991 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 94e7c609ed48..176e00726622 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 b0bad66f2fb8..4976e8c27af0 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 0d8826c3e233..1763ba5bfae3 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 adede17e2c68..c356f492caa9 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 37288d32923b..1d8687d66319 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 ded1baa53da5..7d3820756db8 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 39af8e68a59d..570bafa088ef 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 27ea43971461..9031cc973c42 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 804d75b1a107..d238bb848862 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 43a044d622ad..39131e39d818 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 188d7a2ebec3..0004fb387d38 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 2079a0fbc4d6..9ee7bc62e9b1 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 04b83efe9179..ee4073f31eb6 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 8fab3338998c..f259d426f7ff 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 d2d146df8f2b..72db25158444 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 61d51d614e7d..595fc831f7a0 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 e0a89c328360..455cc4cfefb8 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 d2f5b2904dd3..b1e3de7183ae 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 db18faf59883..e57662e71635 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 9da5b9a95df5..f27d51e333d4 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 0d7c636447a8..3fe5b4ad70ee 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 ca4b3f9376c0..b83c464cab31 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 681cf9b5c537..d5b529ac6362 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 72f25ad3da17..ea7bde2a0f6c 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 9941f5c22598..dde47ec9a18f 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 2c8a49922407..bece35ee972f 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 ef388e04dd35..2fa3b35e435b 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 d5aec2f84029..b2b170d739ba 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 caa11ea21d93..609d68a01fb3 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 91259eaac771..e7668a447914 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 852caedba78b..c221b8c84e01 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 c38a15b99e6e..c00970ad8160 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 2b6559b82555..57b3e0d1b45e 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 1c8fd53d257c..8d4009867b4c 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 7277ab833358..29d6421af8f2 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 cd74fc2f26fa..936d341512dd 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 76d5a9f5f037..a9aee62c3e74 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 c682157ec00d..b2d9882ac34d 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 0e06a3b4d49c..aaa88a3c09d7 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 1833501f3520..011ce8c0d679 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 50f4f5ad43f0..51a0fc3386e5 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 23d374bb6e41..1eed28bc1937 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 eb9bf0c70876..ea3489b7a90e 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 fd385910fc7a..9b14f6272c46 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 47637d40148c..8ff18a017132 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 9214485c0317..6584d078ebe1 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 27e92dfd099d..705ef4ce78f8 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 0528f197b4ae..63770ca1906a 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 73e9737d0caa..0912e1a4b07d 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 03e11e5deaac..41336502ef0b 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 eab489bc2900..0d4ffde9eaa1 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 a7ac3deb3856..d34067283963 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 e71882f9b477..7241ed9258d1 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 fc6d99807164..2f7023afa409 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 d0f24f18e488..0b5e9ca0131d 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 b716bea9f593..6cf13ad08429 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 6a89f19917fb..b1f32cb3df01 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 64c435172015..f672d5c0ec11 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 b3a48373d66c..91697927b3bf 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 1ea4c513f3e2..1044abbc76af 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 4bc4e51a9c90..eb25eae44efc 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 e939e7c259ea..6d8d82091132 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 df1c87959c67..9a11a171f1be 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 bb0d722a15ba..6f8c4f594ec5 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 5e44674d38c3..4fdb7426a7b0 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 dd7abe510c3a..361fd0123eac 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 f17b551789fd..3b3e566d20d3 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 12c4335e7054..0d15b6f1ac5f 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 7eb9f498d62e..dd028b5d33c9 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 4a6f9de7a729..b8a9d633942e 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 42b41e04bcea..ba551fd72903 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 9eb25d17b7ce..fb1a064ce618 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 a0ed047d7267..a818e5bf099a 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 5ebe6548d82e..e23316bcb9fb 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 4a0da16954d9..003038633cc5 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 cc897601537d..1c2148a0cd50 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 2b7c289b3648..64bd0d8301e3 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 eba3332a8b6c..31db1125af3d 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 11f4ba713d4e..10a3fa2c5413 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 10e92a4c03be..1b7085dafb26 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 c0faf3b3e397..eea33df7c3fb 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 1c21a85d14b6..1dcaccb70fc5 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 a959ab0ce52b..c49f05788a13 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 a111485b74f4..8900eda3489d 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 e6dabb3457a8..e939686cf010 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 c5f92dc79c72..4525b26ec569 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 b6546b690e9e..4beefaed7b26 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 ec1591e293ca..cc9eed1539a1 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 04d16144cfff..f18401a2458b 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 3612a05035f3..a77ec0b7a126 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 26e70871c360..7d9b09b52930 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 2c74801b53cc..4dbd7b616420 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 86941f76ce82..6bf2ca6c4108 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 3b980577b041..21de7f57c2d5 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 83f383a45131..08caeae4a0ac 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 2c5c75c37942..f1d0a9a4a242 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 c68de3a612fc..2a88a065003f 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 f04b87a8421b..ea596b10b05d 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 3e1b89fba671..3cb31c2df3c9 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 84af8460447f..c071d1f441ed 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 e3736d2345cf..b48a596192b4 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 c885366fd4be..3f7924aef213 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 0db1c9c2f78b..8bba316c853a 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 e4de767e8837..ffe0481c36e3 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 69c5568f7fe4..1ff0ef3cd248 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 41773ce838e3..32944745166e 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 3ce68f0e41b1..b16e866e583b 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 e63b5d4e2e07..140c13060813 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 7c32d6800871..7d68e1984ccc 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 180c29231edf..87a266ae49f8 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 ce28d4e96d2f..88a9ef6422d4 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 36e3c1ee39a1..b62348bfc694 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 932b7601b513..462971cc557b 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 0a0434df1a96..2de29869126b 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 033378047a48..c0b70a63cf30 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 c49132edd309..18dae36cdc89 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 e3acbff72610..f42a802f21d9 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 0162e29c956a..035aabd6f80c 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 02e72ca5d9cc..addc451a6f95 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 d46f7fa29f7f..ede570556f9c 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 96e2cb753e62..313074690560 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 d0bcbf0a80bd..399aff34ce52 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 85b57c7cd771..c577b49cc9fd 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 238d26333246..61f8d377c958 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 9605fd878728..ee172885d007 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 5ac9b38e0011..f31eb8788e5e 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 acb1ad792b0c..d92abdac5169 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 42ab44930dad..ae3a31ec671e 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 cdfd721eab30..e59f7a0aad6e 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 aaf8f4943e96..23f36a8445dd 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 e7170dbe1e20..c14c3c92d1a9 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 4e49ae99a066..5a187117019a 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 c915b0da64f1..fb62c4b25d77 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 5e43e98148b2..f05c436b7c85 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 e85325f37cfe..ec12f93e0fdf 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 9f336c7d1820..be45d8f6f964 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 ab5cede7babe..a24ff81ce270 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 bcdeb71ca7bc..443b31a48c03 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 e8b5abe19437..0c9ee60e7faf 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 0231ac0d7191..b3ca6b76f391 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 e7878ea4a521..1ccaf5f4a041 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 a0db3a6e4072..9dad8ae18f2d 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 cede38a2d5f6..4b366c61aaf9 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 dc4e5a2fe05d..2f68c77f0170 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 18b10258c8be..3f76a7180112 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 33e7c3d830c4..264db521b480 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 54d901e6a37a..fca373584b50 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 d7adc01bb293..aa797375c995 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 3fb39e81fe5b..da2f4240cfe4 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 f0127cbbac51..075afc0143fb 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 ef6d9ad9b3c9..a751abfaefff 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 6955403858de..b6e732d6d834 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 af5898499849..a7f642be0a54 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 35be07168b15..b6b1031d5251 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 22cf136af256..13c912494756 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 bbc277f4923c..d81e38fa7ede 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 751163cc36df..b82c7d4fd797 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 af2cf889a020..e63497c9bd10 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 7dc1a06d0138..417f27a65f9d 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 ced80f714557..bd0950c73f21 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 e2cdfe54cbbf..2df0b2f44d54 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 c5afa74034cf..560ba505f5b2 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 c882a142223a..3c6ef3dd28ba 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 d9131d39db39..5dd606afbe51 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 2423cdbaf8ef..444faca9d333 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 d0b9781d31b1..2d3538dce435 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 44001633f5e8..6890b9c59b50 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 af3e31c5d362..e2fe5460266e 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 a527ff41e087..445278325d28 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 1acb819ca37b..57f0c96a463f 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 69c4a885f723..826ad0d941c5 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 9738ef31eafe..fdfe428f88c1 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 e24ef6dbd564..a8bd08be00e0 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 863d924aa16e..3bcada2c3445 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 49d2e98539a9..466f2b8c156d 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 ad6c1fbb00ef..4ea9c5616b41 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 399066335133..abf8bb01d853 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 78c391ccda9e..1b3193b45ff2 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 786298416885..c09856dbaeca 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 33745559b1b7..6186e5b61c3c 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 52d92dea7446..a0e81ed5b5ba 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 bae65972fd1c..fe5c8610db4c 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 5c634201c688..03d67056bc1d 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 61f5631066ca..3007ddac0e15 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 687fff1993b2..efc311161958 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 2c78d81b9bab..dc0ab7005b92 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 1ced913480ae..56d0eb942ced 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 b0071d67d407..7097f15f0b2d 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 7331dcfa13c0..71849525117c 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 389cb2c51694..38afd9a96efc 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 6391d2747e50..69e99e38bdfc 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 be4b324e9280..d1eb76632132 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 342b23113de4..034517a9e0d7 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 90a5957f1cc0..1a871f8e6f22 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 97635de2873d..cc840de8f25b 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 8ca81838bf5f..5794899751c1 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 3ec9a79a5742..bd5e4a1dca2f 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 09f50490f0d7..a003a5a92c9e 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 3c22f24830dc..4d2b359d5892 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 114b6c73a6b6..7df9a662d3f8 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 08a89191c865..ec9ba66b26c7 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 a9fc6b4023dc..bb4d2dde60a2 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 1bc191dbe75d..06327b8363c6 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 e46b1c97398e..2314e13776dc 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 217b2d15c98d..772277515a6f 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 b47caf37d4fd..e330d5700544 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 b36e05fcfb75..3969717268da 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 1179e1fb8081..5abdcd1dc804 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 8163bb368d77..87398fe42a0c 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 7a065480647f..641878ad9b74 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 b92a6b503129..e7eaab17ad87 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 f5225c77978a..76b14af07b0a 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 61cd4772fbe6..368c4a6f3f6c 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 714134b495b9..ab5ccf9d58fd 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 82fe5b38ae3f..c0745a0bcc94 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 3787dadc3f8f..8de57e842c4f 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 8f9992d0e298..74d915e1e3d7 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 dd1b134fc1fe..4fc1a8f57c9f 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 1a9ac4b241ba..5f7d32683fda 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 8158d2f44ae1..d6c5328a92a6 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 21146c3e40a5..2162cda7c9bb 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 3d40bede0848..9fced971bc77 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 40dd3670ede6..2f11c9649e61 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 43b3d511504f..8764ccbfeb9a 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 b8800a416130..e9929a26cb5d 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 59a98c8a26e5..de9c0dc310b2 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 29d7ae23cefd..dd2badddb8f1 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 5899c381180e..879b2e4d10e3 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 41479bcde1d0..e0d5cdf49422 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 23ef31e08676..4201a8411140 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 aee972a14580..5fb3e61d9803 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 271ade6deeab..7aeddfbc6532 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 d0f22eb00feb..40de0369f6fe 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 6620cbfb5560..a8bf760d6500 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 787476675173..fa3809154566 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 76733c326109..069851a1d67e 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 1bd9ce534061..ff992b8b5eea 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 a5b8e0867a87..5cfebf61dd3f 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 e57cb365d3ac..ecf0abaed9eb 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 33e89beb09c3..7809907d12ad 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 2d5cb4ca6f65..7ba37da9260d 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 57b9f941c80e..041154b6dd35 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 ec7901db3553..037a31f93649 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 38c249bc3698..5c07da12c502 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 fc09d1487477..46abd6638a78 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 a45f2e7222ec..f61121d07c2b 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 2b9bdc3c4fe2..dc37fc579e6e 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 3373fa078dc6..3cca20a7c0a0 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 422455fc2188..98b377c93459 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 1154c64eb935..ddd35344fe18 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 99923227af6d..3f0240a41eff 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 d79912a207cc..28e81a704641 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 d77fab2755ae..71794aef9967 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 43f29d268981..eb367b1cd9df 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 9990279789a9..35498ac85a2c 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 c3c5b47004eb..bf24ccb5fd47 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 8ce004de048a..4f2b5f2ac1de 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 d2d034a991af..be6d996ba6d8 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 5e3ab2a8ffa8..2b6028ba7d60 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 af7f72724b03..9c03a911cfa4 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 28840f31a29c..e1d3a529f013 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 9ded99d3ea7d..804b530cc046 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 ac13138e90d2..0cbd47ce2493 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 6906fafc2359..04186c982c08 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 3af7582f5749..385489a5b194 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 ceeca936c33b..2034127d377a 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 ef03687b6f52..63267fffa39c 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 0941194464b2..bab30577aeae 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 c238749b91b3..afbb801f17ba 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 024004e0b9bf..a462420830e7 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 86d254e0f874..ef75eafd9388 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 58a5600432d4..8546548fef5c 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 de5d295575b1..6b6adee08a28 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 206ce102aa86..b0b9aa3299bf 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 e17d5899b244..f379cbcede46 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 5a84d216587c..7a549d47352a 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 a0011a53db22..0fd6d20da4bc 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 0cf6075884ab..1439111741fa 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 dce594c4fa96..9faa526193c7 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 1790f7012593..a28066819091 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 a21b706065ae..e16f22f37793 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 dfef7cc1f0f4..4cd06cf3a09f 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 05b7833b06cc..999858386c3b 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 9c22295f5600..cf1924dbe6cb 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 2acf1559b4fc..169d30f6a9b3 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 ceda47d5e70a..0c4375e8a2ac 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 98e5421ed273..e1f10e237cbc 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 2c3f5b4ba5f3..0b4fe04c8c16 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 3a3e1cd1e41f..8c8d2cdd59d3 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 4bd276401bf1..adec4f3630bf 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 d0f99318f502..0c065a75c18f 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 125862fc7cdb..e937ca428b08 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 b2e323a11be2..61bb5a3907ea 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 d17b62e50f4f..166810b3198f 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 45a8ac8b44c1..979c848f7c3a 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 5a312c11b77b..8ae2106cd48d 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 9a4de5d08290..13fb7ddecc81 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 713a3255162a..f0f88ce47344 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 07626023074b..4498a3562ad0 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 812e5f8c70e9..bbb57376e079 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 2b256be0c712..a0a517c1c92c 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 415b6cb6924f..80315467f066 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 c37f043c31e7..07ec52568dd2 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 3ae6cd8569e8..c63ab798f7fa 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 7247aa7f0a73..30baffd73d39 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 1ab93f68b437..4a9b412d2401 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 499767496309..663e68617d22 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 71ed62f43e51..d364beff1dfb 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 35a9f842e765..0b8f88f50b4e 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 ee53c8487408..fea537e50781 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 2916ad6e2ceb..ad46cc7eb754 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 1f3b1d7f8322..90ec82d745c6 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 00921a2907b3..398b4d210e6c 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 668b778d02b6..281d5ee6b732 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 d9d86b6194a5..fd3d0904d46c 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 7fb98a30b8e9..5b44386aabcb 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 b2dc086dfaef..801caeed3ba0 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 3fa141d9db1a..be34cad8e581 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 aa418e5b17c7..c60898004eeb 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 d258c9676a10..b7b64c6f70ed 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 67ab1ed0b78e..92adfe68fd4f 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 3767be82e11e..1bb3e6c2b009 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 415e9bd85357..651878d1849a 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 18beeab44e12..2bf3eac3f2f3 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 6c47fa3c5e55..d2f4849302b1 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 72943f06ce67..49a191e3d0bf 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 1307ac6e9570..183e1ee9b12a 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 90f7c8a3aedc..a6a3ef171faf 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 d00d4a269897..87a030cf1d49 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 48f5d8c0988b..fdffc051ee13 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 941e56e54d53..c6101571dad3 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 686b04bc2764..2d32b1edbd42 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 5eb87a65d6bc..930918a9201a 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 d1e9c6cb4e4d..fe5e48d37f16 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 194845b9ab45..a275648f9219 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 23dc9e3d05be..01c6df814a51 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 4a7fc268d67d..e06483608a32 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 2e92f61a58e0..7e3abccfd9aa 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 accfaa6d7ef3..7baad0effa85 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 2a1f038b357b..7769ecc502aa 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 eba2fb856912..38db197f68dc 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 3aa30ee4f660..2d3e47d2d600 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 f1ce33a03cbd..5b096b8e7f8a 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 4fa26c4272dd..72604d6cbabd 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 312305969ef0..8cde02c98641 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 0f49eda68109..2f8f9aba9cfc 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 82952a40c06e..7d9cebf1a2f6 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 010e7f414d2d..9e117f9d52c5 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 8a4474137be6..48a2371842c9 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 f46370727bd8..2c78a918e816 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 c04d6c150cc1..69f87372ef81 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 083bf48885c6..886e3f44650a 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 a6293266a569..62bbb182cf0c 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 dbc44831b34d..2963ca30e98c 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 fa5dc5a512f3..65eb0a2bf4f9 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 9120ca9fbc86..f9b919acf5da 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 7fe1e6b0f0a3..08b452607b77 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 c622340c1eb0..64ca154fafad 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 24e3de6bff67..fe76e99b7aaa 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 176b15bb8574..18150ec6e5b4 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 afc0792e9282..83dac73803df 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 86a4207fb169..349f62208ae3 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 d3127bd80807..84cd17aba22c 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 98c3519f7ee6..6a36f42c102a 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 9b7d0579d4f3..e46fdd75c6be 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 e4335a3ffc76..f484cbe491d7 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 5b29246c8c01..52779a0914a9 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 22af494846c3..4c8b515644d1 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 69bb1396a047..52d13bc82b23 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 959d8f675309..f4e3d8670e32 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 5b9268671991..b40674d23cd7 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 837f5688a47e..64d2160a58ad 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 9e13343f56a8..5b8335fccacd 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 883bbb27cdf3..58152fa66d9c 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 062411cacf7e..f39ebfe0cc97 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 3ae9d679fa30..7b88ac97e504 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 4e1fa520215f..c79fddb59a26 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 a2bf8d944f02..41e01bf2d788 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 fdb3bf8065c5..9eda8649d6fd 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 13501fc35bb3..f36251295c49 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 7cf63a5c82a7..dffa346169b7 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 2d55b077edf5..4c7da8fba7f7 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 b6df1a80b35d..2ba31e4e0c8d 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 b07d13fc4ae2..adcc6cf97864 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 1b26ec3251db..fc87ff5160aa 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 b3c4a2416e9d..1e046a8eafb0 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 d54d0639c223..bbacca7aa57c 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 5c7bb1e53996..e7f68d3289cb 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 eac36d441f79..ed7104b071de 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 07c09b0dcf43..1dd2c67d04a8 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 77ddcec0217d..1ecf8dfcaffc 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 406cfb299a2c..b573de2da670 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 2a70fcf58527..3cf07f59a665 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 170d8c130f82..c57f4847c336 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 19b524e97972..1bef5486cc2a 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);