@aws-sdk/client-opensearch 3.600.0 → 3.605.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.
package/dist-cjs/index.js CHANGED
@@ -109,6 +109,8 @@ __export(src_exports, {
109
109
  MaintenanceType: () => MaintenanceType,
110
110
  MasterNodeStatus: () => MasterNodeStatus,
111
111
  MasterUserOptionsFilterSensitiveLog: () => MasterUserOptionsFilterSensitiveLog,
112
+ NaturalLanguageQueryGenerationCurrentState: () => NaturalLanguageQueryGenerationCurrentState,
113
+ NaturalLanguageQueryGenerationDesiredState: () => NaturalLanguageQueryGenerationDesiredState,
112
114
  NodeStatus: () => NodeStatus,
113
115
  NodeType: () => NodeType,
114
116
  OpenSearch: () => OpenSearch,
@@ -529,6 +531,19 @@ var _ValidationException = class _ValidationException extends OpenSearchServiceE
529
531
  };
530
532
  __name(_ValidationException, "ValidationException");
531
533
  var ValidationException = _ValidationException;
534
+ var NaturalLanguageQueryGenerationDesiredState = {
535
+ Disabled: "DISABLED",
536
+ Enabled: "ENABLED"
537
+ };
538
+ var NaturalLanguageQueryGenerationCurrentState = {
539
+ DisableComplete: "DISABLE_COMPLETE",
540
+ DisableFailed: "DISABLE_FAILED",
541
+ DisableInProgress: "DISABLE_IN_PROGRESS",
542
+ EnableComplete: "ENABLE_COMPLETE",
543
+ EnableFailed: "ENABLE_FAILED",
544
+ EnableInProgress: "ENABLE_IN_PROGRESS",
545
+ NotEnabled: "NOT_ENABLED"
546
+ };
532
547
  var DomainPackageStatus = {
533
548
  ACTIVE: "ACTIVE",
534
549
  ASSOCIATING: "ASSOCIATING",
@@ -1097,6 +1112,7 @@ var se_CreateDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
1097
1112
  let body;
1098
1113
  body = JSON.stringify(
1099
1114
  (0, import_smithy_client.take)(input, {
1115
+ AIMLOptions: (_) => (0, import_smithy_client._json)(_),
1100
1116
  AccessPolicies: [],
1101
1117
  AdvancedOptions: (_) => (0, import_smithy_client._json)(_),
1102
1118
  AdvancedSecurityOptions: (_) => (0, import_smithy_client._json)(_),
@@ -1775,6 +1791,7 @@ var se_UpdateDomainConfigCommand = /* @__PURE__ */ __name(async (input, context)
1775
1791
  let body;
1776
1792
  body = JSON.stringify(
1777
1793
  (0, import_smithy_client.take)(input, {
1794
+ AIMLOptions: (_) => (0, import_smithy_client._json)(_),
1778
1795
  AccessPolicies: [],
1779
1796
  AdvancedOptions: (_) => (0, import_smithy_client._json)(_),
1780
1797
  AdvancedSecurityOptions: (_) => (0, import_smithy_client._json)(_),
@@ -3069,6 +3086,7 @@ var de_AdvancedSecurityOptions = /* @__PURE__ */ __name((output, context) => {
3069
3086
  AnonymousAuthEnabled: import_smithy_client.expectBoolean,
3070
3087
  Enabled: import_smithy_client.expectBoolean,
3071
3088
  InternalUserDatabaseEnabled: import_smithy_client.expectBoolean,
3089
+ JWTOptions: import_smithy_client._json,
3072
3090
  SAMLOptions: import_smithy_client._json
3073
3091
  });
3074
3092
  }, "de_AdvancedSecurityOptions");
@@ -3078,6 +3096,12 @@ var de_AdvancedSecurityOptionsStatus = /* @__PURE__ */ __name((output, context)
3078
3096
  Status: (_) => de_OptionStatus(_, context)
3079
3097
  });
3080
3098
  }, "de_AdvancedSecurityOptionsStatus");
3099
+ var de_AIMLOptionsStatus = /* @__PURE__ */ __name((output, context) => {
3100
+ return (0, import_smithy_client.take)(output, {
3101
+ Options: import_smithy_client._json,
3102
+ Status: (_) => de_OptionStatus(_, context)
3103
+ });
3104
+ }, "de_AIMLOptionsStatus");
3081
3105
  var de_AutoTune = /* @__PURE__ */ __name((output, context) => {
3082
3106
  return (0, import_smithy_client.take)(output, {
3083
3107
  AutoTuneDetails: (_) => de_AutoTuneDetails(_, context),
@@ -3184,6 +3208,7 @@ var de_CognitoOptionsStatus = /* @__PURE__ */ __name((output, context) => {
3184
3208
  }, "de_CognitoOptionsStatus");
3185
3209
  var de_DomainConfig = /* @__PURE__ */ __name((output, context) => {
3186
3210
  return (0, import_smithy_client.take)(output, {
3211
+ AIMLOptions: (_) => de_AIMLOptionsStatus(_, context),
3187
3212
  AccessPolicies: (_) => de_AccessPoliciesStatus(_, context),
3188
3213
  AdvancedOptions: (_) => de_AdvancedOptionsStatus(_, context),
3189
3214
  AdvancedSecurityOptions: (_) => de_AdvancedSecurityOptionsStatus(_, context),
@@ -3250,6 +3275,7 @@ var de_DomainPackageDetailsList = /* @__PURE__ */ __name((output, context) => {
3250
3275
  }, "de_DomainPackageDetailsList");
3251
3276
  var de_DomainStatus = /* @__PURE__ */ __name((output, context) => {
3252
3277
  return (0, import_smithy_client.take)(output, {
3278
+ AIMLOptions: import_smithy_client._json,
3253
3279
  ARN: import_smithy_client.expectString,
3254
3280
  AccessPolicies: import_smithy_client.expectString,
3255
3281
  AdvancedOptions: import_smithy_client._json,
@@ -4765,6 +4791,8 @@ var paginateListVersions = (0, import_core.createPaginator)(OpenSearchClient, Li
4765
4791
  DependencyFailureException,
4766
4792
  InternalException,
4767
4793
  ValidationException,
4794
+ NaturalLanguageQueryGenerationDesiredState,
4795
+ NaturalLanguageQueryGenerationCurrentState,
4768
4796
  DomainPackageStatus,
4769
4797
  PackageType,
4770
4798
  ConflictException,
@@ -141,6 +141,19 @@ export class ValidationException extends __BaseException {
141
141
  Object.setPrototypeOf(this, ValidationException.prototype);
142
142
  }
143
143
  }
144
+ export const NaturalLanguageQueryGenerationDesiredState = {
145
+ Disabled: "DISABLED",
146
+ Enabled: "ENABLED",
147
+ };
148
+ export const NaturalLanguageQueryGenerationCurrentState = {
149
+ DisableComplete: "DISABLE_COMPLETE",
150
+ DisableFailed: "DISABLE_FAILED",
151
+ DisableInProgress: "DISABLE_IN_PROGRESS",
152
+ EnableComplete: "ENABLE_COMPLETE",
153
+ EnableFailed: "ENABLE_FAILED",
154
+ EnableInProgress: "ENABLE_IN_PROGRESS",
155
+ NotEnabled: "NOT_ENABLED",
156
+ };
144
157
  export const DomainPackageStatus = {
145
158
  ACTIVE: "ACTIVE",
146
159
  ASSOCIATING: "ASSOCIATING",
@@ -101,6 +101,7 @@ export const se_CreateDomainCommand = async (input, context) => {
101
101
  b.bp("/2021-01-01/opensearch/domain");
102
102
  let body;
103
103
  body = JSON.stringify(take(input, {
104
+ AIMLOptions: (_) => _json(_),
104
105
  AccessPolicies: [],
105
106
  AdvancedOptions: (_) => _json(_),
106
107
  AdvancedSecurityOptions: (_) => _json(_),
@@ -747,6 +748,7 @@ export const se_UpdateDomainConfigCommand = async (input, context) => {
747
748
  b.p("DomainName", () => input.DomainName, "{DomainName}", false);
748
749
  let body;
749
750
  body = JSON.stringify(take(input, {
751
+ AIMLOptions: (_) => _json(_),
750
752
  AccessPolicies: [],
751
753
  AdvancedOptions: (_) => _json(_),
752
754
  AdvancedSecurityOptions: (_) => _json(_),
@@ -2034,6 +2036,7 @@ const de_AdvancedSecurityOptions = (output, context) => {
2034
2036
  AnonymousAuthEnabled: __expectBoolean,
2035
2037
  Enabled: __expectBoolean,
2036
2038
  InternalUserDatabaseEnabled: __expectBoolean,
2039
+ JWTOptions: _json,
2037
2040
  SAMLOptions: _json,
2038
2041
  });
2039
2042
  };
@@ -2043,6 +2046,12 @@ const de_AdvancedSecurityOptionsStatus = (output, context) => {
2043
2046
  Status: (_) => de_OptionStatus(_, context),
2044
2047
  });
2045
2048
  };
2049
+ const de_AIMLOptionsStatus = (output, context) => {
2050
+ return take(output, {
2051
+ Options: _json,
2052
+ Status: (_) => de_OptionStatus(_, context),
2053
+ });
2054
+ };
2046
2055
  const de_AutoTune = (output, context) => {
2047
2056
  return take(output, {
2048
2057
  AutoTuneDetails: (_) => de_AutoTuneDetails(_, context),
@@ -2155,6 +2164,7 @@ const de_CognitoOptionsStatus = (output, context) => {
2155
2164
  };
2156
2165
  const de_DomainConfig = (output, context) => {
2157
2166
  return take(output, {
2167
+ AIMLOptions: (_) => de_AIMLOptionsStatus(_, context),
2158
2168
  AccessPolicies: (_) => de_AccessPoliciesStatus(_, context),
2159
2169
  AdvancedOptions: (_) => de_AdvancedOptionsStatus(_, context),
2160
2170
  AdvancedSecurityOptions: (_) => de_AdvancedSecurityOptionsStatus(_, context),
@@ -2225,6 +2235,7 @@ const de_DomainPackageDetailsList = (output, context) => {
2225
2235
  };
2226
2236
  const de_DomainStatus = (output, context) => {
2227
2237
  return take(output, {
2238
+ AIMLOptions: _json,
2228
2239
  ARN: __expectString,
2229
2240
  AccessPolicies: __expectString,
2230
2241
  AdvancedOptions: _json,
@@ -124,6 +124,12 @@ declare const CreateDomainCommand_base: {
124
124
  * RolesKey: "STRING_VALUE",
125
125
  * SessionTimeoutMinutes: Number("int"),
126
126
  * },
127
+ * JWTOptions: { // JWTOptionsInput
128
+ * Enabled: true || false,
129
+ * SubjectKey: "STRING_VALUE",
130
+ * RolesKey: "STRING_VALUE",
131
+ * PublicKey: "STRING_VALUE",
132
+ * },
127
133
  * AnonymousAuthEnabled: true || false,
128
134
  * },
129
135
  * TagList: [ // TagList
@@ -158,6 +164,11 @@ declare const CreateDomainCommand_base: {
158
164
  * SoftwareUpdateOptions: { // SoftwareUpdateOptions
159
165
  * AutoSoftwareUpdateEnabled: true || false,
160
166
  * },
167
+ * AIMLOptions: { // AIMLOptionsInput
168
+ * NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsInput
169
+ * DesiredState: "ENABLED" || "DISABLED",
170
+ * },
171
+ * },
161
172
  * };
162
173
  * const command = new CreateDomainCommand(input);
163
174
  * const response = await client.send(command);
@@ -271,6 +282,12 @@ declare const CreateDomainCommand_base: {
271
282
  * // RolesKey: "STRING_VALUE",
272
283
  * // SessionTimeoutMinutes: Number("int"),
273
284
  * // },
285
+ * // JWTOptions: { // JWTOptionsOutput
286
+ * // Enabled: true || false,
287
+ * // SubjectKey: "STRING_VALUE",
288
+ * // RolesKey: "STRING_VALUE",
289
+ * // PublicKey: "STRING_VALUE",
290
+ * // },
274
291
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
275
292
  * // AnonymousAuthEnabled: true || false,
276
293
  * // },
@@ -308,6 +325,12 @@ declare const CreateDomainCommand_base: {
308
325
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
309
326
  * // },
310
327
  * // ],
328
+ * // AIMLOptions: { // AIMLOptionsOutput
329
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
330
+ * // DesiredState: "ENABLED" || "DISABLED",
331
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
332
+ * // },
333
+ * // },
311
334
  * // },
312
335
  * // };
313
336
  *
@@ -150,6 +150,12 @@ declare const DeleteDomainCommand_base: {
150
150
  * // RolesKey: "STRING_VALUE",
151
151
  * // SessionTimeoutMinutes: Number("int"),
152
152
  * // },
153
+ * // JWTOptions: { // JWTOptionsOutput
154
+ * // Enabled: true || false,
155
+ * // SubjectKey: "STRING_VALUE",
156
+ * // RolesKey: "STRING_VALUE",
157
+ * // PublicKey: "STRING_VALUE",
158
+ * // },
153
159
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
154
160
  * // AnonymousAuthEnabled: true || false,
155
161
  * // },
@@ -187,6 +193,12 @@ declare const DeleteDomainCommand_base: {
187
193
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
188
194
  * // },
189
195
  * // ],
196
+ * // AIMLOptions: { // AIMLOptionsOutput
197
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
198
+ * // DesiredState: "ENABLED" || "DISABLED",
199
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
200
+ * // },
201
+ * // },
190
202
  * // },
191
203
  * // };
192
204
  *
@@ -150,6 +150,12 @@ declare const DescribeDomainCommand_base: {
150
150
  * // RolesKey: "STRING_VALUE",
151
151
  * // SessionTimeoutMinutes: Number("int"),
152
152
  * // },
153
+ * // JWTOptions: { // JWTOptionsOutput
154
+ * // Enabled: true || false,
155
+ * // SubjectKey: "STRING_VALUE",
156
+ * // RolesKey: "STRING_VALUE",
157
+ * // PublicKey: "STRING_VALUE",
158
+ * // },
153
159
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
154
160
  * // AnonymousAuthEnabled: true || false,
155
161
  * // },
@@ -187,6 +193,12 @@ declare const DescribeDomainCommand_base: {
187
193
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
188
194
  * // },
189
195
  * // ],
196
+ * // AIMLOptions: { // AIMLOptionsOutput
197
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
198
+ * // DesiredState: "ENABLED" || "DISABLED",
199
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
200
+ * // },
201
+ * // },
190
202
  * // },
191
203
  * // };
192
204
  *
@@ -196,6 +196,12 @@ declare const DescribeDomainConfigCommand_base: {
196
196
  * // RolesKey: "STRING_VALUE",
197
197
  * // SessionTimeoutMinutes: Number("int"),
198
198
  * // },
199
+ * // JWTOptions: { // JWTOptionsOutput
200
+ * // Enabled: true || false,
201
+ * // SubjectKey: "STRING_VALUE",
202
+ * // RolesKey: "STRING_VALUE",
203
+ * // PublicKey: "STRING_VALUE",
204
+ * // },
199
205
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
200
206
  * // AnonymousAuthEnabled: true || false,
201
207
  * // },
@@ -260,6 +266,15 @@ declare const DescribeDomainConfigCommand_base: {
260
266
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
261
267
  * // },
262
268
  * // ],
269
+ * // AIMLOptions: { // AIMLOptionsStatus
270
+ * // Options: { // AIMLOptionsOutput
271
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
272
+ * // DesiredState: "ENABLED" || "DISABLED",
273
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
274
+ * // },
275
+ * // },
276
+ * // Status: "<OptionStatus>",
277
+ * // },
263
278
  * // },
264
279
  * // };
265
280
  *
@@ -153,6 +153,12 @@ declare const DescribeDomainsCommand_base: {
153
153
  * // RolesKey: "STRING_VALUE",
154
154
  * // SessionTimeoutMinutes: Number("int"),
155
155
  * // },
156
+ * // JWTOptions: { // JWTOptionsOutput
157
+ * // Enabled: true || false,
158
+ * // SubjectKey: "STRING_VALUE",
159
+ * // RolesKey: "STRING_VALUE",
160
+ * // PublicKey: "STRING_VALUE",
161
+ * // },
156
162
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
157
163
  * // AnonymousAuthEnabled: true || false,
158
164
  * // },
@@ -190,6 +196,12 @@ declare const DescribeDomainsCommand_base: {
190
196
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
191
197
  * // },
192
198
  * // ],
199
+ * // AIMLOptions: { // AIMLOptionsOutput
200
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
201
+ * // DesiredState: "ENABLED" || "DISABLED",
202
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
203
+ * // },
204
+ * // },
193
205
  * // },
194
206
  * // ],
195
207
  * // };
@@ -164,6 +164,12 @@ declare const DescribeDryRunProgressCommand_base: {
164
164
  * // RolesKey: "STRING_VALUE",
165
165
  * // SessionTimeoutMinutes: Number("int"),
166
166
  * // },
167
+ * // JWTOptions: { // JWTOptionsOutput
168
+ * // Enabled: true || false,
169
+ * // SubjectKey: "STRING_VALUE",
170
+ * // RolesKey: "STRING_VALUE",
171
+ * // PublicKey: "STRING_VALUE",
172
+ * // },
167
173
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
168
174
  * // AnonymousAuthEnabled: true || false,
169
175
  * // },
@@ -201,6 +207,12 @@ declare const DescribeDryRunProgressCommand_base: {
201
207
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
202
208
  * // },
203
209
  * // ],
210
+ * // AIMLOptions: { // AIMLOptionsOutput
211
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
212
+ * // DesiredState: "ENABLED" || "DISABLED",
213
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
214
+ * // },
215
+ * // },
204
216
  * // },
205
217
  * // DryRunResults: { // DryRunResults
206
218
  * // DeploymentType: "STRING_VALUE",
@@ -124,6 +124,12 @@ declare const UpdateDomainConfigCommand_base: {
124
124
  * RolesKey: "STRING_VALUE",
125
125
  * SessionTimeoutMinutes: Number("int"),
126
126
  * },
127
+ * JWTOptions: { // JWTOptionsInput
128
+ * Enabled: true || false,
129
+ * SubjectKey: "STRING_VALUE",
130
+ * RolesKey: "STRING_VALUE",
131
+ * PublicKey: "STRING_VALUE",
132
+ * },
127
133
  * AnonymousAuthEnabled: true || false,
128
134
  * },
129
135
  * AutoTuneOptions: { // AutoTuneOptions
@@ -155,6 +161,11 @@ declare const UpdateDomainConfigCommand_base: {
155
161
  * SoftwareUpdateOptions: { // SoftwareUpdateOptions
156
162
  * AutoSoftwareUpdateEnabled: true || false,
157
163
  * },
164
+ * AIMLOptions: { // AIMLOptionsInput
165
+ * NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsInput
166
+ * DesiredState: "ENABLED" || "DISABLED",
167
+ * },
168
+ * },
158
169
  * };
159
170
  * const command = new UpdateDomainConfigCommand(input);
160
171
  * const response = await client.send(command);
@@ -315,6 +326,12 @@ declare const UpdateDomainConfigCommand_base: {
315
326
  * // RolesKey: "STRING_VALUE",
316
327
  * // SessionTimeoutMinutes: Number("int"),
317
328
  * // },
329
+ * // JWTOptions: { // JWTOptionsOutput
330
+ * // Enabled: true || false,
331
+ * // SubjectKey: "STRING_VALUE",
332
+ * // RolesKey: "STRING_VALUE",
333
+ * // PublicKey: "STRING_VALUE",
334
+ * // },
318
335
  * // AnonymousAuthDisableDate: new Date("TIMESTAMP"),
319
336
  * // AnonymousAuthEnabled: true || false,
320
337
  * // },
@@ -379,6 +396,15 @@ declare const UpdateDomainConfigCommand_base: {
379
396
  * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
380
397
  * // },
381
398
  * // ],
399
+ * // AIMLOptions: { // AIMLOptionsStatus
400
+ * // Options: { // AIMLOptionsOutput
401
+ * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput
402
+ * // DesiredState: "ENABLED" || "DISABLED",
403
+ * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED",
404
+ * // },
405
+ * // },
406
+ * // Status: "<OptionStatus>",
407
+ * // },
382
408
  * // },
383
409
  * // DryRunResults: { // DryRunResults
384
410
  * // DeploymentType: "STRING_VALUE",
@@ -567,6 +567,32 @@ export interface AdvancedOptionsStatus {
567
567
  */
568
568
  Status: OptionStatus | undefined;
569
569
  }
570
+ /**
571
+ * <p>Describes the JWT options configured for the domain.</p>
572
+ * @public
573
+ */
574
+ export interface JWTOptionsOutput {
575
+ /**
576
+ * <p>True if JWT use is enabled.</p>
577
+ * @public
578
+ */
579
+ Enabled?: boolean;
580
+ /**
581
+ * <p>The key used for matching the JWT subject attribute.</p>
582
+ * @public
583
+ */
584
+ SubjectKey?: string;
585
+ /**
586
+ * <p>The key used for matching the JWT roles attribute.</p>
587
+ * @public
588
+ */
589
+ RolesKey?: string;
590
+ /**
591
+ * <p>The key used to verify the signature of incoming JWT requests.</p>
592
+ * @public
593
+ */
594
+ PublicKey?: string;
595
+ }
570
596
  /**
571
597
  * <p>The SAML identity povider information.</p>
572
598
  * @public
@@ -634,6 +660,11 @@ export interface AdvancedSecurityOptions {
634
660
  * @public
635
661
  */
636
662
  SAMLOptions?: SAMLOptionsOutput;
663
+ /**
664
+ * <p>Container for information about the JWT configuration of the Amazon OpenSearch Service.</p>
665
+ * @public
666
+ */
667
+ JWTOptions?: JWTOptionsOutput;
637
668
  /**
638
669
  * <p>Date and time when the migration period will be disabled. Only necessary when <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html#fgac-enabling-existing">enabling
639
670
  * fine-grained access control on an existing domain</a>.</p>
@@ -648,6 +679,32 @@ export interface AdvancedSecurityOptions {
648
679
  */
649
680
  AnonymousAuthEnabled?: boolean;
650
681
  }
682
+ /**
683
+ * <p>The JWT authentication and authorization configuration for an Amazon OpenSearch Service domain.</p>
684
+ * @public
685
+ */
686
+ export interface JWTOptionsInput {
687
+ /**
688
+ * <p>True to enable JWT authentication and authorization for a domain.</p>
689
+ * @public
690
+ */
691
+ Enabled?: boolean;
692
+ /**
693
+ * <p>Element of the JWT assertion to use for the user name.</p>
694
+ * @public
695
+ */
696
+ SubjectKey?: string;
697
+ /**
698
+ * <p>Element of the JWT assertion to use for roles.</p>
699
+ * @public
700
+ */
701
+ RolesKey?: string;
702
+ /**
703
+ * <p>Element of the JWT assertion used by the cluster to verify JWT signatures.</p>
704
+ * @public
705
+ */
706
+ PublicKey?: string;
707
+ }
651
708
  /**
652
709
  * <p>Credentials for the master user for a domain.</p>
653
710
  * @public
@@ -742,6 +799,11 @@ export interface AdvancedSecurityOptionsInput {
742
799
  * @public
743
800
  */
744
801
  SAMLOptions?: SAMLOptionsInput;
802
+ /**
803
+ * <p>Container for information about the JWT configuration of the Amazon OpenSearch Service. </p>
804
+ * @public
805
+ */
806
+ JWTOptions?: JWTOptionsInput;
745
807
  /**
746
808
  * <p>True to enable a 30-day migration period during which administrators can create role
747
809
  * mappings. Only necessary when <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html#fgac-enabling-existing">enabling
@@ -766,6 +828,100 @@ export interface AdvancedSecurityOptionsStatus {
766
828
  */
767
829
  Status: OptionStatus | undefined;
768
830
  }
831
+ /**
832
+ * @public
833
+ * @enum
834
+ */
835
+ export declare const NaturalLanguageQueryGenerationDesiredState: {
836
+ readonly Disabled: "DISABLED";
837
+ readonly Enabled: "ENABLED";
838
+ };
839
+ /**
840
+ * @public
841
+ */
842
+ export type NaturalLanguageQueryGenerationDesiredState = (typeof NaturalLanguageQueryGenerationDesiredState)[keyof typeof NaturalLanguageQueryGenerationDesiredState];
843
+ /**
844
+ * <p>Container for parameters required to enable the natural language query generation feature.</p>
845
+ * @public
846
+ */
847
+ export interface NaturalLanguageQueryGenerationOptionsInput {
848
+ /**
849
+ * <p>The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.</p>
850
+ * @public
851
+ */
852
+ DesiredState?: NaturalLanguageQueryGenerationDesiredState;
853
+ }
854
+ /**
855
+ * <p>Container for parameters required to enable all machine learning features.</p>
856
+ * @public
857
+ */
858
+ export interface AIMLOptionsInput {
859
+ /**
860
+ * <p>Container for parameters required for natural language query generation on the specified domain.</p>
861
+ * @public
862
+ */
863
+ NaturalLanguageQueryGenerationOptions?: NaturalLanguageQueryGenerationOptionsInput;
864
+ }
865
+ /**
866
+ * @public
867
+ * @enum
868
+ */
869
+ export declare const NaturalLanguageQueryGenerationCurrentState: {
870
+ readonly DisableComplete: "DISABLE_COMPLETE";
871
+ readonly DisableFailed: "DISABLE_FAILED";
872
+ readonly DisableInProgress: "DISABLE_IN_PROGRESS";
873
+ readonly EnableComplete: "ENABLE_COMPLETE";
874
+ readonly EnableFailed: "ENABLE_FAILED";
875
+ readonly EnableInProgress: "ENABLE_IN_PROGRESS";
876
+ readonly NotEnabled: "NOT_ENABLED";
877
+ };
878
+ /**
879
+ * @public
880
+ */
881
+ export type NaturalLanguageQueryGenerationCurrentState = (typeof NaturalLanguageQueryGenerationCurrentState)[keyof typeof NaturalLanguageQueryGenerationCurrentState];
882
+ /**
883
+ * <p>Container for parameters representing the state of the natural language query generation feature on the specified domain.</p>
884
+ * @public
885
+ */
886
+ export interface NaturalLanguageQueryGenerationOptionsOutput {
887
+ /**
888
+ * <p>The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.</p>
889
+ * @public
890
+ */
891
+ DesiredState?: NaturalLanguageQueryGenerationDesiredState;
892
+ /**
893
+ * <p>The current state of the natural language query generation feature, indicating completion, in progress, or failure.</p>
894
+ * @public
895
+ */
896
+ CurrentState?: NaturalLanguageQueryGenerationCurrentState;
897
+ }
898
+ /**
899
+ * <p>Container for parameters representing the state of machine learning features on the specified domain.</p>
900
+ * @public
901
+ */
902
+ export interface AIMLOptionsOutput {
903
+ /**
904
+ * <p>Container for parameters required for natural language query generation on the specified domain.</p>
905
+ * @public
906
+ */
907
+ NaturalLanguageQueryGenerationOptions?: NaturalLanguageQueryGenerationOptionsOutput;
908
+ }
909
+ /**
910
+ * <p>The status of machine learning options on the specified domain.</p>
911
+ * @public
912
+ */
913
+ export interface AIMLOptionsStatus {
914
+ /**
915
+ * <p>Machine learning options on the specified domain.</p>
916
+ * @public
917
+ */
918
+ Options?: AIMLOptionsOutput;
919
+ /**
920
+ * <p>Provides the current status of an entity.</p>
921
+ * @public
922
+ */
923
+ Status?: OptionStatus;
924
+ }
769
925
  /**
770
926
  * <p>Container for the request parameters to the <code>AssociatePackage</code> operation.</p>
771
927
  * @public
@@ -1890,6 +2046,11 @@ export interface CreateDomainRequest {
1890
2046
  * @public
1891
2047
  */
1892
2048
  SoftwareUpdateOptions?: SoftwareUpdateOptions;
2049
+ /**
2050
+ * <p>Options for all machine learning features for the specified domain.</p>
2051
+ * @public
2052
+ */
2053
+ AIMLOptions?: AIMLOptionsInput;
1893
2054
  }
1894
2055
  /**
1895
2056
  * @public
@@ -2288,6 +2449,11 @@ export interface DomainStatus {
2288
2449
  * @public
2289
2450
  */
2290
2451
  ModifyingProperties?: ModifyingProperties[];
2452
+ /**
2453
+ * <p>Container for parameters required to enable all machine learning features.</p>
2454
+ * @public
2455
+ */
2456
+ AIMLOptions?: AIMLOptionsOutput;
2291
2457
  }
2292
2458
  /**
2293
2459
  * <p>The result of a <code>CreateDomain</code> operation. Contains the status of the newly
@@ -3692,6 +3858,11 @@ export interface DomainConfig {
3692
3858
  * @public
3693
3859
  */
3694
3860
  ModifyingProperties?: ModifyingProperties[];
3861
+ /**
3862
+ * <p>Container for parameters required to enable all machine learning features.</p>
3863
+ * @public
3864
+ */
3865
+ AIMLOptions?: AIMLOptionsStatus;
3695
3866
  }
3696
3867
  /**
3697
3868
  * <p>Contains the configuration information of the requested domain.</p>
@@ -4955,7 +5126,7 @@ export interface GetDataSourceResponse {
4955
5126
  */
4956
5127
  Description?: string;
4957
5128
  /**
4958
- * <p>The status of the data source response.</p>
5129
+ * <p>The status of the data source.</p>
4959
5130
  * @public
4960
5131
  */
4961
5132
  Status?: DataSourceStatus;
@@ -6191,7 +6362,7 @@ export interface UpdateDataSourceRequest {
6191
6362
  */
6192
6363
  Description?: string;
6193
6364
  /**
6194
- * <p>The status of the data source update request.</p>
6365
+ * <p>The status of the data source update.</p>
6195
6366
  * @public
6196
6367
  */
6197
6368
  Status?: DataSourceStatus;
@@ -6366,6 +6537,11 @@ export interface UpdateDomainConfigRequest {
6366
6537
  * @public
6367
6538
  */
6368
6539
  SoftwareUpdateOptions?: SoftwareUpdateOptions;
6540
+ /**
6541
+ * <p>Options for all machine learning features for the specified domain.</p>
6542
+ * @public
6543
+ */
6544
+ AIMLOptions?: AIMLOptionsInput;
6369
6545
  }
6370
6546
  /**
6371
6547
  * <p>The results of an <code>UpdateDomain</code> request. Contains the status of the domain being
@@ -180,6 +180,12 @@ export interface AdvancedOptionsStatus {
180
180
  Options: Record<string, string> | undefined;
181
181
  Status: OptionStatus | undefined;
182
182
  }
183
+ export interface JWTOptionsOutput {
184
+ Enabled?: boolean;
185
+ SubjectKey?: string;
186
+ RolesKey?: string;
187
+ PublicKey?: string;
188
+ }
183
189
  export interface SAMLIdp {
184
190
  MetadataContent: string | undefined;
185
191
  EntityId: string | undefined;
@@ -195,9 +201,16 @@ export interface AdvancedSecurityOptions {
195
201
  Enabled?: boolean;
196
202
  InternalUserDatabaseEnabled?: boolean;
197
203
  SAMLOptions?: SAMLOptionsOutput;
204
+ JWTOptions?: JWTOptionsOutput;
198
205
  AnonymousAuthDisableDate?: Date;
199
206
  AnonymousAuthEnabled?: boolean;
200
207
  }
208
+ export interface JWTOptionsInput {
209
+ Enabled?: boolean;
210
+ SubjectKey?: string;
211
+ RolesKey?: string;
212
+ PublicKey?: string;
213
+ }
201
214
  export interface MasterUserOptions {
202
215
  MasterUserARN?: string;
203
216
  MasterUserName?: string;
@@ -217,12 +230,47 @@ export interface AdvancedSecurityOptionsInput {
217
230
  InternalUserDatabaseEnabled?: boolean;
218
231
  MasterUserOptions?: MasterUserOptions;
219
232
  SAMLOptions?: SAMLOptionsInput;
233
+ JWTOptions?: JWTOptionsInput;
220
234
  AnonymousAuthEnabled?: boolean;
221
235
  }
222
236
  export interface AdvancedSecurityOptionsStatus {
223
237
  Options: AdvancedSecurityOptions | undefined;
224
238
  Status: OptionStatus | undefined;
225
239
  }
240
+ export declare const NaturalLanguageQueryGenerationDesiredState: {
241
+ readonly Disabled: "DISABLED";
242
+ readonly Enabled: "ENABLED";
243
+ };
244
+ export type NaturalLanguageQueryGenerationDesiredState =
245
+ (typeof NaturalLanguageQueryGenerationDesiredState)[keyof typeof NaturalLanguageQueryGenerationDesiredState];
246
+ export interface NaturalLanguageQueryGenerationOptionsInput {
247
+ DesiredState?: NaturalLanguageQueryGenerationDesiredState;
248
+ }
249
+ export interface AIMLOptionsInput {
250
+ NaturalLanguageQueryGenerationOptions?: NaturalLanguageQueryGenerationOptionsInput;
251
+ }
252
+ export declare const NaturalLanguageQueryGenerationCurrentState: {
253
+ readonly DisableComplete: "DISABLE_COMPLETE";
254
+ readonly DisableFailed: "DISABLE_FAILED";
255
+ readonly DisableInProgress: "DISABLE_IN_PROGRESS";
256
+ readonly EnableComplete: "ENABLE_COMPLETE";
257
+ readonly EnableFailed: "ENABLE_FAILED";
258
+ readonly EnableInProgress: "ENABLE_IN_PROGRESS";
259
+ readonly NotEnabled: "NOT_ENABLED";
260
+ };
261
+ export type NaturalLanguageQueryGenerationCurrentState =
262
+ (typeof NaturalLanguageQueryGenerationCurrentState)[keyof typeof NaturalLanguageQueryGenerationCurrentState];
263
+ export interface NaturalLanguageQueryGenerationOptionsOutput {
264
+ DesiredState?: NaturalLanguageQueryGenerationDesiredState;
265
+ CurrentState?: NaturalLanguageQueryGenerationCurrentState;
266
+ }
267
+ export interface AIMLOptionsOutput {
268
+ NaturalLanguageQueryGenerationOptions?: NaturalLanguageQueryGenerationOptionsOutput;
269
+ }
270
+ export interface AIMLOptionsStatus {
271
+ Options?: AIMLOptionsOutput;
272
+ Status?: OptionStatus;
273
+ }
226
274
  export interface AssociatePackageRequest {
227
275
  PackageID: string | undefined;
228
276
  DomainName: string | undefined;
@@ -575,6 +623,7 @@ export interface CreateDomainRequest {
575
623
  AutoTuneOptions?: AutoTuneOptionsInput;
576
624
  OffPeakWindowOptions?: OffPeakWindowOptions;
577
625
  SoftwareUpdateOptions?: SoftwareUpdateOptions;
626
+ AIMLOptions?: AIMLOptionsInput;
578
627
  }
579
628
  export declare const AutoTuneState: {
580
629
  readonly DISABLED: "DISABLED";
@@ -680,6 +729,7 @@ export interface DomainStatus {
680
729
  SoftwareUpdateOptions?: SoftwareUpdateOptions;
681
730
  DomainProcessingStatus?: DomainProcessingStatusType;
682
731
  ModifyingProperties?: ModifyingProperties[];
732
+ AIMLOptions?: AIMLOptionsOutput;
683
733
  }
684
734
  export interface CreateDomainResponse {
685
735
  DomainStatus?: DomainStatus;
@@ -1045,6 +1095,7 @@ export interface DomainConfig {
1045
1095
  OffPeakWindowOptions?: OffPeakWindowOptionsStatus;
1046
1096
  SoftwareUpdateOptions?: SoftwareUpdateOptionsStatus;
1047
1097
  ModifyingProperties?: ModifyingProperties[];
1098
+ AIMLOptions?: AIMLOptionsStatus;
1048
1099
  }
1049
1100
  export interface DescribeDomainConfigResponse {
1050
1101
  DomainConfig: DomainConfig | undefined;
@@ -1668,6 +1719,7 @@ export interface UpdateDomainConfigRequest {
1668
1719
  DryRunMode?: DryRunMode;
1669
1720
  OffPeakWindowOptions?: OffPeakWindowOptions;
1670
1721
  SoftwareUpdateOptions?: SoftwareUpdateOptions;
1722
+ AIMLOptions?: AIMLOptionsInput;
1671
1723
  }
1672
1724
  export interface UpdateDomainConfigResponse {
1673
1725
  DomainConfig: DomainConfig | undefined;
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.600.0",
4
+ "version": "3.605.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-opensearch",