@aws-sdk/client-opensearch 3.1019.0 → 3.1021.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 +35 -0
  2. package/dist-cjs/index.js +117 -0
  3. package/dist-cjs/models/errors.js +14 -1
  4. package/dist-cjs/schemas/schemas_0.js +187 -12
  5. package/dist-es/OpenSearch.js +14 -4
  6. package/dist-es/commands/DeregisterCapabilityCommand.js +16 -0
  7. package/dist-es/commands/DescribeInsightDetailsCommand.js +16 -0
  8. package/dist-es/commands/GetCapabilityCommand.js +16 -0
  9. package/dist-es/commands/ListInsightsCommand.js +16 -0
  10. package/dist-es/commands/RegisterCapabilityCommand.js +16 -0
  11. package/dist-es/commands/index.js +5 -0
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/models/enums.js +39 -0
  14. package/dist-es/models/errors.js +12 -0
  15. package/dist-es/models/models_1.js +1 -0
  16. package/dist-es/schemas/schemas_0.js +179 -5
  17. package/dist-types/OpenSearch.d.ts +117 -82
  18. package/dist-types/OpenSearchClient.d.ts +92 -87
  19. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  20. package/dist-types/commands/DeregisterCapabilityCommand.d.ts +93 -0
  21. package/dist-types/commands/DescribeInsightDetailsCommand.d.ts +105 -0
  22. package/dist-types/commands/GetCapabilityCommand.d.ts +101 -0
  23. package/dist-types/commands/ListInsightsCommand.d.ts +116 -0
  24. package/dist-types/commands/RegisterCapabilityCommand.d.ts +104 -0
  25. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -1
  26. package/dist-types/commands/UpdateDirectQueryDataSourceCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdateIndexCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdatePackageCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdatePackageScopeCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +1 -1
  33. package/dist-types/commands/UpgradeDomainCommand.d.ts +1 -1
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/index.d.ts +2 -1
  36. package/dist-types/models/enums.d.ts +103 -0
  37. package/dist-types/models/errors.d.ts +12 -0
  38. package/dist-types/models/models_0.d.ts +484 -562
  39. package/dist-types/models/models_1.d.ts +524 -0
  40. package/dist-types/pagination/DescribeDomainAutoTunesPaginator.d.ts +1 -1
  41. package/dist-types/pagination/DescribeInboundConnectionsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/DescribeOutboundConnectionsPaginator.d.ts +1 -1
  43. package/dist-types/pagination/DescribePackagesPaginator.d.ts +1 -1
  44. package/dist-types/pagination/DescribeReservedInstanceOfferingsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/DescribeReservedInstancesPaginator.d.ts +1 -1
  46. package/dist-types/pagination/GetPackageVersionHistoryPaginator.d.ts +1 -1
  47. package/dist-types/pagination/GetUpgradeHistoryPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListDomainMaintenancesPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListDomainsForPackagePaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListInstanceTypeDetailsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListPackagesForDomainPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListVersionsPaginator.d.ts +1 -1
  55. package/dist-types/schemas/schemas_0.d.ts +25 -0
  56. package/dist-types/ts3.4/OpenSearch.d.ts +85 -0
  57. package/dist-types/ts3.4/OpenSearchClient.d.ts +32 -3
  58. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/DeregisterCapabilityCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/DescribeInsightDetailsCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/GetCapabilityCommand.d.ts +50 -0
  62. package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +47 -0
  63. package/dist-types/ts3.4/commands/RegisterCapabilityCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +2 -4
  65. package/dist-types/ts3.4/commands/UpdateDirectQueryDataSourceCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateDomainConfigCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/UpdatePackageScopeCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/UpgradeDomainCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  74. package/dist-types/ts3.4/index.d.ts +1 -0
  75. package/dist-types/ts3.4/models/enums.d.ts +53 -0
  76. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +135 -106
  78. package/dist-types/ts3.4/models/models_1.d.ts +143 -0
  79. package/dist-types/ts3.4/schemas/schemas_0.d.ts +25 -0
  80. package/package.json +14 -14
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeregisterCapability$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeregisterCapabilityCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonOpenSearchService", "DeregisterCapability", {})
13
+ .n("OpenSearchClient", "DeregisterCapabilityCommand")
14
+ .sc(DeregisterCapability$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeInsightDetails$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeInsightDetailsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonOpenSearchService", "DescribeInsightDetails", {})
13
+ .n("OpenSearchClient", "DescribeInsightDetailsCommand")
14
+ .sc(DescribeInsightDetails$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetCapability$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetCapabilityCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonOpenSearchService", "GetCapability", {})
13
+ .n("OpenSearchClient", "GetCapabilityCommand")
14
+ .sc(GetCapability$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListInsights$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListInsightsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonOpenSearchService", "ListInsights", {})
13
+ .n("OpenSearchClient", "ListInsightsCommand")
14
+ .sc(ListInsights$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { RegisterCapability$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class RegisterCapabilityCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonOpenSearchService", "RegisterCapability", {})
13
+ .n("OpenSearchClient", "RegisterCapabilityCommand")
14
+ .sc(RegisterCapability$)
15
+ .build() {
16
+ }
@@ -22,6 +22,7 @@ export * from "./DeleteIndexCommand";
22
22
  export * from "./DeleteOutboundConnectionCommand";
23
23
  export * from "./DeletePackageCommand";
24
24
  export * from "./DeleteVpcEndpointCommand";
25
+ export * from "./DeregisterCapabilityCommand";
25
26
  export * from "./DescribeDomainAutoTunesCommand";
26
27
  export * from "./DescribeDomainChangeProgressCommand";
27
28
  export * from "./DescribeDomainCommand";
@@ -31,6 +32,7 @@ export * from "./DescribeDomainNodesCommand";
31
32
  export * from "./DescribeDomainsCommand";
32
33
  export * from "./DescribeDryRunProgressCommand";
33
34
  export * from "./DescribeInboundConnectionsCommand";
35
+ export * from "./DescribeInsightDetailsCommand";
34
36
  export * from "./DescribeInstanceTypeLimitsCommand";
35
37
  export * from "./DescribeOutboundConnectionsCommand";
36
38
  export * from "./DescribePackagesCommand";
@@ -40,6 +42,7 @@ export * from "./DescribeVpcEndpointsCommand";
40
42
  export * from "./DissociatePackageCommand";
41
43
  export * from "./DissociatePackagesCommand";
42
44
  export * from "./GetApplicationCommand";
45
+ export * from "./GetCapabilityCommand";
43
46
  export * from "./GetCompatibleVersionsCommand";
44
47
  export * from "./GetDataSourceCommand";
45
48
  export * from "./GetDefaultApplicationSettingCommand";
@@ -55,6 +58,7 @@ export * from "./ListDirectQueryDataSourcesCommand";
55
58
  export * from "./ListDomainMaintenancesCommand";
56
59
  export * from "./ListDomainNamesCommand";
57
60
  export * from "./ListDomainsForPackageCommand";
61
+ export * from "./ListInsightsCommand";
58
62
  export * from "./ListInstanceTypeDetailsCommand";
59
63
  export * from "./ListPackagesForDomainCommand";
60
64
  export * from "./ListScheduledActionsCommand";
@@ -65,6 +69,7 @@ export * from "./ListVpcEndpointsCommand";
65
69
  export * from "./ListVpcEndpointsForDomainCommand";
66
70
  export * from "./PurchaseReservedInstanceOfferingCommand";
67
71
  export * from "./PutDefaultApplicationSettingCommand";
72
+ export * from "./RegisterCapabilityCommand";
68
73
  export * from "./RejectInboundConnectionCommand";
69
74
  export * from "./RemoveTagsCommand";
70
75
  export * from "./RevokeVpcEndpointAccessCommand";
package/dist-es/index.js CHANGED
@@ -6,4 +6,5 @@ export * from "./pagination";
6
6
  export * from "./models/enums";
7
7
  export * from "./models/errors";
8
8
  export * from "./models/models_0";
9
+ export * from "./models/models_1";
9
10
  export { OpenSearchServiceException } from "./models/OpenSearchServiceException";
@@ -316,6 +316,15 @@ export const VpcEndpointStatus = {
316
316
  UPDATE_FAILED: "UPDATE_FAILED",
317
317
  UPDATING: "UPDATING",
318
318
  };
319
+ export const CapabilityStatus = {
320
+ ACTIVE: "active",
321
+ CREATE_FAILED: "create_failed",
322
+ CREATING: "creating",
323
+ DELETE_FAILED: "delete_failed",
324
+ DELETING: "deleting",
325
+ UPDATE_FAILED: "update_failed",
326
+ UPDATING: "updating",
327
+ };
319
328
  export const ScheduledAutoTuneActionType = {
320
329
  JVM_HEAP_SIZE_TUNING: "JVM_HEAP_SIZE_TUNING",
321
330
  JVM_YOUNG_GEN_TUNING: "JVM_YOUNG_GEN_TUNING",
@@ -369,6 +378,14 @@ export const NodeType = {
369
378
  Ultrawarm: "Ultrawarm",
370
379
  Warm: "Warm",
371
380
  };
381
+ export const InsightEntityType = {
382
+ ACCOUNT: "Account",
383
+ DOMAIN: "DomainName",
384
+ };
385
+ export const InsightFieldType = {
386
+ METRIC: "metric",
387
+ TEXT: "text",
388
+ };
372
389
  export const DescribePackagesFilterName = {
373
390
  EngineVersion: "EngineVersion",
374
391
  PackageID: "PackageID",
@@ -393,6 +410,9 @@ export const ApplicationStatus = {
393
410
  FAILED: "FAILED",
394
411
  UPDATING: "UPDATING",
395
412
  };
413
+ export const CapabilityFailureReason = {
414
+ KMS_KEY_INSUFFICIENT_PERMISSION: "KMS_KEY_INSUFFICIENT_PERMISSION",
415
+ };
396
416
  export const DataSourceStatus = {
397
417
  ACTIVE: "ACTIVE",
398
418
  DISABLED: "DISABLED",
@@ -424,6 +444,25 @@ export const EngineType = {
424
444
  Elasticsearch: "Elasticsearch",
425
445
  OpenSearch: "OpenSearch",
426
446
  };
447
+ export const InsightSortOrder = {
448
+ ASC: "ASC",
449
+ DESC: "DESC",
450
+ };
451
+ export const InsightPriorityLevel = {
452
+ CRITICAL: "CRITICAL",
453
+ HIGH: "HIGH",
454
+ LOW: "LOW",
455
+ MEDIUM: "MEDIUM",
456
+ };
457
+ export const InsightStatus = {
458
+ ACTIVE: "ACTIVE",
459
+ DISMISSED: "DISMISSED",
460
+ RESOLVED: "RESOLVED",
461
+ };
462
+ export const InsightType = {
463
+ EVENT: "EVENT",
464
+ RECOMMENDATION: "RECOMMENDATION",
465
+ };
427
466
  export const ScheduledBy = {
428
467
  CUSTOMER: "CUSTOMER",
429
468
  SYSTEM: "SYSTEM",
@@ -155,6 +155,18 @@ export class InvalidPaginationTokenException extends __BaseException {
155
155
  Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
156
156
  }
157
157
  }
158
+ export class ServiceQuotaExceededException extends __BaseException {
159
+ name = "ServiceQuotaExceededException";
160
+ $fault = "client";
161
+ constructor(opts) {
162
+ super({
163
+ name: "ServiceQuotaExceededException",
164
+ $fault: "client",
165
+ ...opts,
166
+ });
167
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
168
+ }
169
+ }
158
170
  export class SlotNotAvailableException extends __BaseException {
159
171
  name = "SlotNotAvailableException";
160
172
  $fault = "client";
@@ -0,0 +1 @@
1
+ export {};