@aws-sdk/client-cloudsearch-domain 3.405.0 → 3.409.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], 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: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://cloudsearchdomain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, 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: [k], type: b, rules: [{ endpoint: { url: "https://cloudsearchdomain-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
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 }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { 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: [{ endpoint: { url: "https://cloudsearchdomain-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: [{ endpoint: { url: "https://cloudsearchdomain-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: [{ endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://cloudsearchdomain.{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.UploadDocumentsRequestFilterSensitiveLog = exports.DocumentServiceException = exports.SearchException = void 0;
3
+ exports.UploadDocumentsRequestFilterSensitiveLog = exports.ContentType = exports.DocumentServiceException = exports.QueryParser = exports.SearchException = void 0;
4
4
  const CloudSearchDomainServiceException_1 = require("./CloudSearchDomainServiceException");
5
5
  class SearchException extends CloudSearchDomainServiceException_1.CloudSearchDomainServiceException {
6
6
  constructor(opts) {
@@ -15,6 +15,12 @@ class SearchException extends CloudSearchDomainServiceException_1.CloudSearchDom
15
15
  }
16
16
  }
17
17
  exports.SearchException = SearchException;
18
+ exports.QueryParser = {
19
+ dismax: "dismax",
20
+ lucene: "lucene",
21
+ simple: "simple",
22
+ structured: "structured",
23
+ };
18
24
  class DocumentServiceException extends CloudSearchDomainServiceException_1.CloudSearchDomainServiceException {
19
25
  constructor(opts) {
20
26
  super({
@@ -29,6 +35,10 @@ class DocumentServiceException extends CloudSearchDomainServiceException_1.Cloud
29
35
  }
30
36
  }
31
37
  exports.DocumentServiceException = DocumentServiceException;
38
+ exports.ContentType = {
39
+ application_json: "application/json",
40
+ application_xml: "application/xml",
41
+ };
32
42
  const UploadDocumentsRequestFilterSensitiveLog = (obj) => ({
33
43
  ...obj,
34
44
  });
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], 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: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://cloudsearchdomain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, 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: [k], type: b, rules: [{ endpoint: { url: "https://cloudsearchdomain-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
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 }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { 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: [{ endpoint: { url: "https://cloudsearchdomain-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: [{ endpoint: { url: "https://cloudsearchdomain-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: [{ endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -11,6 +11,12 @@ export class SearchException extends __BaseException {
11
11
  Object.setPrototypeOf(this, SearchException.prototype);
12
12
  }
13
13
  }
14
+ export const QueryParser = {
15
+ dismax: "dismax",
16
+ lucene: "lucene",
17
+ simple: "simple",
18
+ structured: "structured",
19
+ };
14
20
  export class DocumentServiceException extends __BaseException {
15
21
  constructor(opts) {
16
22
  super({
@@ -24,6 +30,10 @@ export class DocumentServiceException extends __BaseException {
24
30
  this.status = opts.status;
25
31
  }
26
32
  }
33
+ export const ContentType = {
34
+ application_json: "application/json",
35
+ application_xml: "application/xml",
36
+ };
27
37
  export const UploadDocumentsRequestFilterSensitiveLog = (obj) => ({
28
38
  ...obj,
29
39
  });
@@ -47,7 +47,7 @@ export interface SearchCommandOutput extends SearchResponse, __MetadataBearer {
47
47
  * partial: true || false,
48
48
  * query: "STRING_VALUE", // required
49
49
  * queryOptions: "STRING_VALUE",
50
- * queryParser: "STRING_VALUE",
50
+ * queryParser: "simple" || "structured" || "lucene" || "dismax",
51
51
  * return: "STRING_VALUE",
52
52
  * size: Number("long"),
53
53
  * sort: "STRING_VALUE",
@@ -36,7 +36,7 @@ export interface UploadDocumentsCommandOutput extends UploadDocumentsResponse, _
36
36
  * const client = new CloudSearchDomainClient(config);
37
37
  * const input = { // UploadDocumentsRequest
38
38
  * documents: "STREAMING_BLOB_VALUE", // required
39
- * contentType: "STRING_VALUE", // required
39
+ * contentType: "application/json" || "application/xml", // required
40
40
  * };
41
41
  * const command = new UploadDocumentsCommand(input);
42
42
  * const response = await client.send(command);
@@ -15,8 +15,18 @@ export declare class SearchException extends __BaseException {
15
15
  }
16
16
  /**
17
17
  * @public
18
+ * @enum
18
19
  */
19
- export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
20
+ export declare const QueryParser: {
21
+ readonly dismax: "dismax";
22
+ readonly lucene: "lucene";
23
+ readonly simple: "simple";
24
+ readonly structured: "structured";
25
+ };
26
+ /**
27
+ * @public
28
+ */
29
+ export type QueryParser = (typeof QueryParser)[keyof typeof QueryParser];
20
30
  /**
21
31
  * @public
22
32
  * <p>Container for the parameters to the <code>Search</code> request.</p>
@@ -586,10 +596,18 @@ export declare class DocumentServiceException extends __BaseException {
586
596
  */
587
597
  constructor(opts: __ExceptionOptionType<DocumentServiceException, __BaseException>);
588
598
  }
599
+ /**
600
+ * @public
601
+ * @enum
602
+ */
603
+ export declare const ContentType: {
604
+ readonly application_json: "application/json";
605
+ readonly application_xml: "application/xml";
606
+ };
589
607
  /**
590
608
  * @public
591
609
  */
592
- export type ContentType = "application/json" | "application/xml";
610
+ export type ContentType = (typeof ContentType)[keyof typeof ContentType];
593
611
  /**
594
612
  * @public
595
613
  * <p>Container for the parameters to the <code>UploadDocuments</code> request.</p>
@@ -6,7 +6,13 @@ export declare class SearchException extends __BaseException {
6
6
  readonly $fault: "client";
7
7
  constructor(opts: __ExceptionOptionType<SearchException, __BaseException>);
8
8
  }
9
- export type QueryParser = "dismax" | "lucene" | "simple" | "structured";
9
+ export declare const QueryParser: {
10
+ readonly dismax: "dismax";
11
+ readonly lucene: "lucene";
12
+ readonly simple: "simple";
13
+ readonly structured: "structured";
14
+ };
15
+ export type QueryParser = (typeof QueryParser)[keyof typeof QueryParser];
10
16
  export interface SearchRequest {
11
17
  cursor?: string;
12
18
  expr?: string;
@@ -93,7 +99,11 @@ export declare class DocumentServiceException extends __BaseException {
93
99
  opts: __ExceptionOptionType<DocumentServiceException, __BaseException>
94
100
  );
95
101
  }
96
- export type ContentType = "application/json" | "application/xml";
102
+ export declare const ContentType: {
103
+ readonly application_json: "application/json";
104
+ readonly application_xml: "application/xml";
105
+ };
106
+ export type ContentType = (typeof ContentType)[keyof typeof ContentType];
97
107
  export interface UploadDocumentsRequest {
98
108
  documents: StreamingBlobTypes | undefined;
99
109
  contentType: ContentType | string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch-domain",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Domain Client for Node.js, Browser and React Native",
4
- "version": "3.405.0",
4
+ "version": "3.409.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",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.405.0",
25
- "@aws-sdk/credential-provider-node": "3.405.0",
26
- "@aws-sdk/middleware-host-header": "3.398.0",
27
- "@aws-sdk/middleware-logger": "3.398.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.398.0",
29
- "@aws-sdk/middleware-signing": "3.398.0",
30
- "@aws-sdk/middleware-user-agent": "3.398.0",
31
- "@aws-sdk/types": "3.398.0",
32
- "@aws-sdk/util-endpoints": "3.398.0",
33
- "@aws-sdk/util-user-agent-browser": "3.398.0",
34
- "@aws-sdk/util-user-agent-node": "3.405.0",
24
+ "@aws-sdk/client-sts": "3.409.0",
25
+ "@aws-sdk/credential-provider-node": "3.409.0",
26
+ "@aws-sdk/middleware-host-header": "3.408.0",
27
+ "@aws-sdk/middleware-logger": "3.408.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.408.0",
29
+ "@aws-sdk/middleware-signing": "3.408.0",
30
+ "@aws-sdk/middleware-user-agent": "3.408.0",
31
+ "@aws-sdk/types": "3.408.0",
32
+ "@aws-sdk/util-endpoints": "3.408.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.408.0",
34
+ "@aws-sdk/util-user-agent-node": "3.408.0",
35
35
  "@smithy/config-resolver": "^2.0.5",
36
36
  "@smithy/fetch-http-handler": "^2.0.5",
37
37
  "@smithy/hash-node": "^2.0.5",