Skip to content

Commit

Permalink
feat: opensearch & opensearchserverless clients (#73)
Browse files Browse the repository at this point in the history
* feat: opensearch & opensearchserverless clients

* fix: normalize opensearch-serverless service name

* chore: upgrade lockfile

* refactor: better order of functions

---------

Co-authored-by: Victor Korzunin <[email protected]>
  • Loading branch information
godu and floydspace authored Nov 4, 2024
1 parent af6cbba commit 2ac5277
Show file tree
Hide file tree
Showing 62 changed files with 5,328 additions and 706 deletions.
6 changes: 6 additions & 0 deletions .changeset/brown-fireants-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@effect-aws/client-opensearch": major
"@effect-aws/client-opensearch-serverless": major
---

implement opensearch & opensearchserverless clients
16 changes: 16 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,22 @@ new TypeScriptLibProject({
peerDeps: commonPeerDeps,
});

new TypeScriptLibProject({
parent: project,
name: "client-opensearch",
deps: [...commonDeps, "@aws-sdk/client-opensearch@^3"],
devDeps: commonDevDeps,
peerDeps: commonPeerDeps,
});

new TypeScriptLibProject({
parent: project,
name: "client-opensearch-serverless",
deps: [...commonDeps, "@aws-sdk/client-opensearchserverless@^3"],
devDeps: commonDevDeps,
peerDeps: commonPeerDeps,
});

new TypeScriptLibProject({
parent: project,
name: "lambda",
Expand Down
2 changes: 2 additions & 0 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 42 additions & 42 deletions packages/client-codedeploy/src/CodeDeployService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import {
BatchGetDeploymentInstancesCommand,
type BatchGetDeploymentInstancesCommandInput,
type BatchGetDeploymentInstancesCommandOutput,
BatchGetDeploymentsCommand,
type BatchGetDeploymentsCommandInput,
type BatchGetDeploymentsCommandOutput,
BatchGetDeploymentTargetsCommand,
type BatchGetDeploymentTargetsCommandInput,
type BatchGetDeploymentTargetsCommandOutput,
BatchGetDeploymentsCommand,
type BatchGetDeploymentsCommandInput,
type BatchGetDeploymentsCommandOutput,
BatchGetOnPremisesInstancesCommand,
type BatchGetOnPremisesInstancesCommandInput,
type BatchGetOnPremisesInstancesCommandOutput,
Expand Down Expand Up @@ -99,12 +99,12 @@ import {
ListDeploymentInstancesCommand,
type ListDeploymentInstancesCommandInput,
type ListDeploymentInstancesCommandOutput,
ListDeploymentsCommand,
type ListDeploymentsCommandInput,
type ListDeploymentsCommandOutput,
ListDeploymentTargetsCommand,
type ListDeploymentTargetsCommandInput,
type ListDeploymentTargetsCommandOutput,
ListDeploymentsCommand,
type ListDeploymentsCommandInput,
type ListDeploymentsCommandOutput,
ListGitHubAccountTokenNamesCommand,
type ListGitHubAccountTokenNamesCommandInput,
type ListGitHubAccountTokenNamesCommandOutput,
Expand Down Expand Up @@ -281,8 +281,8 @@ const commands = {
BatchGetApplicationsCommand,
BatchGetDeploymentGroupsCommand,
BatchGetDeploymentInstancesCommand,
BatchGetDeploymentsCommand,
BatchGetDeploymentTargetsCommand,
BatchGetDeploymentsCommand,
BatchGetOnPremisesInstancesCommand,
ContinueDeploymentCommand,
CreateApplicationCommand,
Expand All @@ -308,8 +308,8 @@ const commands = {
ListDeploymentConfigsCommand,
ListDeploymentGroupsCommand,
ListDeploymentInstancesCommand,
ListDeploymentsCommand,
ListDeploymentTargetsCommand,
ListDeploymentsCommand,
ListGitHubAccountTokenNamesCommand,
ListOnPremisesInstancesCommand,
ListTagsForResourceCommand,
Expand Down Expand Up @@ -414,20 +414,6 @@ interface CodeDeployService$ {
| InvalidInstanceNameError
>;

/**
* @see {@link BatchGetDeploymentsCommand}
*/
batchGetDeployments(
args: BatchGetDeploymentsCommandInput,
options?: HttpHandlerOptions,
): Effect.Effect<
BatchGetDeploymentsCommandOutput,
| SdkError
| BatchLimitExceededError
| DeploymentIdRequiredError
| InvalidDeploymentIdError
>;

/**
* @see {@link BatchGetDeploymentTargetsCommand}
*/
Expand All @@ -448,6 +434,20 @@ interface CodeDeployService$ {
| InvalidDeploymentTargetIdError
>;

/**
* @see {@link BatchGetDeploymentsCommand}
*/
batchGetDeployments(
args: BatchGetDeploymentsCommandInput,
options?: HttpHandlerOptions,
): Effect.Effect<
BatchGetDeploymentsCommandOutput,
| SdkError
| BatchLimitExceededError
| DeploymentIdRequiredError
| InvalidDeploymentIdError
>;

/**
* @see {@link BatchGetOnPremisesInstancesCommand}
*/
Expand Down Expand Up @@ -886,6 +886,26 @@ interface CodeDeployService$ {
| InvalidTargetFilterNameError
>;

/**
* @see {@link ListDeploymentTargetsCommand}
*/
listDeploymentTargets(
args: ListDeploymentTargetsCommandInput,
options?: HttpHandlerOptions,
): Effect.Effect<
ListDeploymentTargetsCommandOutput,
| SdkError
| DeploymentDoesNotExistError
| DeploymentIdRequiredError
| DeploymentNotStartedError
| InvalidDeploymentIdError
| InvalidDeploymentInstanceTypeError
| InvalidInstanceStatusError
| InvalidInstanceTypeError
| InvalidNextTokenError
| InvalidTargetFilterNameError
>;

/**
* @see {@link ListDeploymentsCommand}
*/
Expand All @@ -908,26 +928,6 @@ interface CodeDeployService$ {
| InvalidTimeRangeError
>;

/**
* @see {@link ListDeploymentTargetsCommand}
*/
listDeploymentTargets(
args: ListDeploymentTargetsCommandInput,
options?: HttpHandlerOptions,
): Effect.Effect<
ListDeploymentTargetsCommandOutput,
| SdkError
| DeploymentDoesNotExistError
| DeploymentIdRequiredError
| DeploymentNotStartedError
| InvalidDeploymentIdError
| InvalidDeploymentInstanceTypeError
| InvalidInstanceStatusError
| InvalidInstanceTypeError
| InvalidNextTokenError
| InvalidTargetFilterNameError
>;

/**
* @see {@link ListGitHubAccountTokenNamesCommand}
*/
Expand Down
26 changes: 13 additions & 13 deletions packages/client-elasticache/src/ElastiCacheService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ import {
DescribeReservedCacheNodesOfferingsCommand,
type DescribeReservedCacheNodesOfferingsCommandInput,
type DescribeReservedCacheNodesOfferingsCommandOutput,
DescribeServerlessCachesCommand,
type DescribeServerlessCachesCommandInput,
type DescribeServerlessCachesCommandOutput,
DescribeServerlessCacheSnapshotsCommand,
type DescribeServerlessCacheSnapshotsCommandInput,
type DescribeServerlessCacheSnapshotsCommandOutput,
DescribeServerlessCachesCommand,
type DescribeServerlessCachesCommandInput,
type DescribeServerlessCachesCommandOutput,
DescribeServiceUpdatesCommand,
type DescribeServiceUpdatesCommandInput,
type DescribeServiceUpdatesCommandOutput,
Expand Down Expand Up @@ -369,8 +369,8 @@ const commands = {
DescribeReplicationGroupsCommand,
DescribeReservedCacheNodesCommand,
DescribeReservedCacheNodesOfferingsCommand,
DescribeServerlessCachesCommand,
DescribeServerlessCacheSnapshotsCommand,
DescribeServerlessCachesCommand,
DescribeServiceUpdatesCommand,
DescribeSnapshotsCommand,
DescribeUpdateActionsCommand,
Expand Down Expand Up @@ -1104,32 +1104,32 @@ interface ElastiCacheService$ {
>;

/**
* @see {@link DescribeServerlessCachesCommand}
* @see {@link DescribeServerlessCacheSnapshotsCommand}
*/
describeServerlessCaches(
args: DescribeServerlessCachesCommandInput,
describeServerlessCacheSnapshots(
args: DescribeServerlessCacheSnapshotsCommandInput,
options?: HttpHandlerOptions,
): Effect.Effect<
DescribeServerlessCachesCommandOutput,
DescribeServerlessCacheSnapshotsCommandOutput,
| SdkError
| InvalidParameterCombinationError
| InvalidParameterValueError
| ServerlessCacheNotFoundFaultError
| ServerlessCacheSnapshotNotFoundFaultError
>;

/**
* @see {@link DescribeServerlessCacheSnapshotsCommand}
* @see {@link DescribeServerlessCachesCommand}
*/
describeServerlessCacheSnapshots(
args: DescribeServerlessCacheSnapshotsCommandInput,
describeServerlessCaches(
args: DescribeServerlessCachesCommandInput,
options?: HttpHandlerOptions,
): Effect.Effect<
DescribeServerlessCacheSnapshotsCommandOutput,
DescribeServerlessCachesCommandOutput,
| SdkError
| InvalidParameterCombinationError
| InvalidParameterValueError
| ServerlessCacheNotFoundFaultError
| ServerlessCacheSnapshotNotFoundFaultError
>;

/**
Expand Down
Loading

0 comments on commit 2ac5277

Please sign in to comment.