@aws-sdk/client-translate 3.299.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.
@@ -29,6 +29,25 @@ 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 = { // CreateParallelDataRequest
33
+ * Name: "STRING_VALUE", // required
34
+ * Description: "STRING_VALUE",
35
+ * ParallelDataConfig: { // ParallelDataConfig
36
+ * S3Uri: "STRING_VALUE", // required
37
+ * Format: "TSV" || "CSV" || "TMX", // required
38
+ * },
39
+ * EncryptionKey: { // EncryptionKey
40
+ * Type: "KMS", // required
41
+ * Id: "STRING_VALUE", // required
42
+ * },
43
+ * ClientToken: "STRING_VALUE", // required
44
+ * Tags: [ // TagList
45
+ * { // Tag
46
+ * Key: "STRING_VALUE", // required
47
+ * Value: "STRING_VALUE", // required
48
+ * },
49
+ * ],
50
+ * };
32
51
  * const command = new CreateParallelDataCommand(input);
33
52
  * const response = await client.send(command);
34
53
  * ```
@@ -26,6 +26,9 @@ 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 = { // DeleteParallelDataRequest
30
+ * Name: "STRING_VALUE", // required
31
+ * };
29
32
  * const command = new DeleteParallelDataCommand(input);
30
33
  * const response = await client.send(command);
31
34
  * ```
@@ -26,6 +26,9 @@ 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 = { // DeleteTerminologyRequest
30
+ * Name: "STRING_VALUE", // required
31
+ * };
29
32
  * const command = new DeleteTerminologyCommand(input);
30
33
  * const response = await client.send(command);
31
34
  * ```
@@ -27,6 +27,9 @@ 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 = { // DescribeTextTranslationJobRequest
31
+ * JobId: "STRING_VALUE", // required
32
+ * };
30
33
  * const command = new DescribeTextTranslationJobCommand(input);
31
34
  * const response = await client.send(command);
32
35
  * ```
@@ -26,6 +26,9 @@ 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 = { // GetParallelDataRequest
30
+ * Name: "STRING_VALUE", // required
31
+ * };
29
32
  * const command = new GetParallelDataCommand(input);
30
33
  * const response = await client.send(command);
31
34
  * ```
@@ -26,6 +26,10 @@ 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 = { // GetTerminologyRequest
30
+ * Name: "STRING_VALUE", // required
31
+ * TerminologyDataFormat: "CSV" || "TMX" || "TSV",
32
+ * };
29
33
  * const command = new GetTerminologyCommand(input);
30
34
  * const response = await client.send(command);
31
35
  * ```
@@ -33,6 +33,26 @@ 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 = { // ImportTerminologyRequest
37
+ * Name: "STRING_VALUE", // required
38
+ * MergeStrategy: "OVERWRITE", // required
39
+ * Description: "STRING_VALUE",
40
+ * TerminologyData: { // TerminologyData
41
+ * File: "BLOB_VALUE", // required
42
+ * Format: "CSV" || "TMX" || "TSV", // required
43
+ * Directionality: "UNI" || "MULTI",
44
+ * },
45
+ * EncryptionKey: { // EncryptionKey
46
+ * Type: "KMS", // required
47
+ * Id: "STRING_VALUE", // required
48
+ * },
49
+ * Tags: [ // TagList
50
+ * { // Tag
51
+ * Key: "STRING_VALUE", // required
52
+ * Value: "STRING_VALUE", // required
53
+ * },
54
+ * ],
55
+ * };
36
56
  * const command = new ImportTerminologyCommand(input);
37
57
  * const response = await client.send(command);
38
58
  * ```
@@ -26,6 +26,11 @@ 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 = { // ListLanguagesRequest
30
+ * DisplayLanguageCode: "de" || "en" || "es" || "fr" || "it" || "ja" || "ko" || "pt" || "zh" || "zh-TW",
31
+ * NextToken: "STRING_VALUE",
32
+ * MaxResults: Number("int"),
33
+ * };
29
34
  * const command = new ListLanguagesCommand(input);
30
35
  * const response = await client.send(command);
31
36
  * ```
@@ -26,6 +26,10 @@ 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 = { // ListParallelDataRequest
30
+ * NextToken: "STRING_VALUE",
31
+ * MaxResults: Number("int"),
32
+ * };
29
33
  * const command = new ListParallelDataCommand(input);
30
34
  * const response = await client.send(command);
31
35
  * ```
@@ -28,6 +28,9 @@ 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 = { // ListTagsForResourceRequest
32
+ * ResourceArn: "STRING_VALUE", // required
33
+ * };
31
34
  * const command = new ListTagsForResourceCommand(input);
32
35
  * const response = await client.send(command);
33
36
  * ```
@@ -26,6 +26,10 @@ 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 = { // ListTerminologiesRequest
30
+ * NextToken: "STRING_VALUE",
31
+ * MaxResults: Number("int"),
32
+ * };
29
33
  * const command = new ListTerminologiesCommand(input);
30
34
  * const response = await client.send(command);
31
35
  * ```
@@ -26,6 +26,16 @@ 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 = { // ListTextTranslationJobsRequest
30
+ * Filter: { // TextTranslationJobFilter
31
+ * JobName: "STRING_VALUE",
32
+ * JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERROR" || "FAILED" || "STOP_REQUESTED" || "STOPPED",
33
+ * SubmittedBeforeTime: new Date("TIMESTAMP"),
34
+ * SubmittedAfterTime: new Date("TIMESTAMP"),
35
+ * },
36
+ * NextToken: "STRING_VALUE",
37
+ * MaxResults: Number("int"),
38
+ * };
29
39
  * const command = new ListTextTranslationJobsCommand(input);
30
40
  * const response = await client.send(command);
31
41
  * ```
@@ -34,6 +34,36 @@ 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 = { // StartTextTranslationJobRequest
38
+ * JobName: "STRING_VALUE",
39
+ * InputDataConfig: { // InputDataConfig
40
+ * S3Uri: "STRING_VALUE", // required
41
+ * ContentType: "STRING_VALUE", // required
42
+ * },
43
+ * OutputDataConfig: { // OutputDataConfig
44
+ * S3Uri: "STRING_VALUE", // required
45
+ * EncryptionKey: { // EncryptionKey
46
+ * Type: "KMS", // required
47
+ * Id: "STRING_VALUE", // required
48
+ * },
49
+ * },
50
+ * DataAccessRoleArn: "STRING_VALUE", // required
51
+ * SourceLanguageCode: "STRING_VALUE", // required
52
+ * TargetLanguageCodes: [ // TargetLanguageCodeStringList // required
53
+ * "STRING_VALUE",
54
+ * ],
55
+ * TerminologyNames: [ // ResourceNameList
56
+ * "STRING_VALUE",
57
+ * ],
58
+ * ParallelDataNames: [
59
+ * "STRING_VALUE",
60
+ * ],
61
+ * ClientToken: "STRING_VALUE", // required
62
+ * Settings: { // TranslationSettings
63
+ * Formality: "FORMAL" || "INFORMAL",
64
+ * Profanity: "MASK",
65
+ * },
66
+ * };
37
67
  * const command = new StartTextTranslationJobCommand(input);
38
68
  * const response = await client.send(command);
39
69
  * ```
@@ -32,6 +32,9 @@ 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 = { // StopTextTranslationJobRequest
36
+ * JobId: "STRING_VALUE", // required
37
+ * };
35
38
  * const command = new StopTextTranslationJobCommand(input);
36
39
  * const response = await client.send(command);
37
40
  * ```
@@ -29,6 +29,15 @@ 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 = { // TagResourceRequest
33
+ * ResourceArn: "STRING_VALUE", // required
34
+ * Tags: [ // TagList // required
35
+ * { // Tag
36
+ * Key: "STRING_VALUE", // required
37
+ * Value: "STRING_VALUE", // required
38
+ * },
39
+ * ],
40
+ * };
32
41
  * const command = new TagResourceCommand(input);
33
42
  * const response = await client.send(command);
34
43
  * ```
@@ -27,6 +27,18 @@ 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 = { // TranslateTextRequest
31
+ * Text: "STRING_VALUE", // required
32
+ * TerminologyNames: [ // ResourceNameList
33
+ * "STRING_VALUE",
34
+ * ],
35
+ * SourceLanguageCode: "STRING_VALUE", // required
36
+ * TargetLanguageCode: "STRING_VALUE", // required
37
+ * Settings: { // TranslationSettings
38
+ * Formality: "FORMAL" || "INFORMAL",
39
+ * Profanity: "MASK",
40
+ * },
41
+ * };
30
42
  * const command = new TranslateTextCommand(input);
31
43
  * const response = await client.send(command);
32
44
  * ```
@@ -28,6 +28,12 @@ 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 = { // UntagResourceRequest
32
+ * ResourceArn: "STRING_VALUE", // required
33
+ * TagKeys: [ // TagKeyList // required
34
+ * "STRING_VALUE",
35
+ * ],
36
+ * };
31
37
  * const command = new UntagResourceCommand(input);
32
38
  * const response = await client.send(command);
33
39
  * ```
@@ -27,6 +27,15 @@ 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 = { // UpdateParallelDataRequest
31
+ * Name: "STRING_VALUE", // required
32
+ * Description: "STRING_VALUE",
33
+ * ParallelDataConfig: { // ParallelDataConfig
34
+ * S3Uri: "STRING_VALUE", // required
35
+ * Format: "TSV" || "CSV" || "TMX", // required
36
+ * },
37
+ * ClientToken: "STRING_VALUE", // required
38
+ * };
30
39
  * const command = new UpdateParallelDataCommand(input);
31
40
  * const response = await client.send(command);
32
41
  * ```
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.299.0",
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.299.0",
25
- "@aws-sdk/config-resolver": "3.299.0",
26
- "@aws-sdk/credential-provider-node": "3.299.0",
24
+ "@aws-sdk/client-sts": "3.301.0",
25
+ "@aws-sdk/config-resolver": "3.300.0",
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",
@@ -32,12 +32,12 @@
32
32
  "@aws-sdk/middleware-host-header": "3.296.0",
33
33
  "@aws-sdk/middleware-logger": "3.296.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.296.0",
35
+ "@aws-sdk/middleware-retry": "3.300.0",
36
36
  "@aws-sdk/middleware-serde": "3.296.0",
37
37
  "@aws-sdk/middleware-signing": "3.299.0",
38
38
  "@aws-sdk/middleware-stack": "3.296.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.296.0",
40
+ "@aws-sdk/node-config-provider": "3.300.0",
41
41
  "@aws-sdk/node-http-handler": "3.296.0",
42
42
  "@aws-sdk/protocol-http": "3.296.0",
43
43
  "@aws-sdk/smithy-client": "3.296.0",
@@ -47,11 +47,11 @@
47
47
  "@aws-sdk/util-body-length-browser": "3.295.0",
48
48
  "@aws-sdk/util-body-length-node": "3.295.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.299.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
51
  "@aws-sdk/util-endpoints": "3.296.0",
52
52
  "@aws-sdk/util-retry": "3.296.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.299.0",
54
+ "@aws-sdk/util-user-agent-node": "3.300.0",
55
55
  "@aws-sdk/util-utf8": "3.295.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"