@aws-sdk/client-opensearch 3.325.0 → 3.327.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/OpenSearch.js +4 -0
  3. package/dist-cjs/commands/DescribeDomainHealthCommand.js +45 -0
  4. package/dist-cjs/commands/DescribeDomainNodesCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +45 -2
  7. package/dist-cjs/protocols/Aws_restJson1.js +161 -3
  8. package/dist-es/OpenSearch.js +4 -0
  9. package/dist-es/commands/DescribeDomainHealthCommand.js +41 -0
  10. package/dist-es/commands/DescribeDomainNodesCommand.js +41 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +42 -0
  13. package/dist-es/protocols/Aws_restJson1.js +155 -1
  14. package/dist-types/OpenSearch.d.ts +14 -0
  15. package/dist-types/OpenSearchClient.d.ts +4 -2
  16. package/dist-types/commands/AcceptInboundConnectionCommand.d.ts +29 -2
  17. package/dist-types/commands/AddTagsCommand.d.ts +4 -0
  18. package/dist-types/commands/AssociatePackageCommand.d.ts +20 -1
  19. package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +11 -2
  20. package/dist-types/commands/CancelServiceSoftwareUpdateCommand.d.ts +16 -1
  21. package/dist-types/commands/CreateDomainCommand.d.ts +138 -1
  22. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +30 -1
  23. package/dist-types/commands/CreatePackageCommand.d.ts +19 -0
  24. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +25 -1
  25. package/dist-types/commands/DeleteDomainCommand.d.ts +137 -1
  26. package/dist-types/commands/DeleteInboundConnectionCommand.d.ts +29 -2
  27. package/dist-types/commands/DeleteOutboundConnectionCommand.d.ts +33 -2
  28. package/dist-types/commands/DeletePackageCommand.d.ts +20 -1
  29. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +13 -2
  30. package/dist-types/commands/DescribeDomainAutoTunesCommand.d.ts +20 -1
  31. package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +26 -1
  32. package/dist-types/commands/DescribeDomainCommand.d.ts +137 -1
  33. package/dist-types/commands/DescribeDomainConfigCommand.d.ts +211 -1
  34. package/dist-types/commands/DescribeDomainHealthCommand.d.ts +109 -0
  35. package/dist-types/commands/DescribeDomainNodesCommand.d.ts +99 -0
  36. package/dist-types/commands/DescribeDomainsCommand.d.ts +138 -0
  37. package/dist-types/commands/DescribeDryRunProgressCommand.d.ts +154 -2
  38. package/dist-types/commands/DescribeInboundConnectionsCommand.d.ts +32 -2
  39. package/dist-types/commands/DescribeInstanceTypeLimitsCommand.d.ts +38 -1
  40. package/dist-types/commands/DescribeOutboundConnectionsCommand.d.ts +36 -2
  41. package/dist-types/commands/DescribePackagesCommand.d.ts +23 -1
  42. package/dist-types/commands/DescribeReservedInstanceOfferingsCommand.d.ts +25 -2
  43. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +31 -2
  44. package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +34 -1
  45. package/dist-types/commands/DissociatePackageCommand.d.ts +20 -1
  46. package/dist-types/commands/GetCompatibleVersionsCommand.d.ts +15 -2
  47. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +17 -3
  48. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +25 -2
  49. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +10 -2
  50. package/dist-types/commands/ListDomainNamesCommand.d.ts +11 -0
  51. package/dist-types/commands/ListDomainsForPackageCommand.d.ts +23 -1
  52. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +25 -1
  53. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +23 -1
  54. package/dist-types/commands/ListScheduledActionsCommand.d.ts +21 -2
  55. package/dist-types/commands/ListTagsCommand.d.ts +12 -1
  56. package/dist-types/commands/ListVersionsCommand.d.ts +10 -1
  57. package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +14 -2
  58. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +15 -1
  59. package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +16 -2
  60. package/dist-types/commands/PurchaseReservedInstanceOfferingCommand.d.ts +9 -2
  61. package/dist-types/commands/RejectInboundConnectionCommand.d.ts +29 -2
  62. package/dist-types/commands/RemoveTagsCommand.d.ts +4 -0
  63. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +6 -2
  64. package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +16 -1
  65. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +230 -2
  66. package/dist-types/commands/UpdatePackageCommand.d.ts +20 -1
  67. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +17 -1
  68. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +26 -2
  69. package/dist-types/commands/UpgradeDomainCommand.d.ts +18 -2
  70. package/dist-types/commands/index.d.ts +2 -0
  71. package/dist-types/models/models_0.d.ts +345 -23
  72. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  73. package/dist-types/ts3.4/OpenSearch.d.ts +34 -0
  74. package/dist-types/ts3.4/OpenSearchClient.d.ts +12 -0
  75. package/dist-types/ts3.4/commands/DescribeDomainHealthCommand.d.ts +41 -0
  76. package/dist-types/ts3.4/commands/DescribeDomainNodesCommand.d.ts +38 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +93 -0
  79. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  80. package/package.json +7 -7
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ DescribeDomainHealthRequest,
11
+ DescribeDomainHealthResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export interface DescribeDomainHealthCommandInput
19
+ extends DescribeDomainHealthRequest {}
20
+ export interface DescribeDomainHealthCommandOutput
21
+ extends DescribeDomainHealthResponse,
22
+ __MetadataBearer {}
23
+ export declare class DescribeDomainHealthCommand extends $Command<
24
+ DescribeDomainHealthCommandInput,
25
+ DescribeDomainHealthCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: DescribeDomainHealthCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DescribeDomainHealthCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ DescribeDomainHealthCommandInput,
37
+ DescribeDomainHealthCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ DescribeDomainNodesRequest,
11
+ DescribeDomainNodesResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export interface DescribeDomainNodesCommandInput
19
+ extends DescribeDomainNodesRequest {}
20
+ export interface DescribeDomainNodesCommandOutput
21
+ extends DescribeDomainNodesResponse,
22
+ __MetadataBearer {}
23
+ export declare class DescribeDomainNodesCommand extends $Command<
24
+ DescribeDomainNodesCommandInput,
25
+ DescribeDomainNodesCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: DescribeDomainNodesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DescribeDomainNodesCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -16,6 +16,8 @@ export * from "./DescribeDomainAutoTunesCommand";
16
16
  export * from "./DescribeDomainChangeProgressCommand";
17
17
  export * from "./DescribeDomainCommand";
18
18
  export * from "./DescribeDomainConfigCommand";
19
+ export * from "./DescribeDomainHealthCommand";
20
+ export * from "./DescribeDomainNodesCommand";
19
21
  export * from "./DescribeDomainsCommand";
20
22
  export * from "./DescribeDryRunProgressCommand";
21
23
  export * from "./DescribeInboundConnectionsCommand";
@@ -415,6 +415,7 @@ export interface ClusterConfig {
415
415
  WarmType?: OpenSearchWarmPartitionInstanceType | string;
416
416
  WarmCount?: number;
417
417
  ColdStorageOptions?: ColdStorageOptions;
418
+ MultiAZWithStandbyEnabled?: boolean;
418
419
  }
419
420
  export interface CognitoOptions {
420
421
  Enabled?: boolean;
@@ -896,6 +897,95 @@ export interface DomainConfig {
896
897
  export interface DescribeDomainConfigResponse {
897
898
  DomainConfig: DomainConfig | undefined;
898
899
  }
900
+ export interface DescribeDomainHealthRequest {
901
+ DomainName: string | undefined;
902
+ }
903
+ export declare const DomainHealth: {
904
+ readonly Green: "Green";
905
+ readonly NotAvailable: "NotAvailable";
906
+ readonly Red: "Red";
907
+ readonly Yellow: "Yellow";
908
+ };
909
+ export type DomainHealth = (typeof DomainHealth)[keyof typeof DomainHealth];
910
+ export declare const DomainState: {
911
+ readonly Active: "Active";
912
+ readonly NotAvailable: "NotAvailable";
913
+ readonly Processing: "Processing";
914
+ };
915
+ export type DomainState = (typeof DomainState)[keyof typeof DomainState];
916
+ export declare const ZoneStatus: {
917
+ readonly Active: "Active";
918
+ readonly NotAvailable: "NotAvailable";
919
+ readonly StandBy: "StandBy";
920
+ };
921
+ export type ZoneStatus = (typeof ZoneStatus)[keyof typeof ZoneStatus];
922
+ export interface AvailabilityZoneInfo {
923
+ AvailabilityZoneName?: string;
924
+ ZoneStatus?: ZoneStatus | string;
925
+ ConfiguredDataNodeCount?: string;
926
+ AvailableDataNodeCount?: string;
927
+ TotalShards?: string;
928
+ TotalUnAssignedShards?: string;
929
+ }
930
+ export interface EnvironmentInfo {
931
+ AvailabilityZoneInformation?: AvailabilityZoneInfo[];
932
+ }
933
+ export declare const MasterNodeStatus: {
934
+ readonly Available: "Available";
935
+ readonly UnAvailable: "UnAvailable";
936
+ };
937
+ export type MasterNodeStatus =
938
+ (typeof MasterNodeStatus)[keyof typeof MasterNodeStatus];
939
+ export interface DescribeDomainHealthResponse {
940
+ DomainState?: DomainState | string;
941
+ AvailabilityZoneCount?: string;
942
+ ActiveAvailabilityZoneCount?: string;
943
+ StandByAvailabilityZoneCount?: string;
944
+ DataNodeCount?: string;
945
+ DedicatedMaster?: boolean;
946
+ MasterEligibleNodeCount?: string;
947
+ WarmNodeCount?: string;
948
+ MasterNode?: MasterNodeStatus | string;
949
+ ClusterHealth?: DomainHealth | string;
950
+ TotalShards?: string;
951
+ TotalUnAssignedShards?: string;
952
+ EnvironmentInformation?: EnvironmentInfo[];
953
+ }
954
+ export declare class DependencyFailureException extends __BaseException {
955
+ readonly name: "DependencyFailureException";
956
+ readonly $fault: "client";
957
+ constructor(
958
+ opts: __ExceptionOptionType<DependencyFailureException, __BaseException>
959
+ );
960
+ }
961
+ export interface DescribeDomainNodesRequest {
962
+ DomainName: string | undefined;
963
+ }
964
+ export declare const NodeStatus: {
965
+ readonly Active: "Active";
966
+ readonly NotAvailable: "NotAvailable";
967
+ readonly StandBy: "StandBy";
968
+ };
969
+ export type NodeStatus = (typeof NodeStatus)[keyof typeof NodeStatus];
970
+ export declare const NodeType: {
971
+ readonly Data: "Data";
972
+ readonly Master: "Master";
973
+ readonly Ultrawarm: "Ultrawarm";
974
+ };
975
+ export type NodeType = (typeof NodeType)[keyof typeof NodeType];
976
+ export interface DomainNodesStatus {
977
+ NodeId?: string;
978
+ NodeType?: NodeType | string;
979
+ AvailabilityZone?: string;
980
+ InstanceType?: OpenSearchPartitionInstanceType | string;
981
+ NodeStatus?: NodeStatus | string;
982
+ StorageType?: string;
983
+ StorageVolumeType?: VolumeType | string;
984
+ StorageSize?: string;
985
+ }
986
+ export interface DescribeDomainNodesResponse {
987
+ DomainNodesStatusList?: DomainNodesStatus[];
988
+ }
899
989
  export interface DescribeDomainsRequest {
900
990
  DomainNames: string[] | undefined;
901
991
  }
@@ -1184,6 +1274,8 @@ export interface ListInstanceTypeDetailsRequest {
1184
1274
  DomainName?: string;
1185
1275
  MaxResults?: number;
1186
1276
  NextToken?: string;
1277
+ RetrieveAZs?: boolean;
1278
+ InstanceType?: string;
1187
1279
  }
1188
1280
  export interface InstanceTypeDetails {
1189
1281
  InstanceType?: OpenSearchPartitionInstanceType | string;
@@ -1193,6 +1285,7 @@ export interface InstanceTypeDetails {
1193
1285
  AdvancedSecurityEnabled?: boolean;
1194
1286
  WarmEnabled?: boolean;
1195
1287
  InstanceRole?: string[];
1288
+ AvailabilityZones?: string[];
1196
1289
  }
1197
1290
  export interface ListInstanceTypeDetailsResponse {
1198
1291
  InstanceTypeDetails?: InstanceTypeDetails[];
@@ -75,6 +75,14 @@ import {
75
75
  DescribeDomainConfigCommandInput,
76
76
  DescribeDomainConfigCommandOutput,
77
77
  } from "../commands/DescribeDomainConfigCommand";
78
+ import {
79
+ DescribeDomainHealthCommandInput,
80
+ DescribeDomainHealthCommandOutput,
81
+ } from "../commands/DescribeDomainHealthCommand";
82
+ import {
83
+ DescribeDomainNodesCommandInput,
84
+ DescribeDomainNodesCommandOutput,
85
+ } from "../commands/DescribeDomainNodesCommand";
78
86
  import {
79
87
  DescribeDomainsCommandInput,
80
88
  DescribeDomainsCommandOutput,
@@ -283,6 +291,14 @@ export declare const se_DescribeDomainConfigCommand: (
283
291
  input: DescribeDomainConfigCommandInput,
284
292
  context: __SerdeContext
285
293
  ) => Promise<__HttpRequest>;
294
+ export declare const se_DescribeDomainHealthCommand: (
295
+ input: DescribeDomainHealthCommandInput,
296
+ context: __SerdeContext
297
+ ) => Promise<__HttpRequest>;
298
+ export declare const se_DescribeDomainNodesCommand: (
299
+ input: DescribeDomainNodesCommandInput,
300
+ context: __SerdeContext
301
+ ) => Promise<__HttpRequest>;
286
302
  export declare const se_DescribeDomainsCommand: (
287
303
  input: DescribeDomainsCommandInput,
288
304
  context: __SerdeContext
@@ -491,6 +507,14 @@ export declare const de_DescribeDomainConfigCommand: (
491
507
  output: __HttpResponse,
492
508
  context: __SerdeContext
493
509
  ) => Promise<DescribeDomainConfigCommandOutput>;
510
+ export declare const de_DescribeDomainHealthCommand: (
511
+ output: __HttpResponse,
512
+ context: __SerdeContext
513
+ ) => Promise<DescribeDomainHealthCommandOutput>;
514
+ export declare const de_DescribeDomainNodesCommand: (
515
+ output: __HttpResponse,
516
+ context: __SerdeContext
517
+ ) => Promise<DescribeDomainNodesCommandOutput>;
494
518
  export declare const de_DescribeDomainsCommand: (
495
519
  output: __HttpResponse,
496
520
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearch",
3
3
  "description": "AWS SDK for JavaScript Opensearch Client for Node.js, Browser and React Native",
4
- "version": "3.325.0",
4
+ "version": "3.327.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.325.0",
24
+ "@aws-sdk/client-sts": "3.327.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.325.0",
26
+ "@aws-sdk/credential-provider-node": "3.327.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -32,11 +32,11 @@
32
32
  "@aws-sdk/middleware-host-header": "3.325.0",
33
33
  "@aws-sdk/middleware-logger": "3.325.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.325.0",
35
- "@aws-sdk/middleware-retry": "3.325.0",
35
+ "@aws-sdk/middleware-retry": "3.327.0",
36
36
  "@aws-sdk/middleware-serde": "3.325.0",
37
37
  "@aws-sdk/middleware-signing": "3.325.0",
38
38
  "@aws-sdk/middleware-stack": "3.325.0",
39
- "@aws-sdk/middleware-user-agent": "3.325.0",
39
+ "@aws-sdk/middleware-user-agent": "3.327.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
@@ -48,8 +48,8 @@
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.325.0",
50
50
  "@aws-sdk/util-defaults-mode-node": "3.325.0",
51
- "@aws-sdk/util-endpoints": "3.319.0",
52
- "@aws-sdk/util-retry": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.327.0",
52
+ "@aws-sdk/util-retry": "3.327.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",
55
55
  "@aws-sdk/util-utf8": "3.310.0",