Skip to content

Commit f4b4e2a

Browse files
authored
docs: add documentation for destroy method (aws#2204)
1 parent a990db7 commit f4b4e2a

File tree

252 files changed

+1260
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+1260
-0
lines changed

clients/client-accessanalyzer/AccessAnalyzerClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ export class AccessAnalyzerClient extends __Client<
268268
this.middlewareStack.use(getUserAgentPlugin(this.config));
269269
}
270270

271+
/**
272+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
273+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
274+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
275+
*/
271276
destroy(): void {
272277
super.destroy();
273278
}

clients/client-acm-pca/ACMPCAClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ export class ACMPCAClient extends __Client<
322322
this.middlewareStack.use(getUserAgentPlugin(this.config));
323323
}
324324

325+
/**
326+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
327+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
328+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
329+
*/
325330
destroy(): void {
326331
super.destroy();
327332
}

clients/client-acm/ACMClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ export class ACMClient extends __Client<
261261
this.middlewareStack.use(getUserAgentPlugin(this.config));
262262
}
263263

264+
/**
265+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
266+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
267+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
268+
*/
264269
destroy(): void {
265270
super.destroy();
266271
}

clients/client-alexa-for-business/AlexaForBusinessClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,11 @@ export class AlexaForBusinessClient extends __Client<
602602
this.middlewareStack.use(getUserAgentPlugin(this.config));
603603
}
604604

605+
/**
606+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
607+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
608+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
609+
*/
605610
destroy(): void {
606611
super.destroy();
607612
}

clients/client-amplify/AmplifyClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ export class AmplifyClient extends __Client<
345345
this.middlewareStack.use(getUserAgentPlugin(this.config));
346346
}
347347

348+
/**
349+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
350+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
351+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
352+
*/
348353
destroy(): void {
349354
super.destroy();
350355
}

clients/client-amplifybackend/AmplifyBackendClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ export class AmplifyBackendClient extends __Client<
286286
this.middlewareStack.use(getUserAgentPlugin(this.config));
287287
}
288288

289+
/**
290+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
291+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
292+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
293+
*/
289294
destroy(): void {
290295
super.destroy();
291296
}

clients/client-api-gateway/APIGatewayClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,11 @@ export class APIGatewayClient extends __Client<
670670
this.middlewareStack.use(getUserAgentPlugin(this.config));
671671
}
672672

673+
/**
674+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
675+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
676+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
677+
*/
673678
destroy(): void {
674679
super.destroy();
675680
}

clients/client-apigatewaymanagementapi/ApiGatewayManagementApiClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ export class ApiGatewayManagementApiClient extends __Client<
205205
this.middlewareStack.use(getUserAgentPlugin(this.config));
206206
}
207207

208+
/**
209+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
210+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
211+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
212+
*/
208213
destroy(): void {
209214
super.destroy();
210215
}

clients/client-apigatewayv2/ApiGatewayV2Client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,11 @@ export class ApiGatewayV2Client extends __Client<
454454
this.middlewareStack.use(getUserAgentPlugin(this.config));
455455
}
456456

457+
/**
458+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
459+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
460+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
461+
*/
457462
destroy(): void {
458463
super.destroy();
459464
}

clients/client-app-mesh/AppMeshClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ export class AppMeshClient extends __Client<
376376
this.middlewareStack.use(getUserAgentPlugin(this.config));
377377
}
378378

379+
/**
380+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
381+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
382+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
383+
*/
379384
destroy(): void {
380385
super.destroy();
381386
}

clients/client-appconfig/AppConfigClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,11 @@ export class AppConfigClient extends __Client<
394394
this.middlewareStack.use(getUserAgentPlugin(this.config));
395395
}
396396

397+
/**
398+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
399+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
400+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
401+
*/
397402
destroy(): void {
398403
super.destroy();
399404
}

clients/client-appflow/AppflowClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ export class AppflowClient extends __Client<
307307
this.middlewareStack.use(getUserAgentPlugin(this.config));
308308
}
309309

310+
/**
311+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
312+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
313+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
314+
*/
310315
destroy(): void {
311316
super.destroy();
312317
}

clients/client-appintegrations/AppIntegrationsClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ export class AppIntegrationsClient extends __Client<
257257
this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config));
258258
}
259259

260+
/**
261+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
262+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
263+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
264+
*/
260265
destroy(): void {
261266
super.destroy();
262267
}

clients/client-application-auto-scaling/ApplicationAutoScalingClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ export class ApplicationAutoScalingClient extends __Client<
320320
this.middlewareStack.use(getUserAgentPlugin(this.config));
321321
}
322322

323+
/**
324+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
325+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
326+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
327+
*/
323328
destroy(): void {
324329
super.destroy();
325330
}

clients/client-application-discovery-service/ApplicationDiscoveryServiceClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,11 @@ export class ApplicationDiscoveryServiceClient extends __Client<
445445
this.middlewareStack.use(getUserAgentPlugin(this.config));
446446
}
447447

448+
/**
449+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
450+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
451+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
452+
*/
448453
destroy(): void {
449454
super.destroy();
450455
}

clients/client-application-insights/ApplicationInsightsClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ export class ApplicationInsightsClient extends __Client<
316316
this.middlewareStack.use(getUserAgentPlugin(this.config));
317317
}
318318

319+
/**
320+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
321+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
322+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
323+
*/
319324
destroy(): void {
320325
super.destroy();
321326
}

clients/client-appstream/AppStreamClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,11 @@ export class AppStreamClient extends __Client<
414414
this.middlewareStack.use(getUserAgentPlugin(this.config));
415415
}
416416

417+
/**
418+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
419+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
420+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
421+
*/
417422
destroy(): void {
418423
super.destroy();
419424
}

clients/client-appsync/AppSyncClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@ export class AppSyncClient extends __Client<
338338
this.middlewareStack.use(getUserAgentPlugin(this.config));
339339
}
340340

341+
/**
342+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
343+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
344+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
345+
*/
341346
destroy(): void {
342347
super.destroy();
343348
}

clients/client-athena/AthenaClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ export class AthenaClient extends __Client<
307307
this.middlewareStack.use(getUserAgentPlugin(this.config));
308308
}
309309

310+
/**
311+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
312+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
313+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
314+
*/
310315
destroy(): void {
311316
super.destroy();
312317
}

clients/client-auditmanager/AuditManagerClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ export class AuditManagerClient extends __Client<
473473
this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config));
474474
}
475475

476+
/**
477+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
478+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
479+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
480+
*/
476481
destroy(): void {
477482
super.destroy();
478483
}

clients/client-auto-scaling-plans/AutoScalingPlansClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ export class AutoScalingPlansClient extends __Client<
233233
this.middlewareStack.use(getUserAgentPlugin(this.config));
234234
}
235235

236+
/**
237+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
238+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
239+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
240+
*/
236241
destroy(): void {
237242
super.destroy();
238243
}

clients/client-auto-scaling/AutoScalingClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,11 @@ export class AutoScalingClient extends __Client<
499499
this.middlewareStack.use(getUserAgentPlugin(this.config));
500500
}
501501

502+
/**
503+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
504+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
505+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
506+
*/
502507
destroy(): void {
503508
super.destroy();
504509
}

clients/client-backup/BackupClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ export class BackupClient extends __Client<
436436
this.middlewareStack.use(getUserAgentPlugin(this.config));
437437
}
438438

439+
/**
440+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
441+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
442+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
443+
*/
439444
destroy(): void {
440445
super.destroy();
441446
}

clients/client-batch/BatchClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ export class BatchClient extends __Client<
289289
this.middlewareStack.use(getUserAgentPlugin(this.config));
290290
}
291291

292+
/**
293+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
294+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
295+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
296+
*/
292297
destroy(): void {
293298
super.destroy();
294299
}

clients/client-braket/BraketClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ export class BraketClient extends __Client<
217217
this.middlewareStack.use(getUserAgentPlugin(this.config));
218218
}
219219

220+
/**
221+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
222+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
223+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
224+
*/
220225
destroy(): void {
221226
super.destroy();
222227
}

clients/client-budgets/BudgetsClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ export class BudgetsClient extends __Client<
331331
this.middlewareStack.use(getUserAgentPlugin(this.config));
332332
}
333333

334+
/**
335+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
336+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
337+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
338+
*/
334339
destroy(): void {
335340
super.destroy();
336341
}

clients/client-chime/ChimeClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,11 @@ export class ChimeClient extends __Client<
10951095
this.middlewareStack.use(getUserAgentPlugin(this.config));
10961096
}
10971097

1098+
/**
1099+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
1100+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
1101+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
1102+
*/
10981103
destroy(): void {
10991104
super.destroy();
11001105
}

clients/client-cloud9/Cloud9Client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ export class Cloud9Client extends __Client<
319319
this.middlewareStack.use(getUserAgentPlugin(this.config));
320320
}
321321

322+
/**
323+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
324+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
325+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
326+
*/
322327
destroy(): void {
323328
super.destroy();
324329
}

clients/client-clouddirectory/CloudDirectoryClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,11 @@ export class CloudDirectoryClient extends __Client<
480480
this.middlewareStack.use(getUserAgentPlugin(this.config));
481481
}
482482

483+
/**
484+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
485+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
486+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
487+
*/
483488
destroy(): void {
484489
super.destroy();
485490
}

clients/client-cloudformation/CloudFormationClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ export class CloudFormationClient extends __Client<
447447
this.middlewareStack.use(getUserAgentPlugin(this.config));
448448
}
449449

450+
/**
451+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
452+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
453+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
454+
*/
450455
destroy(): void {
451456
super.destroy();
452457
}

clients/client-cloudfront/CloudFrontClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,11 @@ export class CloudFrontClient extends __Client<
570570
this.middlewareStack.use(getUserAgentPlugin(this.config));
571571
}
572572

573+
/**
574+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
575+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
576+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
577+
*/
573578
destroy(): void {
574579
super.destroy();
575580
}

clients/client-cloudhsm-v2/CloudHSMV2Client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ export class CloudHSMV2Client extends __Client<
248248
this.middlewareStack.use(getUserAgentPlugin(this.config));
249249
}
250250

251+
/**
252+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
253+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
254+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
255+
*/
251256
destroy(): void {
252257
super.destroy();
253258
}

clients/client-cloudhsm/CloudHSMClient.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,11 @@ export class CloudHSMClient extends __Client<
275275
this.middlewareStack.use(getUserAgentPlugin(this.config));
276276
}
277277

278+
/**
279+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
280+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
281+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
282+
*/
278283
destroy(): void {
279284
super.destroy();
280285
}

0 commit comments

Comments
 (0)