@aws-sdk/client-opensearchserverless 3.301.0 → 3.302.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 (32) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-cjs/models/models_0.js +31 -1
  3. package/dist-cjs/protocols/Aws_json1_0.js +56 -0
  4. package/dist-es/endpoint/ruleset.js +3 -3
  5. package/dist-es/models/models_0.js +28 -0
  6. package/dist-es/protocols/Aws_json1_0.js +57 -1
  7. package/dist-types/OpenSearchServerless.d.ts +5 -5
  8. package/dist-types/OpenSearchServerlessClient.d.ts +2 -2
  9. package/dist-types/commands/CreateAccessPolicyCommand.d.ts +5 -2
  10. package/dist-types/commands/CreateCollectionCommand.d.ts +8 -2
  11. package/dist-types/commands/CreateSecurityConfigCommand.d.ts +5 -2
  12. package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +5 -2
  13. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +5 -2
  14. package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +2 -2
  15. package/dist-types/commands/DeleteCollectionCommand.d.ts +2 -2
  16. package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +2 -2
  17. package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +2 -2
  18. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +2 -2
  19. package/dist-types/commands/ListCollectionsCommand.d.ts +2 -2
  20. package/dist-types/commands/TagResourceCommand.d.ts +5 -2
  21. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  22. package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +2 -2
  23. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +1 -1
  24. package/dist-types/commands/UpdateCollectionCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +2 -2
  26. package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +5 -2
  27. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +2 -2
  28. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  29. package/dist-types/models/models_0.d.ts +53 -10
  30. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +18 -0
  32. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const r = "fn", s = "argv", t = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SecurityPolicyType = exports.SecurityConfigType = exports.VpcEndpointStatus = exports.CollectionType = exports.CollectionStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.InternalServerException = exports.ConflictException = exports.AccessPolicyType = void 0;
3
+ exports.SecurityPolicyType = exports.SecurityConfigType = exports.OcuLimitExceededException = exports.VpcEndpointStatus = exports.CollectionType = exports.CollectionStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessPolicyType = void 0;
4
4
  const OpenSearchServerlessServiceException_1 = require("./OpenSearchServerlessServiceException");
5
5
  var AccessPolicyType;
6
6
  (function (AccessPolicyType) {
@@ -32,6 +32,23 @@ class InternalServerException extends OpenSearchServerlessServiceException_1.Ope
32
32
  }
33
33
  }
34
34
  exports.InternalServerException = InternalServerException;
35
+ class ServiceQuotaExceededException extends OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "ServiceQuotaExceededException",
39
+ $fault: "client",
40
+ ...opts,
41
+ });
42
+ this.name = "ServiceQuotaExceededException";
43
+ this.$fault = "client";
44
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
45
+ this.resourceId = opts.resourceId;
46
+ this.resourceType = opts.resourceType;
47
+ this.serviceCode = opts.serviceCode;
48
+ this.quotaCode = opts.quotaCode;
49
+ }
50
+ }
51
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
35
52
  class ValidationException extends OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException {
36
53
  constructor(opts) {
37
54
  super({
@@ -77,6 +94,19 @@ var VpcEndpointStatus;
77
94
  VpcEndpointStatus["FAILED"] = "FAILED";
78
95
  VpcEndpointStatus["PENDING"] = "PENDING";
79
96
  })(VpcEndpointStatus = exports.VpcEndpointStatus || (exports.VpcEndpointStatus = {}));
97
+ class OcuLimitExceededException extends OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException {
98
+ constructor(opts) {
99
+ super({
100
+ name: "OcuLimitExceededException",
101
+ $fault: "client",
102
+ ...opts,
103
+ });
104
+ this.name = "OcuLimitExceededException";
105
+ this.$fault = "client";
106
+ Object.setPrototypeOf(this, OcuLimitExceededException.prototype);
107
+ }
108
+ }
109
+ exports.OcuLimitExceededException = OcuLimitExceededException;
80
110
  var SecurityConfigType;
81
111
  (function (SecurityConfigType) {
82
112
  SecurityConfigType["saml"] = "saml";
@@ -418,6 +418,9 @@ const deserializeAws_json1_0CreateAccessPolicyCommandError = async (output, cont
418
418
  case "InternalServerException":
419
419
  case "com.amazonaws.opensearchserverless#InternalServerException":
420
420
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
421
+ case "ServiceQuotaExceededException":
422
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
423
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
421
424
  case "ValidationException":
422
425
  case "com.amazonaws.opensearchserverless#ValidationException":
423
426
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -458,6 +461,12 @@ const deserializeAws_json1_0CreateCollectionCommandError = async (output, contex
458
461
  case "InternalServerException":
459
462
  case "com.amazonaws.opensearchserverless#InternalServerException":
460
463
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
464
+ case "OcuLimitExceededException":
465
+ case "com.amazonaws.opensearchserverless#OcuLimitExceededException":
466
+ throw await deserializeAws_json1_0OcuLimitExceededExceptionResponse(parsedOutput, context);
467
+ case "ServiceQuotaExceededException":
468
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
469
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
461
470
  case "ValidationException":
462
471
  case "com.amazonaws.opensearchserverless#ValidationException":
463
472
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -498,6 +507,9 @@ const deserializeAws_json1_0CreateSecurityConfigCommandError = async (output, co
498
507
  case "InternalServerException":
499
508
  case "com.amazonaws.opensearchserverless#InternalServerException":
500
509
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
510
+ case "ServiceQuotaExceededException":
511
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
512
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
501
513
  case "ValidationException":
502
514
  case "com.amazonaws.opensearchserverless#ValidationException":
503
515
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -538,6 +550,9 @@ const deserializeAws_json1_0CreateSecurityPolicyCommandError = async (output, co
538
550
  case "InternalServerException":
539
551
  case "com.amazonaws.opensearchserverless#InternalServerException":
540
552
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
553
+ case "ServiceQuotaExceededException":
554
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
555
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
541
556
  case "ValidationException":
542
557
  case "com.amazonaws.opensearchserverless#ValidationException":
543
558
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -578,6 +593,9 @@ const deserializeAws_json1_0CreateVpcEndpointCommandError = async (output, conte
578
593
  case "InternalServerException":
579
594
  case "com.amazonaws.opensearchserverless#InternalServerException":
580
595
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
596
+ case "ServiceQuotaExceededException":
597
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
598
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
581
599
  case "ValidationException":
582
600
  case "com.amazonaws.opensearchserverless#ValidationException":
583
601
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -1252,6 +1270,9 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
1252
1270
  case "ResourceNotFoundException":
1253
1271
  case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
1254
1272
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1273
+ case "ServiceQuotaExceededException":
1274
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
1275
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1255
1276
  case "ValidationException":
1256
1277
  case "com.amazonaws.opensearchserverless#ValidationException":
1257
1278
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -1501,6 +1522,9 @@ const deserializeAws_json1_0UpdateSecurityPolicyCommandError = async (output, co
1501
1522
  case "ResourceNotFoundException":
1502
1523
  case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
1503
1524
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1525
+ case "ServiceQuotaExceededException":
1526
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
1527
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1504
1528
  case "ValidationException":
1505
1529
  case "com.amazonaws.opensearchserverless#ValidationException":
1506
1530
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -1572,6 +1596,15 @@ const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutpu
1572
1596
  });
1573
1597
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1574
1598
  };
1599
+ const deserializeAws_json1_0OcuLimitExceededExceptionResponse = async (parsedOutput, context) => {
1600
+ const body = parsedOutput.body;
1601
+ const deserialized = deserializeAws_json1_0OcuLimitExceededException(body, context);
1602
+ const exception = new models_0_1.OcuLimitExceededException({
1603
+ $metadata: deserializeMetadata(parsedOutput),
1604
+ ...deserialized,
1605
+ });
1606
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1607
+ };
1575
1608
  const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1576
1609
  const body = parsedOutput.body;
1577
1610
  const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
@@ -1581,6 +1614,15 @@ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOut
1581
1614
  });
1582
1615
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1583
1616
  };
1617
+ const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1618
+ const body = parsedOutput.body;
1619
+ const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
1620
+ const exception = new models_0_1.ServiceQuotaExceededException({
1621
+ $metadata: deserializeMetadata(parsedOutput),
1622
+ ...deserialized,
1623
+ });
1624
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1625
+ };
1584
1626
  const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
1585
1627
  const body = parsedOutput.body;
1586
1628
  const deserialized = deserializeAws_json1_0ValidationException(body, context);
@@ -2232,6 +2274,11 @@ const deserializeAws_json1_0ListVpcEndpointsResponse = (output, context) => {
2232
2274
  : undefined,
2233
2275
  };
2234
2276
  };
2277
+ const deserializeAws_json1_0OcuLimitExceededException = (output, context) => {
2278
+ return {
2279
+ message: (0, smithy_client_1.expectString)(output.message),
2280
+ };
2281
+ };
2235
2282
  const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
2236
2283
  return {
2237
2284
  message: (0, smithy_client_1.expectString)(output.message),
@@ -2331,6 +2378,15 @@ const deserializeAws_json1_0SecurityPolicySummary = (output, context) => {
2331
2378
  type: (0, smithy_client_1.expectString)(output.type),
2332
2379
  };
2333
2380
  };
2381
+ const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
2382
+ return {
2383
+ message: (0, smithy_client_1.expectString)(output.message),
2384
+ quotaCode: (0, smithy_client_1.expectString)(output.quotaCode),
2385
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
2386
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2387
+ serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
2388
+ };
2389
+ };
2334
2390
  const deserializeAws_json1_0SubnetIds = (output, context) => {
2335
2391
  const retVal = (output || [])
2336
2392
  .filter((e) => e != null)
@@ -1,4 +1,4 @@
1
- const r = "fn", s = "argv", t = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -27,6 +27,22 @@ export class InternalServerException extends __BaseException {
27
27
  Object.setPrototypeOf(this, InternalServerException.prototype);
28
28
  }
29
29
  }
30
+ export class ServiceQuotaExceededException extends __BaseException {
31
+ constructor(opts) {
32
+ super({
33
+ name: "ServiceQuotaExceededException",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ this.name = "ServiceQuotaExceededException";
38
+ this.$fault = "client";
39
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
40
+ this.resourceId = opts.resourceId;
41
+ this.resourceType = opts.resourceType;
42
+ this.serviceCode = opts.serviceCode;
43
+ this.quotaCode = opts.quotaCode;
44
+ }
45
+ }
30
46
  export class ValidationException extends __BaseException {
31
47
  constructor(opts) {
32
48
  super({
@@ -70,6 +86,18 @@ export var VpcEndpointStatus;
70
86
  VpcEndpointStatus["FAILED"] = "FAILED";
71
87
  VpcEndpointStatus["PENDING"] = "PENDING";
72
88
  })(VpcEndpointStatus || (VpcEndpointStatus = {}));
89
+ export class OcuLimitExceededException extends __BaseException {
90
+ constructor(opts) {
91
+ super({
92
+ name: "OcuLimitExceededException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ this.name = "OcuLimitExceededException";
97
+ this.$fault = "client";
98
+ Object.setPrototypeOf(this, OcuLimitExceededException.prototype);
99
+ }
100
+ }
73
101
  export var SecurityConfigType;
74
102
  (function (SecurityConfigType) {
75
103
  SecurityConfigType["saml"] = "saml";
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
- import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
4
+ import { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
5
5
  import { OpenSearchServerlessServiceException as __BaseException } from "../models/OpenSearchServerlessServiceException";
6
6
  export const serializeAws_json1_0BatchGetCollectionCommand = async (input, context) => {
7
7
  const headers = {
@@ -380,6 +380,9 @@ const deserializeAws_json1_0CreateAccessPolicyCommandError = async (output, cont
380
380
  case "InternalServerException":
381
381
  case "com.amazonaws.opensearchserverless#InternalServerException":
382
382
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
383
+ case "ServiceQuotaExceededException":
384
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
385
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
383
386
  case "ValidationException":
384
387
  case "com.amazonaws.opensearchserverless#ValidationException":
385
388
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -419,6 +422,12 @@ const deserializeAws_json1_0CreateCollectionCommandError = async (output, contex
419
422
  case "InternalServerException":
420
423
  case "com.amazonaws.opensearchserverless#InternalServerException":
421
424
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
425
+ case "OcuLimitExceededException":
426
+ case "com.amazonaws.opensearchserverless#OcuLimitExceededException":
427
+ throw await deserializeAws_json1_0OcuLimitExceededExceptionResponse(parsedOutput, context);
428
+ case "ServiceQuotaExceededException":
429
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
430
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
422
431
  case "ValidationException":
423
432
  case "com.amazonaws.opensearchserverless#ValidationException":
424
433
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -458,6 +467,9 @@ const deserializeAws_json1_0CreateSecurityConfigCommandError = async (output, co
458
467
  case "InternalServerException":
459
468
  case "com.amazonaws.opensearchserverless#InternalServerException":
460
469
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
470
+ case "ServiceQuotaExceededException":
471
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
472
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
461
473
  case "ValidationException":
462
474
  case "com.amazonaws.opensearchserverless#ValidationException":
463
475
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -497,6 +509,9 @@ const deserializeAws_json1_0CreateSecurityPolicyCommandError = async (output, co
497
509
  case "InternalServerException":
498
510
  case "com.amazonaws.opensearchserverless#InternalServerException":
499
511
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
512
+ case "ServiceQuotaExceededException":
513
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
514
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
500
515
  case "ValidationException":
501
516
  case "com.amazonaws.opensearchserverless#ValidationException":
502
517
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -536,6 +551,9 @@ const deserializeAws_json1_0CreateVpcEndpointCommandError = async (output, conte
536
551
  case "InternalServerException":
537
552
  case "com.amazonaws.opensearchserverless#InternalServerException":
538
553
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
554
+ case "ServiceQuotaExceededException":
555
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
556
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
539
557
  case "ValidationException":
540
558
  case "com.amazonaws.opensearchserverless#ValidationException":
541
559
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -1193,6 +1211,9 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
1193
1211
  case "ResourceNotFoundException":
1194
1212
  case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
1195
1213
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1214
+ case "ServiceQuotaExceededException":
1215
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
1216
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1196
1217
  case "ValidationException":
1197
1218
  case "com.amazonaws.opensearchserverless#ValidationException":
1198
1219
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -1436,6 +1457,9 @@ const deserializeAws_json1_0UpdateSecurityPolicyCommandError = async (output, co
1436
1457
  case "ResourceNotFoundException":
1437
1458
  case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
1438
1459
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1460
+ case "ServiceQuotaExceededException":
1461
+ case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
1462
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1439
1463
  case "ValidationException":
1440
1464
  case "com.amazonaws.opensearchserverless#ValidationException":
1441
1465
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
@@ -1506,6 +1530,15 @@ const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutpu
1506
1530
  });
1507
1531
  return __decorateServiceException(exception, body);
1508
1532
  };
1533
+ const deserializeAws_json1_0OcuLimitExceededExceptionResponse = async (parsedOutput, context) => {
1534
+ const body = parsedOutput.body;
1535
+ const deserialized = deserializeAws_json1_0OcuLimitExceededException(body, context);
1536
+ const exception = new OcuLimitExceededException({
1537
+ $metadata: deserializeMetadata(parsedOutput),
1538
+ ...deserialized,
1539
+ });
1540
+ return __decorateServiceException(exception, body);
1541
+ };
1509
1542
  const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1510
1543
  const body = parsedOutput.body;
1511
1544
  const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
@@ -1515,6 +1548,15 @@ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOut
1515
1548
  });
1516
1549
  return __decorateServiceException(exception, body);
1517
1550
  };
1551
+ const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
1552
+ const body = parsedOutput.body;
1553
+ const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
1554
+ const exception = new ServiceQuotaExceededException({
1555
+ $metadata: deserializeMetadata(parsedOutput),
1556
+ ...deserialized,
1557
+ });
1558
+ return __decorateServiceException(exception, body);
1559
+ };
1518
1560
  const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
1519
1561
  const body = parsedOutput.body;
1520
1562
  const deserialized = deserializeAws_json1_0ValidationException(body, context);
@@ -2166,6 +2208,11 @@ const deserializeAws_json1_0ListVpcEndpointsResponse = (output, context) => {
2166
2208
  : undefined,
2167
2209
  };
2168
2210
  };
2211
+ const deserializeAws_json1_0OcuLimitExceededException = (output, context) => {
2212
+ return {
2213
+ message: __expectString(output.message),
2214
+ };
2215
+ };
2169
2216
  const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
2170
2217
  return {
2171
2218
  message: __expectString(output.message),
@@ -2265,6 +2312,15 @@ const deserializeAws_json1_0SecurityPolicySummary = (output, context) => {
2265
2312
  type: __expectString(output.type),
2266
2313
  };
2267
2314
  };
2315
+ const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
2316
+ return {
2317
+ message: __expectString(output.message),
2318
+ quotaCode: __expectString(output.quotaCode),
2319
+ resourceId: __expectString(output.resourceId),
2320
+ resourceType: __expectString(output.resourceType),
2321
+ serviceCode: __expectString(output.serviceCode),
2322
+ };
2323
+ };
2268
2324
  const deserializeAws_json1_0SubnetIds = (output, context) => {
2269
2325
  const retVal = (output || [])
2270
2326
  .filter((e) => e != null)
@@ -35,12 +35,12 @@ import { OpenSearchServerlessClient } from "./OpenSearchServerlessClient";
35
35
  * @public
36
36
  * <p>Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and
37
37
  * security policies.</p>
38
- * <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
38
+ * <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
39
39
  * Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning,
40
40
  * configuring, and tuning your OpenSearch clusters. It enables you to easily search and
41
41
  * analyze petabytes of data without having to worry about the underlying infrastructure
42
42
  * and data management.</p>
43
- * <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
43
+ * <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
44
44
  * Amazon OpenSearch Serverless?</a>
45
45
  * </p>
46
46
  */
@@ -202,10 +202,10 @@ export declare class OpenSearchServerless extends OpenSearchServerlessClient {
202
202
  * @public
203
203
  * <p>Lists all OpenSearch Serverless collections. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
204
204
  * managing Amazon OpenSearch Serverless collections</a>.</p>
205
- * <note>
205
+ * <note>
206
206
  * <p>Make sure to include an empty request body \{\} if you don't include any collection
207
207
  * filters in the request.</p>
208
- * </note>
208
+ * </note>
209
209
  */
210
210
  listCollections(args: ListCollectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCollectionsCommandOutput>;
211
211
  listCollections(args: ListCollectionsCommandInput, cb: (err: any, data?: ListCollectionsCommandOutput) => void): void;
@@ -267,7 +267,7 @@ export declare class OpenSearchServerless extends OpenSearchServerlessClient {
267
267
  /**
268
268
  * @public
269
269
  * <p>Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more
270
- * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
270
+ * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing capacity limits for Amazon OpenSearch Serverless</a>.</p>
271
271
  */
272
272
  updateAccountSettings(args: UpdateAccountSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccountSettingsCommandOutput>;
273
273
  updateAccountSettings(args: UpdateAccountSettingsCommandInput, cb: (err: any, data?: UpdateAccountSettingsCommandOutput) => void): void;
@@ -176,12 +176,12 @@ export interface OpenSearchServerlessClientResolvedConfig extends OpenSearchServ
176
176
  * @public
177
177
  * <p>Use the Amazon OpenSearch Serverless API to create, configure, and manage OpenSearch Serverless collections and
178
178
  * security policies.</p>
179
- * <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
179
+ * <p>OpenSearch Serverless is an on-demand, pre-provisioned serverless configuration for
180
180
  * Amazon OpenSearch Service. OpenSearch Serverless removes the operational complexities of provisioning,
181
181
  * configuring, and tuning your OpenSearch clusters. It enables you to easily search and
182
182
  * analyze petabytes of data without having to worry about the underlying infrastructure
183
183
  * and data management.</p>
184
- * <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
184
+ * <p> To learn more about OpenSearch Serverless, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html">What is
185
185
  * Amazon OpenSearch Serverless?</a>
186
186
  * </p>
187
187
  */
@@ -47,13 +47,16 @@ export interface CreateAccessPolicyCommandOutput extends CreateAccessPolicyRespo
47
47
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
48
48
  *
49
49
  * @throws {@link ConflictException} (client fault)
50
- * <p>When creating a collection, thrown when a collection with the same name already exists
51
- * or is being created. When deleting a collection, thrown when the collection is not in
50
+ * <p>When creating a resource, thrown when a resource with the same name already exists
51
+ * or is being created. When deleting a resource, thrown when the resource is not in
52
52
  * the ACTIVE or FAILED state.</p>
53
53
  *
54
54
  * @throws {@link InternalServerException} (server fault)
55
55
  * <p>Thrown when an error internal to the service occurs while processing a request.</p>
56
56
  *
57
+ * @throws {@link ServiceQuotaExceededException} (client fault)
58
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
59
+ *
57
60
  * @throws {@link ValidationException} (client fault)
58
61
  * <p>Thrown when the HTTP request contains invalid input or is missing required
59
62
  * input.</p>
@@ -50,13 +50,19 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
50
50
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
51
51
  *
52
52
  * @throws {@link ConflictException} (client fault)
53
- * <p>When creating a collection, thrown when a collection with the same name already exists
54
- * or is being created. When deleting a collection, thrown when the collection is not in
53
+ * <p>When creating a resource, thrown when a resource with the same name already exists
54
+ * or is being created. When deleting a resource, thrown when the resource is not in
55
55
  * the ACTIVE or FAILED state.</p>
56
56
  *
57
57
  * @throws {@link InternalServerException} (server fault)
58
58
  * <p>Thrown when an error internal to the service occurs while processing a request.</p>
59
59
  *
60
+ * @throws {@link OcuLimitExceededException} (client fault)
61
+ * OCU Limit Exceeded for service limits
62
+ *
63
+ * @throws {@link ServiceQuotaExceededException} (client fault)
64
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
65
+ *
60
66
  * @throws {@link ValidationException} (client fault)
61
67
  * <p>Thrown when the HTTP request contains invalid input or is missing required
62
68
  * input.</p>
@@ -51,13 +51,16 @@ export interface CreateSecurityConfigCommandOutput extends CreateSecurityConfigR
51
51
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
52
52
  *
53
53
  * @throws {@link ConflictException} (client fault)
54
- * <p>When creating a collection, thrown when a collection with the same name already exists
55
- * or is being created. When deleting a collection, thrown when the collection is not in
54
+ * <p>When creating a resource, thrown when a resource with the same name already exists
55
+ * or is being created. When deleting a resource, thrown when the resource is not in
56
56
  * the ACTIVE or FAILED state.</p>
57
57
  *
58
58
  * @throws {@link InternalServerException} (server fault)
59
59
  * <p>Thrown when an error internal to the service occurs while processing a request.</p>
60
60
  *
61
+ * @throws {@link ServiceQuotaExceededException} (client fault)
62
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
63
+ *
61
64
  * @throws {@link ValidationException} (client fault)
62
65
  * <p>Thrown when the HTTP request contains invalid input or is missing required
63
66
  * input.</p>
@@ -49,13 +49,16 @@ export interface CreateSecurityPolicyCommandOutput extends CreateSecurityPolicyR
49
49
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
50
50
  *
51
51
  * @throws {@link ConflictException} (client fault)
52
- * <p>When creating a collection, thrown when a collection with the same name already exists
53
- * or is being created. When deleting a collection, thrown when the collection is not in
52
+ * <p>When creating a resource, thrown when a resource with the same name already exists
53
+ * or is being created. When deleting a resource, thrown when the resource is not in
54
54
  * the ACTIVE or FAILED state.</p>
55
55
  *
56
56
  * @throws {@link InternalServerException} (server fault)
57
57
  * <p>Thrown when an error internal to the service occurs while processing a request.</p>
58
58
  *
59
+ * @throws {@link ServiceQuotaExceededException} (client fault)
60
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
61
+ *
59
62
  * @throws {@link ValidationException} (client fault)
60
63
  * <p>Thrown when the HTTP request contains invalid input or is missing required
61
64
  * input.</p>
@@ -49,13 +49,16 @@ export interface CreateVpcEndpointCommandOutput extends CreateVpcEndpointRespons
49
49
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
50
50
  *
51
51
  * @throws {@link ConflictException} (client fault)
52
- * <p>When creating a collection, thrown when a collection with the same name already exists
53
- * or is being created. When deleting a collection, thrown when the collection is not in
52
+ * <p>When creating a resource, thrown when a resource with the same name already exists
53
+ * or is being created. When deleting a resource, thrown when the resource is not in
54
54
  * the ACTIVE or FAILED state.</p>
55
55
  *
56
56
  * @throws {@link InternalServerException} (server fault)
57
57
  * <p>Thrown when an error internal to the service occurs while processing a request.</p>
58
58
  *
59
+ * @throws {@link ServiceQuotaExceededException} (client fault)
60
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
61
+ *
59
62
  * @throws {@link ValidationException} (client fault)
60
63
  * <p>Thrown when the HTTP request contains invalid input or is missing required
61
64
  * input.</p>
@@ -43,8 +43,8 @@ export interface DeleteAccessPolicyCommandOutput extends DeleteAccessPolicyRespo
43
43
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
44
44
  *
45
45
  * @throws {@link ConflictException} (client fault)
46
- * <p>When creating a collection, thrown when a collection with the same name already exists
47
- * or is being created. When deleting a collection, thrown when the collection is not in
46
+ * <p>When creating a resource, thrown when a resource with the same name already exists
47
+ * or is being created. When deleting a resource, thrown when the resource is not in
48
48
  * the ACTIVE or FAILED state.</p>
49
49
  *
50
50
  * @throws {@link InternalServerException} (server fault)
@@ -42,8 +42,8 @@ export interface DeleteCollectionCommandOutput extends DeleteCollectionResponse,
42
42
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
43
43
  *
44
44
  * @throws {@link ConflictException} (client fault)
45
- * <p>When creating a collection, thrown when a collection with the same name already exists
46
- * or is being created. When deleting a collection, thrown when the collection is not in
45
+ * <p>When creating a resource, thrown when a resource with the same name already exists
46
+ * or is being created. When deleting a resource, thrown when the resource is not in
47
47
  * the ACTIVE or FAILED state.</p>
48
48
  *
49
49
  * @throws {@link InternalServerException} (server fault)
@@ -43,8 +43,8 @@ export interface DeleteSecurityConfigCommandOutput extends DeleteSecurityConfigR
43
43
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
44
44
  *
45
45
  * @throws {@link ConflictException} (client fault)
46
- * <p>When creating a collection, thrown when a collection with the same name already exists
47
- * or is being created. When deleting a collection, thrown when the collection is not in
46
+ * <p>When creating a resource, thrown when a resource with the same name already exists
47
+ * or is being created. When deleting a resource, thrown when the resource is not in
48
48
  * the ACTIVE or FAILED state.</p>
49
49
  *
50
50
  * @throws {@link InternalServerException} (server fault)
@@ -42,8 +42,8 @@ export interface DeleteSecurityPolicyCommandOutput extends DeleteSecurityPolicyR
42
42
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
43
43
  *
44
44
  * @throws {@link ConflictException} (client fault)
45
- * <p>When creating a collection, thrown when a collection with the same name already exists
46
- * or is being created. When deleting a collection, thrown when the collection is not in
45
+ * <p>When creating a resource, thrown when a resource with the same name already exists
46
+ * or is being created. When deleting a resource, thrown when the resource is not in
47
47
  * the ACTIVE or FAILED state.</p>
48
48
  *
49
49
  * @throws {@link InternalServerException} (server fault)
@@ -42,8 +42,8 @@ export interface DeleteVpcEndpointCommandOutput extends DeleteVpcEndpointRespons
42
42
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
43
43
  *
44
44
  * @throws {@link ConflictException} (client fault)
45
- * <p>When creating a collection, thrown when a collection with the same name already exists
46
- * or is being created. When deleting a collection, thrown when the collection is not in
45
+ * <p>When creating a resource, thrown when a resource with the same name already exists
46
+ * or is being created. When deleting a resource, thrown when the resource is not in
47
47
  * the ACTIVE or FAILED state.</p>
48
48
  *
49
49
  * @throws {@link InternalServerException} (server fault)
@@ -21,10 +21,10 @@ export interface ListCollectionsCommandOutput extends ListCollectionsResponse, _
21
21
  * @public
22
22
  * <p>Lists all OpenSearch Serverless collections. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html">Creating and
23
23
  * managing Amazon OpenSearch Serverless collections</a>.</p>
24
- * <note>
24
+ * <note>
25
25
  * <p>Make sure to include an empty request body \{\} if you don't include any collection
26
26
  * filters in the request.</p>
27
- * </note>
27
+ * </note>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -46,8 +46,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
46
46
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
47
47
  *
48
48
  * @throws {@link ConflictException} (client fault)
49
- * <p>When creating a collection, thrown when a collection with the same name already exists
50
- * or is being created. When deleting a collection, thrown when the collection is not in
49
+ * <p>When creating a resource, thrown when a resource with the same name already exists
50
+ * or is being created. When deleting a resource, thrown when the resource is not in
51
51
  * the ACTIVE or FAILED state.</p>
52
52
  *
53
53
  * @throws {@link InternalServerException} (server fault)
@@ -56,6 +56,9 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
56
56
  * @throws {@link ResourceNotFoundException} (client fault)
57
57
  * <p>Thrown when accessing or deleting a resource that does not exist.</p>
58
58
  *
59
+ * @throws {@link ServiceQuotaExceededException} (client fault)
60
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
61
+ *
59
62
  * @throws {@link ValidationException} (client fault)
60
63
  * <p>Thrown when the HTTP request contains invalid input or is missing required
61
64
  * input.</p>
@@ -43,8 +43,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
43
43
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
44
44
  *
45
45
  * @throws {@link ConflictException} (client fault)
46
- * <p>When creating a collection, thrown when a collection with the same name already exists
47
- * or is being created. When deleting a collection, thrown when the collection is not in
46
+ * <p>When creating a resource, thrown when a resource with the same name already exists
47
+ * or is being created. When deleting a resource, thrown when the resource is not in
48
48
  * the ACTIVE or FAILED state.</p>
49
49
  *
50
50
  * @throws {@link InternalServerException} (server fault)
@@ -46,8 +46,8 @@ export interface UpdateAccessPolicyCommandOutput extends UpdateAccessPolicyRespo
46
46
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
47
47
  *
48
48
  * @throws {@link ConflictException} (client fault)
49
- * <p>When creating a collection, thrown when a collection with the same name already exists
50
- * or is being created. When deleting a collection, thrown when the collection is not in
49
+ * <p>When creating a resource, thrown when a resource with the same name already exists
50
+ * or is being created. When deleting a resource, thrown when the resource is not in
51
51
  * the ACTIVE or FAILED state.</p>
52
52
  *
53
53
  * @throws {@link InternalServerException} (server fault)
@@ -20,7 +20,7 @@ export interface UpdateAccountSettingsCommandOutput extends UpdateAccountSetting
20
20
  /**
21
21
  * @public
22
22
  * <p>Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more
23
- * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
23
+ * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing capacity limits for Amazon OpenSearch Serverless</a>.</p>
24
24
  * @example
25
25
  * Use a bare-bones client and the command you need to make an API call.
26
26
  * ```javascript
@@ -42,8 +42,8 @@ export interface UpdateCollectionCommandOutput extends UpdateCollectionResponse,
42
42
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
43
43
  *
44
44
  * @throws {@link ConflictException} (client fault)
45
- * <p>When creating a collection, thrown when a collection with the same name already exists
46
- * or is being created. When deleting a collection, thrown when the collection is not in
45
+ * <p>When creating a resource, thrown when a resource with the same name already exists
46
+ * or is being created. When deleting a resource, thrown when the resource is not in
47
47
  * the ACTIVE or FAILED state.</p>
48
48
  *
49
49
  * @throws {@link InternalServerException} (server fault)
@@ -51,8 +51,8 @@ export interface UpdateSecurityConfigCommandOutput extends UpdateSecurityConfigR
51
51
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
52
52
  *
53
53
  * @throws {@link ConflictException} (client fault)
54
- * <p>When creating a collection, thrown when a collection with the same name already exists
55
- * or is being created. When deleting a collection, thrown when the collection is not in
54
+ * <p>When creating a resource, thrown when a resource with the same name already exists
55
+ * or is being created. When deleting a resource, thrown when the resource is not in
56
56
  * the ACTIVE or FAILED state.</p>
57
57
  *
58
58
  * @throws {@link InternalServerException} (server fault)
@@ -47,8 +47,8 @@ export interface UpdateSecurityPolicyCommandOutput extends UpdateSecurityPolicyR
47
47
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
48
48
  *
49
49
  * @throws {@link ConflictException} (client fault)
50
- * <p>When creating a collection, thrown when a collection with the same name already exists
51
- * or is being created. When deleting a collection, thrown when the collection is not in
50
+ * <p>When creating a resource, thrown when a resource with the same name already exists
51
+ * or is being created. When deleting a resource, thrown when the resource is not in
52
52
  * the ACTIVE or FAILED state.</p>
53
53
  *
54
54
  * @throws {@link InternalServerException} (server fault)
@@ -57,6 +57,9 @@ export interface UpdateSecurityPolicyCommandOutput extends UpdateSecurityPolicyR
57
57
  * @throws {@link ResourceNotFoundException} (client fault)
58
58
  * <p>Thrown when accessing or deleting a resource that does not exist.</p>
59
59
  *
60
+ * @throws {@link ServiceQuotaExceededException} (client fault)
61
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
62
+ *
60
63
  * @throws {@link ValidationException} (client fault)
61
64
  * <p>Thrown when the HTTP request contains invalid input or is missing required
62
65
  * input.</p>
@@ -54,8 +54,8 @@ export interface UpdateVpcEndpointCommandOutput extends UpdateVpcEndpointRespons
54
54
  * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
55
55
  *
56
56
  * @throws {@link ConflictException} (client fault)
57
- * <p>When creating a collection, thrown when a collection with the same name already exists
58
- * or is being created. When deleting a collection, thrown when the collection is not in
57
+ * <p>When creating a resource, thrown when a resource with the same name already exists
58
+ * or is being created. When deleting a resource, thrown when the resource is not in
59
59
  * the ACTIVE or FAILED state.</p>
60
60
  *
61
61
  * @throws {@link InternalServerException} (server fault)
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -12,8 +12,8 @@ export declare enum AccessPolicyType {
12
12
  }
13
13
  /**
14
14
  * @public
15
- * <p>When creating a collection, thrown when a collection with the same name already exists
16
- * or is being created. When deleting a collection, thrown when the collection is not in
15
+ * <p>When creating a resource, thrown when a resource with the same name already exists
16
+ * or is being created. When deleting a resource, thrown when the resource is not in
17
17
  * the ACTIVE or FAILED state.</p>
18
18
  */
19
19
  export declare class ConflictException extends __BaseException {
@@ -105,6 +105,34 @@ export declare class InternalServerException extends __BaseException {
105
105
  */
106
106
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
107
107
  }
108
+ /**
109
+ * @public
110
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
111
+ */
112
+ export declare class ServiceQuotaExceededException extends __BaseException {
113
+ readonly name: "ServiceQuotaExceededException";
114
+ readonly $fault: "client";
115
+ /**
116
+ * Identifier of the resource affected.
117
+ */
118
+ resourceId?: string;
119
+ /**
120
+ * Type of the resource affected.
121
+ */
122
+ resourceType?: string;
123
+ /**
124
+ * Service Quotas requirement to identify originating service.
125
+ */
126
+ serviceCode: string | undefined;
127
+ /**
128
+ * Service Quotas requirement to identify originating quota.
129
+ */
130
+ quotaCode?: string;
131
+ /**
132
+ * @internal
133
+ */
134
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
135
+ }
108
136
  /**
109
137
  * @public
110
138
  * <p>Thrown when the HTTP request contains invalid input or is missing required
@@ -183,7 +211,7 @@ export interface ListAccessPoliciesRequest {
183
211
  */
184
212
  type: AccessPolicyType | string | undefined;
185
213
  /**
186
- * <p>Resource filters (can be collection or indexes) that policies can apply to.</p>
214
+ * <p>Resource filters (can be collections or indexes) that policies can apply to.</p>
187
215
  */
188
216
  resource?: string[];
189
217
  /**
@@ -297,7 +325,8 @@ export interface AccessPolicyStats {
297
325
  * @public
298
326
  * <p>The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units
299
327
  * (OCUs). These limits are used to scale your collections based on the current workload.
300
- * For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
328
+ * For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing
329
+ * capacity limits for Amazon OpenSearch Serverless</a>.</p>
301
330
  */
302
331
  export interface CapacityLimits {
303
332
  /**
@@ -317,7 +346,8 @@ export interface AccountSettingsDetail {
317
346
  /**
318
347
  * <p>The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units
319
348
  * (OCUs). These limits are used to scale your collections based on the current workload.
320
- * For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
349
+ * For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing
350
+ * capacity limits for Amazon OpenSearch Serverless</a>.</p>
321
351
  */
322
352
  capacityLimits?: CapacityLimits;
323
353
  }
@@ -504,7 +534,7 @@ export interface VpcEndpointDetail {
504
534
  */
505
535
  name?: string;
506
536
  /**
507
- * <p>The ID of the VPC from which you access OpenSearch Serverless</p>
537
+ * <p>The ID of the VPC from which you access OpenSearch Serverless.</p>
508
538
  */
509
539
  vpcId?: string;
510
540
  /**
@@ -646,6 +676,18 @@ export interface CreateCollectionResponse {
646
676
  */
647
677
  createCollectionDetail?: CreateCollectionDetail;
648
678
  }
679
+ /**
680
+ * @public
681
+ * OCU Limit Exceeded for service limits
682
+ */
683
+ export declare class OcuLimitExceededException extends __BaseException {
684
+ readonly name: "OcuLimitExceededException";
685
+ readonly $fault: "client";
686
+ /**
687
+ * @internal
688
+ */
689
+ constructor(opts: __ExceptionOptionType<OcuLimitExceededException, __BaseException>);
690
+ }
649
691
  /**
650
692
  * @public
651
693
  */
@@ -842,8 +884,7 @@ export interface SamlConfigOptions {
842
884
  */
843
885
  groupAttribute?: string;
844
886
  /**
845
- * <p>The session timeout, in minutes. Minimum is 15 minutes and maximum is 1440 minutes (24
846
- * hours or 1 day). Default is 60 minutes.</p>
887
+ * <p>The session timeout, in minutes. Default is 60 minutes (12 hours).</p>
847
888
  */
848
889
  sessionTimeout?: number;
849
890
  }
@@ -873,7 +914,8 @@ export interface CreateSecurityConfigRequest {
873
914
  */
874
915
  description?: string;
875
916
  /**
876
- * <p>Describes SAML options in in the form of a key-value map.</p>
917
+ * <p>Describes SAML options in in the form of a key-value map. This field is required if
918
+ * you specify <code>saml</code> for the <code>type</code> parameter.</p>
877
919
  */
878
920
  samlOptions?: SamlConfigOptions;
879
921
  /**
@@ -1595,7 +1637,8 @@ export interface UpdateAccountSettingsRequest {
1595
1637
  /**
1596
1638
  * <p>The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units
1597
1639
  * (OCUs). These limits are used to scale your collections based on the current workload.
1598
- * For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-overview.html#serverless-scaling">Autoscaling</a>.</p>
1640
+ * For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html">Managing
1641
+ * capacity limits for Amazon OpenSearch Serverless</a>.</p>
1599
1642
  */
1600
1643
  capacityLimits?: CapacityLimits;
1601
1644
  }
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
26
26
  defaultSigningName: string;
27
27
  };
28
28
  export interface EndpointParameters extends __EndpointParameters {
29
- Region: string;
29
+ Region?: string;
30
30
  UseDualStack?: boolean;
31
31
  UseFIPS?: boolean;
32
32
  Endpoint?: string;
@@ -35,6 +35,17 @@ export declare class InternalServerException extends __BaseException {
35
35
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
36
36
  );
37
37
  }
38
+ export declare class ServiceQuotaExceededException extends __BaseException {
39
+ readonly name: "ServiceQuotaExceededException";
40
+ readonly $fault: "client";
41
+ resourceId?: string;
42
+ resourceType?: string;
43
+ serviceCode: string | undefined;
44
+ quotaCode?: string;
45
+ constructor(
46
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
47
+ );
48
+ }
38
49
  export declare class ValidationException extends __BaseException {
39
50
  readonly name: "ValidationException";
40
51
  readonly $fault: "client";
@@ -190,6 +201,13 @@ export interface CreateCollectionDetail {
190
201
  export interface CreateCollectionResponse {
191
202
  createCollectionDetail?: CreateCollectionDetail;
192
203
  }
204
+ export declare class OcuLimitExceededException extends __BaseException {
205
+ readonly name: "OcuLimitExceededException";
206
+ readonly $fault: "client";
207
+ constructor(
208
+ opts: __ExceptionOptionType<OcuLimitExceededException, __BaseException>
209
+ );
210
+ }
193
211
  export interface DeleteCollectionRequest {
194
212
  id: string | undefined;
195
213
  clientToken?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearchserverless",
3
3
  "description": "AWS SDK for JavaScript Opensearchserverless Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.302.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",