Skip to content

Commit

Permalink
feat(client-opensearch): This feature introduces support for CRUDL AP…
Browse files Browse the repository at this point in the history
…Is, enabling the creation and management of Connected data sources.
  • Loading branch information
awstools committed Dec 2, 2024
1 parent a4b4303 commit 9f110aa
Show file tree
Hide file tree
Showing 19 changed files with 2,341 additions and 362 deletions.
40 changes: 40 additions & 0 deletions clients/client-opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ AddDataSource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/AddDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AddDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AddDataSourceCommandOutput/)

</details>
<details>
<summary>
AddDirectQueryDataSource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/AddDirectQueryDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AddDirectQueryDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AddDirectQueryDataSourceCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -326,6 +334,14 @@ DeleteDataSource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/DeleteDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteDataSourceCommandOutput/)

</details>
<details>
<summary>
DeleteDirectQueryDataSource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/DeleteDirectQueryDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteDirectQueryDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteDirectQueryDataSourceCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -526,6 +542,14 @@ GetDataSource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/GetDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetDataSourceCommandOutput/)

</details>
<details>
<summary>
GetDirectQueryDataSource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/GetDirectQueryDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetDirectQueryDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetDirectQueryDataSourceCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -574,6 +598,14 @@ ListDataSources

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/ListDataSourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListDataSourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListDataSourcesCommandOutput/)

</details>
<details>
<summary>
ListDirectQueryDataSources
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/ListDirectQueryDataSourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListDirectQueryDataSourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListDirectQueryDataSourcesCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -726,6 +758,14 @@ UpdateDataSource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/UpdateDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateDataSourceCommandOutput/)

</details>
<details>
<summary>
UpdateDirectQueryDataSource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/UpdateDirectQueryDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateDirectQueryDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateDirectQueryDataSourceCommandOutput/)

</details>
<details>
<summary>
Expand Down
116 changes: 116 additions & 0 deletions clients/client-opensearch/src/OpenSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import {
AddDataSourceCommandInput,
AddDataSourceCommandOutput,
} from "./commands/AddDataSourceCommand";
import {
AddDirectQueryDataSourceCommand,
AddDirectQueryDataSourceCommandInput,
AddDirectQueryDataSourceCommandOutput,
} from "./commands/AddDirectQueryDataSourceCommand";
import { AddTagsCommand, AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
import {
AssociatePackageCommand,
Expand Down Expand Up @@ -73,6 +78,11 @@ import {
DeleteDataSourceCommandInput,
DeleteDataSourceCommandOutput,
} from "./commands/DeleteDataSourceCommand";
import {
DeleteDirectQueryDataSourceCommand,
DeleteDirectQueryDataSourceCommandInput,
DeleteDirectQueryDataSourceCommandOutput,
} from "./commands/DeleteDirectQueryDataSourceCommand";
import {
DeleteDomainCommand,
DeleteDomainCommandInput,
Expand Down Expand Up @@ -198,6 +208,11 @@ import {
GetDataSourceCommandInput,
GetDataSourceCommandOutput,
} from "./commands/GetDataSourceCommand";
import {
GetDirectQueryDataSourceCommand,
GetDirectQueryDataSourceCommandInput,
GetDirectQueryDataSourceCommandOutput,
} from "./commands/GetDirectQueryDataSourceCommand";
import {
GetDomainMaintenanceStatusCommand,
GetDomainMaintenanceStatusCommandInput,
Expand Down Expand Up @@ -228,6 +243,11 @@ import {
ListDataSourcesCommandInput,
ListDataSourcesCommandOutput,
} from "./commands/ListDataSourcesCommand";
import {
ListDirectQueryDataSourcesCommand,
ListDirectQueryDataSourcesCommandInput,
ListDirectQueryDataSourcesCommandOutput,
} from "./commands/ListDirectQueryDataSourcesCommand";
import {
ListDomainMaintenancesCommand,
ListDomainMaintenancesCommandInput,
Expand Down Expand Up @@ -315,6 +335,11 @@ import {
UpdateDataSourceCommandInput,
UpdateDataSourceCommandOutput,
} from "./commands/UpdateDataSourceCommand";
import {
UpdateDirectQueryDataSourceCommand,
UpdateDirectQueryDataSourceCommandInput,
UpdateDirectQueryDataSourceCommandOutput,
} from "./commands/UpdateDirectQueryDataSourceCommand";
import {
UpdateDomainConfigCommand,
UpdateDomainConfigCommandInput,
Expand Down Expand Up @@ -350,6 +375,7 @@ import { OpenSearchClient, OpenSearchClientConfig } from "./OpenSearchClient";
const commands = {
AcceptInboundConnectionCommand,
AddDataSourceCommand,
AddDirectQueryDataSourceCommand,
AddTagsCommand,
AssociatePackageCommand,
AssociatePackagesCommand,
Expand All @@ -363,6 +389,7 @@ const commands = {
CreateVpcEndpointCommand,
DeleteApplicationCommand,
DeleteDataSourceCommand,
DeleteDirectQueryDataSourceCommand,
DeleteDomainCommand,
DeleteInboundConnectionCommand,
DeleteOutboundConnectionCommand,
Expand All @@ -388,12 +415,14 @@ const commands = {
GetApplicationCommand,
GetCompatibleVersionsCommand,
GetDataSourceCommand,
GetDirectQueryDataSourceCommand,
GetDomainMaintenanceStatusCommand,
GetPackageVersionHistoryCommand,
GetUpgradeHistoryCommand,
GetUpgradeStatusCommand,
ListApplicationsCommand,
ListDataSourcesCommand,
ListDirectQueryDataSourcesCommand,
ListDomainMaintenancesCommand,
ListDomainNamesCommand,
ListDomainsForPackageCommand,
Expand All @@ -413,6 +442,7 @@ const commands = {
StartServiceSoftwareUpdateCommand,
UpdateApplicationCommand,
UpdateDataSourceCommand,
UpdateDirectQueryDataSourceCommand,
UpdateDomainConfigCommand,
UpdatePackageCommand,
UpdatePackageScopeCommand,
Expand Down Expand Up @@ -450,6 +480,23 @@ export interface OpenSearch {
cb: (err: any, data?: AddDataSourceCommandOutput) => void
): void;

/**
* @see {@link AddDirectQueryDataSourceCommand}
*/
addDirectQueryDataSource(
args: AddDirectQueryDataSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<AddDirectQueryDataSourceCommandOutput>;
addDirectQueryDataSource(
args: AddDirectQueryDataSourceCommandInput,
cb: (err: any, data?: AddDirectQueryDataSourceCommandOutput) => void
): void;
addDirectQueryDataSource(
args: AddDirectQueryDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AddDirectQueryDataSourceCommandOutput) => void
): void;

/**
* @see {@link AddTagsCommand}
*/
Expand Down Expand Up @@ -653,6 +700,23 @@ export interface OpenSearch {
cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
): void;

/**
* @see {@link DeleteDirectQueryDataSourceCommand}
*/
deleteDirectQueryDataSource(
args: DeleteDirectQueryDataSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteDirectQueryDataSourceCommandOutput>;
deleteDirectQueryDataSource(
args: DeleteDirectQueryDataSourceCommandInput,
cb: (err: any, data?: DeleteDirectQueryDataSourceCommandOutput) => void
): void;
deleteDirectQueryDataSource(
args: DeleteDirectQueryDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteDirectQueryDataSourceCommandOutput) => void
): void;

/**
* @see {@link DeleteDomainCommand}
*/
Expand Down Expand Up @@ -1057,6 +1121,23 @@ export interface OpenSearch {
cb: (err: any, data?: GetDataSourceCommandOutput) => void
): void;

/**
* @see {@link GetDirectQueryDataSourceCommand}
*/
getDirectQueryDataSource(
args: GetDirectQueryDataSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<GetDirectQueryDataSourceCommandOutput>;
getDirectQueryDataSource(
args: GetDirectQueryDataSourceCommandInput,
cb: (err: any, data?: GetDirectQueryDataSourceCommandOutput) => void
): void;
getDirectQueryDataSource(
args: GetDirectQueryDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetDirectQueryDataSourceCommandOutput) => void
): void;

/**
* @see {@link GetDomainMaintenanceStatusCommand}
*/
Expand Down Expand Up @@ -1157,6 +1238,24 @@ export interface OpenSearch {
cb: (err: any, data?: ListDataSourcesCommandOutput) => void
): void;

/**
* @see {@link ListDirectQueryDataSourcesCommand}
*/
listDirectQueryDataSources(): Promise<ListDirectQueryDataSourcesCommandOutput>;
listDirectQueryDataSources(
args: ListDirectQueryDataSourcesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListDirectQueryDataSourcesCommandOutput>;
listDirectQueryDataSources(
args: ListDirectQueryDataSourcesCommandInput,
cb: (err: any, data?: ListDirectQueryDataSourcesCommandOutput) => void
): void;
listDirectQueryDataSources(
args: ListDirectQueryDataSourcesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListDirectQueryDataSourcesCommandOutput) => void
): void;

/**
* @see {@link ListDomainMaintenancesCommand}
*/
Expand Down Expand Up @@ -1462,6 +1561,23 @@ export interface OpenSearch {
cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
): void;

/**
* @see {@link UpdateDirectQueryDataSourceCommand}
*/
updateDirectQueryDataSource(
args: UpdateDirectQueryDataSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateDirectQueryDataSourceCommandOutput>;
updateDirectQueryDataSource(
args: UpdateDirectQueryDataSourceCommandInput,
cb: (err: any, data?: UpdateDirectQueryDataSourceCommandOutput) => void
): void;
updateDirectQueryDataSource(
args: UpdateDirectQueryDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateDirectQueryDataSourceCommandOutput) => void
): void;

/**
* @see {@link UpdateDomainConfigCommand}
*/
Expand Down
Loading

0 comments on commit 9f110aa

Please sign in to comment.