Skip to content

Commit

Permalink
feat(client-opensearchserverless): This release includes the followin…
Browse files Browse the repository at this point in the history
…g new APIs: CreateLifecyclePolicy, UpdateLifecyclePolicy, BatchGetLifecyclePolicy, DeleteLifecyclePolicy, ListLifecyclePolicies and BatchGetEffectiveLifecyclePolicy to support the data lifecycle management feature.
  • Loading branch information
awstools committed Oct 24, 2023
1 parent 1e99a41 commit dc52243
Show file tree
Hide file tree
Showing 16 changed files with 3,290 additions and 32 deletions.
48 changes: 48 additions & 0 deletions clients/client-opensearchserverless/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,22 @@ BatchGetCollection

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/batchgetcollectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/batchgetcollectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/batchgetcollectioncommandoutput.html)

</details>
<details>
<summary>
BatchGetEffectiveLifecyclePolicy
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/batchgeteffectivelifecyclepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/batchgeteffectivelifecyclepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/batchgeteffectivelifecyclepolicycommandoutput.html)

</details>
<details>
<summary>
BatchGetLifecyclePolicy
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/batchgetlifecyclepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/batchgetlifecyclepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/batchgetlifecyclepolicycommandoutput.html)

</details>
<details>
<summary>
Expand All @@ -243,6 +259,14 @@ CreateCollection

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/createcollectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/createcollectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/createcollectioncommandoutput.html)

</details>
<details>
<summary>
CreateLifecyclePolicy
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/createlifecyclepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/createlifecyclepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/createlifecyclepolicycommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -283,6 +307,14 @@ DeleteCollection

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/deletecollectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/deletecollectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/deletecollectioncommandoutput.html)

</details>
<details>
<summary>
DeleteLifecyclePolicy
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/deletelifecyclepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/deletelifecyclepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/deletelifecyclepolicycommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -363,6 +395,14 @@ ListCollections

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/listcollectionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/listcollectionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/listcollectionscommandoutput.html)

</details>
<details>
<summary>
ListLifecyclePolicies
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/listlifecyclepoliciescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/listlifecyclepoliciescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/listlifecyclepoliciescommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -435,6 +475,14 @@ UpdateCollection

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/updatecollectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/updatecollectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/updatecollectioncommandoutput.html)

</details>
<details>
<summary>
UpdateLifecyclePolicy
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/classes/updatelifecyclepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/updatelifecyclepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearchserverless/interfaces/updatelifecyclepolicycommandoutput.html)

</details>
<details>
<summary>
Expand Down
138 changes: 138 additions & 0 deletions clients/client-opensearchserverless/src/OpenSearchServerless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ import {
BatchGetCollectionCommandInput,
BatchGetCollectionCommandOutput,
} from "./commands/BatchGetCollectionCommand";
import {
BatchGetEffectiveLifecyclePolicyCommand,
BatchGetEffectiveLifecyclePolicyCommandInput,
BatchGetEffectiveLifecyclePolicyCommandOutput,
} from "./commands/BatchGetEffectiveLifecyclePolicyCommand";
import {
BatchGetLifecyclePolicyCommand,
BatchGetLifecyclePolicyCommandInput,
BatchGetLifecyclePolicyCommandOutput,
} from "./commands/BatchGetLifecyclePolicyCommand";
import {
BatchGetVpcEndpointCommand,
BatchGetVpcEndpointCommandInput,
Expand All @@ -22,6 +32,11 @@ import {
CreateCollectionCommandInput,
CreateCollectionCommandOutput,
} from "./commands/CreateCollectionCommand";
import {
CreateLifecyclePolicyCommand,
CreateLifecyclePolicyCommandInput,
CreateLifecyclePolicyCommandOutput,
} from "./commands/CreateLifecyclePolicyCommand";
import {
CreateSecurityConfigCommand,
CreateSecurityConfigCommandInput,
Expand All @@ -47,6 +62,11 @@ import {
DeleteCollectionCommandInput,
DeleteCollectionCommandOutput,
} from "./commands/DeleteCollectionCommand";
import {
DeleteLifecyclePolicyCommand,
DeleteLifecyclePolicyCommandInput,
DeleteLifecyclePolicyCommandOutput,
} from "./commands/DeleteLifecyclePolicyCommand";
import {
DeleteSecurityConfigCommand,
DeleteSecurityConfigCommandInput,
Expand Down Expand Up @@ -97,6 +117,11 @@ import {
ListCollectionsCommandInput,
ListCollectionsCommandOutput,
} from "./commands/ListCollectionsCommand";
import {
ListLifecyclePoliciesCommand,
ListLifecyclePoliciesCommandInput,
ListLifecyclePoliciesCommandOutput,
} from "./commands/ListLifecyclePoliciesCommand";
import {
ListSecurityConfigsCommand,
ListSecurityConfigsCommandInput,
Expand Down Expand Up @@ -138,6 +163,11 @@ import {
UpdateCollectionCommandInput,
UpdateCollectionCommandOutput,
} from "./commands/UpdateCollectionCommand";
import {
UpdateLifecyclePolicyCommand,
UpdateLifecyclePolicyCommandInput,
UpdateLifecyclePolicyCommandOutput,
} from "./commands/UpdateLifecyclePolicyCommand";
import {
UpdateSecurityConfigCommand,
UpdateSecurityConfigCommandInput,
Expand All @@ -157,14 +187,18 @@ import { OpenSearchServerlessClient, OpenSearchServerlessClientConfig } from "./

const commands = {
BatchGetCollectionCommand,
BatchGetEffectiveLifecyclePolicyCommand,
BatchGetLifecyclePolicyCommand,
BatchGetVpcEndpointCommand,
CreateAccessPolicyCommand,
CreateCollectionCommand,
CreateLifecyclePolicyCommand,
CreateSecurityConfigCommand,
CreateSecurityPolicyCommand,
CreateVpcEndpointCommand,
DeleteAccessPolicyCommand,
DeleteCollectionCommand,
DeleteLifecyclePolicyCommand,
DeleteSecurityConfigCommand,
DeleteSecurityPolicyCommand,
DeleteVpcEndpointCommand,
Expand All @@ -175,6 +209,7 @@ const commands = {
GetSecurityPolicyCommand,
ListAccessPoliciesCommand,
ListCollectionsCommand,
ListLifecyclePoliciesCommand,
ListSecurityConfigsCommand,
ListSecurityPoliciesCommand,
ListTagsForResourceCommand,
Expand All @@ -184,6 +219,7 @@ const commands = {
UpdateAccessPolicyCommand,
UpdateAccountSettingsCommand,
UpdateCollectionCommand,
UpdateLifecyclePolicyCommand,
UpdateSecurityConfigCommand,
UpdateSecurityPolicyCommand,
UpdateVpcEndpointCommand,
Expand All @@ -207,6 +243,40 @@ export interface OpenSearchServerless {
cb: (err: any, data?: BatchGetCollectionCommandOutput) => void
): void;

/**
* @see {@link BatchGetEffectiveLifecyclePolicyCommand}
*/
batchGetEffectiveLifecyclePolicy(
args: BatchGetEffectiveLifecyclePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchGetEffectiveLifecyclePolicyCommandOutput>;
batchGetEffectiveLifecyclePolicy(
args: BatchGetEffectiveLifecyclePolicyCommandInput,
cb: (err: any, data?: BatchGetEffectiveLifecyclePolicyCommandOutput) => void
): void;
batchGetEffectiveLifecyclePolicy(
args: BatchGetEffectiveLifecyclePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchGetEffectiveLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link BatchGetLifecyclePolicyCommand}
*/
batchGetLifecyclePolicy(
args: BatchGetLifecyclePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchGetLifecyclePolicyCommandOutput>;
batchGetLifecyclePolicy(
args: BatchGetLifecyclePolicyCommandInput,
cb: (err: any, data?: BatchGetLifecyclePolicyCommandOutput) => void
): void;
batchGetLifecyclePolicy(
args: BatchGetLifecyclePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchGetLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link BatchGetVpcEndpointCommand}
*/
Expand Down Expand Up @@ -258,6 +328,23 @@ export interface OpenSearchServerless {
cb: (err: any, data?: CreateCollectionCommandOutput) => void
): void;

/**
* @see {@link CreateLifecyclePolicyCommand}
*/
createLifecyclePolicy(
args: CreateLifecyclePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateLifecyclePolicyCommandOutput>;
createLifecyclePolicy(
args: CreateLifecyclePolicyCommandInput,
cb: (err: any, data?: CreateLifecyclePolicyCommandOutput) => void
): void;
createLifecyclePolicy(
args: CreateLifecyclePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link CreateSecurityConfigCommand}
*/
Expand Down Expand Up @@ -343,6 +430,23 @@ export interface OpenSearchServerless {
cb: (err: any, data?: DeleteCollectionCommandOutput) => void
): void;

/**
* @see {@link DeleteLifecyclePolicyCommand}
*/
deleteLifecyclePolicy(
args: DeleteLifecyclePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteLifecyclePolicyCommandOutput>;
deleteLifecyclePolicy(
args: DeleteLifecyclePolicyCommandInput,
cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void
): void;
deleteLifecyclePolicy(
args: DeleteLifecyclePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link DeleteSecurityConfigCommand}
*/
Expand Down Expand Up @@ -507,6 +611,23 @@ export interface OpenSearchServerless {
cb: (err: any, data?: ListCollectionsCommandOutput) => void
): void;

/**
* @see {@link ListLifecyclePoliciesCommand}
*/
listLifecyclePolicies(
args: ListLifecyclePoliciesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListLifecyclePoliciesCommandOutput>;
listLifecyclePolicies(
args: ListLifecyclePoliciesCommandInput,
cb: (err: any, data?: ListLifecyclePoliciesCommandOutput) => void
): void;
listLifecyclePolicies(
args: ListLifecyclePoliciesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListLifecyclePoliciesCommandOutput) => void
): void;

/**
* @see {@link ListSecurityConfigsCommand}
*/
Expand Down Expand Up @@ -648,6 +769,23 @@ export interface OpenSearchServerless {
cb: (err: any, data?: UpdateCollectionCommandOutput) => void
): void;

/**
* @see {@link UpdateLifecyclePolicyCommand}
*/
updateLifecyclePolicy(
args: UpdateLifecyclePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateLifecyclePolicyCommandOutput>;
updateLifecyclePolicy(
args: UpdateLifecyclePolicyCommandInput,
cb: (err: any, data?: UpdateLifecyclePolicyCommandOutput) => void
): void;
updateLifecyclePolicy(
args: UpdateLifecyclePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateLifecyclePolicyCommandOutput) => void
): void;

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

0 comments on commit dc52243

Please sign in to comment.