@aws-sdk/client-comprehend 3.301.0 → 3.303.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,13 +1,16 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { ComprehendServiceException as __BaseException } from "./ComprehendServiceException";
3
- export declare enum AugmentedManifestsDocumentTypeFormat {
4
- PLAIN_TEXT_DOCUMENT = "PLAIN_TEXT_DOCUMENT",
5
- SEMI_STRUCTURED_DOCUMENT = "SEMI_STRUCTURED_DOCUMENT",
6
- }
7
- export declare enum Split {
8
- TEST = "TEST",
9
- TRAIN = "TRAIN",
10
- }
3
+ export declare const AugmentedManifestsDocumentTypeFormat: {
4
+ readonly PLAIN_TEXT_DOCUMENT: "PLAIN_TEXT_DOCUMENT";
5
+ readonly SEMI_STRUCTURED_DOCUMENT: "SEMI_STRUCTURED_DOCUMENT";
6
+ };
7
+ export type AugmentedManifestsDocumentTypeFormat =
8
+ (typeof AugmentedManifestsDocumentTypeFormat)[keyof typeof AugmentedManifestsDocumentTypeFormat];
9
+ export declare const Split: {
10
+ readonly TEST: "TEST";
11
+ readonly TRAIN: "TRAIN";
12
+ };
13
+ export type Split = (typeof Split)[keyof typeof Split];
11
14
  export interface AugmentedManifestsListItem {
12
15
  S3Uri: string | undefined;
13
16
  Split?: Split | string;
@@ -55,18 +58,22 @@ export declare class InternalServerException extends __BaseException {
55
58
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
56
59
  );
57
60
  }
58
- export declare enum InvalidRequestDetailReason {
59
- DOCUMENT_SIZE_EXCEEDED = "DOCUMENT_SIZE_EXCEEDED",
60
- PAGE_LIMIT_EXCEEDED = "PAGE_LIMIT_EXCEEDED",
61
- TEXTRACT_ACCESS_DENIED = "TEXTRACT_ACCESS_DENIED",
62
- UNSUPPORTED_DOC_TYPE = "UNSUPPORTED_DOC_TYPE",
63
- }
61
+ export declare const InvalidRequestDetailReason: {
62
+ readonly DOCUMENT_SIZE_EXCEEDED: "DOCUMENT_SIZE_EXCEEDED";
63
+ readonly PAGE_LIMIT_EXCEEDED: "PAGE_LIMIT_EXCEEDED";
64
+ readonly TEXTRACT_ACCESS_DENIED: "TEXTRACT_ACCESS_DENIED";
65
+ readonly UNSUPPORTED_DOC_TYPE: "UNSUPPORTED_DOC_TYPE";
66
+ };
67
+ export type InvalidRequestDetailReason =
68
+ (typeof InvalidRequestDetailReason)[keyof typeof InvalidRequestDetailReason];
64
69
  export interface InvalidRequestDetail {
65
70
  Reason?: InvalidRequestDetailReason | string;
66
71
  }
67
- export declare enum InvalidRequestReason {
68
- INVALID_DOCUMENT = "INVALID_DOCUMENT",
69
- }
72
+ export declare const InvalidRequestReason: {
73
+ readonly INVALID_DOCUMENT: "INVALID_DOCUMENT";
74
+ };
75
+ export type InvalidRequestReason =
76
+ (typeof InvalidRequestReason)[keyof typeof InvalidRequestReason];
70
77
  export declare class InvalidRequestException extends __BaseException {
71
78
  readonly name: "InvalidRequestException";
72
79
  readonly $fault: "client";
@@ -85,20 +92,21 @@ export declare class TextSizeLimitExceededException extends __BaseException {
85
92
  opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>
86
93
  );
87
94
  }
88
- export declare enum LanguageCode {
89
- AR = "ar",
90
- DE = "de",
91
- EN = "en",
92
- ES = "es",
93
- FR = "fr",
94
- HI = "hi",
95
- IT = "it",
96
- JA = "ja",
97
- KO = "ko",
98
- PT = "pt",
99
- ZH = "zh",
100
- ZH_TW = "zh-TW",
101
- }
95
+ export declare const LanguageCode: {
96
+ readonly AR: "ar";
97
+ readonly DE: "de";
98
+ readonly EN: "en";
99
+ readonly ES: "es";
100
+ readonly FR: "fr";
101
+ readonly HI: "hi";
102
+ readonly IT: "it";
103
+ readonly JA: "ja";
104
+ readonly KO: "ko";
105
+ readonly PT: "pt";
106
+ readonly ZH: "zh";
107
+ readonly ZH_TW: "zh-TW";
108
+ };
109
+ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
102
110
  export interface BatchDetectEntitiesRequest {
103
111
  TextList: string[] | undefined;
104
112
  LanguageCode: LanguageCode | string | undefined;
@@ -114,17 +122,18 @@ export interface BlockReference {
114
122
  EndOffset?: number;
115
123
  ChildBlocks?: ChildBlock[];
116
124
  }
117
- export declare enum EntityType {
118
- COMMERCIAL_ITEM = "COMMERCIAL_ITEM",
119
- DATE = "DATE",
120
- EVENT = "EVENT",
121
- LOCATION = "LOCATION",
122
- ORGANIZATION = "ORGANIZATION",
123
- OTHER = "OTHER",
124
- PERSON = "PERSON",
125
- QUANTITY = "QUANTITY",
126
- TITLE = "TITLE",
127
- }
125
+ export declare const EntityType: {
126
+ readonly COMMERCIAL_ITEM: "COMMERCIAL_ITEM";
127
+ readonly DATE: "DATE";
128
+ readonly EVENT: "EVENT";
129
+ readonly LOCATION: "LOCATION";
130
+ readonly ORGANIZATION: "ORGANIZATION";
131
+ readonly OTHER: "OTHER";
132
+ readonly PERSON: "PERSON";
133
+ readonly QUANTITY: "QUANTITY";
134
+ readonly TITLE: "TITLE";
135
+ };
136
+ export type EntityType = (typeof EntityType)[keyof typeof EntityType];
128
137
  export interface Entity {
129
138
  Score?: number;
130
139
  Type?: EntityType | string;
@@ -171,12 +180,13 @@ export interface BatchDetectSentimentRequest {
171
180
  TextList: string[] | undefined;
172
181
  LanguageCode: LanguageCode | string | undefined;
173
182
  }
174
- export declare enum SentimentType {
175
- MIXED = "MIXED",
176
- NEGATIVE = "NEGATIVE",
177
- NEUTRAL = "NEUTRAL",
178
- POSITIVE = "POSITIVE",
179
- }
183
+ export declare const SentimentType: {
184
+ readonly MIXED: "MIXED";
185
+ readonly NEGATIVE: "NEGATIVE";
186
+ readonly NEUTRAL: "NEUTRAL";
187
+ readonly POSITIVE: "POSITIVE";
188
+ };
189
+ export type SentimentType = (typeof SentimentType)[keyof typeof SentimentType];
180
190
  export interface SentimentScore {
181
191
  Positive?: number;
182
192
  Negative?: number;
@@ -192,38 +202,42 @@ export interface BatchDetectSentimentResponse {
192
202
  ResultList: BatchDetectSentimentItemResult[] | undefined;
193
203
  ErrorList: BatchItemError[] | undefined;
194
204
  }
195
- export declare enum SyntaxLanguageCode {
196
- DE = "de",
197
- EN = "en",
198
- ES = "es",
199
- FR = "fr",
200
- IT = "it",
201
- PT = "pt",
202
- }
205
+ export declare const SyntaxLanguageCode: {
206
+ readonly DE: "de";
207
+ readonly EN: "en";
208
+ readonly ES: "es";
209
+ readonly FR: "fr";
210
+ readonly IT: "it";
211
+ readonly PT: "pt";
212
+ };
213
+ export type SyntaxLanguageCode =
214
+ (typeof SyntaxLanguageCode)[keyof typeof SyntaxLanguageCode];
203
215
  export interface BatchDetectSyntaxRequest {
204
216
  TextList: string[] | undefined;
205
217
  LanguageCode: SyntaxLanguageCode | string | undefined;
206
218
  }
207
- export declare enum PartOfSpeechTagType {
208
- ADJ = "ADJ",
209
- ADP = "ADP",
210
- ADV = "ADV",
211
- AUX = "AUX",
212
- CCONJ = "CCONJ",
213
- CONJ = "CONJ",
214
- DET = "DET",
215
- INTJ = "INTJ",
216
- NOUN = "NOUN",
217
- NUM = "NUM",
218
- O = "O",
219
- PART = "PART",
220
- PRON = "PRON",
221
- PROPN = "PROPN",
222
- PUNCT = "PUNCT",
223
- SCONJ = "SCONJ",
224
- SYM = "SYM",
225
- VERB = "VERB",
226
- }
219
+ export declare const PartOfSpeechTagType: {
220
+ readonly ADJ: "ADJ";
221
+ readonly ADP: "ADP";
222
+ readonly ADV: "ADV";
223
+ readonly AUX: "AUX";
224
+ readonly CCONJ: "CCONJ";
225
+ readonly CONJ: "CONJ";
226
+ readonly DET: "DET";
227
+ readonly INTJ: "INTJ";
228
+ readonly NOUN: "NOUN";
229
+ readonly NUM: "NUM";
230
+ readonly O: "O";
231
+ readonly PART: "PART";
232
+ readonly PRON: "PRON";
233
+ readonly PROPN: "PROPN";
234
+ readonly PUNCT: "PUNCT";
235
+ readonly SCONJ: "SCONJ";
236
+ readonly SYM: "SYM";
237
+ readonly VERB: "VERB";
238
+ };
239
+ export type PartOfSpeechTagType =
240
+ (typeof PartOfSpeechTagType)[keyof typeof PartOfSpeechTagType];
227
241
  export interface PartOfSpeechTag {
228
242
  Tag?: PartOfSpeechTagType | string;
229
243
  Score?: number;
@@ -251,25 +265,27 @@ export interface MentionSentiment {
251
265
  Sentiment?: SentimentType | string;
252
266
  SentimentScore?: SentimentScore;
253
267
  }
254
- export declare enum TargetedSentimentEntityType {
255
- ATTRIBUTE = "ATTRIBUTE",
256
- BOOK = "BOOK",
257
- BRAND = "BRAND",
258
- COMMERCIAL_ITEM = "COMMERCIAL_ITEM",
259
- DATE = "DATE",
260
- EVENT = "EVENT",
261
- FACILITY = "FACILITY",
262
- GAME = "GAME",
263
- LOCATION = "LOCATION",
264
- MOVIE = "MOVIE",
265
- MUSIC = "MUSIC",
266
- ORGANIZATION = "ORGANIZATION",
267
- OTHER = "OTHER",
268
- PERSON = "PERSON",
269
- PERSONAL_TITLE = "PERSONAL_TITLE",
270
- QUANTITY = "QUANTITY",
271
- SOFTWARE = "SOFTWARE",
272
- }
268
+ export declare const TargetedSentimentEntityType: {
269
+ readonly ATTRIBUTE: "ATTRIBUTE";
270
+ readonly BOOK: "BOOK";
271
+ readonly BRAND: "BRAND";
272
+ readonly COMMERCIAL_ITEM: "COMMERCIAL_ITEM";
273
+ readonly DATE: "DATE";
274
+ readonly EVENT: "EVENT";
275
+ readonly FACILITY: "FACILITY";
276
+ readonly GAME: "GAME";
277
+ readonly LOCATION: "LOCATION";
278
+ readonly MOVIE: "MOVIE";
279
+ readonly MUSIC: "MUSIC";
280
+ readonly ORGANIZATION: "ORGANIZATION";
281
+ readonly OTHER: "OTHER";
282
+ readonly PERSON: "PERSON";
283
+ readonly PERSONAL_TITLE: "PERSONAL_TITLE";
284
+ readonly QUANTITY: "QUANTITY";
285
+ readonly SOFTWARE: "SOFTWARE";
286
+ };
287
+ export type TargetedSentimentEntityType =
288
+ (typeof TargetedSentimentEntityType)[keyof typeof TargetedSentimentEntityType];
273
289
  export interface TargetedSentimentMention {
274
290
  Score?: number;
275
291
  GroupScore?: number;
@@ -291,10 +307,11 @@ export interface BatchDetectTargetedSentimentResponse {
291
307
  ResultList: BatchDetectTargetedSentimentItemResult[] | undefined;
292
308
  ErrorList: BatchItemError[] | undefined;
293
309
  }
294
- export declare enum BlockType {
295
- LINE = "LINE",
296
- WORD = "WORD",
297
- }
310
+ export declare const BlockType: {
311
+ readonly LINE: "LINE";
312
+ readonly WORD: "WORD";
313
+ };
314
+ export type BlockType = (typeof BlockType)[keyof typeof BlockType];
298
315
  export interface BoundingBox {
299
316
  Height?: number;
300
317
  Left?: number;
@@ -309,9 +326,11 @@ export interface Geometry {
309
326
  BoundingBox?: BoundingBox;
310
327
  Polygon?: Point[];
311
328
  }
312
- export declare enum RelationshipType {
313
- CHILD = "CHILD",
314
- }
329
+ export declare const RelationshipType: {
330
+ readonly CHILD: "CHILD";
331
+ };
332
+ export type RelationshipType =
333
+ (typeof RelationshipType)[keyof typeof RelationshipType];
315
334
  export interface RelationshipsListItem {
316
335
  Ids?: string[];
317
336
  Type?: RelationshipType | string;
@@ -340,18 +359,24 @@ export interface ClassifierMetadata {
340
359
  NumberOfTestDocuments?: number;
341
360
  EvaluationMetrics?: ClassifierEvaluationMetrics;
342
361
  }
343
- export declare enum DocumentReadAction {
344
- TEXTRACT_ANALYZE_DOCUMENT = "TEXTRACT_ANALYZE_DOCUMENT",
345
- TEXTRACT_DETECT_DOCUMENT_TEXT = "TEXTRACT_DETECT_DOCUMENT_TEXT",
346
- }
347
- export declare enum DocumentReadMode {
348
- FORCE_DOCUMENT_READ_ACTION = "FORCE_DOCUMENT_READ_ACTION",
349
- SERVICE_DEFAULT = "SERVICE_DEFAULT",
350
- }
351
- export declare enum DocumentReadFeatureTypes {
352
- FORMS = "FORMS",
353
- TABLES = "TABLES",
354
- }
362
+ export declare const DocumentReadAction: {
363
+ readonly TEXTRACT_ANALYZE_DOCUMENT: "TEXTRACT_ANALYZE_DOCUMENT";
364
+ readonly TEXTRACT_DETECT_DOCUMENT_TEXT: "TEXTRACT_DETECT_DOCUMENT_TEXT";
365
+ };
366
+ export type DocumentReadAction =
367
+ (typeof DocumentReadAction)[keyof typeof DocumentReadAction];
368
+ export declare const DocumentReadMode: {
369
+ readonly FORCE_DOCUMENT_READ_ACTION: "FORCE_DOCUMENT_READ_ACTION";
370
+ readonly SERVICE_DEFAULT: "SERVICE_DEFAULT";
371
+ };
372
+ export type DocumentReadMode =
373
+ (typeof DocumentReadMode)[keyof typeof DocumentReadMode];
374
+ export declare const DocumentReadFeatureTypes: {
375
+ readonly FORMS: "FORMS";
376
+ readonly TABLES: "TABLES";
377
+ };
378
+ export type DocumentReadFeatureTypes =
379
+ (typeof DocumentReadFeatureTypes)[keyof typeof DocumentReadFeatureTypes];
355
380
  export interface DocumentReaderConfig {
356
381
  DocumentReadAction: DocumentReadAction | string | undefined;
357
382
  DocumentReadMode?: DocumentReadMode | string;
@@ -376,26 +401,29 @@ export interface DocumentMetadata {
376
401
  Pages?: number;
377
402
  ExtractedCharacters?: ExtractedCharactersListItem[];
378
403
  }
379
- export declare enum DocumentType {
380
- IMAGE = "IMAGE",
381
- MS_WORD = "MS_WORD",
382
- NATIVE_PDF = "NATIVE_PDF",
383
- PLAIN_TEXT = "PLAIN_TEXT",
384
- SCANNED_PDF = "SCANNED_PDF",
385
- TEXTRACT_ANALYZE_DOCUMENT_JSON = "TEXTRACT_ANALYZE_DOCUMENT_JSON",
386
- TEXTRACT_DETECT_DOCUMENT_TEXT_JSON = "TEXTRACT_DETECT_DOCUMENT_TEXT_JSON",
387
- }
404
+ export declare const DocumentType: {
405
+ readonly IMAGE: "IMAGE";
406
+ readonly MS_WORD: "MS_WORD";
407
+ readonly NATIVE_PDF: "NATIVE_PDF";
408
+ readonly PLAIN_TEXT: "PLAIN_TEXT";
409
+ readonly SCANNED_PDF: "SCANNED_PDF";
410
+ readonly TEXTRACT_ANALYZE_DOCUMENT_JSON: "TEXTRACT_ANALYZE_DOCUMENT_JSON";
411
+ readonly TEXTRACT_DETECT_DOCUMENT_TEXT_JSON: "TEXTRACT_DETECT_DOCUMENT_TEXT_JSON";
412
+ };
413
+ export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
388
414
  export interface DocumentTypeListItem {
389
415
  Page?: number;
390
416
  Type?: DocumentType | string;
391
417
  }
392
- export declare enum PageBasedErrorCode {
393
- INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
394
- PAGE_CHARACTERS_EXCEEDED = "PAGE_CHARACTERS_EXCEEDED",
395
- PAGE_SIZE_EXCEEDED = "PAGE_SIZE_EXCEEDED",
396
- TEXTRACT_BAD_PAGE = "TEXTRACT_BAD_PAGE",
397
- TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED = "TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED",
398
- }
418
+ export declare const PageBasedErrorCode: {
419
+ readonly INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR";
420
+ readonly PAGE_CHARACTERS_EXCEEDED: "PAGE_CHARACTERS_EXCEEDED";
421
+ readonly PAGE_SIZE_EXCEEDED: "PAGE_SIZE_EXCEEDED";
422
+ readonly TEXTRACT_BAD_PAGE: "TEXTRACT_BAD_PAGE";
423
+ readonly TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED: "TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED";
424
+ };
425
+ export type PageBasedErrorCode =
426
+ (typeof PageBasedErrorCode)[keyof typeof PageBasedErrorCode];
399
427
  export interface ErrorsListItem {
400
428
  Page?: number;
401
429
  ErrorCode?: PageBasedErrorCode | string;
@@ -425,45 +453,46 @@ export interface ContainsPiiEntitiesRequest {
425
453
  Text: string | undefined;
426
454
  LanguageCode: LanguageCode | string | undefined;
427
455
  }
428
- export declare enum PiiEntityType {
429
- ADDRESS = "ADDRESS",
430
- AGE = "AGE",
431
- ALL = "ALL",
432
- AWS_ACCESS_KEY = "AWS_ACCESS_KEY",
433
- AWS_SECRET_KEY = "AWS_SECRET_KEY",
434
- BANK_ACCOUNT_NUMBER = "BANK_ACCOUNT_NUMBER",
435
- BANK_ROUTING = "BANK_ROUTING",
436
- CA_HEALTH_NUMBER = "CA_HEALTH_NUMBER",
437
- CA_SOCIAL_INSURANCE_NUMBER = "CA_SOCIAL_INSURANCE_NUMBER",
438
- CREDIT_DEBIT_CVV = "CREDIT_DEBIT_CVV",
439
- CREDIT_DEBIT_EXPIRY = "CREDIT_DEBIT_EXPIRY",
440
- CREDIT_DEBIT_NUMBER = "CREDIT_DEBIT_NUMBER",
441
- DATE_TIME = "DATE_TIME",
442
- DRIVER_ID = "DRIVER_ID",
443
- EMAIL = "EMAIL",
444
- INTERNATIONAL_BANK_ACCOUNT_NUMBER = "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
445
- IN_AADHAAR = "IN_AADHAAR",
446
- IN_NREGA = "IN_NREGA",
447
- IN_PERMANENT_ACCOUNT_NUMBER = "IN_PERMANENT_ACCOUNT_NUMBER",
448
- IN_VOTER_NUMBER = "IN_VOTER_NUMBER",
449
- IP_ADDRESS = "IP_ADDRESS",
450
- LICENSE_PLATE = "LICENSE_PLATE",
451
- MAC_ADDRESS = "MAC_ADDRESS",
452
- NAME = "NAME",
453
- PASSPORT_NUMBER = "PASSPORT_NUMBER",
454
- PASSWORD = "PASSWORD",
455
- PHONE = "PHONE",
456
- PIN = "PIN",
457
- SSN = "SSN",
458
- SWIFT_CODE = "SWIFT_CODE",
459
- UK_NATIONAL_HEALTH_SERVICE_NUMBER = "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
460
- UK_NATIONAL_INSURANCE_NUMBER = "UK_NATIONAL_INSURANCE_NUMBER",
461
- UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER = "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
462
- URL = "URL",
463
- USERNAME = "USERNAME",
464
- US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER = "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
465
- VEHICLE_IDENTIFICATION_NUMBER = "VEHICLE_IDENTIFICATION_NUMBER",
466
- }
456
+ export declare const PiiEntityType: {
457
+ readonly ADDRESS: "ADDRESS";
458
+ readonly AGE: "AGE";
459
+ readonly ALL: "ALL";
460
+ readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
461
+ readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
462
+ readonly BANK_ACCOUNT_NUMBER: "BANK_ACCOUNT_NUMBER";
463
+ readonly BANK_ROUTING: "BANK_ROUTING";
464
+ readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
465
+ readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
466
+ readonly CREDIT_DEBIT_CVV: "CREDIT_DEBIT_CVV";
467
+ readonly CREDIT_DEBIT_EXPIRY: "CREDIT_DEBIT_EXPIRY";
468
+ readonly CREDIT_DEBIT_NUMBER: "CREDIT_DEBIT_NUMBER";
469
+ readonly DATE_TIME: "DATE_TIME";
470
+ readonly DRIVER_ID: "DRIVER_ID";
471
+ readonly EMAIL: "EMAIL";
472
+ readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
473
+ readonly IN_AADHAAR: "IN_AADHAAR";
474
+ readonly IN_NREGA: "IN_NREGA";
475
+ readonly IN_PERMANENT_ACCOUNT_NUMBER: "IN_PERMANENT_ACCOUNT_NUMBER";
476
+ readonly IN_VOTER_NUMBER: "IN_VOTER_NUMBER";
477
+ readonly IP_ADDRESS: "IP_ADDRESS";
478
+ readonly LICENSE_PLATE: "LICENSE_PLATE";
479
+ readonly MAC_ADDRESS: "MAC_ADDRESS";
480
+ readonly NAME: "NAME";
481
+ readonly PASSPORT_NUMBER: "PASSPORT_NUMBER";
482
+ readonly PASSWORD: "PASSWORD";
483
+ readonly PHONE: "PHONE";
484
+ readonly PIN: "PIN";
485
+ readonly SSN: "SSN";
486
+ readonly SWIFT_CODE: "SWIFT_CODE";
487
+ readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
488
+ readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
489
+ readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
490
+ readonly URL: "URL";
491
+ readonly USERNAME: "USERNAME";
492
+ readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
493
+ readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
494
+ };
495
+ export type PiiEntityType = (typeof PiiEntityType)[keyof typeof PiiEntityType];
467
496
  export interface EntityLabel {
468
497
  Name?: PiiEntityType | string;
469
498
  Score?: number;
@@ -471,10 +500,11 @@ export interface EntityLabel {
471
500
  export interface ContainsPiiEntitiesResponse {
472
501
  Labels?: EntityLabel[];
473
502
  }
474
- export declare enum DatasetType {
475
- TEST = "TEST",
476
- TRAIN = "TRAIN",
477
- }
503
+ export declare const DatasetType: {
504
+ readonly TEST: "TEST";
505
+ readonly TRAIN: "TRAIN";
506
+ };
507
+ export type DatasetType = (typeof DatasetType)[keyof typeof DatasetType];
478
508
  export interface DatasetAugmentedManifestsListItem {
479
509
  AttributeNames: string[] | undefined;
480
510
  S3Uri: string | undefined;
@@ -482,10 +512,12 @@ export interface DatasetAugmentedManifestsListItem {
482
512
  SourceDocumentsS3Uri?: string;
483
513
  DocumentType?: AugmentedManifestsDocumentTypeFormat | string;
484
514
  }
485
- export declare enum DatasetDataFormat {
486
- AUGMENTED_MANIFEST = "AUGMENTED_MANIFEST",
487
- COMPREHEND_CSV = "COMPREHEND_CSV",
488
- }
515
+ export declare const DatasetDataFormat: {
516
+ readonly AUGMENTED_MANIFEST: "AUGMENTED_MANIFEST";
517
+ readonly COMPREHEND_CSV: "COMPREHEND_CSV";
518
+ };
519
+ export type DatasetDataFormat =
520
+ (typeof DatasetDataFormat)[keyof typeof DatasetDataFormat];
489
521
  export interface DatasetDocumentClassifierInputDataConfig {
490
522
  S3Uri: string | undefined;
491
523
  LabelDelimiter?: string;
@@ -493,10 +525,11 @@ export interface DatasetDocumentClassifierInputDataConfig {
493
525
  export interface DatasetEntityRecognizerAnnotations {
494
526
  S3Uri: string | undefined;
495
527
  }
496
- export declare enum InputFormat {
497
- ONE_DOC_PER_FILE = "ONE_DOC_PER_FILE",
498
- ONE_DOC_PER_LINE = "ONE_DOC_PER_LINE",
499
- }
528
+ export declare const InputFormat: {
529
+ readonly ONE_DOC_PER_FILE: "ONE_DOC_PER_FILE";
530
+ readonly ONE_DOC_PER_LINE: "ONE_DOC_PER_LINE";
531
+ };
532
+ export type InputFormat = (typeof InputFormat)[keyof typeof InputFormat];
500
533
  export interface DatasetEntityRecognizerDocuments {
501
534
  S3Uri: string | undefined;
502
535
  InputFormat?: InputFormat | string;
@@ -571,10 +604,12 @@ export declare class TooManyTagsException extends __BaseException {
571
604
  opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
572
605
  );
573
606
  }
574
- export declare enum DocumentClassifierDataFormat {
575
- AUGMENTED_MANIFEST = "AUGMENTED_MANIFEST",
576
- COMPREHEND_CSV = "COMPREHEND_CSV",
577
- }
607
+ export declare const DocumentClassifierDataFormat: {
608
+ readonly AUGMENTED_MANIFEST: "AUGMENTED_MANIFEST";
609
+ readonly COMPREHEND_CSV: "COMPREHEND_CSV";
610
+ };
611
+ export type DocumentClassifierDataFormat =
612
+ (typeof DocumentClassifierDataFormat)[keyof typeof DocumentClassifierDataFormat];
578
613
  export interface DocumentClassifierInputDataConfig {
579
614
  DataFormat?: DocumentClassifierDataFormat | string;
580
615
  S3Uri?: string;
@@ -582,10 +617,12 @@ export interface DocumentClassifierInputDataConfig {
582
617
  LabelDelimiter?: string;
583
618
  AugmentedManifests?: AugmentedManifestsListItem[];
584
619
  }
585
- export declare enum DocumentClassifierMode {
586
- MULTI_CLASS = "MULTI_CLASS",
587
- MULTI_LABEL = "MULTI_LABEL",
588
- }
620
+ export declare const DocumentClassifierMode: {
621
+ readonly MULTI_CLASS: "MULTI_CLASS";
622
+ readonly MULTI_LABEL: "MULTI_LABEL";
623
+ };
624
+ export type DocumentClassifierMode =
625
+ (typeof DocumentClassifierMode)[keyof typeof DocumentClassifierMode];
589
626
  export interface DocumentClassifierOutputDataConfig {
590
627
  S3Uri?: string;
591
628
  KmsKeyId?: string;
@@ -638,10 +675,12 @@ export interface EntityRecognizerAnnotations {
638
675
  S3Uri: string | undefined;
639
676
  TestS3Uri?: string;
640
677
  }
641
- export declare enum EntityRecognizerDataFormat {
642
- AUGMENTED_MANIFEST = "AUGMENTED_MANIFEST",
643
- COMPREHEND_CSV = "COMPREHEND_CSV",
644
- }
678
+ export declare const EntityRecognizerDataFormat: {
679
+ readonly AUGMENTED_MANIFEST: "AUGMENTED_MANIFEST";
680
+ readonly COMPREHEND_CSV: "COMPREHEND_CSV";
681
+ };
682
+ export type EntityRecognizerDataFormat =
683
+ (typeof EntityRecognizerDataFormat)[keyof typeof EntityRecognizerDataFormat];
645
684
  export interface EntityRecognizerDocuments {
646
685
  S3Uri: string | undefined;
647
686
  TestS3Uri?: string;
@@ -683,10 +722,11 @@ export interface DataSecurityConfig {
683
722
  DataLakeKmsKeyId?: string;
684
723
  VpcConfig?: VpcConfig;
685
724
  }
686
- export declare enum ModelType {
687
- DOCUMENT_CLASSIFIER = "DOCUMENT_CLASSIFIER",
688
- ENTITY_RECOGNIZER = "ENTITY_RECOGNIZER",
689
- }
725
+ export declare const ModelType: {
726
+ readonly DOCUMENT_CLASSIFIER: "DOCUMENT_CLASSIFIER";
727
+ readonly ENTITY_RECOGNIZER: "ENTITY_RECOGNIZER";
728
+ };
729
+ export type ModelType = (typeof ModelType)[keyof typeof ModelType];
690
730
  export interface DocumentClassificationConfig {
691
731
  Mode: DocumentClassifierMode | string | undefined;
692
732
  Labels?: string[];
@@ -738,11 +778,12 @@ export interface DeleteResourcePolicyResponse {}
738
778
  export interface DescribeDatasetRequest {
739
779
  DatasetArn: string | undefined;
740
780
  }
741
- export declare enum DatasetStatus {
742
- COMPLETED = "COMPLETED",
743
- CREATING = "CREATING",
744
- FAILED = "FAILED",
745
- }
781
+ export declare const DatasetStatus: {
782
+ readonly COMPLETED: "COMPLETED";
783
+ readonly CREATING: "CREATING";
784
+ readonly FAILED: "FAILED";
785
+ };
786
+ export type DatasetStatus = (typeof DatasetStatus)[keyof typeof DatasetStatus];
746
787
  export interface DatasetProperties {
747
788
  DatasetArn?: string;
748
789
  DatasetName?: string;
@@ -766,14 +807,15 @@ export interface InputDataConfig {
766
807
  InputFormat?: InputFormat | string;
767
808
  DocumentReaderConfig?: DocumentReaderConfig;
768
809
  }
769
- export declare enum JobStatus {
770
- COMPLETED = "COMPLETED",
771
- FAILED = "FAILED",
772
- IN_PROGRESS = "IN_PROGRESS",
773
- STOPPED = "STOPPED",
774
- STOP_REQUESTED = "STOP_REQUESTED",
775
- SUBMITTED = "SUBMITTED",
776
- }
810
+ export declare const JobStatus: {
811
+ readonly COMPLETED: "COMPLETED";
812
+ readonly FAILED: "FAILED";
813
+ readonly IN_PROGRESS: "IN_PROGRESS";
814
+ readonly STOPPED: "STOPPED";
815
+ readonly STOP_REQUESTED: "STOP_REQUESTED";
816
+ readonly SUBMITTED: "SUBMITTED";
817
+ };
818
+ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
777
819
  export interface OutputDataConfig {
778
820
  S3Uri: string | undefined;
779
821
  KmsKeyId?: string;
@@ -808,16 +850,17 @@ export declare class JobNotFoundException extends __BaseException {
808
850
  export interface DescribeDocumentClassifierRequest {
809
851
  DocumentClassifierArn: string | undefined;
810
852
  }
811
- export declare enum ModelStatus {
812
- DELETING = "DELETING",
813
- IN_ERROR = "IN_ERROR",
814
- STOPPED = "STOPPED",
815
- STOP_REQUESTED = "STOP_REQUESTED",
816
- SUBMITTED = "SUBMITTED",
817
- TRAINED = "TRAINED",
818
- TRAINED_WITH_WARNING = "TRAINED_WITH_WARNING",
819
- TRAINING = "TRAINING",
820
- }
853
+ export declare const ModelStatus: {
854
+ readonly DELETING: "DELETING";
855
+ readonly IN_ERROR: "IN_ERROR";
856
+ readonly STOPPED: "STOPPED";
857
+ readonly STOP_REQUESTED: "STOP_REQUESTED";
858
+ readonly SUBMITTED: "SUBMITTED";
859
+ readonly TRAINED: "TRAINED";
860
+ readonly TRAINED_WITH_WARNING: "TRAINED_WITH_WARNING";
861
+ readonly TRAINING: "TRAINING";
862
+ };
863
+ export type ModelStatus = (typeof ModelStatus)[keyof typeof ModelStatus];
821
864
  export interface DocumentClassifierProperties {
822
865
  DocumentClassifierArn?: string;
823
866
  LanguageCode?: LanguageCode | string;
@@ -865,13 +908,15 @@ export interface DescribeDominantLanguageDetectionJobResponse {
865
908
  export interface DescribeEndpointRequest {
866
909
  EndpointArn: string | undefined;
867
910
  }
868
- export declare enum EndpointStatus {
869
- CREATING = "CREATING",
870
- DELETING = "DELETING",
871
- FAILED = "FAILED",
872
- IN_SERVICE = "IN_SERVICE",
873
- UPDATING = "UPDATING",
874
- }
911
+ export declare const EndpointStatus: {
912
+ readonly CREATING: "CREATING";
913
+ readonly DELETING: "DELETING";
914
+ readonly FAILED: "FAILED";
915
+ readonly IN_SERVICE: "IN_SERVICE";
916
+ readonly UPDATING: "UPDATING";
917
+ };
918
+ export type EndpointStatus =
919
+ (typeof EndpointStatus)[keyof typeof EndpointStatus];
875
920
  export interface EndpointProperties {
876
921
  EndpointArn?: string;
877
922
  Status?: EndpointStatus | string;
@@ -985,13 +1030,15 @@ export interface DescribeEventsDetectionJobResponse {
985
1030
  export interface DescribeFlywheelRequest {
986
1031
  FlywheelArn: string | undefined;
987
1032
  }
988
- export declare enum FlywheelStatus {
989
- ACTIVE = "ACTIVE",
990
- CREATING = "CREATING",
991
- DELETING = "DELETING",
992
- FAILED = "FAILED",
993
- UPDATING = "UPDATING",
994
- }
1033
+ export declare const FlywheelStatus: {
1034
+ readonly ACTIVE: "ACTIVE";
1035
+ readonly CREATING: "CREATING";
1036
+ readonly DELETING: "DELETING";
1037
+ readonly FAILED: "FAILED";
1038
+ readonly UPDATING: "UPDATING";
1039
+ };
1040
+ export type FlywheelStatus =
1041
+ (typeof FlywheelStatus)[keyof typeof FlywheelStatus];
995
1042
  export interface FlywheelProperties {
996
1043
  FlywheelArn?: string;
997
1044
  ActiveModelArn?: string;
@@ -1019,14 +1066,16 @@ export interface FlywheelModelEvaluationMetrics {
1019
1066
  AverageRecall?: number;
1020
1067
  AverageAccuracy?: number;
1021
1068
  }
1022
- export declare enum FlywheelIterationStatus {
1023
- COMPLETED = "COMPLETED",
1024
- EVALUATING = "EVALUATING",
1025
- FAILED = "FAILED",
1026
- STOPPED = "STOPPED",
1027
- STOP_REQUESTED = "STOP_REQUESTED",
1028
- TRAINING = "TRAINING",
1029
- }
1069
+ export declare const FlywheelIterationStatus: {
1070
+ readonly COMPLETED: "COMPLETED";
1071
+ readonly EVALUATING: "EVALUATING";
1072
+ readonly FAILED: "FAILED";
1073
+ readonly STOPPED: "STOPPED";
1074
+ readonly STOP_REQUESTED: "STOP_REQUESTED";
1075
+ readonly TRAINING: "TRAINING";
1076
+ };
1077
+ export type FlywheelIterationStatus =
1078
+ (typeof FlywheelIterationStatus)[keyof typeof FlywheelIterationStatus];
1030
1079
  export interface FlywheelIterationProperties {
1031
1080
  FlywheelArn?: string;
1032
1081
  FlywheelIterationId?: string;
@@ -1067,18 +1116,22 @@ export interface DescribeKeyPhrasesDetectionJobResponse {
1067
1116
  export interface DescribePiiEntitiesDetectionJobRequest {
1068
1117
  JobId: string | undefined;
1069
1118
  }
1070
- export declare enum PiiEntitiesDetectionMode {
1071
- ONLY_OFFSETS = "ONLY_OFFSETS",
1072
- ONLY_REDACTION = "ONLY_REDACTION",
1073
- }
1119
+ export declare const PiiEntitiesDetectionMode: {
1120
+ readonly ONLY_OFFSETS: "ONLY_OFFSETS";
1121
+ readonly ONLY_REDACTION: "ONLY_REDACTION";
1122
+ };
1123
+ export type PiiEntitiesDetectionMode =
1124
+ (typeof PiiEntitiesDetectionMode)[keyof typeof PiiEntitiesDetectionMode];
1074
1125
  export interface PiiOutputDataConfig {
1075
1126
  S3Uri: string | undefined;
1076
1127
  KmsKeyId?: string;
1077
1128
  }
1078
- export declare enum PiiEntitiesDetectionMaskMode {
1079
- MASK = "MASK",
1080
- REPLACE_WITH_PII_ENTITY_TYPE = "REPLACE_WITH_PII_ENTITY_TYPE",
1081
- }
1129
+ export declare const PiiEntitiesDetectionMaskMode: {
1130
+ readonly MASK: "MASK";
1131
+ readonly REPLACE_WITH_PII_ENTITY_TYPE: "REPLACE_WITH_PII_ENTITY_TYPE";
1132
+ };
1133
+ export type PiiEntitiesDetectionMaskMode =
1134
+ (typeof PiiEntitiesDetectionMaskMode)[keyof typeof PiiEntitiesDetectionMaskMode];
1082
1135
  export interface RedactionConfig {
1083
1136
  PiiEntityTypes?: (PiiEntityType | string)[];
1084
1137
  MaskMode?: PiiEntitiesDetectionMaskMode | string;