Skip to content

Commit

Permalink
feat(client-opensearch): Amazon OpenSearch Service adds the option to…
Browse files Browse the repository at this point in the history
… deploy a domain across multiple Availability Zones, with each AZ containing a complete copy of data and with nodes in one AZ acting as a standby. This option provides 99.99% availability and consistent performance in the event of infrastructure failure.
  • Loading branch information
awstools committed May 3, 2023
1 parent c28aac2 commit bd6c71a
Show file tree
Hide file tree
Showing 56 changed files with 1,215 additions and 195 deletions.
8 changes: 8 additions & 0 deletions clients/client-opensearch/README.md
Expand Up @@ -358,6 +358,14 @@ DescribeDomainConfig

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/describedomainconfigcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainconfigcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainconfigcommandoutput.html)

</details>
<details>
<summary>
DescribeDomainHealth
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/describedomainhealthcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainhealthcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainhealthcommandoutput.html)

</details>
<details>
<summary>
Expand Down
23 changes: 23 additions & 0 deletions clients/client-opensearch/src/OpenSearch.ts
Expand Up @@ -88,6 +88,11 @@ import {
DescribeDomainConfigCommandInput,
DescribeDomainConfigCommandOutput,
} from "./commands/DescribeDomainConfigCommand";
import {
DescribeDomainHealthCommand,
DescribeDomainHealthCommandInput,
DescribeDomainHealthCommandOutput,
} from "./commands/DescribeDomainHealthCommand";
import {
DescribeDomainsCommand,
DescribeDomainsCommandInput,
Expand Down Expand Up @@ -271,6 +276,7 @@ const commands = {
DescribeDomainAutoTunesCommand,
DescribeDomainChangeProgressCommand,
DescribeDomainConfigCommand,
DescribeDomainHealthCommand,
DescribeDomainsCommand,
DescribeDryRunProgressCommand,
DescribeInboundConnectionsCommand,
Expand Down Expand Up @@ -581,6 +587,23 @@ export interface OpenSearch {
cb: (err: any, data?: DescribeDomainConfigCommandOutput) => void
): void;

/**
* @see {@link DescribeDomainHealthCommand}
*/
describeDomainHealth(
args: DescribeDomainHealthCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeDomainHealthCommandOutput>;
describeDomainHealth(
args: DescribeDomainHealthCommandInput,
cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void
): void;
describeDomainHealth(
args: DescribeDomainHealthCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void
): void;

/**
* @see {@link DescribeDomainsCommand}
*/
Expand Down
6 changes: 6 additions & 0 deletions clients/client-opensearch/src/OpenSearchClient.ts
Expand Up @@ -94,6 +94,10 @@ import {
DescribeDomainConfigCommandInput,
DescribeDomainConfigCommandOutput,
} from "./commands/DescribeDomainConfigCommand";
import {
DescribeDomainHealthCommandInput,
DescribeDomainHealthCommandOutput,
} from "./commands/DescribeDomainHealthCommand";
import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
import {
DescribeDryRunProgressCommandInput,
Expand Down Expand Up @@ -218,6 +222,7 @@ export type ServiceInputTypes =
| DescribeDomainChangeProgressCommandInput
| DescribeDomainCommandInput
| DescribeDomainConfigCommandInput
| DescribeDomainHealthCommandInput
| DescribeDomainsCommandInput
| DescribeDryRunProgressCommandInput
| DescribeInboundConnectionsCommandInput
Expand Down Expand Up @@ -275,6 +280,7 @@ export type ServiceOutputTypes =
| DescribeDomainChangeProgressCommandOutput
| DescribeDomainCommandOutput
| DescribeDomainConfigCommandOutput
| DescribeDomainHealthCommandOutput
| DescribeDomainsCommandOutput
| DescribeDryRunProgressCommandOutput
| DescribeInboundConnectionsCommandOutput
Expand Down
Expand Up @@ -80,13 +80,13 @@ export interface AcceptInboundConnectionCommandOutput extends AcceptInboundConne
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>An exception for trying to create more than the allowed number of resources or sub-resources.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link OpenSearchServiceException}
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
Expand Down
Expand Up @@ -85,7 +85,7 @@ export interface AssociatePackageCommandOutput extends AssociatePackageResponse,
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -65,7 +65,7 @@ export interface AuthorizeVpcEndpointAccessCommandOutput extends AuthorizeVpcEnd
* <p>An error occurred while processing the request.</p>
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link InternalException} (server fault)
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
Expand All @@ -74,7 +74,7 @@ export interface AuthorizeVpcEndpointAccessCommandOutput extends AuthorizeVpcEnd
* <p>An exception for trying to create more than the allowed number of resources or sub-resources.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -79,7 +79,7 @@ export interface CancelServiceSoftwareUpdateCommandOutput
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -58,6 +58,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
* ColdStorageOptions: { // ColdStorageOptions
* Enabled: true || false, // required
* },
* MultiAZWithStandbyEnabled: true || false,
* },
* EBSOptions: { // EBSOptions
* EBSEnabled: true || false,
Expand Down Expand Up @@ -194,6 +195,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
* // ColdStorageOptions: { // ColdStorageOptions
* // Enabled: true || false, // required
* // },
* // MultiAZWithStandbyEnabled: true || false,
* // },
* // EBSOptions: { // EBSOptions
* // EBSEnabled: true || false,
Expand Down Expand Up @@ -309,7 +311,7 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
* <p>An error occurred while processing the request.</p>
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link InternalException} (server fault)
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
Expand Down
Expand Up @@ -97,7 +97,7 @@ export interface CreateOutboundConnectionCommandOutput extends CreateOutboundCon
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link InternalException} (server fault)
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
Expand Down
Expand Up @@ -90,7 +90,7 @@ export interface CreateVpcEndpointCommandOutput extends CreateVpcEndpointRespons
* <p>An error occurred because the client attempts to remove a resource that is currently in use.</p>
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link InternalException} (server fault)
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
Expand Down
Expand Up @@ -75,6 +75,7 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad
* // ColdStorageOptions: { // ColdStorageOptions
* // Enabled: true || false, // required
* // },
* // MultiAZWithStandbyEnabled: true || false,
* // },
* // EBSOptions: { // EBSOptions
* // EBSEnabled: true || false,
Expand Down Expand Up @@ -193,7 +194,7 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -80,10 +80,10 @@ export interface DeleteInboundConnectionCommandOutput extends DeleteInboundConne
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link OpenSearchServiceException}
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
Expand Down
Expand Up @@ -84,10 +84,10 @@ export interface DeleteOutboundConnectionCommandOutput extends DeleteOutboundCon
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link OpenSearchServiceException}
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
Expand Down
Expand Up @@ -83,7 +83,7 @@ export interface DeletePackageCommandOutput extends DeletePackageResponse, __Met
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -65,13 +65,13 @@ export interface DeleteVpcEndpointCommandOutput extends DeleteVpcEndpointRespons
* <p>An error occurred while processing the request.</p>
*
* @throws {@link DisabledOperationException} (client fault)
* <p>An error occured because the client wanted to access a not supported operation.</p>
* <p>An error occured because the client wanted to access an unsupported operation.</p>
*
* @throws {@link InternalException} (server fault)
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link OpenSearchServiceException}
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
Expand Down
Expand Up @@ -80,7 +80,7 @@ export interface DescribeDomainAutoTunesCommandOutput extends DescribeDomainAuto
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -89,7 +89,7 @@ export interface DescribeDomainChangeProgressCommandOutput
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -75,6 +75,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
* // ColdStorageOptions: { // ColdStorageOptions
* // Enabled: true || false, // required
* // },
* // MultiAZWithStandbyEnabled: true || false,
* // },
* // EBSOptions: { // EBSOptions
* // EBSEnabled: true || false,
Expand Down Expand Up @@ -193,7 +194,7 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down
Expand Up @@ -73,6 +73,7 @@ export interface DescribeDomainConfigCommandOutput extends DescribeDomainConfigR
* // ColdStorageOptions: { // ColdStorageOptions
* // Enabled: true || false, // required
* // },
* // MultiAZWithStandbyEnabled: true || false,
* // },
* // Status: {
* // CreationDate: new Date("TIMESTAMP"), // required
Expand Down Expand Up @@ -266,7 +267,7 @@ export interface DescribeDomainConfigCommandOutput extends DescribeDomainConfigR
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>An exception for accessing or deleting a resource that does not exist..</p>
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
Expand Down

0 comments on commit bd6c71a

Please sign in to comment.