Skip to content

Commit

Permalink
feat(client-opensearch): Launching Amazon OpenSearch Service support …
Browse files Browse the repository at this point in the history
…for new zero-ETL integration with Amazon S3. Customers can now manage their direct query data sources to Amazon S3 programatically
  • Loading branch information
awstools committed Nov 29, 2023
1 parent 4256371 commit 3d09e8a
Show file tree
Hide file tree
Showing 12 changed files with 2,304 additions and 67 deletions.
40 changes: 40 additions & 0 deletions clients/client-opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ AcceptInboundConnection

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

</details>
<details>
<summary>
AddDataSource
</summary>

[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>
Expand Down Expand Up @@ -283,6 +291,14 @@ CreateVpcEndpoint

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

</details>
<details>
<summary>
DeleteDataSource
</summary>

[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>
Expand Down Expand Up @@ -459,6 +475,14 @@ GetCompatibleVersions

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

</details>
<details>
<summary>
GetDataSource
</summary>

[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>
Expand Down Expand Up @@ -491,6 +515,14 @@ GetUpgradeStatus

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

</details>
<details>
<summary>
ListDataSources
</summary>

[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>
Expand Down Expand Up @@ -627,6 +659,14 @@ StartServiceSoftwareUpdate

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

</details>
<details>
<summary>
UpdateDataSource
</summary>

[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>
Expand Down
100 changes: 100 additions & 0 deletions clients/client-opensearch/src/OpenSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
AcceptInboundConnectionCommandInput,
AcceptInboundConnectionCommandOutput,
} from "./commands/AcceptInboundConnectionCommand";
import {
AddDataSourceCommand,
AddDataSourceCommandInput,
AddDataSourceCommandOutput,
} from "./commands/AddDataSourceCommand";
import { AddTagsCommand, AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
import {
AssociatePackageCommand,
Expand Down Expand Up @@ -43,6 +48,11 @@ import {
CreateVpcEndpointCommandInput,
CreateVpcEndpointCommandOutput,
} from "./commands/CreateVpcEndpointCommand";
import {
DeleteDataSourceCommand,
DeleteDataSourceCommandInput,
DeleteDataSourceCommandOutput,
} from "./commands/DeleteDataSourceCommand";
import {
DeleteDomainCommand,
DeleteDomainCommandInput,
Expand Down Expand Up @@ -153,6 +163,11 @@ import {
GetCompatibleVersionsCommandInput,
GetCompatibleVersionsCommandOutput,
} from "./commands/GetCompatibleVersionsCommand";
import {
GetDataSourceCommand,
GetDataSourceCommandInput,
GetDataSourceCommandOutput,
} from "./commands/GetDataSourceCommand";
import {
GetDomainMaintenanceStatusCommand,
GetDomainMaintenanceStatusCommandInput,
Expand All @@ -173,6 +188,11 @@ import {
GetUpgradeStatusCommandInput,
GetUpgradeStatusCommandOutput,
} from "./commands/GetUpgradeStatusCommand";
import {
ListDataSourcesCommand,
ListDataSourcesCommandInput,
ListDataSourcesCommandOutput,
} from "./commands/ListDataSourcesCommand";
import {
ListDomainMaintenancesCommand,
ListDomainMaintenancesCommandInput,
Expand Down Expand Up @@ -250,6 +270,11 @@ import {
StartServiceSoftwareUpdateCommandInput,
StartServiceSoftwareUpdateCommandOutput,
} from "./commands/StartServiceSoftwareUpdateCommand";
import {
UpdateDataSourceCommand,
UpdateDataSourceCommandInput,
UpdateDataSourceCommandOutput,
} from "./commands/UpdateDataSourceCommand";
import {
UpdateDomainConfigCommand,
UpdateDomainConfigCommandInput,
Expand Down Expand Up @@ -279,6 +304,7 @@ import { OpenSearchClient, OpenSearchClientConfig } from "./OpenSearchClient";

const commands = {
AcceptInboundConnectionCommand,
AddDataSourceCommand,
AddTagsCommand,
AssociatePackageCommand,
AuthorizeVpcEndpointAccessCommand,
Expand All @@ -287,6 +313,7 @@ const commands = {
CreateOutboundConnectionCommand,
CreatePackageCommand,
CreateVpcEndpointCommand,
DeleteDataSourceCommand,
DeleteDomainCommand,
DeleteInboundConnectionCommand,
DeleteOutboundConnectionCommand,
Expand All @@ -309,10 +336,12 @@ const commands = {
DescribeVpcEndpointsCommand,
DissociatePackageCommand,
GetCompatibleVersionsCommand,
GetDataSourceCommand,
GetDomainMaintenanceStatusCommand,
GetPackageVersionHistoryCommand,
GetUpgradeHistoryCommand,
GetUpgradeStatusCommand,
ListDataSourcesCommand,
ListDomainMaintenancesCommand,
ListDomainNamesCommand,
ListDomainsForPackageCommand,
Expand All @@ -330,6 +359,7 @@ const commands = {
RevokeVpcEndpointAccessCommand,
StartDomainMaintenanceCommand,
StartServiceSoftwareUpdateCommand,
UpdateDataSourceCommand,
UpdateDomainConfigCommand,
UpdatePackageCommand,
UpdateScheduledActionCommand,
Expand All @@ -355,6 +385,17 @@ export interface OpenSearch {
cb: (err: any, data?: AcceptInboundConnectionCommandOutput) => void
): void;

/**
* @see {@link AddDataSourceCommand}
*/
addDataSource(args: AddDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<AddDataSourceCommandOutput>;
addDataSource(args: AddDataSourceCommandInput, cb: (err: any, data?: AddDataSourceCommandOutput) => void): void;
addDataSource(
args: AddDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AddDataSourceCommandOutput) => void
): void;

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

/**
* @see {@link DeleteDataSourceCommand}
*/
deleteDataSource(
args: DeleteDataSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteDataSourceCommandOutput>;
deleteDataSource(
args: DeleteDataSourceCommandInput,
cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
): void;
deleteDataSource(
args: DeleteDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
): void;

/**
* @see {@link DeleteDomainCommand}
*/
Expand Down Expand Up @@ -829,6 +887,17 @@ export interface OpenSearch {
cb: (err: any, data?: GetCompatibleVersionsCommandOutput) => void
): void;

/**
* @see {@link GetDataSourceCommand}
*/
getDataSource(args: GetDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<GetDataSourceCommandOutput>;
getDataSource(args: GetDataSourceCommandInput, cb: (err: any, data?: GetDataSourceCommandOutput) => void): void;
getDataSource(
args: GetDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetDataSourceCommandOutput) => void
): void;

/**
* @see {@link GetDomainMaintenanceStatusCommand}
*/
Expand Down Expand Up @@ -897,6 +966,20 @@ export interface OpenSearch {
cb: (err: any, data?: GetUpgradeStatusCommandOutput) => void
): void;

/**
* @see {@link ListDataSourcesCommand}
*/
listDataSources(
args: ListDataSourcesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListDataSourcesCommandOutput>;
listDataSources(args: ListDataSourcesCommandInput, cb: (err: any, data?: ListDataSourcesCommandOutput) => void): void;
listDataSources(
args: ListDataSourcesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListDataSourcesCommandOutput) => void
): void;

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

/**
* @see {@link UpdateDataSourceCommand}
*/
updateDataSource(
args: UpdateDataSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateDataSourceCommandOutput>;
updateDataSource(
args: UpdateDataSourceCommandInput,
cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
): void;
updateDataSource(
args: UpdateDataSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
): void;

/**
* @see {@link UpdateDomainConfigCommand}
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-opensearch/src/OpenSearchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import {
AcceptInboundConnectionCommandInput,
AcceptInboundConnectionCommandOutput,
} from "./commands/AcceptInboundConnectionCommand";
import { AddDataSourceCommandInput, AddDataSourceCommandOutput } from "./commands/AddDataSourceCommand";
import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
import { AssociatePackageCommandInput, AssociatePackageCommandOutput } from "./commands/AssociatePackageCommand";
import {
Expand All @@ -71,6 +72,7 @@ import {
} from "./commands/CreateOutboundConnectionCommand";
import { CreatePackageCommandInput, CreatePackageCommandOutput } from "./commands/CreatePackageCommand";
import { CreateVpcEndpointCommandInput, CreateVpcEndpointCommandOutput } from "./commands/CreateVpcEndpointCommand";
import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "./commands/DeleteDataSourceCommand";
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
import {
DeleteInboundConnectionCommandInput,
Expand Down Expand Up @@ -138,6 +140,7 @@ import {
GetCompatibleVersionsCommandInput,
GetCompatibleVersionsCommandOutput,
} from "./commands/GetCompatibleVersionsCommand";
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
import {
GetDomainMaintenanceStatusCommandInput,
GetDomainMaintenanceStatusCommandOutput,
Expand All @@ -148,6 +151,7 @@ import {
} from "./commands/GetPackageVersionHistoryCommand";
import { GetUpgradeHistoryCommandInput, GetUpgradeHistoryCommandOutput } from "./commands/GetUpgradeHistoryCommand";
import { GetUpgradeStatusCommandInput, GetUpgradeStatusCommandOutput } from "./commands/GetUpgradeStatusCommand";
import { ListDataSourcesCommandInput, ListDataSourcesCommandOutput } from "./commands/ListDataSourcesCommand";
import {
ListDomainMaintenancesCommandInput,
ListDomainMaintenancesCommandOutput,
Expand Down Expand Up @@ -201,6 +205,7 @@ import {
StartServiceSoftwareUpdateCommandInput,
StartServiceSoftwareUpdateCommandOutput,
} from "./commands/StartServiceSoftwareUpdateCommand";
import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./commands/UpdateDataSourceCommand";
import { UpdateDomainConfigCommandInput, UpdateDomainConfigCommandOutput } from "./commands/UpdateDomainConfigCommand";
import { UpdatePackageCommandInput, UpdatePackageCommandOutput } from "./commands/UpdatePackageCommand";
import {
Expand All @@ -225,6 +230,7 @@ export { __Client };
*/
export type ServiceInputTypes =
| AcceptInboundConnectionCommandInput
| AddDataSourceCommandInput
| AddTagsCommandInput
| AssociatePackageCommandInput
| AuthorizeVpcEndpointAccessCommandInput
Expand All @@ -233,6 +239,7 @@ export type ServiceInputTypes =
| CreateOutboundConnectionCommandInput
| CreatePackageCommandInput
| CreateVpcEndpointCommandInput
| DeleteDataSourceCommandInput
| DeleteDomainCommandInput
| DeleteInboundConnectionCommandInput
| DeleteOutboundConnectionCommandInput
Expand All @@ -255,10 +262,12 @@ export type ServiceInputTypes =
| DescribeVpcEndpointsCommandInput
| DissociatePackageCommandInput
| GetCompatibleVersionsCommandInput
| GetDataSourceCommandInput
| GetDomainMaintenanceStatusCommandInput
| GetPackageVersionHistoryCommandInput
| GetUpgradeHistoryCommandInput
| GetUpgradeStatusCommandInput
| ListDataSourcesCommandInput
| ListDomainMaintenancesCommandInput
| ListDomainNamesCommandInput
| ListDomainsForPackageCommandInput
Expand All @@ -276,6 +285,7 @@ export type ServiceInputTypes =
| RevokeVpcEndpointAccessCommandInput
| StartDomainMaintenanceCommandInput
| StartServiceSoftwareUpdateCommandInput
| UpdateDataSourceCommandInput
| UpdateDomainConfigCommandInput
| UpdatePackageCommandInput
| UpdateScheduledActionCommandInput
Expand All @@ -287,6 +297,7 @@ export type ServiceInputTypes =
*/
export type ServiceOutputTypes =
| AcceptInboundConnectionCommandOutput
| AddDataSourceCommandOutput
| AddTagsCommandOutput
| AssociatePackageCommandOutput
| AuthorizeVpcEndpointAccessCommandOutput
Expand All @@ -295,6 +306,7 @@ export type ServiceOutputTypes =
| CreateOutboundConnectionCommandOutput
| CreatePackageCommandOutput
| CreateVpcEndpointCommandOutput
| DeleteDataSourceCommandOutput
| DeleteDomainCommandOutput
| DeleteInboundConnectionCommandOutput
| DeleteOutboundConnectionCommandOutput
Expand All @@ -317,10 +329,12 @@ export type ServiceOutputTypes =
| DescribeVpcEndpointsCommandOutput
| DissociatePackageCommandOutput
| GetCompatibleVersionsCommandOutput
| GetDataSourceCommandOutput
| GetDomainMaintenanceStatusCommandOutput
| GetPackageVersionHistoryCommandOutput
| GetUpgradeHistoryCommandOutput
| GetUpgradeStatusCommandOutput
| ListDataSourcesCommandOutput
| ListDomainMaintenancesCommandOutput
| ListDomainNamesCommandOutput
| ListDomainsForPackageCommandOutput
Expand All @@ -338,6 +352,7 @@ export type ServiceOutputTypes =
| RevokeVpcEndpointAccessCommandOutput
| StartDomainMaintenanceCommandOutput
| StartServiceSoftwareUpdateCommandOutput
| UpdateDataSourceCommandOutput
| UpdateDomainConfigCommandOutput
| UpdatePackageCommandOutput
| UpdateScheduledActionCommandOutput
Expand Down
Loading

0 comments on commit 3d09e8a

Please sign in to comment.