@aws-sdk/client-kendra 3.245.0 → 3.252.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 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://kendra-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: [{ type: e, rules: [{ endpoint: { url: "https://kendra-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://kendra.{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://kendra.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "fn", r = "argv", s = "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 = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, 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://kendra-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: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://kendra.{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://kendra.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
7
7
  exports.ruleSet = _data;
@@ -171,11 +171,18 @@ var PrincipalType;
171
171
  })(PrincipalType = exports.PrincipalType || (exports.PrincipalType = {}));
172
172
  var ContentType;
173
173
  (function (ContentType) {
174
+ ContentType["CSV"] = "CSV";
174
175
  ContentType["HTML"] = "HTML";
176
+ ContentType["JSON"] = "JSON";
177
+ ContentType["MD"] = "MD";
178
+ ContentType["MS_EXCEL"] = "MS_EXCEL";
175
179
  ContentType["MS_WORD"] = "MS_WORD";
176
180
  ContentType["PDF"] = "PDF";
177
181
  ContentType["PLAIN_TEXT"] = "PLAIN_TEXT";
178
182
  ContentType["PPT"] = "PPT";
183
+ ContentType["RTF"] = "RTF";
184
+ ContentType["XML"] = "XML";
185
+ ContentType["XSLT"] = "XSLT";
179
186
  })(ContentType = exports.ContentType || (exports.ContentType = {}));
180
187
  class ServiceQuotaExceededException extends KendraServiceException_1.KendraServiceException {
181
188
  constructor(opts) {
@@ -3763,7 +3763,7 @@ const serializeAws_json1_1ClearQuerySuggestionsRequest = (input, context) => {
3763
3763
  };
3764
3764
  const serializeAws_json1_1ClickFeedback = (input, context) => {
3765
3765
  return {
3766
- ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000) }),
3766
+ ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000).toString() }),
3767
3767
  ...(input.ResultId != null && { ResultId: input.ResultId }),
3768
3768
  };
3769
3769
  };
@@ -4384,7 +4384,7 @@ const serializeAws_json1_1DocumentAttributeTarget = (input, context) => {
4384
4384
  };
4385
4385
  const serializeAws_json1_1DocumentAttributeValue = (input, context) => {
4386
4386
  return {
4387
- ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000) }),
4387
+ ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000).toString() }),
4388
4388
  ...(input.LongValue != null && { LongValue: input.LongValue }),
4389
4389
  ...(input.StringListValue != null && {
4390
4390
  StringListValue: serializeAws_json1_1DocumentAttributeStringListValue(input.StringListValue, context),
@@ -5520,8 +5520,8 @@ const serializeAws_json1_1TemplateConfiguration = (input, context) => {
5520
5520
  };
5521
5521
  const serializeAws_json1_1TimeRange = (input, context) => {
5522
5522
  return {
5523
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
5524
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
5523
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
5524
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
5525
5525
  };
5526
5526
  };
5527
5527
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
@@ -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://kendra-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: [{ type: e, rules: [{ endpoint: { url: "https://kendra-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://kendra.{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://kendra.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "fn", r = "argv", s = "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 = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, 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://kendra-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: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://kendra.{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://kendra.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
4
  export const ruleSet = _data;
@@ -156,11 +156,18 @@ export var PrincipalType;
156
156
  })(PrincipalType || (PrincipalType = {}));
157
157
  export var ContentType;
158
158
  (function (ContentType) {
159
+ ContentType["CSV"] = "CSV";
159
160
  ContentType["HTML"] = "HTML";
161
+ ContentType["JSON"] = "JSON";
162
+ ContentType["MD"] = "MD";
163
+ ContentType["MS_EXCEL"] = "MS_EXCEL";
160
164
  ContentType["MS_WORD"] = "MS_WORD";
161
165
  ContentType["PDF"] = "PDF";
162
166
  ContentType["PLAIN_TEXT"] = "PLAIN_TEXT";
163
167
  ContentType["PPT"] = "PPT";
168
+ ContentType["RTF"] = "RTF";
169
+ ContentType["XML"] = "XML";
170
+ ContentType["XSLT"] = "XSLT";
164
171
  })(ContentType || (ContentType = {}));
165
172
  export class ServiceQuotaExceededException extends __BaseException {
166
173
  constructor(opts) {
@@ -3638,7 +3638,7 @@ const serializeAws_json1_1ClearQuerySuggestionsRequest = (input, context) => {
3638
3638
  };
3639
3639
  const serializeAws_json1_1ClickFeedback = (input, context) => {
3640
3640
  return {
3641
- ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000) }),
3641
+ ...(input.ClickTime != null && { ClickTime: Math.round(input.ClickTime.getTime() / 1000).toString() }),
3642
3642
  ...(input.ResultId != null && { ResultId: input.ResultId }),
3643
3643
  };
3644
3644
  };
@@ -4259,7 +4259,7 @@ const serializeAws_json1_1DocumentAttributeTarget = (input, context) => {
4259
4259
  };
4260
4260
  const serializeAws_json1_1DocumentAttributeValue = (input, context) => {
4261
4261
  return {
4262
- ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000) }),
4262
+ ...(input.DateValue != null && { DateValue: Math.round(input.DateValue.getTime() / 1000).toString() }),
4263
4263
  ...(input.LongValue != null && { LongValue: input.LongValue }),
4264
4264
  ...(input.StringListValue != null && {
4265
4265
  StringListValue: serializeAws_json1_1DocumentAttributeStringListValue(input.StringListValue, context),
@@ -5395,8 +5395,8 @@ const serializeAws_json1_1TemplateConfiguration = (input, context) => {
5395
5395
  };
5396
5396
  const serializeAws_json1_1TimeRange = (input, context) => {
5397
5397
  return {
5398
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
5399
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
5398
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
5399
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
5400
5400
  };
5401
5401
  };
5402
5402
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
@@ -588,7 +588,7 @@ export declare class Kendra extends KendraClient {
588
588
  * </li>
589
589
  * </ul>
590
590
  * <p>You can specify that the query return only one type of result using the
591
- * <code>QueryResultTypeConfig</code> parameter.</p>
591
+ * <code>QueryResultTypeFilter</code> parameter.</p>
592
592
  * <p>Each query returns the 100 most relevant results. </p>
593
593
  */
594
594
  query(args: QueryCommandInput, options?: __HttpHandlerOptions): Promise<QueryCommandOutput>;
@@ -27,7 +27,7 @@ export interface QueryCommandOutput extends QueryResult, __MetadataBearer {
27
27
  * </li>
28
28
  * </ul>
29
29
  * <p>You can specify that the query return only one type of result using the
30
- * <code>QueryResultTypeConfig</code> parameter.</p>
30
+ * <code>QueryResultTypeFilter</code> parameter.</p>
31
31
  * <p>Each query returns the 100 most relevant results. </p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
@@ -945,11 +945,18 @@ export interface Principal {
945
945
  DataSourceId?: string;
946
946
  }
947
947
  export declare enum ContentType {
948
+ CSV = "CSV",
948
949
  HTML = "HTML",
950
+ JSON = "JSON",
951
+ MD = "MD",
952
+ MS_EXCEL = "MS_EXCEL",
949
953
  MS_WORD = "MS_WORD",
950
954
  PDF = "PDF",
951
955
  PLAIN_TEXT = "PLAIN_TEXT",
952
- PPT = "PPT"
956
+ PPT = "PPT",
957
+ RTF = "RTF",
958
+ XML = "XML",
959
+ XSLT = "XSLT"
953
960
  }
954
961
  /**
955
962
  * <p> Information to define the hierarchy for which documents users should have access to.
@@ -1400,7 +1407,7 @@ export declare enum ConfluencePageFieldName {
1400
1407
  VERSION = "VERSION"
1401
1408
  }
1402
1409
  /**
1403
- * <p>>Maps attributes or field names of Confluence pages to Amazon Kendra index field
1410
+ * <p>Maps attributes or field names of Confluence pages to Amazon Kendra index field
1404
1411
  * names. To create custom fields, use the <code>UpdateIndex</code> API before you map to
1405
1412
  * Confluence fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html">Mapping data source fields</a>. The
1406
1413
  * Confluence data source field names must exist in your Confluence custom metadata.</p>
@@ -1472,7 +1479,7 @@ export declare enum ConfluenceSpaceFieldName {
1472
1479
  URL = "URL"
1473
1480
  }
1474
1481
  /**
1475
- * <p>>Maps attributes or field names of Confluence spaces to Amazon Kendra index field
1482
+ * <p>Maps attributes or field names of Confluence spaces to Amazon Kendra index field
1476
1483
  * names. To create custom fields, use the <code>UpdateIndex</code> API before you map to
1477
1484
  * Confluence fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html">Mapping data source fields</a>. The
1478
1485
  * Confluence data source field names must exist in your Confluence custom metadata.</p>
@@ -2151,9 +2158,7 @@ export declare enum IssueSubEntity {
2151
2158
  */
2152
2159
  export interface JiraConfiguration {
2153
2160
  /**
2154
- * <p>The URL of the Jira account. For example, <i>company.atlassian.net</i>
2155
- * or <i>https://jira.company.com</i>. You can find your Jira account URL in
2156
- * the URL of your profile page for Jira desktop.</p>
2161
+ * <p>The URL of the Jira account. For example, <i>company.atlassian.net</i>.</p>
2157
2162
  */
2158
2163
  JiraAccountUrl: string | undefined;
2159
2164
  /**
@@ -2162,11 +2167,10 @@ export interface JiraConfiguration {
2162
2167
  * JSON structure with the following keys:</p>
2163
2168
  * <ul>
2164
2169
  * <li>
2165
- * <p>jiraId—The Jira username.</p>
2170
+ * <p>jiraId—The Jira user name or email.</p>
2166
2171
  * </li>
2167
2172
  * <li>
2168
- * <p>jiraCredentials—The Jira API token. For more information on creating an
2169
- * API token in Jira, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/data-source-jira.html"> Using a Jira data
2173
+ * <p>jiraCredentials—The Jira API token. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/data-source-jira.html">Using a Jira data
2170
2174
  * source</a>.</p>
2171
2175
  * </li>
2172
2176
  * </ul>
@@ -2175,8 +2179,8 @@ export interface JiraConfiguration {
2175
2179
  /**
2176
2180
  * <p>
2177
2181
  * <code>TRUE</code> to use the Jira change log to determine which documents require
2178
- * updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra
2179
- * to use the change log than to scan all of your documents in Jira.</p>
2182
+ * updating in the index. Depending on the change log's size, it may take longer for
2183
+ * Amazon Kendra to use the change log than to scan all of your documents in Jira.</p>
2180
2184
  */
2181
2185
  UseChangeLog?: boolean;
2182
2186
  /**
@@ -2200,41 +2204,42 @@ export interface JiraConfiguration {
2200
2204
  */
2201
2205
  IssueSubEntityFilter?: (IssueSubEntity | string)[];
2202
2206
  /**
2203
- * <p>A list of DataSourceToIndexFieldMapping objects that map attributes or field names of
2204
- * Jira attachments to Amazon Kendra index field names. To create custom fields, use the
2205
- * UpdateIndex API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2207
+ * <p>A list of <code>DataSourceToIndexFieldMapping</code> objects that map attributes or
2208
+ * field names of Jira attachments to Amazon Kendra index field names. To create
2209
+ * custom fields, use the <code>UpdateIndex</code> API before you map to Jira fields.
2210
+ * For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2206
2211
  * fields</a>. The Jira data source field names must exist in your Jira custom
2207
2212
  * metadata.</p>
2208
2213
  */
2209
2214
  AttachmentFieldMappings?: DataSourceToIndexFieldMapping[];
2210
2215
  /**
2211
- * <p>A list of DataSourceToIndexFieldMapping objects that map attributes or field names of
2216
+ * <p>A list of <code>DataSourceToIndexFieldMapping</code> objects that map attributes or field names of
2212
2217
  * Jira comments to Amazon Kendra index field names. To create custom fields, use the
2213
- * UpdateIndex API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2218
+ * <code>UpdateIndex</code> API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2214
2219
  * fields</a>. The Jira data source field names must exist in your Jira custom
2215
2220
  * metadata.</p>
2216
2221
  */
2217
2222
  CommentFieldMappings?: DataSourceToIndexFieldMapping[];
2218
2223
  /**
2219
- * <p>A list of DataSourceToIndexFieldMapping objects that map attributes or field names of
2224
+ * <p>A list of <code>DataSourceToIndexFieldMapping</code> objects that map attributes or field names of
2220
2225
  * Jira issues to Amazon Kendra index field names. To create custom fields, use the
2221
- * UpdateIndex API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2226
+ * <code>UpdateIndex</code> API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2222
2227
  * fields</a>. The Jira data source field names must exist in your Jira custom
2223
2228
  * metadata.</p>
2224
2229
  */
2225
2230
  IssueFieldMappings?: DataSourceToIndexFieldMapping[];
2226
2231
  /**
2227
- * <p>A list of DataSourceToIndexFieldMapping objects that map attributes or field names of
2232
+ * <p>A list of <code>DataSourceToIndexFieldMapping</code> objects that map attributes or field names of
2228
2233
  * Jira projects to Amazon Kendra index field names. To create custom fields, use the
2229
- * UpdateIndex API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2234
+ * <code>UpdateIndex</code> API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2230
2235
  * fields</a>. The Jira data source field names must exist in your Jira custom
2231
2236
  * metadata.</p>
2232
2237
  */
2233
2238
  ProjectFieldMappings?: DataSourceToIndexFieldMapping[];
2234
2239
  /**
2235
- * <p>A list of DataSourceToIndexFieldMapping objects that map attributes or field names of
2240
+ * <p>A list of <code>DataSourceToIndexFieldMapping</code> objects that map attributes or field names of
2236
2241
  * Jira work logs to Amazon Kendra index field names. To create custom fields, use the
2237
- * UpdateIndex API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2242
+ * <code>UpdateIndex</code> API before you map to Jira fields. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html"> Mapping data source
2238
2243
  * fields</a>. The Jira data source field names must exist in your Jira custom
2239
2244
  * metadata.</p>
2240
2245
  */
@@ -2256,8 +2261,8 @@ export interface JiraConfiguration {
2256
2261
  */
2257
2262
  ExclusionPatterns?: string[];
2258
2263
  /**
2259
- * <p>Configuration information for an Amazon Virtual Private Cloud to connect to your Jira. Your
2260
- * Jira account must reside inside your VPC.</p>
2264
+ * <p>Configuration information for an Amazon Virtual Private Cloud to connect to your Jira. For
2265
+ * more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html">Configuring a VPC</a>.</p>
2261
2266
  */
2262
2267
  VpcConfiguration?: DataSourceVpcConfiguration;
2263
2268
  }
@@ -2289,7 +2294,7 @@ export interface OneDriveConfiguration {
2289
2294
  TenantDomain: string | undefined;
2290
2295
  /**
2291
2296
  * <p>The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the
2292
- * user name and password to connect to OneDrive. The user namd should be the application
2297
+ * user name and password to connect to OneDrive. The user name should be the application
2293
2298
  * ID for the OneDrive application, and the password is the application key for the
2294
2299
  * OneDrive application.</p>
2295
2300
  */
@@ -282,11 +282,18 @@ export interface Principal {
282
282
  DataSourceId?: string;
283
283
  }
284
284
  export declare enum ContentType {
285
+ CSV = "CSV",
285
286
  HTML = "HTML",
287
+ JSON = "JSON",
288
+ MD = "MD",
289
+ MS_EXCEL = "MS_EXCEL",
286
290
  MS_WORD = "MS_WORD",
287
291
  PDF = "PDF",
288
292
  PLAIN_TEXT = "PLAIN_TEXT",
289
293
  PPT = "PPT",
294
+ RTF = "RTF",
295
+ XML = "XML",
296
+ XSLT = "XSLT",
290
297
  }
291
298
  export interface HierarchicalPrincipal {
292
299
  PrincipalList: Principal[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra",
3
3
  "description": "AWS SDK for JavaScript Kendra Client for Node.js, Browser and React Native",
4
- "version": "3.245.0",
4
+ "version": "3.252.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",
@@ -11,7 +11,7 @@
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
- "generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/kendra.json --keepFiles)"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo kendra"
15
15
  },
16
16
  "main": "./dist-cjs/index.js",
17
17
  "types": "./dist-types/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "2.0.0",
22
22
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.245.0",
23
+ "@aws-sdk/client-sts": "3.252.0",
24
24
  "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.245.0",
25
+ "@aws-sdk/credential-provider-node": "3.252.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.226.0",
27
27
  "@aws-sdk/hash-node": "3.226.0",
28
28
  "@aws-sdk/invalid-dependency": "3.226.0",