Skip to content

Commit dc60c6f

Browse files
author
awstools
committed
feat(client-cloudwatch-logs): Adds PutIntegration, GetIntegration, ListIntegrations and DeleteIntegration APIs. Adds QueryLanguage support to StartQuery, GetQueryResults, DescribeQueries, DescribeQueryDefinitions, and PutQueryDefinition APIs.
1 parent bed4377 commit dc60c6f

16 files changed

+2393
-16
lines changed

Diff for: clients/client-cloudwatch-logs/README.md

+32
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,14 @@ DeleteIndexPolicy
356356

357357
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/DeleteIndexPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/DeleteIndexPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/DeleteIndexPolicyCommandOutput/)
358358

359+
</details>
360+
<details>
361+
<summary>
362+
DeleteIntegration
363+
</summary>
364+
365+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/DeleteIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/DeleteIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/DeleteIntegrationCommandOutput/)
366+
359367
</details>
360368
<details>
361369
<summary>
@@ -612,6 +620,14 @@ GetDeliverySource
612620

613621
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/GetDeliverySourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetDeliverySourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetDeliverySourceCommandOutput/)
614622

623+
</details>
624+
<details>
625+
<summary>
626+
GetIntegration
627+
</summary>
628+
629+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/GetIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetIntegrationCommandOutput/)
630+
615631
</details>
616632
<details>
617633
<summary>
@@ -668,6 +684,14 @@ ListAnomalies
668684

669685
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/ListAnomaliesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListAnomaliesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListAnomaliesCommandOutput/)
670686

687+
</details>
688+
<details>
689+
<summary>
690+
ListIntegrations
691+
</summary>
692+
693+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/ListIntegrationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListIntegrationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/ListIntegrationsCommandOutput/)
694+
671695
</details>
672696
<details>
673697
<summary>
@@ -764,6 +788,14 @@ PutIndexPolicy
764788

765789
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/PutIndexPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutIndexPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutIndexPolicyCommandOutput/)
766790

791+
</details>
792+
<details>
793+
<summary>
794+
PutIntegration
795+
</summary>
796+
797+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/PutIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutIntegrationCommandOutput/)
798+
767799
</details>
768800
<details>
769801
<summary>

Diff for: clients/client-cloudwatch-logs/src/CloudWatchLogs.ts

+87
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ import {
7878
DeleteIndexPolicyCommandInput,
7979
DeleteIndexPolicyCommandOutput,
8080
} from "./commands/DeleteIndexPolicyCommand";
81+
import {
82+
DeleteIntegrationCommand,
83+
DeleteIntegrationCommandInput,
84+
DeleteIntegrationCommandOutput,
85+
} from "./commands/DeleteIntegrationCommand";
8186
import {
8287
DeleteLogAnomalyDetectorCommand,
8388
DeleteLogAnomalyDetectorCommandInput,
@@ -234,6 +239,11 @@ import {
234239
GetDeliverySourceCommandInput,
235240
GetDeliverySourceCommandOutput,
236241
} from "./commands/GetDeliverySourceCommand";
242+
import {
243+
GetIntegrationCommand,
244+
GetIntegrationCommandInput,
245+
GetIntegrationCommandOutput,
246+
} from "./commands/GetIntegrationCommand";
237247
import {
238248
GetLogAnomalyDetectorCommand,
239249
GetLogAnomalyDetectorCommandInput,
@@ -269,6 +279,11 @@ import {
269279
ListAnomaliesCommandInput,
270280
ListAnomaliesCommandOutput,
271281
} from "./commands/ListAnomaliesCommand";
282+
import {
283+
ListIntegrationsCommand,
284+
ListIntegrationsCommandInput,
285+
ListIntegrationsCommandOutput,
286+
} from "./commands/ListIntegrationsCommand";
272287
import {
273288
ListLogAnomalyDetectorsCommand,
274289
ListLogAnomalyDetectorsCommandInput,
@@ -329,6 +344,11 @@ import {
329344
PutIndexPolicyCommandInput,
330345
PutIndexPolicyCommandOutput,
331346
} from "./commands/PutIndexPolicyCommand";
347+
import {
348+
PutIntegrationCommand,
349+
PutIntegrationCommandInput,
350+
PutIntegrationCommandOutput,
351+
} from "./commands/PutIntegrationCommand";
332352
import {
333353
PutLogEventsCommand,
334354
PutLogEventsCommandInput,
@@ -425,6 +445,7 @@ const commands = {
425445
DeleteDeliverySourceCommand,
426446
DeleteDestinationCommand,
427447
DeleteIndexPolicyCommand,
448+
DeleteIntegrationCommand,
428449
DeleteLogAnomalyDetectorCommand,
429450
DeleteLogGroupCommand,
430451
DeleteLogStreamCommand,
@@ -457,13 +478,15 @@ const commands = {
457478
GetDeliveryDestinationCommand,
458479
GetDeliveryDestinationPolicyCommand,
459480
GetDeliverySourceCommand,
481+
GetIntegrationCommand,
460482
GetLogAnomalyDetectorCommand,
461483
GetLogEventsCommand,
462484
GetLogGroupFieldsCommand,
463485
GetLogRecordCommand,
464486
GetQueryResultsCommand,
465487
GetTransformerCommand,
466488
ListAnomaliesCommand,
489+
ListIntegrationsCommand,
467490
ListLogAnomalyDetectorsCommand,
468491
ListLogGroupsForQueryCommand,
469492
ListTagsForResourceCommand,
@@ -476,6 +499,7 @@ const commands = {
476499
PutDestinationCommand,
477500
PutDestinationPolicyCommand,
478501
PutIndexPolicyCommand,
502+
PutIntegrationCommand,
479503
PutLogEventsCommand,
480504
PutMetricFilterCommand,
481505
PutQueryDefinitionCommand,
@@ -738,6 +762,23 @@ export interface CloudWatchLogs {
738762
cb: (err: any, data?: DeleteIndexPolicyCommandOutput) => void
739763
): void;
740764

765+
/**
766+
* @see {@link DeleteIntegrationCommand}
767+
*/
768+
deleteIntegration(
769+
args: DeleteIntegrationCommandInput,
770+
options?: __HttpHandlerOptions
771+
): Promise<DeleteIntegrationCommandOutput>;
772+
deleteIntegration(
773+
args: DeleteIntegrationCommandInput,
774+
cb: (err: any, data?: DeleteIntegrationCommandOutput) => void
775+
): void;
776+
deleteIntegration(
777+
args: DeleteIntegrationCommandInput,
778+
options: __HttpHandlerOptions,
779+
cb: (err: any, data?: DeleteIntegrationCommandOutput) => void
780+
): void;
781+
741782
/**
742783
* @see {@link DeleteLogAnomalyDetectorCommand}
743784
*/
@@ -1279,6 +1320,20 @@ export interface CloudWatchLogs {
12791320
cb: (err: any, data?: GetDeliverySourceCommandOutput) => void
12801321
): void;
12811322

1323+
/**
1324+
* @see {@link GetIntegrationCommand}
1325+
*/
1326+
getIntegration(
1327+
args: GetIntegrationCommandInput,
1328+
options?: __HttpHandlerOptions
1329+
): Promise<GetIntegrationCommandOutput>;
1330+
getIntegration(args: GetIntegrationCommandInput, cb: (err: any, data?: GetIntegrationCommandOutput) => void): void;
1331+
getIntegration(
1332+
args: GetIntegrationCommandInput,
1333+
options: __HttpHandlerOptions,
1334+
cb: (err: any, data?: GetIntegrationCommandOutput) => void
1335+
): void;
1336+
12821337
/**
12831338
* @see {@link GetLogAnomalyDetectorCommand}
12841339
*/
@@ -1376,6 +1431,24 @@ export interface CloudWatchLogs {
13761431
cb: (err: any, data?: ListAnomaliesCommandOutput) => void
13771432
): void;
13781433

1434+
/**
1435+
* @see {@link ListIntegrationsCommand}
1436+
*/
1437+
listIntegrations(): Promise<ListIntegrationsCommandOutput>;
1438+
listIntegrations(
1439+
args: ListIntegrationsCommandInput,
1440+
options?: __HttpHandlerOptions
1441+
): Promise<ListIntegrationsCommandOutput>;
1442+
listIntegrations(
1443+
args: ListIntegrationsCommandInput,
1444+
cb: (err: any, data?: ListIntegrationsCommandOutput) => void
1445+
): void;
1446+
listIntegrations(
1447+
args: ListIntegrationsCommandInput,
1448+
options: __HttpHandlerOptions,
1449+
cb: (err: any, data?: ListIntegrationsCommandOutput) => void
1450+
): void;
1451+
13791452
/**
13801453
* @see {@link ListLogAnomalyDetectorsCommand}
13811454
*/
@@ -1575,6 +1648,20 @@ export interface CloudWatchLogs {
15751648
cb: (err: any, data?: PutIndexPolicyCommandOutput) => void
15761649
): void;
15771650

1651+
/**
1652+
* @see {@link PutIntegrationCommand}
1653+
*/
1654+
putIntegration(
1655+
args: PutIntegrationCommandInput,
1656+
options?: __HttpHandlerOptions
1657+
): Promise<PutIntegrationCommandOutput>;
1658+
putIntegration(args: PutIntegrationCommandInput, cb: (err: any, data?: PutIntegrationCommandOutput) => void): void;
1659+
putIntegration(
1660+
args: PutIntegrationCommandInput,
1661+
options: __HttpHandlerOptions,
1662+
cb: (err: any, data?: PutIntegrationCommandOutput) => void
1663+
): void;
1664+
15781665
/**
15791666
* @see {@link PutLogEventsCommand}
15801667
*/

Diff for: clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts

+12
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ import {
9292
} from "./commands/DeleteDeliverySourceCommand";
9393
import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "./commands/DeleteDestinationCommand";
9494
import { DeleteIndexPolicyCommandInput, DeleteIndexPolicyCommandOutput } from "./commands/DeleteIndexPolicyCommand";
95+
import { DeleteIntegrationCommandInput, DeleteIntegrationCommandOutput } from "./commands/DeleteIntegrationCommand";
9596
import {
9697
DeleteLogAnomalyDetectorCommandInput,
9798
DeleteLogAnomalyDetectorCommandOutput,
@@ -184,6 +185,7 @@ import {
184185
GetDeliveryDestinationPolicyCommandOutput,
185186
} from "./commands/GetDeliveryDestinationPolicyCommand";
186187
import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "./commands/GetDeliverySourceCommand";
188+
import { GetIntegrationCommandInput, GetIntegrationCommandOutput } from "./commands/GetIntegrationCommand";
187189
import {
188190
GetLogAnomalyDetectorCommandInput,
189191
GetLogAnomalyDetectorCommandOutput,
@@ -194,6 +196,7 @@ import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/
194196
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
195197
import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./commands/GetTransformerCommand";
196198
import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "./commands/ListAnomaliesCommand";
199+
import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "./commands/ListIntegrationsCommand";
197200
import {
198201
ListLogAnomalyDetectorsCommandInput,
199202
ListLogAnomalyDetectorsCommandOutput,
@@ -227,6 +230,7 @@ import {
227230
PutDestinationPolicyCommandOutput,
228231
} from "./commands/PutDestinationPolicyCommand";
229232
import { PutIndexPolicyCommandInput, PutIndexPolicyCommandOutput } from "./commands/PutIndexPolicyCommand";
233+
import { PutIntegrationCommandInput, PutIntegrationCommandOutput } from "./commands/PutIntegrationCommand";
230234
import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "./commands/PutLogEventsCommand";
231235
import { PutMetricFilterCommandInput, PutMetricFilterCommandOutput } from "./commands/PutMetricFilterCommand";
232236
import { PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput } from "./commands/PutQueryDefinitionCommand";
@@ -285,6 +289,7 @@ export type ServiceInputTypes =
285289
| DeleteDeliverySourceCommandInput
286290
| DeleteDestinationCommandInput
287291
| DeleteIndexPolicyCommandInput
292+
| DeleteIntegrationCommandInput
288293
| DeleteLogAnomalyDetectorCommandInput
289294
| DeleteLogGroupCommandInput
290295
| DeleteLogStreamCommandInput
@@ -317,13 +322,15 @@ export type ServiceInputTypes =
317322
| GetDeliveryDestinationCommandInput
318323
| GetDeliveryDestinationPolicyCommandInput
319324
| GetDeliverySourceCommandInput
325+
| GetIntegrationCommandInput
320326
| GetLogAnomalyDetectorCommandInput
321327
| GetLogEventsCommandInput
322328
| GetLogGroupFieldsCommandInput
323329
| GetLogRecordCommandInput
324330
| GetQueryResultsCommandInput
325331
| GetTransformerCommandInput
326332
| ListAnomaliesCommandInput
333+
| ListIntegrationsCommandInput
327334
| ListLogAnomalyDetectorsCommandInput
328335
| ListLogGroupsForQueryCommandInput
329336
| ListTagsForResourceCommandInput
@@ -336,6 +343,7 @@ export type ServiceInputTypes =
336343
| PutDestinationCommandInput
337344
| PutDestinationPolicyCommandInput
338345
| PutIndexPolicyCommandInput
346+
| PutIntegrationCommandInput
339347
| PutLogEventsCommandInput
340348
| PutMetricFilterCommandInput
341349
| PutQueryDefinitionCommandInput
@@ -375,6 +383,7 @@ export type ServiceOutputTypes =
375383
| DeleteDeliverySourceCommandOutput
376384
| DeleteDestinationCommandOutput
377385
| DeleteIndexPolicyCommandOutput
386+
| DeleteIntegrationCommandOutput
378387
| DeleteLogAnomalyDetectorCommandOutput
379388
| DeleteLogGroupCommandOutput
380389
| DeleteLogStreamCommandOutput
@@ -407,13 +416,15 @@ export type ServiceOutputTypes =
407416
| GetDeliveryDestinationCommandOutput
408417
| GetDeliveryDestinationPolicyCommandOutput
409418
| GetDeliverySourceCommandOutput
419+
| GetIntegrationCommandOutput
410420
| GetLogAnomalyDetectorCommandOutput
411421
| GetLogEventsCommandOutput
412422
| GetLogGroupFieldsCommandOutput
413423
| GetLogRecordCommandOutput
414424
| GetQueryResultsCommandOutput
415425
| GetTransformerCommandOutput
416426
| ListAnomaliesCommandOutput
427+
| ListIntegrationsCommandOutput
417428
| ListLogAnomalyDetectorsCommandOutput
418429
| ListLogGroupsForQueryCommandOutput
419430
| ListTagsForResourceCommandOutput
@@ -426,6 +437,7 @@ export type ServiceOutputTypes =
426437
| PutDestinationCommandOutput
427438
| PutDestinationPolicyCommandOutput
428439
| PutIndexPolicyCommandOutput
440+
| PutIntegrationCommandOutput
429441
| PutLogEventsCommandOutput
430442
| PutMetricFilterCommandOutput
431443
| PutQueryDefinitionCommandOutput

0 commit comments

Comments
 (0)