@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/Translate.js +0 -5
- package/dist-cjs/TranslateClient.js +0 -10
- package/dist-cjs/commands/CreateParallelDataCommand.js +0 -28
- package/dist-cjs/commands/DeleteParallelDataCommand.js +0 -25
- package/dist-cjs/commands/DeleteTerminologyCommand.js +0 -25
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +0 -26
- package/dist-cjs/commands/GetParallelDataCommand.js +0 -25
- package/dist-cjs/commands/GetTerminologyCommand.js +0 -25
- package/dist-cjs/commands/ImportTerminologyCommand.js +0 -32
- package/dist-cjs/commands/ListParallelDataCommand.js +0 -25
- package/dist-cjs/commands/ListTerminologiesCommand.js +0 -25
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +0 -25
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +0 -32
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +0 -31
- package/dist-cjs/commands/TranslateTextCommand.js +0 -26
- package/dist-cjs/commands/UpdateParallelDataCommand.js +0 -26
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -21
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -163
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListParallelDataPaginator.js +0 -11
- package/dist-cjs/pagination/ListTerminologiesPaginator.js +0 -11
- package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Translate.js +0 -1
- package/dist-es/TranslateClient.js +0 -1
- package/dist-es/commands/CreateParallelDataCommand.js +0 -1
- package/dist-es/commands/DeleteParallelDataCommand.js +0 -1
- package/dist-es/commands/DeleteTerminologyCommand.js +0 -1
- package/dist-es/commands/DescribeTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/GetParallelDataCommand.js +0 -1
- package/dist-es/commands/GetTerminologyCommand.js +0 -1
- package/dist-es/commands/ImportTerminologyCommand.js +0 -1
- package/dist-es/commands/ListParallelDataCommand.js +0 -1
- package/dist-es/commands/ListTerminologiesCommand.js +0 -1
- package/dist-es/commands/ListTextTranslationJobsCommand.js +0 -1
- package/dist-es/commands/StartTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/StopTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/TranslateTextCommand.js +0 -1
- package/dist-es/commands/UpdateParallelDataCommand.js +0 -1
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -21
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListParallelDataPaginator.js +0 -1
- package/dist-es/pagination/ListTerminologiesPaginator.js +0 -1
- package/dist-es/pagination/ListTextTranslationJobsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/index.d.ts +4 -20
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/Translate.d.ts +15 -72
- package/dist-types/ts3.4/TranslateClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/index.d.ts +4 -20
- package/dist-types/ts3.4/models/models_0.d.ts +220 -824
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- 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.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/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.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- 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/jest.config.js +0 -4
- package/src/Translate.ts +0 -553
- package/src/TranslateClient.ts +0 -291
- package/src/commands/CreateParallelDataCommand.ts +0 -98
- package/src/commands/DeleteParallelDataCommand.ts +0 -95
- package/src/commands/DeleteTerminologyCommand.ts +0 -95
- package/src/commands/DescribeTextTranslationJobCommand.ts +0 -99
- package/src/commands/GetParallelDataCommand.ts +0 -95
- package/src/commands/GetTerminologyCommand.ts +0 -95
- package/src/commands/ImportTerminologyCommand.ts +0 -102
- package/src/commands/ListParallelDataCommand.ts +0 -95
- package/src/commands/ListTerminologiesCommand.ts +0 -95
- package/src/commands/ListTextTranslationJobsCommand.ts +0 -95
- package/src/commands/StartTextTranslationJobCommand.ts +0 -102
- package/src/commands/StopTextTranslationJobCommand.ts +0 -101
- package/src/commands/TranslateTextCommand.ts +0 -96
- package/src/commands/UpdateParallelDataCommand.ts +0 -96
- package/src/endpoints.ts +0 -77
- package/src/index.ts +0 -21
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1625
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListParallelDataPaginator.ts +0 -59
- package/src/pagination/ListTerminologiesPaginator.ts +0 -59
- package/src/pagination/ListTextTranslationJobsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2523
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -23,125 +23,59 @@ import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from
|
|
|
23
23
|
export declare type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListParallelDataCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TranslateTextCommandInput | UpdateParallelDataCommandInput;
|
|
24
24
|
export declare type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListParallelDataCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TranslateTextCommandOutput | UpdateParallelDataCommandOutput;
|
|
25
25
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
26
|
-
|
|
27
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
28
|
-
*/
|
|
26
|
+
|
|
29
27
|
requestHandler?: __HttpHandler;
|
|
30
|
-
|
|
31
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
32
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
28
|
+
|
|
35
29
|
sha256?: __HashConstructor;
|
|
36
|
-
|
|
37
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
30
|
+
|
|
40
31
|
urlParser?: __UrlParser;
|
|
41
|
-
|
|
42
|
-
* A function that can calculate the length of a request body.
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
32
|
+
|
|
45
33
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
46
|
-
|
|
47
|
-
* A function that converts a stream into an array of bytes.
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
34
|
+
|
|
50
35
|
streamCollector?: __StreamCollector;
|
|
51
|
-
|
|
52
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
36
|
+
|
|
55
37
|
base64Decoder?: __Decoder;
|
|
56
|
-
|
|
57
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
38
|
+
|
|
60
39
|
base64Encoder?: __Encoder;
|
|
61
|
-
|
|
62
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
40
|
+
|
|
65
41
|
utf8Decoder?: __Decoder;
|
|
66
|
-
|
|
67
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
42
|
+
|
|
70
43
|
utf8Encoder?: __Encoder;
|
|
71
|
-
|
|
72
|
-
* The runtime environment.
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
44
|
+
|
|
75
45
|
runtime?: string;
|
|
76
|
-
|
|
77
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
78
|
-
* trait of an operation.
|
|
79
|
-
*/
|
|
46
|
+
|
|
80
47
|
disableHostPrefix?: boolean;
|
|
81
|
-
|
|
82
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
83
|
-
*/
|
|
48
|
+
|
|
84
49
|
maxAttempts?: number | __Provider<number>;
|
|
85
|
-
|
|
86
|
-
* Specifies which retry algorithm to use.
|
|
87
|
-
*/
|
|
50
|
+
|
|
88
51
|
retryMode?: string | __Provider<string>;
|
|
89
|
-
|
|
90
|
-
* Optional logger for logging debug/info/warn/error.
|
|
91
|
-
*/
|
|
52
|
+
|
|
92
53
|
logger?: __Logger;
|
|
93
|
-
|
|
94
|
-
* Unique service identifier.
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
54
|
+
|
|
97
55
|
serviceId?: string;
|
|
98
|
-
|
|
99
|
-
* The AWS region to which this client will send requests
|
|
100
|
-
*/
|
|
56
|
+
|
|
101
57
|
region?: string | __Provider<string>;
|
|
102
|
-
|
|
103
|
-
* Default credentials provider; Not available in browser runtime.
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
58
|
+
|
|
106
59
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
107
|
-
|
|
108
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
60
|
+
|
|
111
61
|
regionInfoProvider?: RegionInfoProvider;
|
|
112
|
-
|
|
113
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
62
|
+
|
|
116
63
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
117
64
|
}
|
|
118
65
|
declare type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
119
|
-
|
|
120
|
-
* The configuration interface of TranslateClient class constructor that set the region, credentials and other options.
|
|
121
|
-
*/
|
|
66
|
+
|
|
122
67
|
export interface TranslateClientConfig extends TranslateClientConfigType {
|
|
123
68
|
}
|
|
124
69
|
declare type TranslateClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
125
|
-
|
|
126
|
-
* The resolved configuration interface of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
|
|
127
|
-
*/
|
|
70
|
+
|
|
128
71
|
export interface TranslateClientResolvedConfig extends TranslateClientResolvedConfigType {
|
|
129
72
|
}
|
|
130
|
-
|
|
131
|
-
* <p>Provides translation between one source language and another of the same set of
|
|
132
|
-
* languages.</p>
|
|
133
|
-
*/
|
|
73
|
+
|
|
134
74
|
export declare class TranslateClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig> {
|
|
135
|
-
|
|
136
|
-
* The resolved configuration of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
|
|
137
|
-
*/
|
|
75
|
+
|
|
138
76
|
readonly config: TranslateClientResolvedConfig;
|
|
139
77
|
constructor(configuration: TranslateClientConfig);
|
|
140
|
-
|
|
141
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
142
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
143
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
144
|
-
*/
|
|
78
|
+
|
|
145
79
|
destroy(): void;
|
|
146
80
|
}
|
|
147
81
|
export {};
|
|
@@ -6,32 +6,11 @@ export interface CreateParallelDataCommandInput extends CreateParallelDataReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateParallelDataCommandOutput extends CreateParallelDataResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a parallel data resource in Amazon Translate by importing an input file from
|
|
11
|
-
* Amazon S3. Parallel data files contain examples of source phrases and their translations from
|
|
12
|
-
* your translation memory. By adding parallel data, you can influence the style, tone, and word
|
|
13
|
-
* choice in your translation output.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { TranslateClient, CreateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
18
|
-
* // const { TranslateClient, CreateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
19
|
-
* const client = new TranslateClient(config);
|
|
20
|
-
* const command = new CreateParallelDataCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link CreateParallelDataCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link CreateParallelDataCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
9
|
+
|
|
29
10
|
export declare class CreateParallelDataCommand extends $Command<CreateParallelDataCommandInput, CreateParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
30
11
|
readonly input: CreateParallelDataCommandInput;
|
|
31
12
|
constructor(input: CreateParallelDataCommandInput);
|
|
32
|
-
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
13
|
+
|
|
35
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateParallelDataCommandInput, CreateParallelDataCommandOutput>;
|
|
36
15
|
private serialize;
|
|
37
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface DeleteParallelDataCommandInput extends DeleteParallelDataReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteParallelDataCommandOutput extends DeleteParallelDataResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes a parallel data resource in Amazon Translate.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, DeleteParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, DeleteParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new DeleteParallelDataCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteParallelDataCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class DeleteParallelDataCommand extends $Command<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: DeleteParallelDataCommandInput;
|
|
28
12
|
constructor(input: DeleteParallelDataCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface DeleteTerminologyCommandInput extends DeleteTerminologyRequest
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>A synchronous action that deletes a custom terminology.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, DeleteTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, DeleteTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new DeleteTerminologyCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteTerminologyCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class DeleteTerminologyCommand extends $Command<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: DeleteTerminologyCommandInput;
|
|
28
12
|
constructor(input: DeleteTerminologyCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface DescribeTextTranslationJobCommandInput extends DescribeTextTran
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTranslationJobResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets the properties associated with an asycnhronous batch translation job including name,
|
|
11
|
-
* ID, status, source and target languages, input/output S3 buckets, and so on.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { TranslateClient, DescribeTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
16
|
-
* // const { TranslateClient, DescribeTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
17
|
-
* const client = new TranslateClient(config);
|
|
18
|
-
* const command = new DescribeTextTranslationJobCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeTextTranslationJobCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class DescribeTextTranslationJobCommand extends $Command<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
28
11
|
readonly input: DescribeTextTranslationJobCommandInput;
|
|
29
12
|
constructor(input: DescribeTextTranslationJobCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface GetParallelDataCommandInput extends GetParallelDataRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetParallelDataCommandOutput extends GetParallelDataResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Provides information about a parallel data resource.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, GetParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, GetParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new GetParallelDataCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetParallelDataCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetParallelDataCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class GetParallelDataCommand extends $Command<GetParallelDataCommandInput, GetParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: GetParallelDataCommandInput;
|
|
28
12
|
constructor(input: GetParallelDataCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetParallelDataCommandInput, GetParallelDataCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface GetTerminologyCommandInput extends GetTerminologyRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetTerminologyCommandOutput extends GetTerminologyResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Retrieves a custom terminology.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, GetTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, GetTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new GetTerminologyCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetTerminologyCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetTerminologyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class GetTerminologyCommand extends $Command<GetTerminologyCommandInput, GetTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: GetTerminologyCommandInput;
|
|
28
12
|
constructor(input: GetTerminologyCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTerminologyCommandInput, GetTerminologyCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,36 +6,11 @@ export interface ImportTerminologyCommandInput extends ImportTerminologyRequest
|
|
|
6
6
|
}
|
|
7
7
|
export interface ImportTerminologyCommandOutput extends ImportTerminologyResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates or updates a custom terminology, depending on whether or not one already exists
|
|
11
|
-
* for the given terminology name. Importing a terminology with the same name as an existing one
|
|
12
|
-
* will merge the terminologies based on the chosen merge strategy. Currently, the only supported
|
|
13
|
-
* merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing
|
|
14
|
-
* terminology of the same name.</p>
|
|
15
|
-
* <p>If you import a terminology that overwrites an existing one, the new terminology take up
|
|
16
|
-
* to 10 minutes to fully propagate and be available for use in a translation due to cache
|
|
17
|
-
* policies with the DataPlane service that performs the translations.</p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { TranslateClient, ImportTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
22
|
-
* // const { TranslateClient, ImportTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
23
|
-
* const client = new TranslateClient(config);
|
|
24
|
-
* const command = new ImportTerminologyCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link ImportTerminologyCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link ImportTerminologyCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
9
|
+
|
|
33
10
|
export declare class ImportTerminologyCommand extends $Command<ImportTerminologyCommandInput, ImportTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
34
11
|
readonly input: ImportTerminologyCommandInput;
|
|
35
12
|
constructor(input: ImportTerminologyCommandInput);
|
|
36
|
-
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
13
|
+
|
|
39
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportTerminologyCommandInput, ImportTerminologyCommandOutput>;
|
|
40
15
|
private serialize;
|
|
41
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface ListParallelDataCommandInput extends ListParallelDataRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface ListParallelDataCommandOutput extends ListParallelDataResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Provides a list of your parallel data resources in Amazon Translate.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, ListParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, ListParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new ListParallelDataCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListParallelDataCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListParallelDataCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class ListParallelDataCommand extends $Command<ListParallelDataCommandInput, ListParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: ListParallelDataCommandInput;
|
|
28
12
|
constructor(input: ListParallelDataCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListParallelDataCommandInput, ListParallelDataCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface ListTerminologiesCommandInput extends ListTerminologiesRequest
|
|
|
6
6
|
}
|
|
7
7
|
export interface ListTerminologiesCommandOutput extends ListTerminologiesResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Provides a list of custom terminologies associated with your account.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, ListTerminologiesCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, ListTerminologiesCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new ListTerminologiesCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListTerminologiesCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListTerminologiesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class ListTerminologiesCommand extends $Command<ListTerminologiesCommandInput, ListTerminologiesCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: ListTerminologiesCommandInput;
|
|
28
12
|
constructor(input: ListTerminologiesCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTerminologiesCommandInput, ListTerminologiesCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface ListTextTranslationJobsCommandInput extends ListTextTranslation
|
|
|
6
6
|
}
|
|
7
7
|
export interface ListTextTranslationJobsCommandOutput extends ListTextTranslationJobsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets a list of the batch translation jobs that you have submitted.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, ListTextTranslationJobsCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, ListTextTranslationJobsCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new ListTextTranslationJobsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ListTextTranslationJobsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ListTextTranslationJobsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class ListTextTranslationJobsCommand extends $Command<ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput, TranslateClientResolvedConfig> {
|
|
27
11
|
readonly input: ListTextTranslationJobsCommandInput;
|
|
28
12
|
constructor(input: ListTextTranslationJobsCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,36 +6,11 @@ export interface StartTextTranslationJobCommandInput extends StartTextTranslatio
|
|
|
6
6
|
}
|
|
7
7
|
export interface StartTextTranslationJobCommandOutput extends StartTextTranslationJobResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Starts an asynchronous batch translation job. Batch translation jobs can be used to
|
|
11
|
-
* translate large volumes of text across multiple documents at once. For more information, see
|
|
12
|
-
* <a>async</a>.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>Batch translation jobs can be described with the <a>DescribeTextTranslationJob</a> operation, listed with the <a>ListTextTranslationJobs</a> operation, and stopped with the <a>StopTextTranslationJob</a> operation.</p>
|
|
15
|
-
* <note>
|
|
16
|
-
* <p>Amazon Translate does not support batch translation of multiple source languages at once.</p>
|
|
17
|
-
* </note>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { TranslateClient, StartTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
22
|
-
* // const { TranslateClient, StartTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
23
|
-
* const client = new TranslateClient(config);
|
|
24
|
-
* const command = new StartTextTranslationJobCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link StartTextTranslationJobCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link StartTextTranslationJobCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
9
|
+
|
|
33
10
|
export declare class StartTextTranslationJobCommand extends $Command<StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
34
11
|
readonly input: StartTextTranslationJobCommandInput;
|
|
35
12
|
constructor(input: StartTextTranslationJobCommandInput);
|
|
36
|
-
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
13
|
+
|
|
39
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput>;
|
|
40
15
|
private serialize;
|
|
41
16
|
private deserialize;
|
|
@@ -6,35 +6,11 @@ export interface StopTextTranslationJobCommandInput extends StopTextTranslationJ
|
|
|
6
6
|
}
|
|
7
7
|
export interface StopTextTranslationJobCommandOutput extends StopTextTranslationJobResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Stops an asynchronous batch translation job that is in progress.</p>
|
|
11
|
-
* <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and
|
|
12
|
-
* put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped,
|
|
13
|
-
* it is put into the <code>COMPLETED</code> state. Otherwise, the job is put into the
|
|
14
|
-
* <code>STOPPED</code> state.</p>
|
|
15
|
-
* <p>Asynchronous batch translation jobs are started with the <a>StartTextTranslationJob</a> operation. You can use the <a>DescribeTextTranslationJob</a> or <a>ListTextTranslationJobs</a>
|
|
16
|
-
* operations to get a batch translation job's <code>JobId</code>.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { TranslateClient, StopTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
21
|
-
* // const { TranslateClient, StopTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
22
|
-
* const client = new TranslateClient(config);
|
|
23
|
-
* const command = new StopTextTranslationJobCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link StopTextTranslationJobCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link StopTextTranslationJobCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
9
|
+
|
|
32
10
|
export declare class StopTextTranslationJobCommand extends $Command<StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
33
11
|
readonly input: StopTextTranslationJobCommandInput;
|
|
34
12
|
constructor(input: StopTextTranslationJobCommandInput);
|
|
35
|
-
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
13
|
+
|
|
38
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput>;
|
|
39
15
|
private serialize;
|
|
40
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface TranslateTextCommandInput extends TranslateTextRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface TranslateTextCommandOutput extends TranslateTextResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Translates input text from the source language to the target language. For a list of
|
|
11
|
-
* available languages and language codes, see <a>what-is-languages</a>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { TranslateClient, TranslateTextCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
16
|
-
* // const { TranslateClient, TranslateTextCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
17
|
-
* const client = new TranslateClient(config);
|
|
18
|
-
* const command = new TranslateTextCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link TranslateTextCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link TranslateTextCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class TranslateTextCommand extends $Command<TranslateTextCommandInput, TranslateTextCommandOutput, TranslateClientResolvedConfig> {
|
|
28
11
|
readonly input: TranslateTextCommandInput;
|
|
29
12
|
constructor(input: TranslateTextCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TranslateTextCommandInput, TranslateTextCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface UpdateParallelDataCommandInput extends UpdateParallelDataReques
|
|
|
6
6
|
}
|
|
7
7
|
export interface UpdateParallelDataCommandOutput extends UpdateParallelDataResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Updates a previously created parallel data resource by importing a new input file from
|
|
11
|
-
* Amazon S3.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { TranslateClient, UpdateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
16
|
-
* // const { TranslateClient, UpdateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
17
|
-
* const client = new TranslateClient(config);
|
|
18
|
-
* const command = new UpdateParallelDataCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link UpdateParallelDataCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link UpdateParallelDataCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class UpdateParallelDataCommand extends $Command<UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
28
11
|
readonly input: UpdateParallelDataCommandInput;
|
|
29
12
|
constructor(input: UpdateParallelDataCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./CreateParallelDataCommand";
|
|
2
|
+
export * from "./DeleteParallelDataCommand";
|
|
3
|
+
export * from "./DeleteTerminologyCommand";
|
|
4
|
+
export * from "./DescribeTextTranslationJobCommand";
|
|
5
|
+
export * from "./GetParallelDataCommand";
|
|
6
|
+
export * from "./GetTerminologyCommand";
|
|
7
|
+
export * from "./ImportTerminologyCommand";
|
|
8
|
+
export * from "./ListParallelDataCommand";
|
|
9
|
+
export * from "./ListTerminologiesCommand";
|
|
10
|
+
export * from "./ListTextTranslationJobsCommand";
|
|
11
|
+
export * from "./StartTextTranslationJobCommand";
|
|
12
|
+
export * from "./StopTextTranslationJobCommand";
|
|
13
|
+
export * from "./TranslateTextCommand";
|
|
14
|
+
export * from "./UpdateParallelDataCommand";
|