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