Skip to content

Commit

Permalink
feat: add default destroy function to clients (#1081)
Browse files Browse the repository at this point in the history
* feat(smithy-client): add default destroy method

* feat: add destroy() to types and releated unit tests

* feat: call destroy from smithy client in service clients
  • Loading branch information
AllanZhengYP authored Apr 8, 2020
1 parent 77386f6 commit 7eb0f0e
Show file tree
Hide file tree
Showing 223 changed files with 664 additions and 227 deletions.
4 changes: 3 additions & 1 deletion clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,7 @@ export class AccessAnalyzerClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-acm-pca/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,5 +324,7 @@ export class ACMPCAClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-acm/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,7 @@ export class ACMClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-alexa-for-business/AlexaForBusinessClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,5 +757,7 @@ export class AlexaForBusinessClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-amplify/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,5 +416,7 @@ export class AmplifyClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-api-gateway/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,5 +915,7 @@ export class APIGatewayClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,7 @@ export class ApiGatewayManagementApiClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-apigatewayv2/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,5 +570,7 @@ export class ApiGatewayV2Client extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-app-mesh/AppMeshClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,5 +372,7 @@ export class AppMeshClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-appconfig/AppConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,7 @@ export class AppConfigClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -313,5 +313,7 @@ export class ApplicationAutoScalingClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -468,5 +468,7 @@ export class ApplicationDiscoveryServiceClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -366,5 +366,7 @@ export class ApplicationInsightsClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-appstream/AppStreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,5 +494,7 @@ export class AppStreamClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-appsync/AppSyncClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,5 +439,7 @@ export class AppSyncClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-athena/AthenaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,7 @@ export class AthenaClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-auto-scaling-plans/AutoScalingPlansClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,7 @@ export class AutoScalingPlansClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-auto-scaling/AutoScalingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,5 +522,7 @@ export class AutoScalingClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-backup/BackupClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,5 +471,7 @@ export class BackupClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-batch/BatchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,7 @@ export class BatchClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-budgets/BudgetsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,7 @@ export class BudgetsClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-chime/ChimeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,5 +792,7 @@ export class ChimeClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloud9/Cloud9Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,7 @@ export class Cloud9Client extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-clouddirectory/CloudDirectoryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,5 +593,7 @@ export class CloudDirectoryClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudformation/CloudFormationClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,5 +536,7 @@ export class CloudFormationClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudfront/CloudFrontClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,5 +464,7 @@ export class CloudFrontClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudhsm-v2/CloudHSMV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,7 @@ export class CloudHSMV2Client extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudhsm/CloudHSMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,5 +322,7 @@ export class CloudHSMClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudsearch-domain/CloudSearchDomainClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ export class CloudSearchDomainClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudsearch/CloudSearchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,5 +354,7 @@ export class CloudSearchClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudtrail/CloudTrailClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,7 @@ export class CloudTrailClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudwatch-events/CloudWatchEventsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,5 +398,7 @@ export class CloudWatchEventsClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudwatch-logs/CloudWatchLogsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,7 @@ export class CloudWatchLogsClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-cloudwatch/CloudWatchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,5 +380,7 @@ export class CloudWatchClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codebuild/CodeBuildClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,5 +575,7 @@ export class CodeBuildClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codecommit/CodeCommitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,5 +1030,7 @@ export class CodeCommitClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codedeploy/CodeDeployClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,5 +567,7 @@ export class CodeDeployClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codeguru-reviewer/CodeGuruReviewerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,7 @@ export class CodeGuruReviewerClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codeguruprofiler/CodeGuruProfilerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,7 @@ export class CodeGuruProfilerClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codepipeline/CodePipelineClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,5 +608,7 @@ export class CodePipelineClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@ export class CodeStarconnectionsClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -353,5 +353,7 @@ export class codestarnotificationsClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
4 changes: 3 additions & 1 deletion clients/client-codestar/CodeStarClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,7 @@ export class CodeStarClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -797,5 +797,7 @@ export class CognitoIdentityProviderClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {}
destroy(): void {
super.destroy();
}
}
Loading

0 comments on commit 7eb0f0e

Please sign in to comment.