@aws-sdk/client-translate 3.300.0 → 3.301.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/dist-types/commands/CreateParallelDataCommand.d.ts +5 -5
- package/dist-types/commands/DeleteParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/GetTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/ImportTerminologyCommand.d.ts +5 -5
- package/dist-types/commands/ListLanguagesCommand.d.ts +1 -1
- package/dist-types/commands/ListParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTerminologiesCommand.d.ts +1 -1
- package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +2 -2
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +7 -7
- package/dist-types/commands/StopTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/TranslateTextCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateParallelDataCommand.d.ts +2 -2
- package/package.json +3 -3
|
@@ -29,20 +29,20 @@ export interface CreateParallelDataCommandOutput extends CreateParallelDataRespo
|
|
|
29
29
|
* import { TranslateClient, CreateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
30
30
|
* // const { TranslateClient, CreateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
31
31
|
* const client = new TranslateClient(config);
|
|
32
|
-
* const input = {
|
|
32
|
+
* const input = { // CreateParallelDataRequest
|
|
33
33
|
* Name: "STRING_VALUE", // required
|
|
34
34
|
* Description: "STRING_VALUE",
|
|
35
|
-
* ParallelDataConfig: {
|
|
35
|
+
* ParallelDataConfig: { // ParallelDataConfig
|
|
36
36
|
* S3Uri: "STRING_VALUE", // required
|
|
37
37
|
* Format: "TSV" || "CSV" || "TMX", // required
|
|
38
38
|
* },
|
|
39
|
-
* EncryptionKey: {
|
|
39
|
+
* EncryptionKey: { // EncryptionKey
|
|
40
40
|
* Type: "KMS", // required
|
|
41
41
|
* Id: "STRING_VALUE", // required
|
|
42
42
|
* },
|
|
43
43
|
* ClientToken: "STRING_VALUE", // required
|
|
44
|
-
* Tags: [
|
|
45
|
-
* {
|
|
44
|
+
* Tags: [ // TagList
|
|
45
|
+
* { // Tag
|
|
46
46
|
* Key: "STRING_VALUE", // required
|
|
47
47
|
* Value: "STRING_VALUE", // required
|
|
48
48
|
* },
|
|
@@ -26,7 +26,7 @@ export interface DeleteParallelDataCommandOutput extends DeleteParallelDataRespo
|
|
|
26
26
|
* import { TranslateClient, DeleteParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, DeleteParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // DeleteParallelDataRequest
|
|
30
30
|
* Name: "STRING_VALUE", // required
|
|
31
31
|
* };
|
|
32
32
|
* const command = new DeleteParallelDataCommand(input);
|
|
@@ -26,7 +26,7 @@ export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
|
|
|
26
26
|
* import { TranslateClient, DeleteTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, DeleteTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // DeleteTerminologyRequest
|
|
30
30
|
* Name: "STRING_VALUE", // required
|
|
31
31
|
* };
|
|
32
32
|
* const command = new DeleteTerminologyCommand(input);
|
|
@@ -27,7 +27,7 @@ export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTra
|
|
|
27
27
|
* import { TranslateClient, DescribeTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
28
28
|
* // const { TranslateClient, DescribeTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
29
29
|
* const client = new TranslateClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // DescribeTextTranslationJobRequest
|
|
31
31
|
* JobId: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DescribeTextTranslationJobCommand(input);
|
|
@@ -26,7 +26,7 @@ export interface GetParallelDataCommandOutput extends GetParallelDataResponse, _
|
|
|
26
26
|
* import { TranslateClient, GetParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, GetParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // GetParallelDataRequest
|
|
30
30
|
* Name: "STRING_VALUE", // required
|
|
31
31
|
* };
|
|
32
32
|
* const command = new GetParallelDataCommand(input);
|
|
@@ -26,7 +26,7 @@ export interface GetTerminologyCommandOutput extends GetTerminologyResponse, __M
|
|
|
26
26
|
* import { TranslateClient, GetTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, GetTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // GetTerminologyRequest
|
|
30
30
|
* Name: "STRING_VALUE", // required
|
|
31
31
|
* TerminologyDataFormat: "CSV" || "TMX" || "TSV",
|
|
32
32
|
* };
|
|
@@ -33,21 +33,21 @@ export interface ImportTerminologyCommandOutput extends ImportTerminologyRespons
|
|
|
33
33
|
* import { TranslateClient, ImportTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
34
34
|
* // const { TranslateClient, ImportTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
35
35
|
* const client = new TranslateClient(config);
|
|
36
|
-
* const input = {
|
|
36
|
+
* const input = { // ImportTerminologyRequest
|
|
37
37
|
* Name: "STRING_VALUE", // required
|
|
38
38
|
* MergeStrategy: "OVERWRITE", // required
|
|
39
39
|
* Description: "STRING_VALUE",
|
|
40
|
-
* TerminologyData: {
|
|
40
|
+
* TerminologyData: { // TerminologyData
|
|
41
41
|
* File: "BLOB_VALUE", // required
|
|
42
42
|
* Format: "CSV" || "TMX" || "TSV", // required
|
|
43
43
|
* Directionality: "UNI" || "MULTI",
|
|
44
44
|
* },
|
|
45
|
-
* EncryptionKey: {
|
|
45
|
+
* EncryptionKey: { // EncryptionKey
|
|
46
46
|
* Type: "KMS", // required
|
|
47
47
|
* Id: "STRING_VALUE", // required
|
|
48
48
|
* },
|
|
49
|
-
* Tags: [
|
|
50
|
-
* {
|
|
49
|
+
* Tags: [ // TagList
|
|
50
|
+
* { // Tag
|
|
51
51
|
* Key: "STRING_VALUE", // required
|
|
52
52
|
* Value: "STRING_VALUE", // required
|
|
53
53
|
* },
|
|
@@ -26,7 +26,7 @@ export interface ListLanguagesCommandOutput extends ListLanguagesResponse, __Met
|
|
|
26
26
|
* import { TranslateClient, ListLanguagesCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, ListLanguagesCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // ListLanguagesRequest
|
|
30
30
|
* DisplayLanguageCode: "de" || "en" || "es" || "fr" || "it" || "ja" || "ko" || "pt" || "zh" || "zh-TW",
|
|
31
31
|
* NextToken: "STRING_VALUE",
|
|
32
32
|
* MaxResults: Number("int"),
|
|
@@ -26,7 +26,7 @@ export interface ListParallelDataCommandOutput extends ListParallelDataResponse,
|
|
|
26
26
|
* import { TranslateClient, ListParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, ListParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // ListParallelDataRequest
|
|
30
30
|
* NextToken: "STRING_VALUE",
|
|
31
31
|
* MaxResults: Number("int"),
|
|
32
32
|
* };
|
|
@@ -28,7 +28,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
28
28
|
* import { TranslateClient, ListTagsForResourceCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
29
29
|
* // const { TranslateClient, ListTagsForResourceCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
30
30
|
* const client = new TranslateClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // ListTagsForResourceRequest
|
|
32
32
|
* ResourceArn: "STRING_VALUE", // required
|
|
33
33
|
* };
|
|
34
34
|
* const command = new ListTagsForResourceCommand(input);
|
|
@@ -26,7 +26,7 @@ export interface ListTerminologiesCommandOutput extends ListTerminologiesRespons
|
|
|
26
26
|
* import { TranslateClient, ListTerminologiesCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, ListTerminologiesCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // ListTerminologiesRequest
|
|
30
30
|
* NextToken: "STRING_VALUE",
|
|
31
31
|
* MaxResults: Number("int"),
|
|
32
32
|
* };
|
|
@@ -26,8 +26,8 @@ export interface ListTextTranslationJobsCommandOutput extends ListTextTranslatio
|
|
|
26
26
|
* import { TranslateClient, ListTextTranslationJobsCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
27
27
|
* // const { TranslateClient, ListTextTranslationJobsCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
28
28
|
* const client = new TranslateClient(config);
|
|
29
|
-
* const input = {
|
|
30
|
-
* Filter: {
|
|
29
|
+
* const input = { // ListTextTranslationJobsRequest
|
|
30
|
+
* Filter: { // TextTranslationJobFilter
|
|
31
31
|
* JobName: "STRING_VALUE",
|
|
32
32
|
* JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERROR" || "FAILED" || "STOP_REQUESTED" || "STOPPED",
|
|
33
33
|
* SubmittedBeforeTime: new Date("TIMESTAMP"),
|
|
@@ -34,32 +34,32 @@ export interface StartTextTranslationJobCommandOutput extends StartTextTranslati
|
|
|
34
34
|
* import { TranslateClient, StartTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
35
35
|
* // const { TranslateClient, StartTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
36
36
|
* const client = new TranslateClient(config);
|
|
37
|
-
* const input = {
|
|
37
|
+
* const input = { // StartTextTranslationJobRequest
|
|
38
38
|
* JobName: "STRING_VALUE",
|
|
39
|
-
* InputDataConfig: {
|
|
39
|
+
* InputDataConfig: { // InputDataConfig
|
|
40
40
|
* S3Uri: "STRING_VALUE", // required
|
|
41
41
|
* ContentType: "STRING_VALUE", // required
|
|
42
42
|
* },
|
|
43
|
-
* OutputDataConfig: {
|
|
43
|
+
* OutputDataConfig: { // OutputDataConfig
|
|
44
44
|
* S3Uri: "STRING_VALUE", // required
|
|
45
|
-
* EncryptionKey: {
|
|
45
|
+
* EncryptionKey: { // EncryptionKey
|
|
46
46
|
* Type: "KMS", // required
|
|
47
47
|
* Id: "STRING_VALUE", // required
|
|
48
48
|
* },
|
|
49
49
|
* },
|
|
50
50
|
* DataAccessRoleArn: "STRING_VALUE", // required
|
|
51
51
|
* SourceLanguageCode: "STRING_VALUE", // required
|
|
52
|
-
* TargetLanguageCodes: [ // required
|
|
52
|
+
* TargetLanguageCodes: [ // TargetLanguageCodeStringList // required
|
|
53
53
|
* "STRING_VALUE",
|
|
54
54
|
* ],
|
|
55
|
-
* TerminologyNames: [
|
|
55
|
+
* TerminologyNames: [ // ResourceNameList
|
|
56
56
|
* "STRING_VALUE",
|
|
57
57
|
* ],
|
|
58
58
|
* ParallelDataNames: [
|
|
59
59
|
* "STRING_VALUE",
|
|
60
60
|
* ],
|
|
61
61
|
* ClientToken: "STRING_VALUE", // required
|
|
62
|
-
* Settings: {
|
|
62
|
+
* Settings: { // TranslationSettings
|
|
63
63
|
* Formality: "FORMAL" || "INFORMAL",
|
|
64
64
|
* Profanity: "MASK",
|
|
65
65
|
* },
|
|
@@ -32,7 +32,7 @@ export interface StopTextTranslationJobCommandOutput extends StopTextTranslation
|
|
|
32
32
|
* import { TranslateClient, StopTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
33
33
|
* // const { TranslateClient, StopTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
34
34
|
* const client = new TranslateClient(config);
|
|
35
|
-
* const input = {
|
|
35
|
+
* const input = { // StopTextTranslationJobRequest
|
|
36
36
|
* JobId: "STRING_VALUE", // required
|
|
37
37
|
* };
|
|
38
38
|
* const command = new StopTextTranslationJobCommand(input);
|
|
@@ -29,10 +29,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
29
29
|
* import { TranslateClient, TagResourceCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
30
30
|
* // const { TranslateClient, TagResourceCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
31
31
|
* const client = new TranslateClient(config);
|
|
32
|
-
* const input = {
|
|
32
|
+
* const input = { // TagResourceRequest
|
|
33
33
|
* ResourceArn: "STRING_VALUE", // required
|
|
34
|
-
* Tags: [ // required
|
|
35
|
-
* {
|
|
34
|
+
* Tags: [ // TagList // required
|
|
35
|
+
* { // Tag
|
|
36
36
|
* Key: "STRING_VALUE", // required
|
|
37
37
|
* Value: "STRING_VALUE", // required
|
|
38
38
|
* },
|
|
@@ -27,14 +27,14 @@ export interface TranslateTextCommandOutput extends TranslateTextResponse, __Met
|
|
|
27
27
|
* import { TranslateClient, TranslateTextCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
28
28
|
* // const { TranslateClient, TranslateTextCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
29
29
|
* const client = new TranslateClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // TranslateTextRequest
|
|
31
31
|
* Text: "STRING_VALUE", // required
|
|
32
|
-
* TerminologyNames: [
|
|
32
|
+
* TerminologyNames: [ // ResourceNameList
|
|
33
33
|
* "STRING_VALUE",
|
|
34
34
|
* ],
|
|
35
35
|
* SourceLanguageCode: "STRING_VALUE", // required
|
|
36
36
|
* TargetLanguageCode: "STRING_VALUE", // required
|
|
37
|
-
* Settings: {
|
|
37
|
+
* Settings: { // TranslationSettings
|
|
38
38
|
* Formality: "FORMAL" || "INFORMAL",
|
|
39
39
|
* Profanity: "MASK",
|
|
40
40
|
* },
|
|
@@ -28,9 +28,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
28
28
|
* import { TranslateClient, UntagResourceCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
29
29
|
* // const { TranslateClient, UntagResourceCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
30
30
|
* const client = new TranslateClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // UntagResourceRequest
|
|
32
32
|
* ResourceArn: "STRING_VALUE", // required
|
|
33
|
-
* TagKeys: [ // required
|
|
33
|
+
* TagKeys: [ // TagKeyList // required
|
|
34
34
|
* "STRING_VALUE",
|
|
35
35
|
* ],
|
|
36
36
|
* };
|
|
@@ -27,10 +27,10 @@ export interface UpdateParallelDataCommandOutput extends UpdateParallelDataRespo
|
|
|
27
27
|
* import { TranslateClient, UpdateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
28
28
|
* // const { TranslateClient, UpdateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
29
29
|
* const client = new TranslateClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // UpdateParallelDataRequest
|
|
31
31
|
* Name: "STRING_VALUE", // required
|
|
32
32
|
* Description: "STRING_VALUE",
|
|
33
|
-
* ParallelDataConfig: {
|
|
33
|
+
* ParallelDataConfig: { // ParallelDataConfig
|
|
34
34
|
* S3Uri: "STRING_VALUE", // required
|
|
35
35
|
* Format: "TSV" || "CSV" || "TMX", // required
|
|
36
36
|
* },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-translate",
|
|
3
3
|
"description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.301.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.301.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.301.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|