@aws-sdk/client-opensearchserverless 3.300.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 (42) 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/BatchGetCollectionCommand.d.ts +3 -3
  10. package/dist-types/commands/BatchGetVpcEndpointCommand.d.ts +2 -2
  11. package/dist-types/commands/CreateAccessPolicyCommand.d.ts +6 -3
  12. package/dist-types/commands/CreateCollectionCommand.d.ts +11 -5
  13. package/dist-types/commands/CreateSecurityConfigCommand.d.ts +7 -4
  14. package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +6 -3
  15. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +8 -5
  16. package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +3 -3
  17. package/dist-types/commands/DeleteCollectionCommand.d.ts +3 -3
  18. package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +3 -3
  19. package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +3 -3
  20. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +3 -3
  21. package/dist-types/commands/GetAccessPolicyCommand.d.ts +1 -1
  22. package/dist-types/commands/GetSecurityConfigCommand.d.ts +1 -1
  23. package/dist-types/commands/GetSecurityPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/ListAccessPoliciesCommand.d.ts +2 -2
  25. package/dist-types/commands/ListCollectionsCommand.d.ts +4 -4
  26. package/dist-types/commands/ListSecurityConfigsCommand.d.ts +1 -1
  27. package/dist-types/commands/ListSecurityPoliciesCommand.d.ts +2 -2
  28. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  29. package/dist-types/commands/ListVpcEndpointsCommand.d.ts +2 -2
  30. package/dist-types/commands/TagResourceCommand.d.ts +8 -5
  31. package/dist-types/commands/UntagResourceCommand.d.ts +4 -4
  32. package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +3 -3
  33. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +3 -3
  34. package/dist-types/commands/UpdateCollectionCommand.d.ts +3 -3
  35. package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +4 -4
  36. package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +6 -3
  37. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +5 -5
  38. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  39. package/dist-types/models/models_0.d.ts +53 -10
  40. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  41. package/dist-types/ts3.4/models/models_0.d.ts +18 -0
  42. package/package.json +3 -3
@@ -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
  */
@@ -28,11 +28,11 @@ export interface BatchGetCollectionCommandOutput extends BatchGetCollectionRespo
28
28
  * import { OpenSearchServerlessClient, BatchGetCollectionCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
29
29
  * // const { OpenSearchServerlessClient, BatchGetCollectionCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
30
30
  * const client = new OpenSearchServerlessClient(config);
31
- * const input = {
32
- * ids: [
31
+ * const input = { // BatchGetCollectionRequest
32
+ * ids: [ // CollectionIds
33
33
  * "STRING_VALUE",
34
34
  * ],
35
- * names: [
35
+ * names: [ // CollectionNames
36
36
  * "STRING_VALUE",
37
37
  * ],
38
38
  * };
@@ -28,8 +28,8 @@ export interface BatchGetVpcEndpointCommandOutput extends BatchGetVpcEndpointRes
28
28
  * import { OpenSearchServerlessClient, BatchGetVpcEndpointCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
29
29
  * // const { OpenSearchServerlessClient, BatchGetVpcEndpointCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
30
30
  * const client = new OpenSearchServerlessClient(config);
31
- * const input = {
32
- * ids: [ // required
31
+ * const input = { // BatchGetVpcEndpointRequest
32
+ * ids: [ // VpcEndpointIds // required
33
33
  * "STRING_VALUE",
34
34
  * ],
35
35
  * };
@@ -29,7 +29,7 @@ export interface CreateAccessPolicyCommandOutput extends CreateAccessPolicyRespo
29
29
  * import { OpenSearchServerlessClient, CreateAccessPolicyCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
30
30
  * // const { OpenSearchServerlessClient, CreateAccessPolicyCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
31
31
  * const client = new OpenSearchServerlessClient(config);
32
- * const input = {
32
+ * const input = { // CreateAccessPolicyRequest
33
33
  * type: "STRING_VALUE", // required
34
34
  * name: "STRING_VALUE", // required
35
35
  * description: "STRING_VALUE",
@@ -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>
@@ -27,12 +27,12 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
27
27
  * import { OpenSearchServerlessClient, CreateCollectionCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
28
28
  * // const { OpenSearchServerlessClient, CreateCollectionCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
29
29
  * const client = new OpenSearchServerlessClient(config);
30
- * const input = {
30
+ * const input = { // CreateCollectionRequest
31
31
  * name: "STRING_VALUE", // required
32
32
  * type: "STRING_VALUE",
33
33
  * description: "STRING_VALUE",
34
- * tags: [
35
- * {
34
+ * tags: [ // Tags
35
+ * { // Tag
36
36
  * key: "STRING_VALUE", // required
37
37
  * value: "STRING_VALUE", // required
38
38
  * },
@@ -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>
@@ -28,11 +28,11 @@ export interface CreateSecurityConfigCommandOutput extends CreateSecurityConfigR
28
28
  * import { OpenSearchServerlessClient, CreateSecurityConfigCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
29
29
  * // const { OpenSearchServerlessClient, CreateSecurityConfigCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
30
30
  * const client = new OpenSearchServerlessClient(config);
31
- * const input = {
31
+ * const input = { // CreateSecurityConfigRequest
32
32
  * type: "STRING_VALUE", // required
33
33
  * name: "STRING_VALUE", // required
34
34
  * description: "STRING_VALUE",
35
- * samlOptions: {
35
+ * samlOptions: { // SamlConfigOptions
36
36
  * metadata: "STRING_VALUE", // required
37
37
  * userAttribute: "STRING_VALUE",
38
38
  * groupAttribute: "STRING_VALUE",
@@ -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>
@@ -31,7 +31,7 @@ export interface CreateSecurityPolicyCommandOutput extends CreateSecurityPolicyR
31
31
  * import { OpenSearchServerlessClient, CreateSecurityPolicyCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
32
32
  * // const { OpenSearchServerlessClient, CreateSecurityPolicyCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
33
33
  * const client = new OpenSearchServerlessClient(config);
34
- * const input = {
34
+ * const input = { // CreateSecurityPolicyRequest
35
35
  * type: "STRING_VALUE", // required
36
36
  * name: "STRING_VALUE", // required
37
37
  * description: "STRING_VALUE",
@@ -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>