Skip to content

Commit

Permalink
feat(client-cloudwatch-logs): Adds PutIntegration, GetIntegration, Li…
Browse files Browse the repository at this point in the history
…stIntegrations and DeleteIntegration APIs. Adds QueryLanguage support to StartQuery, GetQueryResults, DescribeQueries, DescribeQueryDefinitions, and PutQueryDefinition APIs.
  • Loading branch information
awstools committed Dec 2, 2024
1 parent bed4377 commit dc60c6f
Show file tree
Hide file tree
Showing 16 changed files with 2,393 additions and 16 deletions.
32 changes: 32 additions & 0 deletions clients/client-cloudwatch-logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,14 @@ DeleteIndexPolicy

[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/)

</details>
<details>
<summary>
DeleteIntegration
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -612,6 +620,14 @@ GetDeliverySource

[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/)

</details>
<details>
<summary>
GetIntegration
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -668,6 +684,14 @@ ListAnomalies

[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/)

</details>
<details>
<summary>
ListIntegrations
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -764,6 +788,14 @@ PutIndexPolicy

[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/)

</details>
<details>
<summary>
PutIntegration
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
87 changes: 87 additions & 0 deletions clients/client-cloudwatch-logs/src/CloudWatchLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ import {
DeleteIndexPolicyCommandInput,
DeleteIndexPolicyCommandOutput,
} from "./commands/DeleteIndexPolicyCommand";
import {
DeleteIntegrationCommand,
DeleteIntegrationCommandInput,
DeleteIntegrationCommandOutput,
} from "./commands/DeleteIntegrationCommand";
import {
DeleteLogAnomalyDetectorCommand,
DeleteLogAnomalyDetectorCommandInput,
Expand Down Expand Up @@ -234,6 +239,11 @@ import {
GetDeliverySourceCommandInput,
GetDeliverySourceCommandOutput,
} from "./commands/GetDeliverySourceCommand";
import {
GetIntegrationCommand,
GetIntegrationCommandInput,
GetIntegrationCommandOutput,
} from "./commands/GetIntegrationCommand";
import {
GetLogAnomalyDetectorCommand,
GetLogAnomalyDetectorCommandInput,
Expand Down Expand Up @@ -269,6 +279,11 @@ import {
ListAnomaliesCommandInput,
ListAnomaliesCommandOutput,
} from "./commands/ListAnomaliesCommand";
import {
ListIntegrationsCommand,
ListIntegrationsCommandInput,
ListIntegrationsCommandOutput,
} from "./commands/ListIntegrationsCommand";
import {
ListLogAnomalyDetectorsCommand,
ListLogAnomalyDetectorsCommandInput,
Expand Down Expand Up @@ -329,6 +344,11 @@ import {
PutIndexPolicyCommandInput,
PutIndexPolicyCommandOutput,
} from "./commands/PutIndexPolicyCommand";
import {
PutIntegrationCommand,
PutIntegrationCommandInput,
PutIntegrationCommandOutput,
} from "./commands/PutIntegrationCommand";
import {
PutLogEventsCommand,
PutLogEventsCommandInput,
Expand Down Expand Up @@ -425,6 +445,7 @@ const commands = {
DeleteDeliverySourceCommand,
DeleteDestinationCommand,
DeleteIndexPolicyCommand,
DeleteIntegrationCommand,
DeleteLogAnomalyDetectorCommand,
DeleteLogGroupCommand,
DeleteLogStreamCommand,
Expand Down Expand Up @@ -457,13 +478,15 @@ const commands = {
GetDeliveryDestinationCommand,
GetDeliveryDestinationPolicyCommand,
GetDeliverySourceCommand,
GetIntegrationCommand,
GetLogAnomalyDetectorCommand,
GetLogEventsCommand,
GetLogGroupFieldsCommand,
GetLogRecordCommand,
GetQueryResultsCommand,
GetTransformerCommand,
ListAnomaliesCommand,
ListIntegrationsCommand,
ListLogAnomalyDetectorsCommand,
ListLogGroupsForQueryCommand,
ListTagsForResourceCommand,
Expand All @@ -476,6 +499,7 @@ const commands = {
PutDestinationCommand,
PutDestinationPolicyCommand,
PutIndexPolicyCommand,
PutIntegrationCommand,
PutLogEventsCommand,
PutMetricFilterCommand,
PutQueryDefinitionCommand,
Expand Down Expand Up @@ -738,6 +762,23 @@ export interface CloudWatchLogs {
cb: (err: any, data?: DeleteIndexPolicyCommandOutput) => void
): void;

/**
* @see {@link DeleteIntegrationCommand}
*/
deleteIntegration(
args: DeleteIntegrationCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteIntegrationCommandOutput>;
deleteIntegration(
args: DeleteIntegrationCommandInput,
cb: (err: any, data?: DeleteIntegrationCommandOutput) => void
): void;
deleteIntegration(
args: DeleteIntegrationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteIntegrationCommandOutput) => void
): void;

/**
* @see {@link DeleteLogAnomalyDetectorCommand}
*/
Expand Down Expand Up @@ -1279,6 +1320,20 @@ export interface CloudWatchLogs {
cb: (err: any, data?: GetDeliverySourceCommandOutput) => void
): void;

/**
* @see {@link GetIntegrationCommand}
*/
getIntegration(
args: GetIntegrationCommandInput,
options?: __HttpHandlerOptions
): Promise<GetIntegrationCommandOutput>;
getIntegration(args: GetIntegrationCommandInput, cb: (err: any, data?: GetIntegrationCommandOutput) => void): void;
getIntegration(
args: GetIntegrationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetIntegrationCommandOutput) => void
): void;

/**
* @see {@link GetLogAnomalyDetectorCommand}
*/
Expand Down Expand Up @@ -1376,6 +1431,24 @@ export interface CloudWatchLogs {
cb: (err: any, data?: ListAnomaliesCommandOutput) => void
): void;

/**
* @see {@link ListIntegrationsCommand}
*/
listIntegrations(): Promise<ListIntegrationsCommandOutput>;
listIntegrations(
args: ListIntegrationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListIntegrationsCommandOutput>;
listIntegrations(
args: ListIntegrationsCommandInput,
cb: (err: any, data?: ListIntegrationsCommandOutput) => void
): void;
listIntegrations(
args: ListIntegrationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListIntegrationsCommandOutput) => void
): void;

/**
* @see {@link ListLogAnomalyDetectorsCommand}
*/
Expand Down Expand Up @@ -1575,6 +1648,20 @@ export interface CloudWatchLogs {
cb: (err: any, data?: PutIndexPolicyCommandOutput) => void
): void;

/**
* @see {@link PutIntegrationCommand}
*/
putIntegration(
args: PutIntegrationCommandInput,
options?: __HttpHandlerOptions
): Promise<PutIntegrationCommandOutput>;
putIntegration(args: PutIntegrationCommandInput, cb: (err: any, data?: PutIntegrationCommandOutput) => void): void;
putIntegration(
args: PutIntegrationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutIntegrationCommandOutput) => void
): void;

/**
* @see {@link PutLogEventsCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-cloudwatch-logs/src/CloudWatchLogsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ import {
} from "./commands/DeleteDeliverySourceCommand";
import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "./commands/DeleteDestinationCommand";
import { DeleteIndexPolicyCommandInput, DeleteIndexPolicyCommandOutput } from "./commands/DeleteIndexPolicyCommand";
import { DeleteIntegrationCommandInput, DeleteIntegrationCommandOutput } from "./commands/DeleteIntegrationCommand";
import {
DeleteLogAnomalyDetectorCommandInput,
DeleteLogAnomalyDetectorCommandOutput,
Expand Down Expand Up @@ -184,6 +185,7 @@ import {
GetDeliveryDestinationPolicyCommandOutput,
} from "./commands/GetDeliveryDestinationPolicyCommand";
import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "./commands/GetDeliverySourceCommand";
import { GetIntegrationCommandInput, GetIntegrationCommandOutput } from "./commands/GetIntegrationCommand";
import {
GetLogAnomalyDetectorCommandInput,
GetLogAnomalyDetectorCommandOutput,
Expand All @@ -194,6 +196,7 @@ import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./commands/GetTransformerCommand";
import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "./commands/ListAnomaliesCommand";
import { ListIntegrationsCommandInput, ListIntegrationsCommandOutput } from "./commands/ListIntegrationsCommand";
import {
ListLogAnomalyDetectorsCommandInput,
ListLogAnomalyDetectorsCommandOutput,
Expand Down Expand Up @@ -227,6 +230,7 @@ import {
PutDestinationPolicyCommandOutput,
} from "./commands/PutDestinationPolicyCommand";
import { PutIndexPolicyCommandInput, PutIndexPolicyCommandOutput } from "./commands/PutIndexPolicyCommand";
import { PutIntegrationCommandInput, PutIntegrationCommandOutput } from "./commands/PutIntegrationCommand";
import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "./commands/PutLogEventsCommand";
import { PutMetricFilterCommandInput, PutMetricFilterCommandOutput } from "./commands/PutMetricFilterCommand";
import { PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput } from "./commands/PutQueryDefinitionCommand";
Expand Down Expand Up @@ -285,6 +289,7 @@ export type ServiceInputTypes =
| DeleteDeliverySourceCommandInput
| DeleteDestinationCommandInput
| DeleteIndexPolicyCommandInput
| DeleteIntegrationCommandInput
| DeleteLogAnomalyDetectorCommandInput
| DeleteLogGroupCommandInput
| DeleteLogStreamCommandInput
Expand Down Expand Up @@ -317,13 +322,15 @@ export type ServiceInputTypes =
| GetDeliveryDestinationCommandInput
| GetDeliveryDestinationPolicyCommandInput
| GetDeliverySourceCommandInput
| GetIntegrationCommandInput
| GetLogAnomalyDetectorCommandInput
| GetLogEventsCommandInput
| GetLogGroupFieldsCommandInput
| GetLogRecordCommandInput
| GetQueryResultsCommandInput
| GetTransformerCommandInput
| ListAnomaliesCommandInput
| ListIntegrationsCommandInput
| ListLogAnomalyDetectorsCommandInput
| ListLogGroupsForQueryCommandInput
| ListTagsForResourceCommandInput
Expand All @@ -336,6 +343,7 @@ export type ServiceInputTypes =
| PutDestinationCommandInput
| PutDestinationPolicyCommandInput
| PutIndexPolicyCommandInput
| PutIntegrationCommandInput
| PutLogEventsCommandInput
| PutMetricFilterCommandInput
| PutQueryDefinitionCommandInput
Expand Down Expand Up @@ -375,6 +383,7 @@ export type ServiceOutputTypes =
| DeleteDeliverySourceCommandOutput
| DeleteDestinationCommandOutput
| DeleteIndexPolicyCommandOutput
| DeleteIntegrationCommandOutput
| DeleteLogAnomalyDetectorCommandOutput
| DeleteLogGroupCommandOutput
| DeleteLogStreamCommandOutput
Expand Down Expand Up @@ -407,13 +416,15 @@ export type ServiceOutputTypes =
| GetDeliveryDestinationCommandOutput
| GetDeliveryDestinationPolicyCommandOutput
| GetDeliverySourceCommandOutput
| GetIntegrationCommandOutput
| GetLogAnomalyDetectorCommandOutput
| GetLogEventsCommandOutput
| GetLogGroupFieldsCommandOutput
| GetLogRecordCommandOutput
| GetQueryResultsCommandOutput
| GetTransformerCommandOutput
| ListAnomaliesCommandOutput
| ListIntegrationsCommandOutput
| ListLogAnomalyDetectorsCommandOutput
| ListLogGroupsForQueryCommandOutput
| ListTagsForResourceCommandOutput
Expand All @@ -426,6 +437,7 @@ export type ServiceOutputTypes =
| PutDestinationCommandOutput
| PutDestinationPolicyCommandOutput
| PutIndexPolicyCommandOutput
| PutIntegrationCommandOutput
| PutLogEventsCommandOutput
| PutMetricFilterCommandOutput
| PutQueryDefinitionCommandOutput
Expand Down
Loading

0 comments on commit dc60c6f

Please sign in to comment.