@aws-sdk/client-translate 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/TranslateClient.js +13 -13
- package/dist/cjs/TranslateClient.js.map +1 -1
- package/dist/cjs/commands/CreateParallelDataCommand.js +3 -3
- package/dist/cjs/commands/CreateParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteParallelDataCommand.js +3 -3
- package/dist/cjs/commands/DeleteParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTerminologyCommand.js +3 -3
- package/dist/cjs/commands/DeleteTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetParallelDataCommand.js +3 -3
- package/dist/cjs/commands/GetParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/GetTerminologyCommand.js +3 -3
- package/dist/cjs/commands/GetTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/ImportTerminologyCommand.js +3 -3
- package/dist/cjs/commands/ImportTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/ListParallelDataCommand.js +3 -3
- package/dist/cjs/commands/ListParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/ListTerminologiesCommand.js +3 -3
- package/dist/cjs/commands/ListTerminologiesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js +3 -3
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js.map +1 -1
- package/dist/cjs/commands/StartTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/StartTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/StopTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/StopTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/TranslateTextCommand.js +3 -3
- package/dist/cjs/commands/TranslateTextCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateParallelDataCommand.js +3 -3
- package/dist/cjs/commands/UpdateParallelDataCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +89 -87
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/Translate.js +1 -5
- package/dist/es/Translate.js.map +1 -1
- package/dist/es/TranslateClient.js +1 -10
- package/dist/es/TranslateClient.js.map +1 -1
- package/dist/es/commands/CreateParallelDataCommand.js +2 -30
- package/dist/es/commands/CreateParallelDataCommand.js.map +1 -1
- package/dist/es/commands/DeleteParallelDataCommand.js +2 -27
- package/dist/es/commands/DeleteParallelDataCommand.js.map +1 -1
- package/dist/es/commands/DeleteTerminologyCommand.js +2 -27
- package/dist/es/commands/DeleteTerminologyCommand.js.map +1 -1
- package/dist/es/commands/DescribeTextTranslationJobCommand.js +2 -28
- package/dist/es/commands/DescribeTextTranslationJobCommand.js.map +1 -1
- package/dist/es/commands/GetParallelDataCommand.js +2 -27
- package/dist/es/commands/GetParallelDataCommand.js.map +1 -1
- package/dist/es/commands/GetTerminologyCommand.js +2 -27
- package/dist/es/commands/GetTerminologyCommand.js.map +1 -1
- package/dist/es/commands/ImportTerminologyCommand.js +2 -34
- package/dist/es/commands/ImportTerminologyCommand.js.map +1 -1
- package/dist/es/commands/ListParallelDataCommand.js +2 -27
- package/dist/es/commands/ListParallelDataCommand.js.map +1 -1
- package/dist/es/commands/ListTerminologiesCommand.js +2 -27
- package/dist/es/commands/ListTerminologiesCommand.js.map +1 -1
- package/dist/es/commands/ListTextTranslationJobsCommand.js +2 -27
- package/dist/es/commands/ListTextTranslationJobsCommand.js.map +1 -1
- package/dist/es/commands/StartTextTranslationJobCommand.js +2 -34
- package/dist/es/commands/StartTextTranslationJobCommand.js.map +1 -1
- package/dist/es/commands/StopTextTranslationJobCommand.js +2 -33
- package/dist/es/commands/StopTextTranslationJobCommand.js.map +1 -1
- package/dist/es/commands/TranslateTextCommand.js +2 -28
- package/dist/es/commands/TranslateTextCommand.js.map +1 -1
- package/dist/es/commands/UpdateParallelDataCommand.js +2 -28
- package/dist/es/commands/UpdateParallelDataCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -162
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListParallelDataPaginator.js +16 -28
- package/dist/es/pagination/ListParallelDataPaginator.js.map +1 -1
- package/dist/es/pagination/ListTerminologiesPaginator.js +16 -28
- package/dist/es/pagination/ListTerminologiesPaginator.js.map +1 -1
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js +16 -28
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +376 -379
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +13 -8
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -3,38 +3,13 @@ import { DeleteParallelDataRequest, DeleteParallelDataResponse } from "../models
|
|
|
3
3
|
import { deserializeAws_json1_1DeleteParallelDataCommand, serializeAws_json1_1DeleteParallelDataCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Deletes a parallel data resource in Amazon Translate.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, DeleteParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, DeleteParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new DeleteParallelDataCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link DeleteParallelDataCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var DeleteParallelDataCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DeleteParallelDataCommand = (function (_super) {
|
|
24
7
|
__extends(DeleteParallelDataCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function DeleteParallelDataCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
DeleteParallelDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteParallelDataCommand.js","sourceRoot":"","sources":["../../../commands/DeleteParallelDataCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeleteParallelDataCommand.js","sourceRoot":"","sources":["../../../commands/DeleteParallelDataCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA+B7D;IAA+C,6CAI9C;IAIC,mCAAqB,KAAqC;QAA1D,YAEE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json1_1DeleteTerminologyCommand, serializeAws_json1_1DeleteTerminologyCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>A synchronous action that deletes a custom terminology.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, DeleteTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, DeleteTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new DeleteTerminologyCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link DeleteTerminologyCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var DeleteTerminologyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DeleteTerminologyCommand = (function (_super) {
|
|
24
7
|
__extends(DeleteTerminologyCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function DeleteTerminologyCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
DeleteTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteTerminologyCommand.js","sourceRoot":"","sources":["../../../commands/DeleteTerminologyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DeleteTerminologyCommand.js","sourceRoot":"","sources":["../../../commands/DeleteTerminologyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA+B7D;IAA8C,4CAI7C;IAIC,kCAAqB,KAAoC;QAAzD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA+B;;IAIzD,CAAC;IAKD,oDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,iBAAiB,CAAC;QACrC,IAAM,WAAW,GAAG,0BAA0B,CAAC;QAC/C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,wBAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -3,39 +3,13 @@ import { DescribeTextTranslationJobRequest, DescribeTextTranslationJobResponse }
|
|
|
3
3
|
import { deserializeAws_json1_1DescribeTextTranslationJobCommand, serializeAws_json1_1DescribeTextTranslationJobCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Gets the properties associated with an asycnhronous batch translation job including name,
|
|
8
|
-
* ID, status, source and target languages, input/output S3 buckets, and so on.</p>
|
|
9
|
-
* @example
|
|
10
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
11
|
-
* ```javascript
|
|
12
|
-
* import { TranslateClient, DescribeTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
13
|
-
* // const { TranslateClient, DescribeTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
14
|
-
* const client = new TranslateClient(config);
|
|
15
|
-
* const command = new DescribeTextTranslationJobCommand(input);
|
|
16
|
-
* const response = await client.send(command);
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @see {@link DescribeTextTranslationJobCommandInput} for command's `input` shape.
|
|
20
|
-
* @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
|
|
21
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
var DescribeTextTranslationJobCommand = /** @class */ (function (_super) {
|
|
6
|
+
var DescribeTextTranslationJobCommand = (function (_super) {
|
|
25
7
|
__extends(DescribeTextTranslationJobCommand, _super);
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
8
|
function DescribeTextTranslationJobCommand(input) {
|
|
29
|
-
var _this =
|
|
30
|
-
// Start section: command_constructor
|
|
31
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
32
10
|
_this.input = input;
|
|
33
11
|
return _this;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
DescribeTextTranslationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeTextTranslationJobCommand.js","sourceRoot":"","sources":["../../../commands/DescribeTextTranslationJobCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EACL,uDAAuD,EACvD,qDAAqD,GACtD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"DescribeTextTranslationJobCommand.js","sourceRoot":"","sources":["../../../commands/DescribeTextTranslationJobCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EACL,uDAAuD,EACvD,qDAAqD,GACtD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgC7D;IAAuD,qDAItD;IAIC,2CAAqB,KAA6C;QAAlE,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwC;;IAIlE,CAAC;IAKD,6DAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,iBAAiB,CAAC;QACrC,IAAM,WAAW,GAAG,mCAAmC,CAAC;QACxD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iCAAiC,CAAC,kBAAkB;YAC7E,wBAAwB,EAAE,kCAAkC,CAAC,kBAAkB;SAChF,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,qDAAS,GAAjB,UAAkB,KAA6C,EAAE,OAAuB;QACtF,OAAO,qDAAqD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAEO,uDAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,uDAAuD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAIH,wCAAC;AAAD,CAAC,AAzDD,CAAuD,QAAQ,GAyD9D"}
|
|
@@ -3,38 +3,13 @@ import { GetParallelDataRequest, GetParallelDataResponse } from "../models/model
|
|
|
3
3
|
import { deserializeAws_json1_1GetParallelDataCommand, serializeAws_json1_1GetParallelDataCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Provides information about a parallel data resource.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, GetParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, GetParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new GetParallelDataCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link GetParallelDataCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link GetParallelDataCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var GetParallelDataCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetParallelDataCommand = (function (_super) {
|
|
24
7
|
__extends(GetParallelDataCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function GetParallelDataCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
GetParallelDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetParallelDataCommand.js","sourceRoot":"","sources":["../../../commands/GetParallelDataCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,GAC3C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetParallelDataCommand.js","sourceRoot":"","sources":["../../../commands/GetParallelDataCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,4CAA4C,EAC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OAAuB;QACjE,OAAO,4CAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAtDD,CAA4C,QAAQ,GAsDnD"}
|
|
@@ -3,38 +3,13 @@ import { GetTerminologyRequest, GetTerminologyResponse } from "../models/models_
|
|
|
3
3
|
import { deserializeAws_json1_1GetTerminologyCommand, serializeAws_json1_1GetTerminologyCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Retrieves a custom terminology.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, GetTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, GetTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new GetTerminologyCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link GetTerminologyCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link GetTerminologyCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var GetTerminologyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var GetTerminologyCommand = (function (_super) {
|
|
24
7
|
__extends(GetTerminologyCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function GetTerminologyCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
GetTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetTerminologyCommand.js","sourceRoot":"","sources":["../../../commands/GetTerminologyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GetTerminologyCommand.js","sourceRoot":"","sources":["../../../commands/GetTerminologyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA+B7D;IAA2C,yCAI1C;IAIC,+BAAqB,KAAiC;QAAtD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA4B;;IAItD,CAAC;IAKD,iDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,iBAAiB,CAAC;QACrC,IAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,qBAAqB,CAAC,kBAAkB;YACjE,wBAAwB,EAAE,sBAAsB,CAAC,kBAAkB;SACpE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,yCAAS,GAAjB,UAAkB,KAAiC,EAAE,OAAuB;QAC1E,OAAO,yCAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,2CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,2CAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAIH,4BAAC;AAAD,CAAC,AAtDD,CAA2C,QAAQ,GAsDlD"}
|
|
@@ -3,45 +3,13 @@ import { ImportTerminologyRequest, ImportTerminologyResponse } from "../models/m
|
|
|
3
3
|
import { deserializeAws_json1_1ImportTerminologyCommand, serializeAws_json1_1ImportTerminologyCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Creates or updates a custom terminology, depending on whether or not one already exists
|
|
8
|
-
* for the given terminology name. Importing a terminology with the same name as an existing one
|
|
9
|
-
* will merge the terminologies based on the chosen merge strategy. Currently, the only supported
|
|
10
|
-
* merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing
|
|
11
|
-
* terminology of the same name.</p>
|
|
12
|
-
* <p>If you import a terminology that overwrites an existing one, the new terminology take up
|
|
13
|
-
* to 10 minutes to fully propagate and be available for use in a translation due to cache
|
|
14
|
-
* policies with the DataPlane service that performs the translations.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { TranslateClient, ImportTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
19
|
-
* // const { TranslateClient, ImportTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
20
|
-
* const client = new TranslateClient(config);
|
|
21
|
-
* const command = new ImportTerminologyCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link ImportTerminologyCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link ImportTerminologyCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
var ImportTerminologyCommand = /** @class */ (function (_super) {
|
|
6
|
+
var ImportTerminologyCommand = (function (_super) {
|
|
31
7
|
__extends(ImportTerminologyCommand, _super);
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
8
|
function ImportTerminologyCommand(input) {
|
|
35
|
-
var _this =
|
|
36
|
-
// Start section: command_constructor
|
|
37
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
38
10
|
_this.input = input;
|
|
39
11
|
return _this;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
ImportTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportTerminologyCommand.js","sourceRoot":"","sources":["../../../commands/ImportTerminologyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ImportTerminologyCommand.js","sourceRoot":"","sources":["../../../commands/ImportTerminologyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsC7D;IAA8C,4CAI7C;IAIC,kCAAqB,KAAoC;QAAzD,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA+B;;IAIzD,CAAC;IAKD,oDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,iBAAiB,CAAC;QACrC,IAAM,WAAW,GAAG,0BAA0B,CAAC;QAC/C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,wBAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,yBAAyB,CAAC,kBAAkB;SACvE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -3,38 +3,13 @@ import { ListParallelDataRequest, ListParallelDataResponse } from "../models/mod
|
|
|
3
3
|
import { deserializeAws_json1_1ListParallelDataCommand, serializeAws_json1_1ListParallelDataCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Provides a list of your parallel data resources in Amazon Translate.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, ListParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, ListParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new ListParallelDataCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link ListParallelDataCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link ListParallelDataCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var ListParallelDataCommand = /** @class */ (function (_super) {
|
|
6
|
+
var ListParallelDataCommand = (function (_super) {
|
|
24
7
|
__extends(ListParallelDataCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function ListParallelDataCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
ListParallelDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListParallelDataCommand.js","sourceRoot":"","sources":["../../../commands/ListParallelDataCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;A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GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,2CAAS,GAAjB,UAAkB,KAAmC,EAAE,OAAuB;QAC5E,OAAO,2CAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,6CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,6CAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAIH,8BAAC;AAAD,CAAC,AAtDD,CAA6C,QAAQ,GAsDpD"}
|
|
@@ -3,38 +3,13 @@ import { ListTerminologiesRequest, ListTerminologiesResponse } from "../models/m
|
|
|
3
3
|
import { deserializeAws_json1_1ListTerminologiesCommand, serializeAws_json1_1ListTerminologiesCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Provides a list of custom terminologies associated with your account.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, ListTerminologiesCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, ListTerminologiesCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new ListTerminologiesCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link ListTerminologiesCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link ListTerminologiesCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var ListTerminologiesCommand = /** @class */ (function (_super) {
|
|
6
|
+
var ListTerminologiesCommand = (function (_super) {
|
|
24
7
|
__extends(ListTerminologiesCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function ListTerminologiesCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
ListTerminologiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListTerminologiesCommand.js","sourceRoot":"","sources":["../../../commands/ListTerminologiesCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ListTerminologiesCommand.js","sourceRoot":"","sources":["../../../commands/ListTerminologiesCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC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OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
|
|
@@ -3,38 +3,13 @@ import { ListTextTranslationJobsRequest, ListTextTranslationJobsResponse } from
|
|
|
3
3
|
import { deserializeAws_json1_1ListTextTranslationJobsCommand, serializeAws_json1_1ListTextTranslationJobsCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Gets a list of the batch translation jobs that you have submitted.</p>
|
|
8
|
-
* @example
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { TranslateClient, ListTextTranslationJobsCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
12
|
-
* // const { TranslateClient, ListTextTranslationJobsCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
13
|
-
* const client = new TranslateClient(config);
|
|
14
|
-
* const command = new ListTextTranslationJobsCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link ListTextTranslationJobsCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link ListTextTranslationJobsCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var ListTextTranslationJobsCommand = /** @class */ (function (_super) {
|
|
6
|
+
var ListTextTranslationJobsCommand = (function (_super) {
|
|
24
7
|
__extends(ListTextTranslationJobsCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function ListTextTranslationJobsCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
ListTextTranslationJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListTextTranslationJobsCommand.js","sourceRoot":"","sources":["../../../commands/ListTextTranslationJobsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EACL,oDAAoD,EACpD,kDAAkD,GACnD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ListTextTranslationJobsCommand.js","sourceRoot":"","sources":["../../../commands/ListTextTranslationJobsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EACL,oDAAoD,EACpD,kDAAkD,GACnD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA+B7D;IAAoD,kDAInD;IAIC,wCAAqB,KAA0C;QAA/D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAqC;;IAI/D,CAAC;IAKD,0DAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,iBAAiB,CAAC;QACrC,IAAM,WAAW,GAAG,gCAAgC,CAAC;QACrD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,8BAA8B,CAAC,kBAAkB;YAC1E,wBAAwB,EAAE,+BAA+B,CAAC,kBAAkB;SAC7E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,kDAAS,GAAjB,UAAkB,KAA0C,EAAE,OAAuB;QACnF,OAAO,kDAAkD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEO,oDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,oDAAoD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAIH,qCAAC;AAAD,CAAC,AAtDD,CAAoD,QAAQ,GAsD3D"}
|
|
@@ -3,45 +3,13 @@ import { StartTextTranslationJobRequest, StartTextTranslationJobResponse } from
|
|
|
3
3
|
import { deserializeAws_json1_1StartTextTranslationJobCommand, serializeAws_json1_1StartTextTranslationJobCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Starts an asynchronous batch translation job. Batch translation jobs can be used to
|
|
8
|
-
* translate large volumes of text across multiple documents at once. For more information, see
|
|
9
|
-
* <a>async</a>.</p>
|
|
10
|
-
*
|
|
11
|
-
* <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>
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>Amazon Translate does not support batch translation of multiple source languages at once.</p>
|
|
14
|
-
* </note>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { TranslateClient, StartTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
19
|
-
* // const { TranslateClient, StartTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
20
|
-
* const client = new TranslateClient(config);
|
|
21
|
-
* const command = new StartTextTranslationJobCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link StartTextTranslationJobCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link StartTextTranslationJobCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
var StartTextTranslationJobCommand = /** @class */ (function (_super) {
|
|
6
|
+
var StartTextTranslationJobCommand = (function (_super) {
|
|
31
7
|
__extends(StartTextTranslationJobCommand, _super);
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
8
|
function StartTextTranslationJobCommand(input) {
|
|
35
|
-
var _this =
|
|
36
|
-
// Start section: command_constructor
|
|
37
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
38
10
|
_this.input = input;
|
|
39
11
|
return _this;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
StartTextTranslationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StartTextTranslationJobCommand.js","sourceRoot":"","sources":["../../../commands/StartTextTranslationJobCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EACL,oDAAoD,EACpD,kDAAkD,GACnD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"StartTextTranslationJobCommand.js","sourceRoot":"","sources":["../../../commands/StartTextTranslationJobCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EACL,oDAAoD,EACpD,kDAAkD,GACnD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAsC7D;IAAoD,kDAInD;IAIC,wCAAqB,KAA0C;QAA/D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAqC;;IAI/D,CAAC;IAKD,0DAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,iBAAiB,CAAC;QACrC,IAAM,WAAW,GAAG,gCAAgC,CAAC;QACrD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,8BAA8B,CAAC,kBAAkB;YAC1E,wBAAwB,EAAE,+BAA+B,CAAC,kBAAkB;SAC7E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,kDAAS,GAAjB,UAAkB,KAA0C,EAAE,OAAuB;QACnF,OAAO,kDAAkD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEO,oDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,oDAAoD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAIH,qCAAC;AAAD,CAAC,AAtDD,CAAoD,QAAQ,GAsD3D"}
|
|
@@ -3,44 +3,13 @@ import { StopTextTranslationJobRequest, StopTextTranslationJobResponse } from ".
|
|
|
3
3
|
import { deserializeAws_json1_1StopTextTranslationJobCommand, serializeAws_json1_1StopTextTranslationJobCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Stops an asynchronous batch translation job that is in progress.</p>
|
|
8
|
-
* <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and
|
|
9
|
-
* put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped,
|
|
10
|
-
* it is put into the <code>COMPLETED</code> state. Otherwise, the job is put into the
|
|
11
|
-
* <code>STOPPED</code> state.</p>
|
|
12
|
-
* <p>Asynchronous batch translation jobs are started with the <a>StartTextTranslationJob</a> operation. You can use the <a>DescribeTextTranslationJob</a> or <a>ListTextTranslationJobs</a>
|
|
13
|
-
* operations to get a batch translation job's <code>JobId</code>.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { TranslateClient, StopTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
18
|
-
* // const { TranslateClient, StopTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
19
|
-
* const client = new TranslateClient(config);
|
|
20
|
-
* const command = new StopTextTranslationJobCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link StopTextTranslationJobCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link StopTextTranslationJobCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
var StopTextTranslationJobCommand = /** @class */ (function (_super) {
|
|
6
|
+
var StopTextTranslationJobCommand = (function (_super) {
|
|
30
7
|
__extends(StopTextTranslationJobCommand, _super);
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
8
|
function StopTextTranslationJobCommand(input) {
|
|
34
|
-
var _this =
|
|
35
|
-
// Start section: command_constructor
|
|
36
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
37
10
|
_this.input = input;
|
|
38
11
|
return _this;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
StopTextTranslationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StopTextTranslationJobCommand.js","sourceRoot":"","sources":["../../../commands/StopTextTranslationJobCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,mDAAmD,EACnD,iDAAiD,GAClD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"StopTextTranslationJobCommand.js","sourceRoot":"","sources":["../../../commands/StopTextTranslationJobCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,mDAAmD,EACnD,iDAAiD,GAClD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAqC7D;IAAmD,iDAIlD;IAIC,uCAAqB,KAAyC;QAA9D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAoC;;IAI9D,CAAC;IAKD,yDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA4C,EAC5C,OAA8B;QAE9B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