@aws-sdk/client-translate 3.321.1 → 3.326.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 +7 -0
- package/dist-types/commands/DeleteParallelDataCommand.d.ts +7 -0
- package/dist-types/commands/DeleteTerminologyCommand.d.ts +4 -0
- package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +44 -0
- package/dist-types/commands/GetParallelDataCommand.d.ts +44 -0
- package/dist-types/commands/GetTerminologyCommand.d.ts +34 -0
- package/dist-types/commands/ImportTerminologyCommand.d.ts +30 -0
- package/dist-types/commands/ListLanguagesCommand.d.ts +13 -0
- package/dist-types/commands/ListParallelDataCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
- package/dist-types/commands/ListTerminologiesCommand.d.ts +29 -0
- package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +47 -0
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +7 -0
- package/dist-types/commands/StopTextTranslationJobCommand.d.ts +7 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/TranslateTextCommand.d.ts +23 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateParallelDataCommand.d.ts +9 -0
- package/package.json +16 -16
|
@@ -50,6 +50,11 @@ export interface CreateParallelDataCommandOutput extends CreateParallelDataRespo
|
|
|
50
50
|
* };
|
|
51
51
|
* const command = new CreateParallelDataCommand(input);
|
|
52
52
|
* const response = await client.send(command);
|
|
53
|
+
* // { // CreateParallelDataResponse
|
|
54
|
+
* // Name: "STRING_VALUE",
|
|
55
|
+
* // Status: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
53
58
|
* ```
|
|
54
59
|
*
|
|
55
60
|
* @param CreateParallelDataCommandInput - {@link CreateParallelDataCommandInput}
|
|
@@ -87,6 +92,8 @@ export interface CreateParallelDataCommandOutput extends CreateParallelDataRespo
|
|
|
87
92
|
* @throws {@link TooManyTagsException} (client fault)
|
|
88
93
|
* <p>You have added too many tags to this resource. The maximum is 50 tags.</p>
|
|
89
94
|
*
|
|
95
|
+
* @throws {@link TranslateServiceException}
|
|
96
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
90
97
|
*
|
|
91
98
|
*/
|
|
92
99
|
export declare class CreateParallelDataCommand extends $Command<CreateParallelDataCommandInput, CreateParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -31,6 +31,11 @@ export interface DeleteParallelDataCommandOutput extends DeleteParallelDataRespo
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new DeleteParallelDataCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // { // DeleteParallelDataResponse
|
|
35
|
+
* // Name: "STRING_VALUE",
|
|
36
|
+
* // Status: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
37
|
+
* // };
|
|
38
|
+
*
|
|
34
39
|
* ```
|
|
35
40
|
*
|
|
36
41
|
* @param DeleteParallelDataCommandInput - {@link DeleteParallelDataCommandInput}
|
|
@@ -55,6 +60,8 @@ export interface DeleteParallelDataCommandOutput extends DeleteParallelDataRespo
|
|
|
55
60
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
56
61
|
* then try your request again.</p>
|
|
57
62
|
*
|
|
63
|
+
* @throws {@link TranslateServiceException}
|
|
64
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
58
65
|
*
|
|
59
66
|
*/
|
|
60
67
|
export declare class DeleteParallelDataCommand extends $Command<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -31,6 +31,8 @@ export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new DeleteTerminologyCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // {};
|
|
35
|
+
*
|
|
34
36
|
* ```
|
|
35
37
|
*
|
|
36
38
|
* @param DeleteTerminologyCommandInput - {@link DeleteTerminologyCommandInput}
|
|
@@ -55,6 +57,8 @@ export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
|
|
|
55
57
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
56
58
|
* then try your request again.</p>
|
|
57
59
|
*
|
|
60
|
+
* @throws {@link TranslateServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
58
62
|
*
|
|
59
63
|
*/
|
|
60
64
|
export declare class DeleteTerminologyCommand extends $Command<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -32,6 +32,48 @@ export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTra
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DescribeTextTranslationJobCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // DescribeTextTranslationJobResponse
|
|
36
|
+
* // TextTranslationJobProperties: { // TextTranslationJobProperties
|
|
37
|
+
* // JobId: "STRING_VALUE",
|
|
38
|
+
* // JobName: "STRING_VALUE",
|
|
39
|
+
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERROR" || "FAILED" || "STOP_REQUESTED" || "STOPPED",
|
|
40
|
+
* // JobDetails: { // JobDetails
|
|
41
|
+
* // TranslatedDocumentsCount: Number("int"),
|
|
42
|
+
* // DocumentsWithErrorsCount: Number("int"),
|
|
43
|
+
* // InputDocumentsCount: Number("int"),
|
|
44
|
+
* // },
|
|
45
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
46
|
+
* // TargetLanguageCodes: [ // TargetLanguageCodeStringList
|
|
47
|
+
* // "STRING_VALUE",
|
|
48
|
+
* // ],
|
|
49
|
+
* // TerminologyNames: [ // ResourceNameList
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // ParallelDataNames: [
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // Message: "STRING_VALUE",
|
|
56
|
+
* // SubmittedTime: new Date("TIMESTAMP"),
|
|
57
|
+
* // EndTime: new Date("TIMESTAMP"),
|
|
58
|
+
* // InputDataConfig: { // InputDataConfig
|
|
59
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
60
|
+
* // ContentType: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // OutputDataConfig: { // OutputDataConfig
|
|
63
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
64
|
+
* // EncryptionKey: { // EncryptionKey
|
|
65
|
+
* // Type: "KMS", // required
|
|
66
|
+
* // Id: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
69
|
+
* // DataAccessRoleArn: "STRING_VALUE",
|
|
70
|
+
* // Settings: { // TranslationSettings
|
|
71
|
+
* // Formality: "FORMAL" || "INFORMAL",
|
|
72
|
+
* // Profanity: "MASK",
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
35
77
|
* ```
|
|
36
78
|
*
|
|
37
79
|
* @param DescribeTextTranslationJobCommandInput - {@link DescribeTextTranslationJobCommandInput}
|
|
@@ -52,6 +94,8 @@ export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTra
|
|
|
52
94
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
53
95
|
* then try your request again.</p>
|
|
54
96
|
*
|
|
97
|
+
* @throws {@link TranslateServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
55
99
|
*
|
|
56
100
|
*/
|
|
57
101
|
export declare class DescribeTextTranslationJobCommand extends $Command<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -31,6 +31,48 @@ export interface GetParallelDataCommandOutput extends GetParallelDataResponse, _
|
|
|
31
31
|
* };
|
|
32
32
|
* const command = new GetParallelDataCommand(input);
|
|
33
33
|
* const response = await client.send(command);
|
|
34
|
+
* // { // GetParallelDataResponse
|
|
35
|
+
* // ParallelDataProperties: { // ParallelDataProperties
|
|
36
|
+
* // Name: "STRING_VALUE",
|
|
37
|
+
* // Arn: "STRING_VALUE",
|
|
38
|
+
* // Description: "STRING_VALUE",
|
|
39
|
+
* // Status: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
40
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
41
|
+
* // TargetLanguageCodes: [ // LanguageCodeStringList
|
|
42
|
+
* // "STRING_VALUE",
|
|
43
|
+
* // ],
|
|
44
|
+
* // ParallelDataConfig: { // ParallelDataConfig
|
|
45
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
46
|
+
* // Format: "TSV" || "CSV" || "TMX", // required
|
|
47
|
+
* // },
|
|
48
|
+
* // Message: "STRING_VALUE",
|
|
49
|
+
* // ImportedDataSize: Number("long"),
|
|
50
|
+
* // ImportedRecordCount: Number("long"),
|
|
51
|
+
* // FailedRecordCount: Number("long"),
|
|
52
|
+
* // SkippedRecordCount: Number("long"),
|
|
53
|
+
* // EncryptionKey: { // EncryptionKey
|
|
54
|
+
* // Type: "KMS", // required
|
|
55
|
+
* // Id: "STRING_VALUE", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
58
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"),
|
|
59
|
+
* // LatestUpdateAttemptStatus: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
60
|
+
* // LatestUpdateAttemptAt: new Date("TIMESTAMP"),
|
|
61
|
+
* // },
|
|
62
|
+
* // DataLocation: { // ParallelDataDataLocation
|
|
63
|
+
* // RepositoryType: "STRING_VALUE", // required
|
|
64
|
+
* // Location: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // AuxiliaryDataLocation: {
|
|
67
|
+
* // RepositoryType: "STRING_VALUE", // required
|
|
68
|
+
* // Location: "STRING_VALUE", // required
|
|
69
|
+
* // },
|
|
70
|
+
* // LatestUpdateAttemptAuxiliaryDataLocation: {
|
|
71
|
+
* // RepositoryType: "STRING_VALUE", // required
|
|
72
|
+
* // Location: "STRING_VALUE", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
34
76
|
* ```
|
|
35
77
|
*
|
|
36
78
|
* @param GetParallelDataCommandInput - {@link GetParallelDataCommandInput}
|
|
@@ -55,6 +97,8 @@ export interface GetParallelDataCommandOutput extends GetParallelDataResponse, _
|
|
|
55
97
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
56
98
|
* then try your request again.</p>
|
|
57
99
|
*
|
|
100
|
+
* @throws {@link TranslateServiceException}
|
|
101
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
58
102
|
*
|
|
59
103
|
*/
|
|
60
104
|
export declare class GetParallelDataCommand extends $Command<GetParallelDataCommandInput, GetParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -32,6 +32,38 @@ export interface GetTerminologyCommandOutput extends GetTerminologyResponse, __M
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new GetTerminologyCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // GetTerminologyResponse
|
|
36
|
+
* // TerminologyProperties: { // TerminologyProperties
|
|
37
|
+
* // Name: "STRING_VALUE",
|
|
38
|
+
* // Description: "STRING_VALUE",
|
|
39
|
+
* // Arn: "STRING_VALUE",
|
|
40
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
41
|
+
* // TargetLanguageCodes: [ // LanguageCodeStringList
|
|
42
|
+
* // "STRING_VALUE",
|
|
43
|
+
* // ],
|
|
44
|
+
* // EncryptionKey: { // EncryptionKey
|
|
45
|
+
* // Type: "KMS", // required
|
|
46
|
+
* // Id: "STRING_VALUE", // required
|
|
47
|
+
* // },
|
|
48
|
+
* // SizeBytes: Number("int"),
|
|
49
|
+
* // TermCount: Number("int"),
|
|
50
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
51
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // Directionality: "UNI" || "MULTI",
|
|
53
|
+
* // Message: "STRING_VALUE",
|
|
54
|
+
* // SkippedTermCount: Number("int"),
|
|
55
|
+
* // Format: "CSV" || "TMX" || "TSV",
|
|
56
|
+
* // },
|
|
57
|
+
* // TerminologyDataLocation: { // TerminologyDataLocation
|
|
58
|
+
* // RepositoryType: "STRING_VALUE", // required
|
|
59
|
+
* // Location: "STRING_VALUE", // required
|
|
60
|
+
* // },
|
|
61
|
+
* // AuxiliaryDataLocation: {
|
|
62
|
+
* // RepositoryType: "STRING_VALUE", // required
|
|
63
|
+
* // Location: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
35
67
|
* ```
|
|
36
68
|
*
|
|
37
69
|
* @param GetTerminologyCommandInput - {@link GetTerminologyCommandInput}
|
|
@@ -56,6 +88,8 @@ export interface GetTerminologyCommandOutput extends GetTerminologyResponse, __M
|
|
|
56
88
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
57
89
|
* then try your request again.</p>
|
|
58
90
|
*
|
|
91
|
+
* @throws {@link TranslateServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
59
93
|
*
|
|
60
94
|
*/
|
|
61
95
|
export declare class GetTerminologyCommand extends $Command<GetTerminologyCommandInput, GetTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -55,6 +55,34 @@ export interface ImportTerminologyCommandOutput extends ImportTerminologyRespons
|
|
|
55
55
|
* };
|
|
56
56
|
* const command = new ImportTerminologyCommand(input);
|
|
57
57
|
* const response = await client.send(command);
|
|
58
|
+
* // { // ImportTerminologyResponse
|
|
59
|
+
* // TerminologyProperties: { // TerminologyProperties
|
|
60
|
+
* // Name: "STRING_VALUE",
|
|
61
|
+
* // Description: "STRING_VALUE",
|
|
62
|
+
* // Arn: "STRING_VALUE",
|
|
63
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
64
|
+
* // TargetLanguageCodes: [ // LanguageCodeStringList
|
|
65
|
+
* // "STRING_VALUE",
|
|
66
|
+
* // ],
|
|
67
|
+
* // EncryptionKey: { // EncryptionKey
|
|
68
|
+
* // Type: "KMS", // required
|
|
69
|
+
* // Id: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // SizeBytes: Number("int"),
|
|
72
|
+
* // TermCount: Number("int"),
|
|
73
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
74
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"),
|
|
75
|
+
* // Directionality: "UNI" || "MULTI",
|
|
76
|
+
* // Message: "STRING_VALUE",
|
|
77
|
+
* // SkippedTermCount: Number("int"),
|
|
78
|
+
* // Format: "CSV" || "TMX" || "TSV",
|
|
79
|
+
* // },
|
|
80
|
+
* // AuxiliaryDataLocation: { // TerminologyDataLocation
|
|
81
|
+
* // RepositoryType: "STRING_VALUE", // required
|
|
82
|
+
* // Location: "STRING_VALUE", // required
|
|
83
|
+
* // },
|
|
84
|
+
* // };
|
|
85
|
+
*
|
|
58
86
|
* ```
|
|
59
87
|
*
|
|
60
88
|
* @param ImportTerminologyCommandInput - {@link ImportTerminologyCommandInput}
|
|
@@ -85,6 +113,8 @@ export interface ImportTerminologyCommandOutput extends ImportTerminologyRespons
|
|
|
85
113
|
* @throws {@link TooManyTagsException} (client fault)
|
|
86
114
|
* <p>You have added too many tags to this resource. The maximum is 50 tags.</p>
|
|
87
115
|
*
|
|
116
|
+
* @throws {@link TranslateServiceException}
|
|
117
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
88
118
|
*
|
|
89
119
|
*/
|
|
90
120
|
export declare class ImportTerminologyCommand extends $Command<ImportTerminologyCommandInput, ImportTerminologyCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -33,6 +33,17 @@ export interface ListLanguagesCommandOutput extends ListLanguagesResponse, __Met
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new ListLanguagesCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // ListLanguagesResponse
|
|
37
|
+
* // Languages: [ // LanguagesList
|
|
38
|
+
* // { // Language
|
|
39
|
+
* // LanguageName: "STRING_VALUE", // required
|
|
40
|
+
* // LanguageCode: "STRING_VALUE", // required
|
|
41
|
+
* // },
|
|
42
|
+
* // ],
|
|
43
|
+
* // DisplayLanguageCode: "de" || "en" || "es" || "fr" || "it" || "ja" || "ko" || "pt" || "zh" || "zh-TW",
|
|
44
|
+
* // NextToken: "STRING_VALUE",
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
36
47
|
* ```
|
|
37
48
|
*
|
|
38
49
|
* @param ListLanguagesCommandInput - {@link ListLanguagesCommandInput}
|
|
@@ -55,6 +66,8 @@ export interface ListLanguagesCommandOutput extends ListLanguagesResponse, __Met
|
|
|
55
66
|
* @throws {@link UnsupportedDisplayLanguageCodeException} (client fault)
|
|
56
67
|
* <p>Requested display language code is not supported.</p>
|
|
57
68
|
*
|
|
69
|
+
* @throws {@link TranslateServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
58
71
|
*
|
|
59
72
|
*/
|
|
60
73
|
export declare class ListLanguagesCommand extends $Command<ListLanguagesCommandInput, ListLanguagesCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -32,6 +32,39 @@ export interface ListParallelDataCommandOutput extends ListParallelDataResponse,
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new ListParallelDataCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // ListParallelDataResponse
|
|
36
|
+
* // ParallelDataPropertiesList: [ // ParallelDataPropertiesList
|
|
37
|
+
* // { // ParallelDataProperties
|
|
38
|
+
* // Name: "STRING_VALUE",
|
|
39
|
+
* // Arn: "STRING_VALUE",
|
|
40
|
+
* // Description: "STRING_VALUE",
|
|
41
|
+
* // Status: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
42
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
43
|
+
* // TargetLanguageCodes: [ // LanguageCodeStringList
|
|
44
|
+
* // "STRING_VALUE",
|
|
45
|
+
* // ],
|
|
46
|
+
* // ParallelDataConfig: { // ParallelDataConfig
|
|
47
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
48
|
+
* // Format: "TSV" || "CSV" || "TMX", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // Message: "STRING_VALUE",
|
|
51
|
+
* // ImportedDataSize: Number("long"),
|
|
52
|
+
* // ImportedRecordCount: Number("long"),
|
|
53
|
+
* // FailedRecordCount: Number("long"),
|
|
54
|
+
* // SkippedRecordCount: Number("long"),
|
|
55
|
+
* // EncryptionKey: { // EncryptionKey
|
|
56
|
+
* // Type: "KMS", // required
|
|
57
|
+
* // Id: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
60
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"),
|
|
61
|
+
* // LatestUpdateAttemptStatus: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
62
|
+
* // LatestUpdateAttemptAt: new Date("TIMESTAMP"),
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // NextToken: "STRING_VALUE",
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
35
68
|
* ```
|
|
36
69
|
*
|
|
37
70
|
* @param ListParallelDataCommandInput - {@link ListParallelDataCommandInput}
|
|
@@ -51,6 +84,8 @@ export interface ListParallelDataCommandOutput extends ListParallelDataResponse,
|
|
|
51
84
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
52
85
|
* then try your request again.</p>
|
|
53
86
|
*
|
|
87
|
+
* @throws {@link TranslateServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
54
89
|
*
|
|
55
90
|
*/
|
|
56
91
|
export declare class ListParallelDataCommand extends $Command<ListParallelDataCommandInput, ListParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -33,6 +33,15 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new ListTagsForResourceCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // ListTagsForResourceResponse
|
|
37
|
+
* // Tags: [ // TagList
|
|
38
|
+
* // { // Tag
|
|
39
|
+
* // Key: "STRING_VALUE", // required
|
|
40
|
+
* // Value: "STRING_VALUE", // required
|
|
41
|
+
* // },
|
|
42
|
+
* // ],
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
36
45
|
* ```
|
|
37
46
|
*
|
|
38
47
|
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
@@ -53,6 +62,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
53
62
|
* for and see if a different resource will accomplish your needs before retrying the revised
|
|
54
63
|
* request.</p>
|
|
55
64
|
*
|
|
65
|
+
* @throws {@link TranslateServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
56
67
|
*
|
|
57
68
|
*/
|
|
58
69
|
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -32,6 +32,33 @@ export interface ListTerminologiesCommandOutput extends ListTerminologiesRespons
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new ListTerminologiesCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // ListTerminologiesResponse
|
|
36
|
+
* // TerminologyPropertiesList: [ // TerminologyPropertiesList
|
|
37
|
+
* // { // TerminologyProperties
|
|
38
|
+
* // Name: "STRING_VALUE",
|
|
39
|
+
* // Description: "STRING_VALUE",
|
|
40
|
+
* // Arn: "STRING_VALUE",
|
|
41
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
42
|
+
* // TargetLanguageCodes: [ // LanguageCodeStringList
|
|
43
|
+
* // "STRING_VALUE",
|
|
44
|
+
* // ],
|
|
45
|
+
* // EncryptionKey: { // EncryptionKey
|
|
46
|
+
* // Type: "KMS", // required
|
|
47
|
+
* // Id: "STRING_VALUE", // required
|
|
48
|
+
* // },
|
|
49
|
+
* // SizeBytes: Number("int"),
|
|
50
|
+
* // TermCount: Number("int"),
|
|
51
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"),
|
|
53
|
+
* // Directionality: "UNI" || "MULTI",
|
|
54
|
+
* // Message: "STRING_VALUE",
|
|
55
|
+
* // SkippedTermCount: Number("int"),
|
|
56
|
+
* // Format: "CSV" || "TMX" || "TSV",
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // NextToken: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
35
62
|
* ```
|
|
36
63
|
*
|
|
37
64
|
* @param ListTerminologiesCommandInput - {@link ListTerminologiesCommandInput}
|
|
@@ -51,6 +78,8 @@ export interface ListTerminologiesCommandOutput extends ListTerminologiesRespons
|
|
|
51
78
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
52
79
|
* then try your request again.</p>
|
|
53
80
|
*
|
|
81
|
+
* @throws {@link TranslateServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
54
83
|
*
|
|
55
84
|
*/
|
|
56
85
|
export declare class ListTerminologiesCommand extends $Command<ListTerminologiesCommandInput, ListTerminologiesCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -38,6 +38,51 @@ export interface ListTextTranslationJobsCommandOutput extends ListTextTranslatio
|
|
|
38
38
|
* };
|
|
39
39
|
* const command = new ListTextTranslationJobsCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
41
|
+
* // { // ListTextTranslationJobsResponse
|
|
42
|
+
* // TextTranslationJobPropertiesList: [ // TextTranslationJobPropertiesList
|
|
43
|
+
* // { // TextTranslationJobProperties
|
|
44
|
+
* // JobId: "STRING_VALUE",
|
|
45
|
+
* // JobName: "STRING_VALUE",
|
|
46
|
+
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERROR" || "FAILED" || "STOP_REQUESTED" || "STOPPED",
|
|
47
|
+
* // JobDetails: { // JobDetails
|
|
48
|
+
* // TranslatedDocumentsCount: Number("int"),
|
|
49
|
+
* // DocumentsWithErrorsCount: Number("int"),
|
|
50
|
+
* // InputDocumentsCount: Number("int"),
|
|
51
|
+
* // },
|
|
52
|
+
* // SourceLanguageCode: "STRING_VALUE",
|
|
53
|
+
* // TargetLanguageCodes: [ // TargetLanguageCodeStringList
|
|
54
|
+
* // "STRING_VALUE",
|
|
55
|
+
* // ],
|
|
56
|
+
* // TerminologyNames: [ // ResourceNameList
|
|
57
|
+
* // "STRING_VALUE",
|
|
58
|
+
* // ],
|
|
59
|
+
* // ParallelDataNames: [
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // Message: "STRING_VALUE",
|
|
63
|
+
* // SubmittedTime: new Date("TIMESTAMP"),
|
|
64
|
+
* // EndTime: new Date("TIMESTAMP"),
|
|
65
|
+
* // InputDataConfig: { // InputDataConfig
|
|
66
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
67
|
+
* // ContentType: "STRING_VALUE", // required
|
|
68
|
+
* // },
|
|
69
|
+
* // OutputDataConfig: { // OutputDataConfig
|
|
70
|
+
* // S3Uri: "STRING_VALUE", // required
|
|
71
|
+
* // EncryptionKey: { // EncryptionKey
|
|
72
|
+
* // Type: "KMS", // required
|
|
73
|
+
* // Id: "STRING_VALUE", // required
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // DataAccessRoleArn: "STRING_VALUE",
|
|
77
|
+
* // Settings: { // TranslationSettings
|
|
78
|
+
* // Formality: "FORMAL" || "INFORMAL",
|
|
79
|
+
* // Profanity: "MASK",
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // NextToken: "STRING_VALUE",
|
|
84
|
+
* // };
|
|
85
|
+
*
|
|
41
86
|
* ```
|
|
42
87
|
*
|
|
43
88
|
* @param ListTextTranslationJobsCommandInput - {@link ListTextTranslationJobsCommandInput}
|
|
@@ -60,6 +105,8 @@ export interface ListTextTranslationJobsCommandOutput extends ListTextTranslatio
|
|
|
60
105
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
61
106
|
* then try your request again.</p>
|
|
62
107
|
*
|
|
108
|
+
* @throws {@link TranslateServiceException}
|
|
109
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
63
110
|
*
|
|
64
111
|
*/
|
|
65
112
|
export declare class ListTextTranslationJobsCommand extends $Command<ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -66,6 +66,11 @@ export interface StartTextTranslationJobCommandOutput extends StartTextTranslati
|
|
|
66
66
|
* };
|
|
67
67
|
* const command = new StartTextTranslationJobCommand(input);
|
|
68
68
|
* const response = await client.send(command);
|
|
69
|
+
* // { // StartTextTranslationJobResponse
|
|
70
|
+
* // JobId: "STRING_VALUE",
|
|
71
|
+
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERROR" || "FAILED" || "STOP_REQUESTED" || "STOPPED",
|
|
72
|
+
* // };
|
|
73
|
+
*
|
|
69
74
|
* ```
|
|
70
75
|
*
|
|
71
76
|
* @param StartTextTranslationJobCommandInput - {@link StartTextTranslationJobCommandInput}
|
|
@@ -98,6 +103,8 @@ export interface StartTextTranslationJobCommandOutput extends StartTextTranslati
|
|
|
98
103
|
* <p>Amazon Translate does not support translation from the language of the source text into the requested
|
|
99
104
|
* target language. For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/how-to-error-msg.html">Error messages</a>. </p>
|
|
100
105
|
*
|
|
106
|
+
* @throws {@link TranslateServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
101
108
|
*
|
|
102
109
|
*/
|
|
103
110
|
export declare class StartTextTranslationJobCommand extends $Command<StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -37,6 +37,11 @@ export interface StopTextTranslationJobCommandOutput extends StopTextTranslation
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new StopTextTranslationJobCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // { // StopTextTranslationJobResponse
|
|
41
|
+
* // JobId: "STRING_VALUE",
|
|
42
|
+
* // JobStatus: "SUBMITTED" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERROR" || "FAILED" || "STOP_REQUESTED" || "STOPPED",
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
40
45
|
* ```
|
|
41
46
|
*
|
|
42
47
|
* @param StopTextTranslationJobCommandInput - {@link StopTextTranslationJobCommandInput}
|
|
@@ -57,6 +62,8 @@ export interface StopTextTranslationJobCommandOutput extends StopTextTranslation
|
|
|
57
62
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
58
63
|
* then try your request again.</p>
|
|
59
64
|
*
|
|
65
|
+
* @throws {@link TranslateServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
60
67
|
*
|
|
61
68
|
*/
|
|
62
69
|
export declare class StopTextTranslationJobCommand extends $Command<StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -40,6 +40,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
40
40
|
* };
|
|
41
41
|
* const command = new TagResourceCommand(input);
|
|
42
42
|
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
43
45
|
* ```
|
|
44
46
|
*
|
|
45
47
|
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
|
|
@@ -67,6 +69,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
67
69
|
* @throws {@link TooManyTagsException} (client fault)
|
|
68
70
|
* <p>You have added too many tags to this resource. The maximum is 50 tags.</p>
|
|
69
71
|
*
|
|
72
|
+
* @throws {@link TranslateServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
70
74
|
*
|
|
71
75
|
*/
|
|
72
76
|
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -41,6 +41,27 @@ export interface TranslateTextCommandOutput extends TranslateTextResponse, __Met
|
|
|
41
41
|
* };
|
|
42
42
|
* const command = new TranslateTextCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
44
|
+
* // { // TranslateTextResponse
|
|
45
|
+
* // TranslatedText: "STRING_VALUE", // required
|
|
46
|
+
* // SourceLanguageCode: "STRING_VALUE", // required
|
|
47
|
+
* // TargetLanguageCode: "STRING_VALUE", // required
|
|
48
|
+
* // AppliedTerminologies: [ // AppliedTerminologyList
|
|
49
|
+
* // { // AppliedTerminology
|
|
50
|
+
* // Name: "STRING_VALUE",
|
|
51
|
+
* // Terms: [ // TermList
|
|
52
|
+
* // { // Term
|
|
53
|
+
* // SourceText: "STRING_VALUE",
|
|
54
|
+
* // TargetText: "STRING_VALUE",
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // AppliedSettings: { // TranslationSettings
|
|
60
|
+
* // Formality: "FORMAL" || "INFORMAL",
|
|
61
|
+
* // Profanity: "MASK",
|
|
62
|
+
* // },
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
44
65
|
* ```
|
|
45
66
|
*
|
|
46
67
|
* @param TranslateTextCommandInput - {@link TranslateTextCommandInput}
|
|
@@ -83,6 +104,8 @@ export interface TranslateTextCommandOutput extends TranslateTextResponse, __Met
|
|
|
83
104
|
* <p>Amazon Translate does not support translation from the language of the source text into the requested
|
|
84
105
|
* target language. For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/how-to-error-msg.html">Error messages</a>. </p>
|
|
85
106
|
*
|
|
107
|
+
* @throws {@link TranslateServiceException}
|
|
108
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
86
109
|
*
|
|
87
110
|
*/
|
|
88
111
|
export declare class TranslateTextCommand extends $Command<TranslateTextCommandInput, TranslateTextCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -36,6 +36,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
36
36
|
* };
|
|
37
37
|
* const command = new UntagResourceCommand(input);
|
|
38
38
|
* const response = await client.send(command);
|
|
39
|
+
* // {};
|
|
40
|
+
*
|
|
39
41
|
* ```
|
|
40
42
|
*
|
|
41
43
|
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
|
|
@@ -60,6 +62,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
60
62
|
* for and see if a different resource will accomplish your needs before retrying the revised
|
|
61
63
|
* request.</p>
|
|
62
64
|
*
|
|
65
|
+
* @throws {@link TranslateServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
63
67
|
*
|
|
64
68
|
*/
|
|
65
69
|
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, TranslateClientResolvedConfig> {
|
|
@@ -38,6 +38,13 @@ export interface UpdateParallelDataCommandOutput extends UpdateParallelDataRespo
|
|
|
38
38
|
* };
|
|
39
39
|
* const command = new UpdateParallelDataCommand(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
41
|
+
* // { // UpdateParallelDataResponse
|
|
42
|
+
* // Name: "STRING_VALUE",
|
|
43
|
+
* // Status: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
44
|
+
* // LatestUpdateAttemptStatus: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING" || "FAILED",
|
|
45
|
+
* // LatestUpdateAttemptAt: new Date("TIMESTAMP"),
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
41
48
|
* ```
|
|
42
49
|
*
|
|
43
50
|
* @param UpdateParallelDataCommandInput - {@link UpdateParallelDataCommandInput}
|
|
@@ -77,6 +84,8 @@ export interface UpdateParallelDataCommandOutput extends UpdateParallelDataRespo
|
|
|
77
84
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
78
85
|
* then try your request again.</p>
|
|
79
86
|
*
|
|
87
|
+
* @throws {@link TranslateServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
80
89
|
*
|
|
81
90
|
*/
|
|
82
91
|
export declare class UpdateParallelDataCommand extends $Command<UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput, TranslateClientResolvedConfig> {
|
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.326.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,33 +21,33 @@
|
|
|
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.326.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.326.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.325.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.325.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.325.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.325.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.325.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.325.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.325.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.325.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.325.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.325.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.321.1",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.325.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.325.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.325.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|