@aws-sdk/client-opensearch 3.1158.0 → 3.1160.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 (54) hide show
  1. package/README.md +42 -0
  2. package/dist-cjs/index.js +279 -41
  3. package/dist-es/OpenSearch.js +12 -0
  4. package/dist-es/commands/AddReplicationPeerCommand.js +4 -0
  5. package/dist-es/commands/CompareDomainConfigurationCommand.js +4 -0
  6. package/dist-es/commands/DescribeDomainReplicationCommand.js +4 -0
  7. package/dist-es/commands/FailoverReplicationCommand.js +4 -0
  8. package/dist-es/commands/RemoveReplicationPeerCommand.js +4 -0
  9. package/dist-es/commands/SwitchoverReplicationCommand.js +4 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/models/enums.js +21 -0
  12. package/dist-es/models/errors.js +13 -13
  13. package/dist-es/schemas/schemas_0.js +189 -27
  14. package/dist-types/OpenSearch.d.ts +42 -0
  15. package/dist-types/OpenSearchClient.d.ts +8 -2
  16. package/dist-types/commands/AddReplicationPeerCommand.d.ts +93 -0
  17. package/dist-types/commands/CompareDomainConfigurationCommand.d.ts +124 -0
  18. package/dist-types/commands/DescribeDomainReplicationCommand.d.ts +96 -0
  19. package/dist-types/commands/FailoverReplicationCommand.d.ts +91 -0
  20. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +2 -1
  21. package/dist-types/commands/ListMigrationsCommand.d.ts +1 -1
  22. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +1 -1
  23. package/dist-types/commands/ListScheduledActionsCommand.d.ts +1 -1
  24. package/dist-types/commands/ListTagsCommand.d.ts +1 -1
  25. package/dist-types/commands/ListVersionsCommand.d.ts +1 -1
  26. package/dist-types/commands/RemoveReplicationPeerCommand.d.ts +86 -0
  27. package/dist-types/commands/SwitchoverReplicationCommand.d.ts +90 -0
  28. package/dist-types/commands/index.d.ts +6 -0
  29. package/dist-types/models/enums.d.ts +53 -0
  30. package/dist-types/models/errors.d.ts +12 -12
  31. package/dist-types/models/models_0.d.ts +382 -314
  32. package/dist-types/models/models_1.d.ts +381 -2
  33. package/dist-types/schemas/schemas_0.d.ts +23 -0
  34. package/dist-types/ts3.4/OpenSearch.d.ts +102 -0
  35. package/dist-types/ts3.4/OpenSearchClient.d.ts +36 -0
  36. package/dist-types/ts3.4/commands/AddReplicationPeerCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/CompareDomainConfigurationCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/DescribeDomainReplicationCommand.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/FailoverReplicationCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/ListInstanceTypeDetailsCommand.d.ts +2 -4
  41. package/dist-types/ts3.4/commands/ListMigrationsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/ListPackagesForDomainCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/ListVersionsCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/RemoveReplicationPeerCommand.d.ts +39 -0
  47. package/dist-types/ts3.4/commands/SwitchoverReplicationCommand.d.ts +39 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  49. package/dist-types/ts3.4/models/enums.d.ts +25 -0
  50. package/dist-types/ts3.4/models/errors.d.ts +6 -6
  51. package/dist-types/ts3.4/models/models_0.d.ts +70 -72
  52. package/dist-types/ts3.4/models/models_1.d.ts +92 -1
  53. package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
  54. package/package.json +3 -3
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { AcceptInboundConnectionCommand, } from "./commands/AcceptInboundConnectionCommand";
3
3
  import { AddDataSourceCommand, } from "./commands/AddDataSourceCommand";
4
4
  import { AddDirectQueryDataSourceCommand, } from "./commands/AddDirectQueryDataSourceCommand";
5
+ import { AddReplicationPeerCommand, } from "./commands/AddReplicationPeerCommand";
5
6
  import { AddTagsCommand } from "./commands/AddTagsCommand";
6
7
  import { AssociatePackageCommand, } from "./commands/AssociatePackageCommand";
7
8
  import { AssociatePackagesCommand, } from "./commands/AssociatePackagesCommand";
@@ -9,6 +10,7 @@ import { AttachDataSourceCommand, } from "./commands/AttachDataSourceCommand";
9
10
  import { AuthorizeVpcEndpointAccessCommand, } from "./commands/AuthorizeVpcEndpointAccessCommand";
10
11
  import { CancelDomainConfigChangeCommand, } from "./commands/CancelDomainConfigChangeCommand";
11
12
  import { CancelServiceSoftwareUpdateCommand, } from "./commands/CancelServiceSoftwareUpdateCommand";
13
+ import { CompareDomainConfigurationCommand, } from "./commands/CompareDomainConfigurationCommand";
12
14
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
13
15
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
14
16
  import { CreateIndexCommand, } from "./commands/CreateIndexCommand";
@@ -32,6 +34,7 @@ import { DescribeDomainCommand, } from "./commands/DescribeDomainCommand";
32
34
  import { DescribeDomainConfigCommand, } from "./commands/DescribeDomainConfigCommand";
33
35
  import { DescribeDomainHealthCommand, } from "./commands/DescribeDomainHealthCommand";
34
36
  import { DescribeDomainNodesCommand, } from "./commands/DescribeDomainNodesCommand";
37
+ import { DescribeDomainReplicationCommand, } from "./commands/DescribeDomainReplicationCommand";
35
38
  import { DescribeDomainsCommand, } from "./commands/DescribeDomainsCommand";
36
39
  import { DescribeDryRunProgressCommand, } from "./commands/DescribeDryRunProgressCommand";
37
40
  import { DescribeInboundConnectionsCommand, } from "./commands/DescribeInboundConnectionsCommand";
@@ -45,6 +48,7 @@ import { DescribeVpcEndpointsCommand, } from "./commands/DescribeVpcEndpointsCom
45
48
  import { DetachDataSourceCommand, } from "./commands/DetachDataSourceCommand";
46
49
  import { DissociatePackageCommand, } from "./commands/DissociatePackageCommand";
47
50
  import { DissociatePackagesCommand, } from "./commands/DissociatePackagesCommand";
51
+ import { FailoverReplicationCommand, } from "./commands/FailoverReplicationCommand";
48
52
  import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
49
53
  import { GetCapabilityCommand, } from "./commands/GetCapabilityCommand";
50
54
  import { GetCompatibleVersionsCommand, } from "./commands/GetCompatibleVersionsCommand";
@@ -79,12 +83,14 @@ import { PurchaseReservedInstanceOfferingCommand, } from "./commands/PurchaseRes
79
83
  import { PutDefaultApplicationSettingCommand, } from "./commands/PutDefaultApplicationSettingCommand";
80
84
  import { RegisterCapabilityCommand, } from "./commands/RegisterCapabilityCommand";
81
85
  import { RejectInboundConnectionCommand, } from "./commands/RejectInboundConnectionCommand";
86
+ import { RemoveReplicationPeerCommand, } from "./commands/RemoveReplicationPeerCommand";
82
87
  import { RemoveTagsCommand, } from "./commands/RemoveTagsCommand";
83
88
  import { RevokeVpcEndpointAccessCommand, } from "./commands/RevokeVpcEndpointAccessCommand";
84
89
  import { RollbackServiceSoftwareUpdateCommand, } from "./commands/RollbackServiceSoftwareUpdateCommand";
85
90
  import { StartDomainMaintenanceCommand, } from "./commands/StartDomainMaintenanceCommand";
86
91
  import { StartMigrationCommand, } from "./commands/StartMigrationCommand";
87
92
  import { StartServiceSoftwareUpdateCommand, } from "./commands/StartServiceSoftwareUpdateCommand";
93
+ import { SwitchoverReplicationCommand, } from "./commands/SwitchoverReplicationCommand";
88
94
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
89
95
  import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
90
96
  import { UpdateDirectQueryDataSourceCommand, } from "./commands/UpdateDirectQueryDataSourceCommand";
@@ -115,6 +121,7 @@ const commands = {
115
121
  AcceptInboundConnectionCommand,
116
122
  AddDataSourceCommand,
117
123
  AddDirectQueryDataSourceCommand,
124
+ AddReplicationPeerCommand,
118
125
  AddTagsCommand,
119
126
  AssociatePackageCommand,
120
127
  AssociatePackagesCommand,
@@ -122,6 +129,7 @@ const commands = {
122
129
  AuthorizeVpcEndpointAccessCommand,
123
130
  CancelDomainConfigChangeCommand,
124
131
  CancelServiceSoftwareUpdateCommand,
132
+ CompareDomainConfigurationCommand,
125
133
  CreateApplicationCommand,
126
134
  CreateDomainCommand,
127
135
  CreateIndexCommand,
@@ -145,6 +153,7 @@ const commands = {
145
153
  DescribeDomainConfigCommand,
146
154
  DescribeDomainHealthCommand,
147
155
  DescribeDomainNodesCommand,
156
+ DescribeDomainReplicationCommand,
148
157
  DescribeDomainsCommand,
149
158
  DescribeDryRunProgressCommand,
150
159
  DescribeInboundConnectionsCommand,
@@ -158,6 +167,7 @@ const commands = {
158
167
  DetachDataSourceCommand,
159
168
  DissociatePackageCommand,
160
169
  DissociatePackagesCommand,
170
+ FailoverReplicationCommand,
161
171
  GetApplicationCommand,
162
172
  GetCapabilityCommand,
163
173
  GetCompatibleVersionsCommand,
@@ -192,12 +202,14 @@ const commands = {
192
202
  PutDefaultApplicationSettingCommand,
193
203
  RegisterCapabilityCommand,
194
204
  RejectInboundConnectionCommand,
205
+ RemoveReplicationPeerCommand,
195
206
  RemoveTagsCommand,
196
207
  RevokeVpcEndpointAccessCommand,
197
208
  RollbackServiceSoftwareUpdateCommand,
198
209
  StartDomainMaintenanceCommand,
199
210
  StartMigrationCommand,
200
211
  StartServiceSoftwareUpdateCommand,
212
+ SwitchoverReplicationCommand,
201
213
  UpdateApplicationCommand,
202
214
  UpdateDataSourceCommand,
203
215
  UpdateDirectQueryDataSourceCommand,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { AddReplicationPeer$ } from "../schemas/schemas_0";
3
+ export class AddReplicationPeerCommand extends command(_ep0, _mw0, "AddReplicationPeer", AddReplicationPeer$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CompareDomainConfiguration$ } from "../schemas/schemas_0";
3
+ export class CompareDomainConfigurationCommand extends command(_ep0, _mw0, "CompareDomainConfiguration", CompareDomainConfiguration$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DescribeDomainReplication$ } from "../schemas/schemas_0";
3
+ export class DescribeDomainReplicationCommand extends command(_ep0, _mw0, "DescribeDomainReplication", DescribeDomainReplication$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { FailoverReplication$ } from "../schemas/schemas_0";
3
+ export class FailoverReplicationCommand extends command(_ep0, _mw0, "FailoverReplication", FailoverReplication$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { RemoveReplicationPeer$ } from "../schemas/schemas_0";
3
+ export class RemoveReplicationPeerCommand extends command(_ep0, _mw0, "RemoveReplicationPeer", RemoveReplicationPeer$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { SwitchoverReplication$ } from "../schemas/schemas_0";
3
+ export class SwitchoverReplicationCommand extends command(_ep0, _mw0, "SwitchoverReplication", SwitchoverReplication$) {
4
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./AcceptInboundConnectionCommand";
2
2
  export * from "./AddDataSourceCommand";
3
3
  export * from "./AddDirectQueryDataSourceCommand";
4
+ export * from "./AddReplicationPeerCommand";
4
5
  export * from "./AddTagsCommand";
5
6
  export * from "./AssociatePackageCommand";
6
7
  export * from "./AssociatePackagesCommand";
@@ -8,6 +9,7 @@ export * from "./AttachDataSourceCommand";
8
9
  export * from "./AuthorizeVpcEndpointAccessCommand";
9
10
  export * from "./CancelDomainConfigChangeCommand";
10
11
  export * from "./CancelServiceSoftwareUpdateCommand";
12
+ export * from "./CompareDomainConfigurationCommand";
11
13
  export * from "./CreateApplicationCommand";
12
14
  export * from "./CreateDomainCommand";
13
15
  export * from "./CreateIndexCommand";
@@ -31,6 +33,7 @@ export * from "./DescribeDomainCommand";
31
33
  export * from "./DescribeDomainConfigCommand";
32
34
  export * from "./DescribeDomainHealthCommand";
33
35
  export * from "./DescribeDomainNodesCommand";
36
+ export * from "./DescribeDomainReplicationCommand";
34
37
  export * from "./DescribeDomainsCommand";
35
38
  export * from "./DescribeDryRunProgressCommand";
36
39
  export * from "./DescribeInboundConnectionsCommand";
@@ -44,6 +47,7 @@ export * from "./DescribeVpcEndpointsCommand";
44
47
  export * from "./DetachDataSourceCommand";
45
48
  export * from "./DissociatePackageCommand";
46
49
  export * from "./DissociatePackagesCommand";
50
+ export * from "./FailoverReplicationCommand";
47
51
  export * from "./GetApplicationCommand";
48
52
  export * from "./GetCapabilityCommand";
49
53
  export * from "./GetCompatibleVersionsCommand";
@@ -78,12 +82,14 @@ export * from "./PurchaseReservedInstanceOfferingCommand";
78
82
  export * from "./PutDefaultApplicationSettingCommand";
79
83
  export * from "./RegisterCapabilityCommand";
80
84
  export * from "./RejectInboundConnectionCommand";
85
+ export * from "./RemoveReplicationPeerCommand";
81
86
  export * from "./RemoveTagsCommand";
82
87
  export * from "./RevokeVpcEndpointAccessCommand";
83
88
  export * from "./RollbackServiceSoftwareUpdateCommand";
84
89
  export * from "./StartDomainMaintenanceCommand";
85
90
  export * from "./StartMigrationCommand";
86
91
  export * from "./StartServiceSoftwareUpdateCommand";
92
+ export * from "./SwitchoverReplicationCommand";
87
93
  export * from "./UpdateApplicationCommand";
88
94
  export * from "./UpdateDataSourceCommand";
89
95
  export * from "./UpdateDirectQueryDataSourceCommand";
@@ -35,6 +35,16 @@ export const ActionType = {
35
35
  JVM_YOUNG_GEN_TUNING: "JVM_YOUNG_GEN_TUNING",
36
36
  SERVICE_SOFTWARE_UPDATE: "SERVICE_SOFTWARE_UPDATE",
37
37
  };
38
+ export const ReplicationStatus = {
39
+ ACTIVE: "ACTIVE",
40
+ DETACHED: "DETACHED",
41
+ EJECTED: "EJECTED",
42
+ FAILED: "FAILED",
43
+ FAILING_OVER: "FAILING_OVER",
44
+ PENDING_REMOVAL: "PENDING_REMOVAL",
45
+ PENDING_SETUP: "PENDING_SETUP",
46
+ SWITCHING_OVER: "SWITCHING_OVER",
47
+ };
38
48
  export const NaturalLanguageQueryGenerationDesiredState = {
39
49
  Disabled: "DISABLED",
40
50
  Enabled: "ENABLED",
@@ -80,6 +90,13 @@ export const DeploymentStatus = {
80
90
  NOT_ELIGIBLE: "NOT_ELIGIBLE",
81
91
  PENDING_UPDATE: "PENDING_UPDATE",
82
92
  };
93
+ export const DiffFieldPolicy = {
94
+ REDACTED: "redacted",
95
+ };
96
+ export const DiffStatus = {
97
+ COMPARED: "compared",
98
+ ERROR: "error",
99
+ };
83
100
  export const AppConfigType = {
84
101
  OpensearchDashboardAdminGroups: "opensearchDashboards.dashboardAdmin.groups",
85
102
  OpensearchDashboardAdminUsers: "opensearchDashboards.dashboardAdmin.users",
@@ -409,6 +426,10 @@ export const NodeType = {
409
426
  Ultrawarm: "Ultrawarm",
410
427
  Warm: "Warm",
411
428
  };
429
+ export const ReplicationRole = {
430
+ PRIMARY: "PRIMARY",
431
+ SECONDARY: "SECONDARY",
432
+ };
412
433
  export const InsightEntityType = {
413
434
  ACCOUNT: "Account",
414
435
  DOMAIN: "DomainName",
@@ -103,6 +103,19 @@ export class ValidationException extends __BaseException {
103
103
  Object.setPrototypeOf(this, ValidationException.prototype);
104
104
  }
105
105
  }
106
+ export class ResourceAlreadyExistsException extends __BaseException {
107
+ static shapeId = "com.amazonaws.opensearch#ResourceAlreadyExistsException";
108
+ name = "ResourceAlreadyExistsException";
109
+ $fault = "client";
110
+ constructor(opts) {
111
+ super({
112
+ name: "ResourceAlreadyExistsException",
113
+ $fault: "client",
114
+ ...opts,
115
+ });
116
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
117
+ }
118
+ }
106
119
  export class ConflictException extends __BaseException {
107
120
  static shapeId = "com.amazonaws.opensearch#ConflictException";
108
121
  name = "ConflictException";
@@ -129,19 +142,6 @@ export class InvalidTypeException extends __BaseException {
129
142
  Object.setPrototypeOf(this, InvalidTypeException.prototype);
130
143
  }
131
144
  }
132
- export class ResourceAlreadyExistsException extends __BaseException {
133
- static shapeId = "com.amazonaws.opensearch#ResourceAlreadyExistsException";
134
- name = "ResourceAlreadyExistsException";
135
- $fault = "client";
136
- constructor(opts) {
137
- super({
138
- name: "ResourceAlreadyExistsException",
139
- $fault: "client",
140
- ...opts,
141
- });
142
- Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
143
- }
144
- }
145
145
  export class ThrottlingException extends __BaseException {
146
146
  static shapeId = "com.amazonaws.opensearch#ThrottlingException";
147
147
  name = "ThrottlingException";