@aws-sdk/client-translate 3.34.0 → 3.37.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 (224) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Translate.js +1 -6
  3. package/{dist/cjs → dist-cjs}/TranslateClient.js +8 -18
  4. package/{dist/cjs → dist-cjs}/commands/CreateParallelDataCommand.js +2 -30
  5. package/{dist/cjs → dist-cjs}/commands/DeleteParallelDataCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/DeleteTerminologyCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/DescribeTextTranslationJobCommand.js +2 -28
  8. package/{dist/cjs → dist-cjs}/commands/GetParallelDataCommand.js +2 -27
  9. package/{dist/cjs → dist-cjs}/commands/GetTerminologyCommand.js +2 -27
  10. package/dist-cjs/commands/ImportTerminologyCommand.js +36 -0
  11. package/{dist/cjs → dist-cjs}/commands/ListParallelDataCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/ListTerminologiesCommand.js +2 -27
  13. package/{dist/cjs → dist-cjs}/commands/ListTextTranslationJobsCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/StartTextTranslationJobCommand.js +2 -34
  15. package/{dist/cjs → dist-cjs}/commands/StopTextTranslationJobCommand.js +2 -33
  16. package/{dist/cjs → dist-cjs}/commands/TranslateTextCommand.js +2 -28
  17. package/{dist/cjs → dist-cjs}/commands/UpdateParallelDataCommand.js +2 -28
  18. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  19. package/{dist/cjs → dist-cjs}/index.js +0 -1
  20. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  21. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -163
  22. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  23. package/{dist/cjs → dist-cjs}/pagination/ListParallelDataPaginator.js +1 -12
  24. package/{dist/cjs → dist-cjs}/pagination/ListTerminologiesPaginator.js +1 -12
  25. package/{dist/cjs → dist-cjs}/pagination/ListTextTranslationJobsPaginator.js +1 -12
  26. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  27. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  28. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  29. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  30. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  31. package/{dist/es → dist-es}/Translate.js +1 -2
  32. package/{dist/es → dist-es}/TranslateClient.js +1 -2
  33. package/{dist/es → dist-es}/commands/CreateParallelDataCommand.js +2 -3
  34. package/{dist/es → dist-es}/commands/DeleteParallelDataCommand.js +2 -3
  35. package/{dist/es → dist-es}/commands/DeleteTerminologyCommand.js +2 -3
  36. package/{dist/es → dist-es}/commands/DescribeTextTranslationJobCommand.js +2 -3
  37. package/{dist/es → dist-es}/commands/GetParallelDataCommand.js +2 -3
  38. package/{dist/es → dist-es}/commands/GetTerminologyCommand.js +2 -3
  39. package/{dist/es → dist-es}/commands/ImportTerminologyCommand.js +2 -3
  40. package/{dist/es → dist-es}/commands/ListParallelDataCommand.js +2 -3
  41. package/{dist/es → dist-es}/commands/ListTerminologiesCommand.js +2 -3
  42. package/{dist/es → dist-es}/commands/ListTextTranslationJobsCommand.js +2 -3
  43. package/{dist/es → dist-es}/commands/StartTextTranslationJobCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/StopTextTranslationJobCommand.js +2 -3
  45. package/{dist/es → dist-es}/commands/TranslateTextCommand.js +2 -3
  46. package/{dist/es → dist-es}/commands/UpdateParallelDataCommand.js +2 -3
  47. package/{dist/es → dist-es}/endpoints.js +1 -2
  48. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  49. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  50. package/{dist/es → dist-es}/models/models_0.js +0 -1
  51. package/dist-es/pagination/Interfaces.js +1 -0
  52. package/{dist/es → dist-es}/pagination/ListParallelDataPaginator.js +1 -2
  53. package/{dist/es → dist-es}/pagination/ListTerminologiesPaginator.js +1 -2
  54. package/{dist/es → dist-es}/pagination/ListTextTranslationJobsPaginator.js +1 -2
  55. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  56. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  57. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  58. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  59. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  60. package/{dist/types → dist-types}/Translate.d.ts +2 -2
  61. package/{dist/types → dist-types}/TranslateClient.d.ts +8 -8
  62. package/{dist/types → dist-types}/commands/CreateParallelDataCommand.d.ts +3 -3
  63. package/{dist/types → dist-types}/commands/DeleteParallelDataCommand.d.ts +3 -3
  64. package/{dist/types → dist-types}/commands/DeleteTerminologyCommand.d.ts +3 -3
  65. package/{dist/types → dist-types}/commands/DescribeTextTranslationJobCommand.d.ts +3 -3
  66. package/{dist/types → dist-types}/commands/GetParallelDataCommand.d.ts +3 -3
  67. package/{dist/types → dist-types}/commands/GetTerminologyCommand.d.ts +3 -3
  68. package/{dist/types → dist-types}/commands/ImportTerminologyCommand.d.ts +3 -3
  69. package/{dist/types → dist-types}/commands/ListParallelDataCommand.d.ts +3 -3
  70. package/{dist/types → dist-types}/commands/ListTerminologiesCommand.d.ts +3 -3
  71. package/{dist/types → dist-types}/commands/ListTextTranslationJobsCommand.d.ts +3 -3
  72. package/{dist/types → dist-types}/commands/StartTextTranslationJobCommand.d.ts +3 -3
  73. package/{dist/types → dist-types}/commands/StopTextTranslationJobCommand.d.ts +3 -3
  74. package/{dist/types → dist-types}/commands/TranslateTextCommand.d.ts +3 -3
  75. package/{dist/types → dist-types}/commands/UpdateParallelDataCommand.d.ts +3 -3
  76. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  77. package/{index.ts → dist-types/index.d.ts} +0 -0
  78. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  79. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  80. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  81. package/{dist/types → dist-types}/pagination/ListParallelDataPaginator.d.ts +1 -1
  82. package/{dist/types → dist-types}/pagination/ListTerminologiesPaginator.d.ts +1 -1
  83. package/{dist/types → dist-types}/pagination/ListTextTranslationJobsPaginator.d.ts +1 -1
  84. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  85. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  86. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  87. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  88. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  89. package/{dist/types → dist-types}/ts3.4/Translate.d.ts +17 -74
  90. package/{dist/types → dist-types}/ts3.4/TranslateClient.d.ts +32 -98
  91. package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +17 -0
  92. package/{dist/types → dist-types}/ts3.4/commands/DeleteParallelDataCommand.d.ts +5 -23
  93. package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +17 -0
  95. package/{dist/types → dist-types}/ts3.4/commands/GetParallelDataCommand.d.ts +5 -23
  96. package/{dist/types → dist-types}/ts3.4/commands/GetTerminologyCommand.d.ts +5 -23
  97. package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +17 -0
  100. package/{dist/types → dist-types}/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +5 -23
  101. package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +17 -0
  102. package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +17 -0
  103. package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +17 -0
  104. package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +17 -0
  105. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  106. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  107. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  108. package/dist-types/ts3.4/models/models_0.d.ts +700 -0
  109. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  110. package/{dist/types → dist-types}/ts3.4/pagination/ListParallelDataPaginator.d.ts +1 -1
  111. package/{dist/types → dist-types}/ts3.4/pagination/ListTerminologiesPaginator.d.ts +1 -1
  112. package/{dist/types → dist-types}/ts3.4/pagination/ListTextTranslationJobsPaginator.d.ts +1 -1
  113. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  114. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  115. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  116. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  117. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  118. package/package.json +45 -42
  119. package/Translate.ts +0 -552
  120. package/TranslateClient.ts +0 -290
  121. package/commands/CreateParallelDataCommand.ts +0 -97
  122. package/commands/DeleteParallelDataCommand.ts +0 -94
  123. package/commands/DeleteTerminologyCommand.ts +0 -94
  124. package/commands/DescribeTextTranslationJobCommand.ts +0 -98
  125. package/commands/GetParallelDataCommand.ts +0 -94
  126. package/commands/GetTerminologyCommand.ts +0 -94
  127. package/commands/ImportTerminologyCommand.ts +0 -101
  128. package/commands/ListParallelDataCommand.ts +0 -94
  129. package/commands/ListTerminologiesCommand.ts +0 -94
  130. package/commands/ListTextTranslationJobsCommand.ts +0 -94
  131. package/commands/StartTextTranslationJobCommand.ts +0 -101
  132. package/commands/StopTextTranslationJobCommand.ts +0 -100
  133. package/commands/TranslateTextCommand.ts +0 -95
  134. package/commands/UpdateParallelDataCommand.ts +0 -95
  135. package/dist/cjs/Translate.js.map +0 -1
  136. package/dist/cjs/TranslateClient.js.map +0 -1
  137. package/dist/cjs/commands/CreateParallelDataCommand.js.map +0 -1
  138. package/dist/cjs/commands/DeleteParallelDataCommand.js.map +0 -1
  139. package/dist/cjs/commands/DeleteTerminologyCommand.js.map +0 -1
  140. package/dist/cjs/commands/DescribeTextTranslationJobCommand.js.map +0 -1
  141. package/dist/cjs/commands/GetParallelDataCommand.js.map +0 -1
  142. package/dist/cjs/commands/GetTerminologyCommand.js.map +0 -1
  143. package/dist/cjs/commands/ImportTerminologyCommand.js +0 -68
  144. package/dist/cjs/commands/ImportTerminologyCommand.js.map +0 -1
  145. package/dist/cjs/commands/ListParallelDataCommand.js.map +0 -1
  146. package/dist/cjs/commands/ListTerminologiesCommand.js.map +0 -1
  147. package/dist/cjs/commands/ListTextTranslationJobsCommand.js.map +0 -1
  148. package/dist/cjs/commands/StartTextTranslationJobCommand.js.map +0 -1
  149. package/dist/cjs/commands/StopTextTranslationJobCommand.js.map +0 -1
  150. package/dist/cjs/commands/TranslateTextCommand.js.map +0 -1
  151. package/dist/cjs/commands/UpdateParallelDataCommand.js.map +0 -1
  152. package/dist/cjs/endpoints.js.map +0 -1
  153. package/dist/cjs/index.js.map +0 -1
  154. package/dist/cjs/models/index.js.map +0 -1
  155. package/dist/cjs/models/models_0.js.map +0 -1
  156. package/dist/cjs/package.json +0 -93
  157. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  158. package/dist/cjs/pagination/ListParallelDataPaginator.js.map +0 -1
  159. package/dist/cjs/pagination/ListTerminologiesPaginator.js.map +0 -1
  160. package/dist/cjs/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
  161. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  162. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  163. package/dist/cjs/runtimeConfig.js.map +0 -1
  164. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  165. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  166. package/dist/es/Translate.js.map +0 -1
  167. package/dist/es/TranslateClient.js.map +0 -1
  168. package/dist/es/commands/CreateParallelDataCommand.js.map +0 -1
  169. package/dist/es/commands/DeleteParallelDataCommand.js.map +0 -1
  170. package/dist/es/commands/DeleteTerminologyCommand.js.map +0 -1
  171. package/dist/es/commands/DescribeTextTranslationJobCommand.js.map +0 -1
  172. package/dist/es/commands/GetParallelDataCommand.js.map +0 -1
  173. package/dist/es/commands/GetTerminologyCommand.js.map +0 -1
  174. package/dist/es/commands/ImportTerminologyCommand.js.map +0 -1
  175. package/dist/es/commands/ListParallelDataCommand.js.map +0 -1
  176. package/dist/es/commands/ListTerminologiesCommand.js.map +0 -1
  177. package/dist/es/commands/ListTextTranslationJobsCommand.js.map +0 -1
  178. package/dist/es/commands/StartTextTranslationJobCommand.js.map +0 -1
  179. package/dist/es/commands/StopTextTranslationJobCommand.js.map +0 -1
  180. package/dist/es/commands/TranslateTextCommand.js.map +0 -1
  181. package/dist/es/commands/UpdateParallelDataCommand.js.map +0 -1
  182. package/dist/es/endpoints.js.map +0 -1
  183. package/dist/es/index.js +0 -22
  184. package/dist/es/index.js.map +0 -1
  185. package/dist/es/models/index.js +0 -2
  186. package/dist/es/models/index.js.map +0 -1
  187. package/dist/es/models/models_0.js.map +0 -1
  188. package/dist/es/package.json +0 -93
  189. package/dist/es/pagination/Interfaces.js +0 -2
  190. package/dist/es/pagination/Interfaces.js.map +0 -1
  191. package/dist/es/pagination/ListParallelDataPaginator.js.map +0 -1
  192. package/dist/es/pagination/ListTerminologiesPaginator.js.map +0 -1
  193. package/dist/es/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
  194. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  195. package/dist/es/runtimeConfig.browser.js.map +0 -1
  196. package/dist/es/runtimeConfig.js.map +0 -1
  197. package/dist/es/runtimeConfig.native.js.map +0 -1
  198. package/dist/es/runtimeConfig.shared.js.map +0 -1
  199. package/dist/types/ts3.4/commands/CreateParallelDataCommand.d.ts +0 -38
  200. package/dist/types/ts3.4/commands/DeleteTerminologyCommand.d.ts +0 -35
  201. package/dist/types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +0 -36
  202. package/dist/types/ts3.4/commands/ImportTerminologyCommand.d.ts +0 -42
  203. package/dist/types/ts3.4/commands/ListParallelDataCommand.d.ts +0 -35
  204. package/dist/types/ts3.4/commands/ListTerminologiesCommand.d.ts +0 -35
  205. package/dist/types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +0 -42
  206. package/dist/types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +0 -41
  207. package/dist/types/ts3.4/commands/TranslateTextCommand.d.ts +0 -36
  208. package/dist/types/ts3.4/commands/UpdateParallelDataCommand.d.ts +0 -36
  209. package/dist/types/ts3.4/models/models_0.d.ts +0 -1304
  210. package/endpoints.ts +0 -77
  211. package/jest.config.js +0 -4
  212. package/models/models_0.ts +0 -1625
  213. package/pagination/Interfaces.ts +0 -7
  214. package/pagination/ListParallelDataPaginator.ts +0 -58
  215. package/pagination/ListTerminologiesPaginator.ts +0 -58
  216. package/pagination/ListTextTranslationJobsPaginator.ts +0 -58
  217. package/protocols/Aws_json1_1.ts +0 -2522
  218. package/runtimeConfig.browser.ts +0 -40
  219. package/runtimeConfig.native.ts +0 -16
  220. package/runtimeConfig.shared.ts +0 -16
  221. package/runtimeConfig.ts +0 -45
  222. package/tsconfig.es.json +0 -10
  223. package/tsconfig.json +0 -31
  224. package/tsconfig.types.json +0 -8
@@ -1,1304 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>The term being translated by the custom terminology.</p>
4
- */
5
- export interface Term {
6
- /**
7
- * <p>The source text of the term being translated by the custom terminology.</p>
8
- */
9
- SourceText?: string;
10
- /**
11
- * <p>The target text of the term being translated by the custom terminology.</p>
12
- */
13
- TargetText?: string;
14
- }
15
- export declare namespace Term {
16
- /**
17
- * @internal
18
- */
19
- const filterSensitiveLog: (obj: Term) => any;
20
- }
21
- /**
22
- * <p>The custom terminology applied to the input text by Amazon Translate for the translated text
23
- * response. This is optional in the response and will only be present if you specified
24
- * terminology input in the request. Currently, only one terminology can be applied per
25
- * TranslateText request.</p>
26
- */
27
- export interface AppliedTerminology {
28
- /**
29
- * <p>The name of the custom terminology applied to the input text by Amazon Translate for the translated
30
- * text response.</p>
31
- */
32
- Name?: string;
33
- /**
34
- * <p>The specific terms of the custom terminology applied to the input text by Amazon Translate for the
35
- * translated text response. A maximum of 250 terms will be returned, and the specific terms
36
- * applied will be the first 250 terms in the source text. </p>
37
- */
38
- Terms?: Term[];
39
- }
40
- export declare namespace AppliedTerminology {
41
- /**
42
- * @internal
43
- */
44
- const filterSensitiveLog: (obj: AppliedTerminology) => any;
45
- }
46
- /**
47
- * <p>There was a conflict processing the request. Try your request again.</p>
48
- */
49
- export interface ConflictException extends __SmithyException, $MetadataBearer {
50
- name: "ConflictException";
51
- $fault: "client";
52
- Message?: string;
53
- }
54
- export declare namespace ConflictException {
55
- /**
56
- * @internal
57
- */
58
- const filterSensitiveLog: (obj: ConflictException) => any;
59
- }
60
- export declare enum EncryptionKeyType {
61
- KMS = "KMS"
62
- }
63
- /**
64
- * <p>The encryption key used to encrypt this object.</p>
65
- */
66
- export interface EncryptionKey {
67
- /**
68
- * <p>The type of encryption key used by Amazon Translate to encrypt custom terminologies.</p>
69
- */
70
- Type: EncryptionKeyType | string | undefined;
71
- /**
72
- * <p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom
73
- * terminology.</p>
74
- */
75
- Id: string | undefined;
76
- }
77
- export declare namespace EncryptionKey {
78
- /**
79
- * @internal
80
- */
81
- const filterSensitiveLog: (obj: EncryptionKey) => any;
82
- }
83
- export declare enum ParallelDataFormat {
84
- CSV = "CSV",
85
- TMX = "TMX",
86
- TSV = "TSV"
87
- }
88
- /**
89
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
90
- */
91
- export interface ParallelDataConfig {
92
- /**
93
- * <p>The URI of the Amazon S3 folder that contains the parallel data input file. The folder
94
- * must be in the same Region as the API endpoint you are calling.</p>
95
- */
96
- S3Uri: string | undefined;
97
- /**
98
- * <p>The format of the parallel data input file.</p>
99
- */
100
- Format: ParallelDataFormat | string | undefined;
101
- }
102
- export declare namespace ParallelDataConfig {
103
- /**
104
- * @internal
105
- */
106
- const filterSensitiveLog: (obj: ParallelDataConfig) => any;
107
- }
108
- export interface CreateParallelDataRequest {
109
- /**
110
- * <p>A custom name for the parallel data resource in Amazon Translate. You must assign a name
111
- * that is unique in the account and region.</p>
112
- */
113
- Name: string | undefined;
114
- /**
115
- * <p>A custom description for the parallel data resource in Amazon Translate.</p>
116
- */
117
- Description?: string;
118
- /**
119
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
120
- */
121
- ParallelDataConfig: ParallelDataConfig | undefined;
122
- /**
123
- * <p>The encryption key used to encrypt this object.</p>
124
- */
125
- EncryptionKey?: EncryptionKey;
126
- /**
127
- * <p>A unique identifier for the request. This token is automatically generated when you use
128
- * Amazon Translate through an AWS SDK.</p>
129
- */
130
- ClientToken?: string;
131
- }
132
- export declare namespace CreateParallelDataRequest {
133
- /**
134
- * @internal
135
- */
136
- const filterSensitiveLog: (obj: CreateParallelDataRequest) => any;
137
- }
138
- export declare enum ParallelDataStatus {
139
- ACTIVE = "ACTIVE",
140
- CREATING = "CREATING",
141
- DELETING = "DELETING",
142
- FAILED = "FAILED",
143
- UPDATING = "UPDATING"
144
- }
145
- export interface CreateParallelDataResponse {
146
- /**
147
- * <p>The custom name that you assigned to the parallel data resource.</p>
148
- */
149
- Name?: string;
150
- /**
151
- * <p>The status of the parallel data resource. When the resource is ready for you to use, the
152
- * status is <code>ACTIVE</code>.</p>
153
- */
154
- Status?: ParallelDataStatus | string;
155
- }
156
- export declare namespace CreateParallelDataResponse {
157
- /**
158
- * @internal
159
- */
160
- const filterSensitiveLog: (obj: CreateParallelDataResponse) => any;
161
- }
162
- /**
163
- * <p>An internal server error occurred. Retry your request.</p>
164
- */
165
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
166
- name: "InternalServerException";
167
- $fault: "server";
168
- Message?: string;
169
- }
170
- export declare namespace InternalServerException {
171
- /**
172
- * @internal
173
- */
174
- const filterSensitiveLog: (obj: InternalServerException) => any;
175
- }
176
- /**
177
- * <p>The value of the parameter is invalid. Review the value of the parameter you are using to
178
- * correct it, and then retry your operation.</p>
179
- */
180
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
181
- name: "InvalidParameterValueException";
182
- $fault: "client";
183
- Message?: string;
184
- }
185
- export declare namespace InvalidParameterValueException {
186
- /**
187
- * @internal
188
- */
189
- const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
190
- }
191
- /**
192
- * <p> The request that you made is invalid. Check your request to determine why it's invalid
193
- * and then retry the request. </p>
194
- */
195
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
196
- name: "InvalidRequestException";
197
- $fault: "client";
198
- Message?: string;
199
- }
200
- export declare namespace InvalidRequestException {
201
- /**
202
- * @internal
203
- */
204
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
205
- }
206
- /**
207
- * <p>The specified limit has been exceeded. Review your request and retry it with a quantity
208
- * below the stated limit.</p>
209
- */
210
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
211
- name: "LimitExceededException";
212
- $fault: "client";
213
- Message?: string;
214
- }
215
- export declare namespace LimitExceededException {
216
- /**
217
- * @internal
218
- */
219
- const filterSensitiveLog: (obj: LimitExceededException) => any;
220
- }
221
- /**
222
- * <p> You have made too many requests within a short period of time. Wait for a short time and
223
- * then try your request again.</p>
224
- */
225
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
226
- name: "TooManyRequestsException";
227
- $fault: "client";
228
- Message?: string;
229
- }
230
- export declare namespace TooManyRequestsException {
231
- /**
232
- * @internal
233
- */
234
- const filterSensitiveLog: (obj: TooManyRequestsException) => any;
235
- }
236
- /**
237
- * <p>Another modification is being made. That modification must complete before you can make
238
- * your change.</p>
239
- */
240
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
241
- name: "ConcurrentModificationException";
242
- $fault: "client";
243
- Message?: string;
244
- }
245
- export declare namespace ConcurrentModificationException {
246
- /**
247
- * @internal
248
- */
249
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
250
- }
251
- export interface DeleteParallelDataRequest {
252
- /**
253
- * <p>The name of the parallel data resource that is being deleted.</p>
254
- */
255
- Name: string | undefined;
256
- }
257
- export declare namespace DeleteParallelDataRequest {
258
- /**
259
- * @internal
260
- */
261
- const filterSensitiveLog: (obj: DeleteParallelDataRequest) => any;
262
- }
263
- export interface DeleteParallelDataResponse {
264
- /**
265
- * <p>The name of the parallel data resource that is being deleted.</p>
266
- */
267
- Name?: string;
268
- /**
269
- * <p>The status of the parallel data deletion.</p>
270
- */
271
- Status?: ParallelDataStatus | string;
272
- }
273
- export declare namespace DeleteParallelDataResponse {
274
- /**
275
- * @internal
276
- */
277
- const filterSensitiveLog: (obj: DeleteParallelDataResponse) => any;
278
- }
279
- /**
280
- * <p>The resource you are looking for has not been found. Review the resource you're looking
281
- * for and see if a different resource will accomplish your needs before retrying the revised
282
- * request.</p>
283
- */
284
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
285
- name: "ResourceNotFoundException";
286
- $fault: "client";
287
- Message?: string;
288
- }
289
- export declare namespace ResourceNotFoundException {
290
- /**
291
- * @internal
292
- */
293
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
294
- }
295
- export interface DeleteTerminologyRequest {
296
- /**
297
- * <p>The name of the custom terminology being deleted. </p>
298
- */
299
- Name: string | undefined;
300
- }
301
- export declare namespace DeleteTerminologyRequest {
302
- /**
303
- * @internal
304
- */
305
- const filterSensitiveLog: (obj: DeleteTerminologyRequest) => any;
306
- }
307
- export interface DescribeTextTranslationJobRequest {
308
- /**
309
- * <p>The identifier that Amazon Translate generated for the job. The <a>StartTextTranslationJob</a> operation returns this identifier in its
310
- * response.</p>
311
- */
312
- JobId: string | undefined;
313
- }
314
- export declare namespace DescribeTextTranslationJobRequest {
315
- /**
316
- * @internal
317
- */
318
- const filterSensitiveLog: (obj: DescribeTextTranslationJobRequest) => any;
319
- }
320
- /**
321
- * <p>The input configuration properties for requesting a batch translation job.</p>
322
- */
323
- export interface InputDataConfig {
324
- /**
325
- * <p>The URI of the AWS S3 folder that contains the input file. The folder must be in the
326
- * same Region as the API endpoint you are calling.</p>
327
- */
328
- S3Uri: string | undefined;
329
- /**
330
- * <p>Describes the format of the data that you submit to Amazon Translate as input. You can
331
- * specify one of the following multipurpose internet mail extension (MIME) types:</p>
332
- * <ul>
333
- * <li>
334
- * <p>
335
- * <code>text/html</code>: The input data consists of one or more HTML files. Amazon
336
- * Translate translates only the text that resides in the <code>html</code> element in each
337
- * file.</p>
338
- * </li>
339
- * <li>
340
- * <p>
341
- * <code>text/plain</code>: The input data consists of one or more unformatted text
342
- * files. Amazon Translate translates every character in this type of input.</p>
343
- * </li>
344
- * <li>
345
- * <p>
346
- * <code>application/vnd.openxmlformats-officedocument.wordprocessingml.document</code>:
347
- * The input data consists of one or more Word documents (.docx).</p>
348
- * </li>
349
- * <li>
350
- * <p>
351
- * <code>application/vnd.openxmlformats-officedocument.presentationml.presentation</code>:
352
- * The input data consists of one or more PowerPoint Presentation files (.pptx).</p>
353
- * </li>
354
- * <li>
355
- * <p>
356
- * <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code>: The
357
- * input data consists of one or more Excel Workbook files (.xlsx).</p>
358
- * </li>
359
- * </ul>
360
- * <important>
361
- * <p>If you structure your input data as HTML, ensure that you set this parameter to
362
- * <code>text/html</code>. By doing so, you cut costs by limiting the translation to the
363
- * contents of the <code>html</code> element in each file. Otherwise, if you set this parameter
364
- * to <code>text/plain</code>, your costs will cover the translation of every character.</p>
365
- * </important>
366
- */
367
- ContentType: string | undefined;
368
- }
369
- export declare namespace InputDataConfig {
370
- /**
371
- * @internal
372
- */
373
- const filterSensitiveLog: (obj: InputDataConfig) => any;
374
- }
375
- /**
376
- * <p>The number of documents successfully and unsuccessfully processed during a translation
377
- * job.</p>
378
- */
379
- export interface JobDetails {
380
- /**
381
- * <p>The number of documents successfully processed during a translation job.</p>
382
- */
383
- TranslatedDocumentsCount?: number;
384
- /**
385
- * <p>The number of documents that could not be processed during a translation job.</p>
386
- */
387
- DocumentsWithErrorsCount?: number;
388
- /**
389
- * <p>The number of documents used as input in a translation job.</p>
390
- */
391
- InputDocumentsCount?: number;
392
- }
393
- export declare namespace JobDetails {
394
- /**
395
- * @internal
396
- */
397
- const filterSensitiveLog: (obj: JobDetails) => any;
398
- }
399
- export declare enum JobStatus {
400
- COMPLETED = "COMPLETED",
401
- COMPLETED_WITH_ERROR = "COMPLETED_WITH_ERROR",
402
- FAILED = "FAILED",
403
- IN_PROGRESS = "IN_PROGRESS",
404
- STOPPED = "STOPPED",
405
- STOP_REQUESTED = "STOP_REQUESTED",
406
- SUBMITTED = "SUBMITTED"
407
- }
408
- /**
409
- * <p>The output configuration properties for a batch translation job.</p>
410
- */
411
- export interface OutputDataConfig {
412
- /**
413
- * <p>The URI of the S3 folder that contains a translation job's output file. The folder must
414
- * be in the same Region as the API endpoint that you are calling.</p>
415
- */
416
- S3Uri: string | undefined;
417
- }
418
- export declare namespace OutputDataConfig {
419
- /**
420
- * @internal
421
- */
422
- const filterSensitiveLog: (obj: OutputDataConfig) => any;
423
- }
424
- /**
425
- * <p>Provides information about a translation job.</p>
426
- */
427
- export interface TextTranslationJobProperties {
428
- /**
429
- * <p>The ID of the translation job.</p>
430
- */
431
- JobId?: string;
432
- /**
433
- * <p>The user-defined name of the translation job.</p>
434
- */
435
- JobName?: string;
436
- /**
437
- * <p>The status of the translation job.</p>
438
- */
439
- JobStatus?: JobStatus | string;
440
- /**
441
- * <p>The number of documents successfully and unsuccessfully processed during the translation
442
- * job.</p>
443
- */
444
- JobDetails?: JobDetails;
445
- /**
446
- * <p>The language code of the language of the source text. The language must be a language
447
- * supported by Amazon Translate.</p>
448
- */
449
- SourceLanguageCode?: string;
450
- /**
451
- * <p>The language code of the language of the target text. The language must be a language
452
- * supported by Amazon Translate.</p>
453
- */
454
- TargetLanguageCodes?: string[];
455
- /**
456
- * <p>A list containing the names of the terminologies applied to a translation job. Only one
457
- * terminology can be applied per <a>StartTextTranslationJob</a> request at this
458
- * time.</p>
459
- */
460
- TerminologyNames?: string[];
461
- /**
462
- * <p>A list containing the names of the parallel data resources applied to the translation
463
- * job.</p>
464
- */
465
- ParallelDataNames?: string[];
466
- /**
467
- * <p>An explanation of any errors that may have occured during the translation job.</p>
468
- */
469
- Message?: string;
470
- /**
471
- * <p>The time at which the translation job was submitted.</p>
472
- */
473
- SubmittedTime?: Date;
474
- /**
475
- * <p>The time at which the translation job ended.</p>
476
- */
477
- EndTime?: Date;
478
- /**
479
- * <p>The input configuration properties that were specified when the job was requested.</p>
480
- */
481
- InputDataConfig?: InputDataConfig;
482
- /**
483
- * <p>The output configuration properties that were specified when the job was requested.</p>
484
- */
485
- OutputDataConfig?: OutputDataConfig;
486
- /**
487
- * <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
488
- * that granted Amazon Translate read access to the job's input data.</p>
489
- */
490
- DataAccessRoleArn?: string;
491
- }
492
- export declare namespace TextTranslationJobProperties {
493
- /**
494
- * @internal
495
- */
496
- const filterSensitiveLog: (obj: TextTranslationJobProperties) => any;
497
- }
498
- export interface DescribeTextTranslationJobResponse {
499
- /**
500
- * <p>An object that contains the properties associated with an asynchronous batch translation
501
- * job.</p>
502
- */
503
- TextTranslationJobProperties?: TextTranslationJobProperties;
504
- }
505
- export declare namespace DescribeTextTranslationJobResponse {
506
- /**
507
- * @internal
508
- */
509
- const filterSensitiveLog: (obj: DescribeTextTranslationJobResponse) => any;
510
- }
511
- export interface GetParallelDataRequest {
512
- /**
513
- * <p>The name of the parallel data resource that is being retrieved.</p>
514
- */
515
- Name: string | undefined;
516
- }
517
- export declare namespace GetParallelDataRequest {
518
- /**
519
- * @internal
520
- */
521
- const filterSensitiveLog: (obj: GetParallelDataRequest) => any;
522
- }
523
- /**
524
- * <p>The location of the most recent parallel data input file that was successfully imported
525
- * into Amazon Translate.</p>
526
- */
527
- export interface ParallelDataDataLocation {
528
- /**
529
- * <p>Describes the repository that contains the parallel data input file.</p>
530
- */
531
- RepositoryType: string | undefined;
532
- /**
533
- * <p>The Amazon S3 location of the parallel data input file. The location is returned as a
534
- * presigned URL to that has a 30 minute expiration.</p>
535
- */
536
- Location: string | undefined;
537
- }
538
- export declare namespace ParallelDataDataLocation {
539
- /**
540
- * @internal
541
- */
542
- const filterSensitiveLog: (obj: ParallelDataDataLocation) => any;
543
- }
544
- /**
545
- * <p>The properties of a parallel data resource.</p>
546
- */
547
- export interface ParallelDataProperties {
548
- /**
549
- * <p>The custom name assigned to the parallel data resource.</p>
550
- */
551
- Name?: string;
552
- /**
553
- * <p>The Amazon Resource Name (ARN) of the parallel data resource.</p>
554
- */
555
- Arn?: string;
556
- /**
557
- * <p>The description assigned to the parallel data resource.</p>
558
- */
559
- Description?: string;
560
- /**
561
- * <p>The status of the parallel data resource. When the parallel data is ready for you to use,
562
- * the status is <code>ACTIVE</code>.</p>
563
- */
564
- Status?: ParallelDataStatus | string;
565
- /**
566
- * <p>The source language of the translations in the parallel data file.</p>
567
- */
568
- SourceLanguageCode?: string;
569
- /**
570
- * <p>The language codes for the target languages available in the parallel data file. All
571
- * possible target languages are returned as an array.</p>
572
- */
573
- TargetLanguageCodes?: string[];
574
- /**
575
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
576
- */
577
- ParallelDataConfig?: ParallelDataConfig;
578
- /**
579
- * <p>Additional information from Amazon Translate about the parallel data resource. </p>
580
- */
581
- Message?: string;
582
- /**
583
- * <p>The number of UTF-8 characters that Amazon Translate imported from the parallel data input
584
- * file. This number includes only the characters in your translation examples. It does not
585
- * include characters that are used to format your file. For example, if you provided a
586
- * Translation Memory Exchange (.tmx) file, this number does not include the tags.</p>
587
- */
588
- ImportedDataSize?: number;
589
- /**
590
- * <p>The number of records successfully imported from the parallel data input file.</p>
591
- */
592
- ImportedRecordCount?: number;
593
- /**
594
- * <p>The number of records unsuccessfully imported from the parallel data input file.</p>
595
- */
596
- FailedRecordCount?: number;
597
- /**
598
- * <p>The number of items in the input file that Amazon Translate skipped when you created or
599
- * updated the parallel data resource. For example, Amazon Translate skips empty records, empty
600
- * target texts, and empty lines.</p>
601
- */
602
- SkippedRecordCount?: number;
603
- /**
604
- * <p>The encryption key used to encrypt this object.</p>
605
- */
606
- EncryptionKey?: EncryptionKey;
607
- /**
608
- * <p>The time at which the parallel data resource was created.</p>
609
- */
610
- CreatedAt?: Date;
611
- /**
612
- * <p>The time at which the parallel data resource was last updated.</p>
613
- */
614
- LastUpdatedAt?: Date;
615
- /**
616
- * <p>The status of the most recent update attempt for the parallel data resource.</p>
617
- */
618
- LatestUpdateAttemptStatus?: ParallelDataStatus | string;
619
- /**
620
- * <p>The time that the most recent update was attempted.</p>
621
- */
622
- LatestUpdateAttemptAt?: Date;
623
- }
624
- export declare namespace ParallelDataProperties {
625
- /**
626
- * @internal
627
- */
628
- const filterSensitiveLog: (obj: ParallelDataProperties) => any;
629
- }
630
- export interface GetParallelDataResponse {
631
- /**
632
- * <p>The properties of the parallel data resource that is being retrieved.</p>
633
- */
634
- ParallelDataProperties?: ParallelDataProperties;
635
- /**
636
- * <p>The location of the most recent parallel data input file that was successfully imported
637
- * into Amazon Translate. The location is returned as a presigned URL that has a 30 minute
638
- * expiration.</p>
639
- */
640
- DataLocation?: ParallelDataDataLocation;
641
- /**
642
- * <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
643
- * by your input file. This file was created when Amazon Translate attempted to create a parallel
644
- * data resource. The location is returned as a presigned URL to that has a 30 minute
645
- * expiration.</p>
646
- */
647
- AuxiliaryDataLocation?: ParallelDataDataLocation;
648
- /**
649
- * <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
650
- * by your input file. This file was created when Amazon Translate attempted to update a parallel
651
- * data resource. The location is returned as a presigned URL to that has a 30 minute
652
- * expiration.</p>
653
- */
654
- LatestUpdateAttemptAuxiliaryDataLocation?: ParallelDataDataLocation;
655
- }
656
- export declare namespace GetParallelDataResponse {
657
- /**
658
- * @internal
659
- */
660
- const filterSensitiveLog: (obj: GetParallelDataResponse) => any;
661
- }
662
- export declare enum TerminologyDataFormat {
663
- CSV = "CSV",
664
- TMX = "TMX"
665
- }
666
- export interface GetTerminologyRequest {
667
- /**
668
- * <p>The name of the custom terminology being retrieved.</p>
669
- */
670
- Name: string | undefined;
671
- /**
672
- * <p>The data format of the custom terminology being retrieved, either CSV or TMX.</p>
673
- */
674
- TerminologyDataFormat: TerminologyDataFormat | string | undefined;
675
- }
676
- export declare namespace GetTerminologyRequest {
677
- /**
678
- * @internal
679
- */
680
- const filterSensitiveLog: (obj: GetTerminologyRequest) => any;
681
- }
682
- /**
683
- * <p>The location of the custom terminology data.</p>
684
- */
685
- export interface TerminologyDataLocation {
686
- /**
687
- * <p>The repository type for the custom terminology data.</p>
688
- */
689
- RepositoryType: string | undefined;
690
- /**
691
- * <p>The location of the custom terminology data.</p>
692
- */
693
- Location: string | undefined;
694
- }
695
- export declare namespace TerminologyDataLocation {
696
- /**
697
- * @internal
698
- */
699
- const filterSensitiveLog: (obj: TerminologyDataLocation) => any;
700
- }
701
- /**
702
- * <p>The properties of the custom terminology.</p>
703
- */
704
- export interface TerminologyProperties {
705
- /**
706
- * <p>The name of the custom terminology.</p>
707
- */
708
- Name?: string;
709
- /**
710
- * <p>The description of the custom terminology properties.</p>
711
- */
712
- Description?: string;
713
- /**
714
- * <p> The Amazon Resource Name (ARN) of the custom terminology. </p>
715
- */
716
- Arn?: string;
717
- /**
718
- * <p>The language code for the source text of the translation request for which the custom
719
- * terminology is being used.</p>
720
- */
721
- SourceLanguageCode?: string;
722
- /**
723
- * <p>The language codes for the target languages available with the custom terminology file.
724
- * All possible target languages are returned in array.</p>
725
- */
726
- TargetLanguageCodes?: string[];
727
- /**
728
- * <p>The encryption key for the custom terminology.</p>
729
- */
730
- EncryptionKey?: EncryptionKey;
731
- /**
732
- * <p>The size of the file used when importing a custom terminology.</p>
733
- */
734
- SizeBytes?: number;
735
- /**
736
- * <p>The number of terms included in the custom terminology.</p>
737
- */
738
- TermCount?: number;
739
- /**
740
- * <p>The time at which the custom terminology was created, based on the timestamp.</p>
741
- */
742
- CreatedAt?: Date;
743
- /**
744
- * <p>The time at which the custom terminology was last update, based on the timestamp.</p>
745
- */
746
- LastUpdatedAt?: Date;
747
- }
748
- export declare namespace TerminologyProperties {
749
- /**
750
- * @internal
751
- */
752
- const filterSensitiveLog: (obj: TerminologyProperties) => any;
753
- }
754
- export interface GetTerminologyResponse {
755
- /**
756
- * <p>The properties of the custom terminology being retrieved.</p>
757
- */
758
- TerminologyProperties?: TerminologyProperties;
759
- /**
760
- * <p>The data location of the custom terminology being retrieved. The custom terminology file
761
- * is returned in a presigned url that has a 30 minute expiration.</p>
762
- */
763
- TerminologyDataLocation?: TerminologyDataLocation;
764
- }
765
- export declare namespace GetTerminologyResponse {
766
- /**
767
- * @internal
768
- */
769
- const filterSensitiveLog: (obj: GetTerminologyResponse) => any;
770
- }
771
- export declare enum MergeStrategy {
772
- OVERWRITE = "OVERWRITE"
773
- }
774
- /**
775
- * <p>The data associated with the custom terminology.</p>
776
- */
777
- export interface TerminologyData {
778
- /**
779
- * <p>The file containing the custom terminology data. Your version of the AWS SDK performs a
780
- * Base64-encoding on this field before sending a request to the AWS service. Users of the SDK
781
- * should not perform Base64-encoding themselves.</p>
782
- */
783
- File: Uint8Array | undefined;
784
- /**
785
- * <p>The data format of the custom terminology. Either CSV or TMX.</p>
786
- */
787
- Format: TerminologyDataFormat | string | undefined;
788
- }
789
- export declare namespace TerminologyData {
790
- /**
791
- * @internal
792
- */
793
- const filterSensitiveLog: (obj: TerminologyData) => any;
794
- }
795
- export interface ImportTerminologyRequest {
796
- /**
797
- * <p>The name of the custom terminology being imported.</p>
798
- */
799
- Name: string | undefined;
800
- /**
801
- * <p>The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE
802
- * merge strategy is supported. In this case, the imported terminology will overwrite an existing
803
- * terminology of the same name.</p>
804
- */
805
- MergeStrategy: MergeStrategy | string | undefined;
806
- /**
807
- * <p>The description of the custom terminology being imported.</p>
808
- */
809
- Description?: string;
810
- /**
811
- * <p>The terminology data for the custom terminology being imported.</p>
812
- */
813
- TerminologyData: TerminologyData | undefined;
814
- /**
815
- * <p>The encryption key for the custom terminology being imported.</p>
816
- */
817
- EncryptionKey?: EncryptionKey;
818
- }
819
- export declare namespace ImportTerminologyRequest {
820
- /**
821
- * @internal
822
- */
823
- const filterSensitiveLog: (obj: ImportTerminologyRequest) => any;
824
- }
825
- export interface ImportTerminologyResponse {
826
- /**
827
- * <p>The properties of the custom terminology being imported.</p>
828
- */
829
- TerminologyProperties?: TerminologyProperties;
830
- }
831
- export declare namespace ImportTerminologyResponse {
832
- /**
833
- * @internal
834
- */
835
- const filterSensitiveLog: (obj: ImportTerminologyResponse) => any;
836
- }
837
- export interface ListParallelDataRequest {
838
- /**
839
- * <p>A string that specifies the next page of results to return in a paginated response.</p>
840
- */
841
- NextToken?: string;
842
- /**
843
- * <p>The maximum number of parallel data resources returned for each request.</p>
844
- */
845
- MaxResults?: number;
846
- }
847
- export declare namespace ListParallelDataRequest {
848
- /**
849
- * @internal
850
- */
851
- const filterSensitiveLog: (obj: ListParallelDataRequest) => any;
852
- }
853
- export interface ListParallelDataResponse {
854
- /**
855
- * <p>The properties of the parallel data resources returned by this request.</p>
856
- */
857
- ParallelDataPropertiesList?: ParallelDataProperties[];
858
- /**
859
- * <p>The string to use in a subsequent request to get the next page of results in a paginated
860
- * response. This value is null if there are no additional pages.</p>
861
- */
862
- NextToken?: string;
863
- }
864
- export declare namespace ListParallelDataResponse {
865
- /**
866
- * @internal
867
- */
868
- const filterSensitiveLog: (obj: ListParallelDataResponse) => any;
869
- }
870
- export interface ListTerminologiesRequest {
871
- /**
872
- * <p>If the result of the request to ListTerminologies was truncated, include the NextToken to
873
- * fetch the next group of custom terminologies. </p>
874
- */
875
- NextToken?: string;
876
- /**
877
- * <p>The maximum number of custom terminologies returned per list request.</p>
878
- */
879
- MaxResults?: number;
880
- }
881
- export declare namespace ListTerminologiesRequest {
882
- /**
883
- * @internal
884
- */
885
- const filterSensitiveLog: (obj: ListTerminologiesRequest) => any;
886
- }
887
- export interface ListTerminologiesResponse {
888
- /**
889
- * <p>The properties list of the custom terminologies returned on the list request.</p>
890
- */
891
- TerminologyPropertiesList?: TerminologyProperties[];
892
- /**
893
- * <p> If the response to the ListTerminologies was truncated, the NextToken fetches the next
894
- * group of custom terminologies.</p>
895
- */
896
- NextToken?: string;
897
- }
898
- export declare namespace ListTerminologiesResponse {
899
- /**
900
- * @internal
901
- */
902
- const filterSensitiveLog: (obj: ListTerminologiesResponse) => any;
903
- }
904
- /**
905
- * <p>The filter specified for the operation is invalid. Specify a different filter.</p>
906
- */
907
- export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
908
- name: "InvalidFilterException";
909
- $fault: "client";
910
- Message?: string;
911
- }
912
- export declare namespace InvalidFilterException {
913
- /**
914
- * @internal
915
- */
916
- const filterSensitiveLog: (obj: InvalidFilterException) => any;
917
- }
918
- /**
919
- * <p>Provides information for filtering a list of translation jobs. For more information, see
920
- * <a>ListTextTranslationJobs</a>.</p>
921
- */
922
- export interface TextTranslationJobFilter {
923
- /**
924
- * <p>Filters the list of jobs by name.</p>
925
- */
926
- JobName?: string;
927
- /**
928
- * <p>Filters the list of jobs based by job status.</p>
929
- */
930
- JobStatus?: JobStatus | string;
931
- /**
932
- * <p>Filters the list of jobs based on the time that the job was submitted for processing and
933
- * returns only the jobs submitted before the specified time. Jobs are returned in ascending
934
- * order, oldest to newest.</p>
935
- */
936
- SubmittedBeforeTime?: Date;
937
- /**
938
- * <p>Filters the list of jobs based on the time that the job was submitted for processing and
939
- * returns only the jobs submitted after the specified time. Jobs are returned in descending
940
- * order, newest to oldest.</p>
941
- */
942
- SubmittedAfterTime?: Date;
943
- }
944
- export declare namespace TextTranslationJobFilter {
945
- /**
946
- * @internal
947
- */
948
- const filterSensitiveLog: (obj: TextTranslationJobFilter) => any;
949
- }
950
- export interface ListTextTranslationJobsRequest {
951
- /**
952
- * <p>The parameters that specify which batch translation jobs to retrieve. Filters include job
953
- * name, job status, and submission time. You can only set one filter at a time.</p>
954
- */
955
- Filter?: TextTranslationJobFilter;
956
- /**
957
- * <p>The token to request the next page of results.</p>
958
- */
959
- NextToken?: string;
960
- /**
961
- * <p>The maximum number of results to return in each page. The default value is 100.</p>
962
- */
963
- MaxResults?: number;
964
- }
965
- export declare namespace ListTextTranslationJobsRequest {
966
- /**
967
- * @internal
968
- */
969
- const filterSensitiveLog: (obj: ListTextTranslationJobsRequest) => any;
970
- }
971
- export interface ListTextTranslationJobsResponse {
972
- /**
973
- * <p>A list containing the properties of each job that is returned.</p>
974
- */
975
- TextTranslationJobPropertiesList?: TextTranslationJobProperties[];
976
- /**
977
- * <p>The token to use to retreive the next page of results. This value is <code>null</code>
978
- * when there are no more results to return.</p>
979
- */
980
- NextToken?: string;
981
- }
982
- export declare namespace ListTextTranslationJobsResponse {
983
- /**
984
- * @internal
985
- */
986
- const filterSensitiveLog: (obj: ListTextTranslationJobsResponse) => any;
987
- }
988
- export interface StartTextTranslationJobRequest {
989
- /**
990
- * <p>The name of the batch translation job to be performed.</p>
991
- */
992
- JobName?: string;
993
- /**
994
- * <p>Specifies the format and S3 location of the input documents for the translation
995
- * job.</p>
996
- */
997
- InputDataConfig: InputDataConfig | undefined;
998
- /**
999
- * <p>Specifies the S3 folder to which your job output will be saved.
1000
- * </p>
1001
- */
1002
- OutputDataConfig: OutputDataConfig | undefined;
1003
- /**
1004
- * <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
1005
- * that grants Amazon Translate read access to your input data. For more nformation, see <a>identity-and-access-management</a>.</p>
1006
- */
1007
- DataAccessRoleArn: string | undefined;
1008
- /**
1009
- * <p>The language code of the input language. For a list of language codes, see <a>what-is-languages</a>.</p>
1010
- * <p>Amazon Translate does not automatically detect a source language during batch translation
1011
- * jobs.</p>
1012
- */
1013
- SourceLanguageCode: string | undefined;
1014
- /**
1015
- * <p>The language code of the output language.</p>
1016
- */
1017
- TargetLanguageCodes: string[] | undefined;
1018
- /**
1019
- * <p>The name of the terminology to use in the batch translation job. For a list of available
1020
- * terminologies, use the <a>ListTerminologies</a> operation.</p>
1021
- */
1022
- TerminologyNames?: string[];
1023
- /**
1024
- * <p>The names of the parallel data resources to use in the batch translation job. For a list
1025
- * of available parallel data resources, use the <a>ListParallelData</a>
1026
- * operation.</p>
1027
- */
1028
- ParallelDataNames?: string[];
1029
- /**
1030
- * <p>A unique identifier for the request. This token is auto-generated when using the Amazon Translate
1031
- * SDK.</p>
1032
- */
1033
- ClientToken?: string;
1034
- }
1035
- export declare namespace StartTextTranslationJobRequest {
1036
- /**
1037
- * @internal
1038
- */
1039
- const filterSensitiveLog: (obj: StartTextTranslationJobRequest) => any;
1040
- }
1041
- export interface StartTextTranslationJobResponse {
1042
- /**
1043
- * <p>The identifier generated for the job. To get the status of a job, use this ID with the
1044
- * <a>DescribeTextTranslationJob</a> operation.</p>
1045
- */
1046
- JobId?: string;
1047
- /**
1048
- * <p>The status of the job. Possible values include:</p>
1049
- * <ul>
1050
- * <li>
1051
- * <p>
1052
- * <code>SUBMITTED</code> - The job has been received and is queued for
1053
- * processing.</p>
1054
- * </li>
1055
- * <li>
1056
- * <p>
1057
- * <code>IN_PROGRESS</code> - Amazon Translate is processing the job.</p>
1058
- * </li>
1059
- * <li>
1060
- * <p>
1061
- * <code>COMPLETED</code> - The job was successfully completed and the output is
1062
- * available.</p>
1063
- * </li>
1064
- * <li>
1065
- * <p>
1066
- * <code>COMPLETED_WITH_ERROR</code> - The job was completed with errors. The errors can
1067
- * be analyzed in the job's output.</p>
1068
- * </li>
1069
- * <li>
1070
- * <p>
1071
- * <code>FAILED</code> - The job did not complete. To get details, use the <a>DescribeTextTranslationJob</a> operation.</p>
1072
- * </li>
1073
- * <li>
1074
- * <p>
1075
- * <code>STOP_REQUESTED</code> - The user who started the job has requested that it be
1076
- * stopped.</p>
1077
- * </li>
1078
- * <li>
1079
- * <p>
1080
- * <code>STOPPED</code> - The job has been stopped.</p>
1081
- * </li>
1082
- * </ul>
1083
- */
1084
- JobStatus?: JobStatus | string;
1085
- }
1086
- export declare namespace StartTextTranslationJobResponse {
1087
- /**
1088
- * @internal
1089
- */
1090
- const filterSensitiveLog: (obj: StartTextTranslationJobResponse) => any;
1091
- }
1092
- /**
1093
- * <p>Amazon Translate does not support translation from the language of the source text into the requested
1094
- * target language. For more information, see <a>how-to-error-msg</a>. </p>
1095
- */
1096
- export interface UnsupportedLanguagePairException extends __SmithyException, $MetadataBearer {
1097
- name: "UnsupportedLanguagePairException";
1098
- $fault: "client";
1099
- Message?: string;
1100
- /**
1101
- * <p>The language code for the language of the input text. </p>
1102
- */
1103
- SourceLanguageCode?: string;
1104
- /**
1105
- * <p>The language code for the language of the translated text. </p>
1106
- */
1107
- TargetLanguageCode?: string;
1108
- }
1109
- export declare namespace UnsupportedLanguagePairException {
1110
- /**
1111
- * @internal
1112
- */
1113
- const filterSensitiveLog: (obj: UnsupportedLanguagePairException) => any;
1114
- }
1115
- export interface StopTextTranslationJobRequest {
1116
- /**
1117
- * <p>The job ID of the job to be stopped.</p>
1118
- */
1119
- JobId: string | undefined;
1120
- }
1121
- export declare namespace StopTextTranslationJobRequest {
1122
- /**
1123
- * @internal
1124
- */
1125
- const filterSensitiveLog: (obj: StopTextTranslationJobRequest) => any;
1126
- }
1127
- export interface StopTextTranslationJobResponse {
1128
- /**
1129
- * <p>The job ID of the stopped batch translation job.</p>
1130
- */
1131
- JobId?: string;
1132
- /**
1133
- * <p>The status of the designated job. Upon successful completion, the job's status will be
1134
- * <code>STOPPED</code>.</p>
1135
- */
1136
- JobStatus?: JobStatus | string;
1137
- }
1138
- export declare namespace StopTextTranslationJobResponse {
1139
- /**
1140
- * @internal
1141
- */
1142
- const filterSensitiveLog: (obj: StopTextTranslationJobResponse) => any;
1143
- }
1144
- /**
1145
- * <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
1146
- * low confidence level is acceptable for your application, you can use the language in the
1147
- * exception to call Amazon Translate again. For more information, see the <a href="https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer
1148
- * Guide</i>. </p>
1149
- */
1150
- export interface DetectedLanguageLowConfidenceException extends __SmithyException, $MetadataBearer {
1151
- name: "DetectedLanguageLowConfidenceException";
1152
- $fault: "client";
1153
- Message?: string;
1154
- /**
1155
- * <p>The language code of the auto-detected language from Amazon Comprehend.</p>
1156
- */
1157
- DetectedLanguageCode?: string;
1158
- }
1159
- export declare namespace DetectedLanguageLowConfidenceException {
1160
- /**
1161
- * @internal
1162
- */
1163
- const filterSensitiveLog: (obj: DetectedLanguageLowConfidenceException) => any;
1164
- }
1165
- /**
1166
- * <p>The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your
1167
- * request.</p>
1168
- */
1169
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
1170
- name: "ServiceUnavailableException";
1171
- $fault: "server";
1172
- Message?: string;
1173
- }
1174
- export declare namespace ServiceUnavailableException {
1175
- /**
1176
- * @internal
1177
- */
1178
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
1179
- }
1180
- /**
1181
- * <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
1182
- * use a smaller document and then retry your request. </p>
1183
- */
1184
- export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
1185
- name: "TextSizeLimitExceededException";
1186
- $fault: "client";
1187
- Message?: string;
1188
- }
1189
- export declare namespace TextSizeLimitExceededException {
1190
- /**
1191
- * @internal
1192
- */
1193
- const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
1194
- }
1195
- export interface TranslateTextRequest {
1196
- /**
1197
- * <p>The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on
1198
- * your character set, this may be fewer than 5,000 characters.</p>
1199
- */
1200
- Text: string | undefined;
1201
- /**
1202
- * <p>The name of the terminology list file to be used in the TranslateText request. You can use
1203
- * 1 terminology list at most in a <code>TranslateText</code> request. Terminology lists can
1204
- * contain a maximum of 256 terms.</p>
1205
- */
1206
- TerminologyNames?: string[];
1207
- /**
1208
- * <p>The language code for the language of the source text. The language must be a language
1209
- * supported by Amazon Translate. For a list of language codes, see <a>what-is-languages</a>.</p>
1210
- * <p>To have Amazon Translate determine the source language of your text, you can specify
1211
- * <code>auto</code> in the <code>SourceLanguageCode</code> field. If you specify
1212
- * <code>auto</code>, Amazon Translate will call <a href="https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html">Amazon
1213
- * Comprehend</a> to determine the source language.</p>
1214
- */
1215
- SourceLanguageCode: string | undefined;
1216
- /**
1217
- * <p>The language code requested for the language of the target text. The language must be a
1218
- * language supported by Amazon Translate.</p>
1219
- */
1220
- TargetLanguageCode: string | undefined;
1221
- }
1222
- export declare namespace TranslateTextRequest {
1223
- /**
1224
- * @internal
1225
- */
1226
- const filterSensitiveLog: (obj: TranslateTextRequest) => any;
1227
- }
1228
- export interface TranslateTextResponse {
1229
- /**
1230
- * <p>The translated text.</p>
1231
- */
1232
- TranslatedText: string | undefined;
1233
- /**
1234
- * <p>The language code for the language of the source text.</p>
1235
- */
1236
- SourceLanguageCode: string | undefined;
1237
- /**
1238
- * <p>The language code for the language of the target text. </p>
1239
- */
1240
- TargetLanguageCode: string | undefined;
1241
- /**
1242
- * <p>The names of the custom terminologies applied to the input text by Amazon Translate for the
1243
- * translated text response.</p>
1244
- */
1245
- AppliedTerminologies?: AppliedTerminology[];
1246
- }
1247
- export declare namespace TranslateTextResponse {
1248
- /**
1249
- * @internal
1250
- */
1251
- const filterSensitiveLog: (obj: TranslateTextResponse) => any;
1252
- }
1253
- export interface UpdateParallelDataRequest {
1254
- /**
1255
- * <p>The name of the parallel data resource being updated.</p>
1256
- */
1257
- Name: string | undefined;
1258
- /**
1259
- * <p>A custom description for the parallel data resource in Amazon Translate.</p>
1260
- */
1261
- Description?: string;
1262
- /**
1263
- * <p>Specifies the format and S3 location of the parallel data input file.</p>
1264
- */
1265
- ParallelDataConfig: ParallelDataConfig | undefined;
1266
- /**
1267
- * <p>A unique identifier for the request. This token is automatically generated when you use
1268
- * Amazon Translate through an AWS SDK.</p>
1269
- */
1270
- ClientToken?: string;
1271
- }
1272
- export declare namespace UpdateParallelDataRequest {
1273
- /**
1274
- * @internal
1275
- */
1276
- const filterSensitiveLog: (obj: UpdateParallelDataRequest) => any;
1277
- }
1278
- export interface UpdateParallelDataResponse {
1279
- /**
1280
- * <p>The name of the parallel data resource being updated.</p>
1281
- */
1282
- Name?: string;
1283
- /**
1284
- * <p>The status of the parallel data resource that you are attempting to update. Your update
1285
- * request is accepted only if this status is either <code>ACTIVE</code> or
1286
- * <code>FAILED</code>.</p>
1287
- */
1288
- Status?: ParallelDataStatus | string;
1289
- /**
1290
- * <p>The status of the parallel data update attempt. When the updated parallel data resource is
1291
- * ready for you to use, the status is <code>ACTIVE</code>.</p>
1292
- */
1293
- LatestUpdateAttemptStatus?: ParallelDataStatus | string;
1294
- /**
1295
- * <p>The time that the most recent update was attempted.</p>
1296
- */
1297
- LatestUpdateAttemptAt?: Date;
1298
- }
1299
- export declare namespace UpdateParallelDataResponse {
1300
- /**
1301
- * @internal
1302
- */
1303
- const filterSensitiveLog: (obj: UpdateParallelDataResponse) => any;
1304
- }