@aws-sdk/client-translate 3.35.0 → 3.38.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 (182) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Translate.js +0 -5
  3. package/dist-cjs/TranslateClient.js +0 -10
  4. package/dist-cjs/commands/CreateParallelDataCommand.js +0 -28
  5. package/dist-cjs/commands/DeleteParallelDataCommand.js +0 -25
  6. package/dist-cjs/commands/DeleteTerminologyCommand.js +0 -25
  7. package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +0 -26
  8. package/dist-cjs/commands/GetParallelDataCommand.js +0 -25
  9. package/dist-cjs/commands/GetTerminologyCommand.js +0 -25
  10. package/dist-cjs/commands/ImportTerminologyCommand.js +0 -32
  11. package/dist-cjs/commands/ListParallelDataCommand.js +0 -25
  12. package/dist-cjs/commands/ListTerminologiesCommand.js +0 -25
  13. package/dist-cjs/commands/ListTextTranslationJobsCommand.js +0 -25
  14. package/dist-cjs/commands/StartTextTranslationJobCommand.js +0 -32
  15. package/dist-cjs/commands/StopTextTranslationJobCommand.js +0 -31
  16. package/dist-cjs/commands/TranslateTextCommand.js +0 -26
  17. package/dist-cjs/commands/UpdateParallelDataCommand.js +0 -26
  18. package/dist-cjs/commands/index.js +17 -0
  19. package/dist-cjs/endpoints.js +1 -2
  20. package/dist-cjs/index.js +4 -21
  21. package/dist-cjs/models/index.js +0 -1
  22. package/dist-cjs/models/models_0.js +0 -163
  23. package/dist-cjs/pagination/Interfaces.js +0 -1
  24. package/dist-cjs/pagination/ListParallelDataPaginator.js +0 -11
  25. package/dist-cjs/pagination/ListTerminologiesPaginator.js +0 -11
  26. package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +0 -11
  27. package/dist-cjs/pagination/index.js +7 -0
  28. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  29. package/dist-cjs/runtimeConfig.browser.js +1 -6
  30. package/dist-cjs/runtimeConfig.js +2 -7
  31. package/dist-cjs/runtimeConfig.native.js +0 -4
  32. package/dist-cjs/runtimeConfig.shared.js +0 -4
  33. package/dist-es/Translate.js +0 -1
  34. package/dist-es/TranslateClient.js +0 -1
  35. package/dist-es/commands/CreateParallelDataCommand.js +0 -1
  36. package/dist-es/commands/DeleteParallelDataCommand.js +0 -1
  37. package/dist-es/commands/DeleteTerminologyCommand.js +0 -1
  38. package/dist-es/commands/DescribeTextTranslationJobCommand.js +0 -1
  39. package/dist-es/commands/GetParallelDataCommand.js +0 -1
  40. package/dist-es/commands/GetTerminologyCommand.js +0 -1
  41. package/dist-es/commands/ImportTerminologyCommand.js +0 -1
  42. package/dist-es/commands/ListParallelDataCommand.js +0 -1
  43. package/dist-es/commands/ListTerminologiesCommand.js +0 -1
  44. package/dist-es/commands/ListTextTranslationJobsCommand.js +0 -1
  45. package/dist-es/commands/StartTextTranslationJobCommand.js +0 -1
  46. package/dist-es/commands/StopTextTranslationJobCommand.js +0 -1
  47. package/dist-es/commands/TranslateTextCommand.js +0 -1
  48. package/dist-es/commands/UpdateParallelDataCommand.js +0 -1
  49. package/dist-es/commands/index.js +14 -0
  50. package/dist-es/endpoints.js +1 -2
  51. package/dist-es/index.js +4 -21
  52. package/dist-es/models/index.js +0 -1
  53. package/dist-es/models/models_0.js +0 -1
  54. package/dist-es/pagination/Interfaces.js +0 -1
  55. package/dist-es/pagination/ListParallelDataPaginator.js +0 -1
  56. package/dist-es/pagination/ListTerminologiesPaginator.js +0 -1
  57. package/dist-es/pagination/ListTextTranslationJobsPaginator.js +0 -1
  58. package/dist-es/pagination/index.js +4 -0
  59. package/dist-es/protocols/Aws_json1_1.js +0 -1
  60. package/dist-es/runtimeConfig.browser.js +1 -2
  61. package/dist-es/runtimeConfig.js +2 -3
  62. package/dist-es/runtimeConfig.native.js +0 -1
  63. package/dist-es/runtimeConfig.shared.js +0 -1
  64. package/dist-types/commands/index.d.ts +14 -0
  65. package/dist-types/index.d.ts +4 -20
  66. package/dist-types/pagination/index.d.ts +4 -0
  67. package/dist-types/ts3.4/Translate.d.ts +15 -72
  68. package/dist-types/ts3.4/TranslateClient.d.ts +24 -90
  69. package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +2 -23
  70. package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +2 -20
  71. package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +2 -20
  72. package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +2 -21
  73. package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +2 -20
  74. package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +2 -20
  75. package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +2 -27
  76. package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +2 -20
  77. package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +2 -20
  78. package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +2 -20
  79. package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +2 -27
  80. package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +2 -26
  81. package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +2 -21
  82. package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +2 -21
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/index.d.ts +4 -20
  85. package/dist-types/ts3.4/models/models_0.d.ts +220 -824
  86. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  89. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  90. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  91. package/package.json +33 -30
  92. package/dist-cjs/Translate.js.map +0 -1
  93. package/dist-cjs/TranslateClient.js.map +0 -1
  94. package/dist-cjs/commands/CreateParallelDataCommand.js.map +0 -1
  95. package/dist-cjs/commands/DeleteParallelDataCommand.js.map +0 -1
  96. package/dist-cjs/commands/DeleteTerminologyCommand.js.map +0 -1
  97. package/dist-cjs/commands/DescribeTextTranslationJobCommand.js.map +0 -1
  98. package/dist-cjs/commands/GetParallelDataCommand.js.map +0 -1
  99. package/dist-cjs/commands/GetTerminologyCommand.js.map +0 -1
  100. package/dist-cjs/commands/ImportTerminologyCommand.js.map +0 -1
  101. package/dist-cjs/commands/ListParallelDataCommand.js.map +0 -1
  102. package/dist-cjs/commands/ListTerminologiesCommand.js.map +0 -1
  103. package/dist-cjs/commands/ListTextTranslationJobsCommand.js.map +0 -1
  104. package/dist-cjs/commands/StartTextTranslationJobCommand.js.map +0 -1
  105. package/dist-cjs/commands/StopTextTranslationJobCommand.js.map +0 -1
  106. package/dist-cjs/commands/TranslateTextCommand.js.map +0 -1
  107. package/dist-cjs/commands/UpdateParallelDataCommand.js.map +0 -1
  108. package/dist-cjs/endpoints.js.map +0 -1
  109. package/dist-cjs/index.js.map +0 -1
  110. package/dist-cjs/models/index.js.map +0 -1
  111. package/dist-cjs/models/models_0.js.map +0 -1
  112. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  113. package/dist-cjs/pagination/ListParallelDataPaginator.js.map +0 -1
  114. package/dist-cjs/pagination/ListTerminologiesPaginator.js.map +0 -1
  115. package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
  116. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  117. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  118. package/dist-cjs/runtimeConfig.js.map +0 -1
  119. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  120. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  121. package/dist-es/Translate.js.map +0 -1
  122. package/dist-es/TranslateClient.js.map +0 -1
  123. package/dist-es/commands/CreateParallelDataCommand.js.map +0 -1
  124. package/dist-es/commands/DeleteParallelDataCommand.js.map +0 -1
  125. package/dist-es/commands/DeleteTerminologyCommand.js.map +0 -1
  126. package/dist-es/commands/DescribeTextTranslationJobCommand.js.map +0 -1
  127. package/dist-es/commands/GetParallelDataCommand.js.map +0 -1
  128. package/dist-es/commands/GetTerminologyCommand.js.map +0 -1
  129. package/dist-es/commands/ImportTerminologyCommand.js.map +0 -1
  130. package/dist-es/commands/ListParallelDataCommand.js.map +0 -1
  131. package/dist-es/commands/ListTerminologiesCommand.js.map +0 -1
  132. package/dist-es/commands/ListTextTranslationJobsCommand.js.map +0 -1
  133. package/dist-es/commands/StartTextTranslationJobCommand.js.map +0 -1
  134. package/dist-es/commands/StopTextTranslationJobCommand.js.map +0 -1
  135. package/dist-es/commands/TranslateTextCommand.js.map +0 -1
  136. package/dist-es/commands/UpdateParallelDataCommand.js.map +0 -1
  137. package/dist-es/endpoints.js.map +0 -1
  138. package/dist-es/index.js.map +0 -1
  139. package/dist-es/models/index.js.map +0 -1
  140. package/dist-es/models/models_0.js.map +0 -1
  141. package/dist-es/pagination/Interfaces.js.map +0 -1
  142. package/dist-es/pagination/ListParallelDataPaginator.js.map +0 -1
  143. package/dist-es/pagination/ListTerminologiesPaginator.js.map +0 -1
  144. package/dist-es/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
  145. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  146. package/dist-es/runtimeConfig.browser.js.map +0 -1
  147. package/dist-es/runtimeConfig.js.map +0 -1
  148. package/dist-es/runtimeConfig.native.js.map +0 -1
  149. package/dist-es/runtimeConfig.shared.js.map +0 -1
  150. package/jest.config.js +0 -4
  151. package/src/Translate.ts +0 -553
  152. package/src/TranslateClient.ts +0 -291
  153. package/src/commands/CreateParallelDataCommand.ts +0 -98
  154. package/src/commands/DeleteParallelDataCommand.ts +0 -95
  155. package/src/commands/DeleteTerminologyCommand.ts +0 -95
  156. package/src/commands/DescribeTextTranslationJobCommand.ts +0 -99
  157. package/src/commands/GetParallelDataCommand.ts +0 -95
  158. package/src/commands/GetTerminologyCommand.ts +0 -95
  159. package/src/commands/ImportTerminologyCommand.ts +0 -102
  160. package/src/commands/ListParallelDataCommand.ts +0 -95
  161. package/src/commands/ListTerminologiesCommand.ts +0 -95
  162. package/src/commands/ListTextTranslationJobsCommand.ts +0 -95
  163. package/src/commands/StartTextTranslationJobCommand.ts +0 -102
  164. package/src/commands/StopTextTranslationJobCommand.ts +0 -101
  165. package/src/commands/TranslateTextCommand.ts +0 -96
  166. package/src/commands/UpdateParallelDataCommand.ts +0 -96
  167. package/src/endpoints.ts +0 -77
  168. package/src/index.ts +0 -21
  169. package/src/models/index.ts +0 -1
  170. package/src/models/models_0.ts +0 -1625
  171. package/src/pagination/Interfaces.ts +0 -8
  172. package/src/pagination/ListParallelDataPaginator.ts +0 -59
  173. package/src/pagination/ListTerminologiesPaginator.ts +0 -59
  174. package/src/pagination/ListTextTranslationJobsPaginator.ts +0 -59
  175. package/src/protocols/Aws_json1_1.ts +0 -2523
  176. package/src/runtimeConfig.browser.ts +0 -41
  177. package/src/runtimeConfig.native.ts +0 -17
  178. package/src/runtimeConfig.shared.ts +0 -17
  179. package/src/runtimeConfig.ts +0 -46
  180. package/tsconfig.es.json +0 -10
  181. package/tsconfig.json +0 -33
  182. package/tsconfig.types.json +0 -9
@@ -1,291 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import { CreateParallelDataCommandInput, CreateParallelDataCommandOutput } from "./commands/CreateParallelDataCommand";
53
- import { DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput } from "./commands/DeleteParallelDataCommand";
54
- import { DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput } from "./commands/DeleteTerminologyCommand";
55
- import {
56
- DescribeTextTranslationJobCommandInput,
57
- DescribeTextTranslationJobCommandOutput,
58
- } from "./commands/DescribeTextTranslationJobCommand";
59
- import { GetParallelDataCommandInput, GetParallelDataCommandOutput } from "./commands/GetParallelDataCommand";
60
- import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "./commands/GetTerminologyCommand";
61
- import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "./commands/ImportTerminologyCommand";
62
- import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "./commands/ListParallelDataCommand";
63
- import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "./commands/ListTerminologiesCommand";
64
- import {
65
- ListTextTranslationJobsCommandInput,
66
- ListTextTranslationJobsCommandOutput,
67
- } from "./commands/ListTextTranslationJobsCommand";
68
- import {
69
- StartTextTranslationJobCommandInput,
70
- StartTextTranslationJobCommandOutput,
71
- } from "./commands/StartTextTranslationJobCommand";
72
- import {
73
- StopTextTranslationJobCommandInput,
74
- StopTextTranslationJobCommandOutput,
75
- } from "./commands/StopTextTranslationJobCommand";
76
- import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
77
- import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
78
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
79
-
80
- export type ServiceInputTypes =
81
- | CreateParallelDataCommandInput
82
- | DeleteParallelDataCommandInput
83
- | DeleteTerminologyCommandInput
84
- | DescribeTextTranslationJobCommandInput
85
- | GetParallelDataCommandInput
86
- | GetTerminologyCommandInput
87
- | ImportTerminologyCommandInput
88
- | ListParallelDataCommandInput
89
- | ListTerminologiesCommandInput
90
- | ListTextTranslationJobsCommandInput
91
- | StartTextTranslationJobCommandInput
92
- | StopTextTranslationJobCommandInput
93
- | TranslateTextCommandInput
94
- | UpdateParallelDataCommandInput;
95
-
96
- export type ServiceOutputTypes =
97
- | CreateParallelDataCommandOutput
98
- | DeleteParallelDataCommandOutput
99
- | DeleteTerminologyCommandOutput
100
- | DescribeTextTranslationJobCommandOutput
101
- | GetParallelDataCommandOutput
102
- | GetTerminologyCommandOutput
103
- | ImportTerminologyCommandOutput
104
- | ListParallelDataCommandOutput
105
- | ListTerminologiesCommandOutput
106
- | ListTextTranslationJobsCommandOutput
107
- | StartTextTranslationJobCommandOutput
108
- | StopTextTranslationJobCommandOutput
109
- | TranslateTextCommandOutput
110
- | UpdateParallelDataCommandOutput;
111
-
112
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
113
- /**
114
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
115
- */
116
- requestHandler?: __HttpHandler;
117
-
118
- /**
119
- * A constructor for a class implementing the {@link __Hash} interface
120
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
121
- * @internal
122
- */
123
- sha256?: __HashConstructor;
124
-
125
- /**
126
- * The function that will be used to convert strings into HTTP endpoints.
127
- * @internal
128
- */
129
- urlParser?: __UrlParser;
130
-
131
- /**
132
- * A function that can calculate the length of a request body.
133
- * @internal
134
- */
135
- bodyLengthChecker?: (body: any) => number | undefined;
136
-
137
- /**
138
- * A function that converts a stream into an array of bytes.
139
- * @internal
140
- */
141
- streamCollector?: __StreamCollector;
142
-
143
- /**
144
- * The function that will be used to convert a base64-encoded string to a byte array.
145
- * @internal
146
- */
147
- base64Decoder?: __Decoder;
148
-
149
- /**
150
- * The function that will be used to convert binary data to a base64-encoded string.
151
- * @internal
152
- */
153
- base64Encoder?: __Encoder;
154
-
155
- /**
156
- * The function that will be used to convert a UTF8-encoded string to a byte array.
157
- * @internal
158
- */
159
- utf8Decoder?: __Decoder;
160
-
161
- /**
162
- * The function that will be used to convert binary data to a UTF-8 encoded string.
163
- * @internal
164
- */
165
- utf8Encoder?: __Encoder;
166
-
167
- /**
168
- * The runtime environment.
169
- * @internal
170
- */
171
- runtime?: string;
172
-
173
- /**
174
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
175
- * trait of an operation.
176
- */
177
- disableHostPrefix?: boolean;
178
-
179
- /**
180
- * Value for how many times a request will be made at most in case of retry.
181
- */
182
- maxAttempts?: number | __Provider<number>;
183
-
184
- /**
185
- * Specifies which retry algorithm to use.
186
- */
187
- retryMode?: string | __Provider<string>;
188
-
189
- /**
190
- * Optional logger for logging debug/info/warn/error.
191
- */
192
- logger?: __Logger;
193
-
194
- /**
195
- * Unique service identifier.
196
- * @internal
197
- */
198
- serviceId?: string;
199
-
200
- /**
201
- * The AWS region to which this client will send requests
202
- */
203
- region?: string | __Provider<string>;
204
-
205
- /**
206
- * Default credentials provider; Not available in browser runtime.
207
- * @internal
208
- */
209
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
210
-
211
- /**
212
- * Fetch related hostname, signing name or signing region with given region.
213
- * @internal
214
- */
215
- regionInfoProvider?: RegionInfoProvider;
216
-
217
- /**
218
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
219
- * @internal
220
- */
221
- defaultUserAgentProvider?: Provider<__UserAgent>;
222
- }
223
-
224
- type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
225
- ClientDefaults &
226
- RegionInputConfig &
227
- EndpointsInputConfig &
228
- RetryInputConfig &
229
- HostHeaderInputConfig &
230
- AwsAuthInputConfig &
231
- UserAgentInputConfig;
232
- /**
233
- * The configuration interface of TranslateClient class constructor that set the region, credentials and other options.
234
- */
235
- export interface TranslateClientConfig extends TranslateClientConfigType {}
236
-
237
- type TranslateClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
238
- Required<ClientDefaults> &
239
- RegionResolvedConfig &
240
- EndpointsResolvedConfig &
241
- RetryResolvedConfig &
242
- HostHeaderResolvedConfig &
243
- AwsAuthResolvedConfig &
244
- UserAgentResolvedConfig;
245
- /**
246
- * The resolved configuration interface of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
247
- */
248
- export interface TranslateClientResolvedConfig extends TranslateClientResolvedConfigType {}
249
-
250
- /**
251
- * <p>Provides translation between one source language and another of the same set of
252
- * languages.</p>
253
- */
254
- export class TranslateClient extends __Client<
255
- __HttpHandlerOptions,
256
- ServiceInputTypes,
257
- ServiceOutputTypes,
258
- TranslateClientResolvedConfig
259
- > {
260
- /**
261
- * The resolved configuration of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
262
- */
263
- readonly config: TranslateClientResolvedConfig;
264
-
265
- constructor(configuration: TranslateClientConfig) {
266
- const _config_0 = __getRuntimeConfig(configuration);
267
- const _config_1 = resolveRegionConfig(_config_0);
268
- const _config_2 = resolveEndpointsConfig(_config_1);
269
- const _config_3 = resolveRetryConfig(_config_2);
270
- const _config_4 = resolveHostHeaderConfig(_config_3);
271
- const _config_5 = resolveAwsAuthConfig(_config_4);
272
- const _config_6 = resolveUserAgentConfig(_config_5);
273
- super(_config_6);
274
- this.config = _config_6;
275
- this.middlewareStack.use(getRetryPlugin(this.config));
276
- this.middlewareStack.use(getContentLengthPlugin(this.config));
277
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
278
- this.middlewareStack.use(getLoggerPlugin(this.config));
279
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
280
- this.middlewareStack.use(getUserAgentPlugin(this.config));
281
- }
282
-
283
- /**
284
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
285
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
286
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
287
- */
288
- destroy(): void {
289
- super.destroy();
290
- }
291
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CreateParallelDataRequest, CreateParallelDataResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1CreateParallelDataCommand,
17
- serializeAws_json1_1CreateParallelDataCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
20
-
21
- export interface CreateParallelDataCommandInput extends CreateParallelDataRequest {}
22
- export interface CreateParallelDataCommandOutput extends CreateParallelDataResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates a parallel data resource in Amazon Translate by importing an input file from
26
- * Amazon S3. Parallel data files contain examples of source phrases and their translations from
27
- * your translation memory. By adding parallel data, you can influence the style, tone, and word
28
- * choice in your translation output.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { TranslateClient, CreateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
33
- * // const { TranslateClient, CreateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
34
- * const client = new TranslateClient(config);
35
- * const command = new CreateParallelDataCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link CreateParallelDataCommandInput} for command's `input` shape.
40
- * @see {@link CreateParallelDataCommandOutput} for command's `response` shape.
41
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class CreateParallelDataCommand extends $Command<
45
- CreateParallelDataCommandInput,
46
- CreateParallelDataCommandOutput,
47
- TranslateClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: CreateParallelDataCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: TranslateClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<CreateParallelDataCommandInput, CreateParallelDataCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "TranslateClient";
72
- const commandName = "CreateParallelDataCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: CreateParallelDataRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: CreateParallelDataResponse.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: CreateParallelDataCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_1CreateParallelDataCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateParallelDataCommandOutput> {
93
- return deserializeAws_json1_1CreateParallelDataCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DeleteParallelDataRequest, DeleteParallelDataResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1DeleteParallelDataCommand,
17
- serializeAws_json1_1DeleteParallelDataCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
20
-
21
- export interface DeleteParallelDataCommandInput extends DeleteParallelDataRequest {}
22
- export interface DeleteParallelDataCommandOutput extends DeleteParallelDataResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes a parallel data resource in Amazon Translate.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { TranslateClient, DeleteParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
30
- * // const { TranslateClient, DeleteParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
31
- * const client = new TranslateClient(config);
32
- * const command = new DeleteParallelDataCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DeleteParallelDataCommandInput} for command's `input` shape.
37
- * @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
38
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DeleteParallelDataCommand extends $Command<
42
- DeleteParallelDataCommandInput,
43
- DeleteParallelDataCommandOutput,
44
- TranslateClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DeleteParallelDataCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: TranslateClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "TranslateClient";
69
- const commandName = "DeleteParallelDataCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DeleteParallelDataRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DeleteParallelDataResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: DeleteParallelDataCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DeleteParallelDataCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteParallelDataCommandOutput> {
90
- return deserializeAws_json1_1DeleteParallelDataCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DeleteTerminologyRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1DeleteTerminologyCommand,
17
- serializeAws_json1_1DeleteTerminologyCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
20
-
21
- export interface DeleteTerminologyCommandInput extends DeleteTerminologyRequest {}
22
- export interface DeleteTerminologyCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>A synchronous action that deletes a custom terminology.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { TranslateClient, DeleteTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
30
- * // const { TranslateClient, DeleteTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
31
- * const client = new TranslateClient(config);
32
- * const command = new DeleteTerminologyCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DeleteTerminologyCommandInput} for command's `input` shape.
37
- * @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
38
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DeleteTerminologyCommand extends $Command<
42
- DeleteTerminologyCommandInput,
43
- DeleteTerminologyCommandOutput,
44
- TranslateClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DeleteTerminologyCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: TranslateClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "TranslateClient";
69
- const commandName = "DeleteTerminologyCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DeleteTerminologyRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: (output: any) => output,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: DeleteTerminologyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1DeleteTerminologyCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteTerminologyCommandOutput> {
90
- return deserializeAws_json1_1DeleteTerminologyCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DescribeTextTranslationJobRequest, DescribeTextTranslationJobResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1DescribeTextTranslationJobCommand,
17
- serializeAws_json1_1DescribeTextTranslationJobCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
20
-
21
- export interface DescribeTextTranslationJobCommandInput extends DescribeTextTranslationJobRequest {}
22
- export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTranslationJobResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets the properties associated with an asycnhronous batch translation job including name,
26
- * ID, status, source and target languages, input/output S3 buckets, and so on.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { TranslateClient, DescribeTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
31
- * // const { TranslateClient, DescribeTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
32
- * const client = new TranslateClient(config);
33
- * const command = new DescribeTextTranslationJobCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link DescribeTextTranslationJobCommandInput} for command's `input` shape.
38
- * @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
39
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class DescribeTextTranslationJobCommand extends $Command<
43
- DescribeTextTranslationJobCommandInput,
44
- DescribeTextTranslationJobCommandOutput,
45
- TranslateClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: DescribeTextTranslationJobCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: TranslateClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "TranslateClient";
70
- const commandName = "DescribeTextTranslationJobCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: DescribeTextTranslationJobRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: DescribeTextTranslationJobResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: DescribeTextTranslationJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1DescribeTextTranslationJobCommand(input, context);
88
- }
89
-
90
- private deserialize(
91
- output: __HttpResponse,
92
- context: __SerdeContext
93
- ): Promise<DescribeTextTranslationJobCommandOutput> {
94
- return deserializeAws_json1_1DescribeTextTranslationJobCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }