Skip to content

Commit

Permalink
feat(client-kafka): Amazon MSK has introduced new versions of ListClu…
Browse files Browse the repository at this point in the history
…sterOperations and DescribeClusterOperation APIs. These v2 APIs provide information and insights into the ongoing operations of both MSK Provisioned and MSK Serverless clusters.
  • Loading branch information
awstools committed Jul 28, 2023
1 parent 2ccf087 commit 57e3fc5
Show file tree
Hide file tree
Showing 11 changed files with 1,603 additions and 0 deletions.
16 changes: 16 additions & 0 deletions clients/client-kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,14 @@ DescribeClusterOperation

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/describeclusteroperationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationcommandoutput.html)

</details>
<details>
<summary>
DescribeClusterOperationV2
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/describeclusteroperationv2command.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationv2commandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeclusteroperationv2commandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -370,6 +378,14 @@ ListClusterOperations

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/listclusteroperationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationscommandoutput.html)

</details>
<details>
<summary>
ListClusterOperationsV2
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/listclusteroperationsv2command.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationsv2commandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listclusteroperationsv2commandoutput.html)

</details>
<details>
<summary>
Expand Down
46 changes: 46 additions & 0 deletions clients/client-kafka/src/Kafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ import {
DescribeClusterOperationCommandInput,
DescribeClusterOperationCommandOutput,
} from "./commands/DescribeClusterOperationCommand";
import {
DescribeClusterOperationV2Command,
DescribeClusterOperationV2CommandInput,
DescribeClusterOperationV2CommandOutput,
} from "./commands/DescribeClusterOperationV2Command";
import {
DescribeClusterV2Command,
DescribeClusterV2CommandInput,
Expand Down Expand Up @@ -107,6 +112,11 @@ import {
ListClusterOperationsCommandInput,
ListClusterOperationsCommandOutput,
} from "./commands/ListClusterOperationsCommand";
import {
ListClusterOperationsV2Command,
ListClusterOperationsV2CommandInput,
ListClusterOperationsV2CommandOutput,
} from "./commands/ListClusterOperationsV2Command";
import {
ListClustersCommand,
ListClustersCommandInput,
Expand Down Expand Up @@ -234,6 +244,7 @@ const commands = {
DeleteVpcConnectionCommand,
DescribeClusterCommand,
DescribeClusterOperationCommand,
DescribeClusterOperationV2Command,
DescribeClusterV2Command,
DescribeConfigurationCommand,
DescribeConfigurationRevisionCommand,
Expand All @@ -243,6 +254,7 @@ const commands = {
GetCompatibleKafkaVersionsCommand,
ListClientVpcConnectionsCommand,
ListClusterOperationsCommand,
ListClusterOperationsV2Command,
ListClustersCommand,
ListClustersV2Command,
ListConfigurationRevisionsCommand,
Expand Down Expand Up @@ -456,6 +468,23 @@ export interface Kafka {
cb: (err: any, data?: DescribeClusterOperationCommandOutput) => void
): void;

/**
* @see {@link DescribeClusterOperationV2Command}
*/
describeClusterOperationV2(
args: DescribeClusterOperationV2CommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeClusterOperationV2CommandOutput>;
describeClusterOperationV2(
args: DescribeClusterOperationV2CommandInput,
cb: (err: any, data?: DescribeClusterOperationV2CommandOutput) => void
): void;
describeClusterOperationV2(
args: DescribeClusterOperationV2CommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeClusterOperationV2CommandOutput) => void
): void;

/**
* @see {@link DescribeClusterV2Command}
*/
Expand Down Expand Up @@ -609,6 +638,23 @@ export interface Kafka {
cb: (err: any, data?: ListClusterOperationsCommandOutput) => void
): void;

/**
* @see {@link ListClusterOperationsV2Command}
*/
listClusterOperationsV2(
args: ListClusterOperationsV2CommandInput,
options?: __HttpHandlerOptions
): Promise<ListClusterOperationsV2CommandOutput>;
listClusterOperationsV2(
args: ListClusterOperationsV2CommandInput,
cb: (err: any, data?: ListClusterOperationsV2CommandOutput) => void
): void;
listClusterOperationsV2(
args: ListClusterOperationsV2CommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListClusterOperationsV2CommandOutput) => void
): void;

/**
* @see {@link ListClustersCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-kafka/src/KafkaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ import {
DescribeClusterOperationCommandInput,
DescribeClusterOperationCommandOutput,
} from "./commands/DescribeClusterOperationCommand";
import {
DescribeClusterOperationV2CommandInput,
DescribeClusterOperationV2CommandOutput,
} from "./commands/DescribeClusterOperationV2Command";
import { DescribeClusterV2CommandInput, DescribeClusterV2CommandOutput } from "./commands/DescribeClusterV2Command";
import {
DescribeConfigurationCommandInput,
Expand Down Expand Up @@ -115,6 +119,10 @@ import {
ListClusterOperationsCommandInput,
ListClusterOperationsCommandOutput,
} from "./commands/ListClusterOperationsCommand";
import {
ListClusterOperationsV2CommandInput,
ListClusterOperationsV2CommandOutput,
} from "./commands/ListClusterOperationsV2Command";
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
import { ListClustersV2CommandInput, ListClustersV2CommandOutput } from "./commands/ListClustersV2Command";
import {
Expand Down Expand Up @@ -186,6 +194,7 @@ export type ServiceInputTypes =
| DeleteVpcConnectionCommandInput
| DescribeClusterCommandInput
| DescribeClusterOperationCommandInput
| DescribeClusterOperationV2CommandInput
| DescribeClusterV2CommandInput
| DescribeConfigurationCommandInput
| DescribeConfigurationRevisionCommandInput
Expand All @@ -195,6 +204,7 @@ export type ServiceInputTypes =
| GetCompatibleKafkaVersionsCommandInput
| ListClientVpcConnectionsCommandInput
| ListClusterOperationsCommandInput
| ListClusterOperationsV2CommandInput
| ListClustersCommandInput
| ListClustersV2CommandInput
| ListConfigurationRevisionsCommandInput
Expand Down Expand Up @@ -236,6 +246,7 @@ export type ServiceOutputTypes =
| DeleteVpcConnectionCommandOutput
| DescribeClusterCommandOutput
| DescribeClusterOperationCommandOutput
| DescribeClusterOperationV2CommandOutput
| DescribeClusterV2CommandOutput
| DescribeConfigurationCommandOutput
| DescribeConfigurationRevisionCommandOutput
Expand All @@ -245,6 +256,7 @@ export type ServiceOutputTypes =
| GetCompatibleKafkaVersionsCommandOutput
| ListClientVpcConnectionsCommandOutput
| ListClusterOperationsCommandOutput
| ListClusterOperationsV2CommandOutput
| ListClustersCommandOutput
| ListClustersV2CommandOutput
| ListConfigurationRevisionsCommandOutput
Expand Down
Loading

0 comments on commit 57e3fc5

Please sign in to comment.