@aws-sdk/client-translate 3.180.0 → 3.183.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/Translate.js +45 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +50 -8
  8. package/dist-cjs/protocols/Aws_json1_1.js +275 -16
  9. package/dist-es/Translate.js +106 -68
  10. package/dist-es/TranslateClient.js +22 -28
  11. package/dist-es/commands/CreateParallelDataCommand.js +21 -28
  12. package/dist-es/commands/DeleteParallelDataCommand.js +21 -28
  13. package/dist-es/commands/DeleteTerminologyCommand.js +22 -29
  14. package/dist-es/commands/DescribeTextTranslationJobCommand.js +21 -28
  15. package/dist-es/commands/GetParallelDataCommand.js +21 -28
  16. package/dist-es/commands/GetTerminologyCommand.js +21 -28
  17. package/dist-es/commands/ImportTerminologyCommand.js +21 -28
  18. package/dist-es/commands/ListLanguagesCommand.js +21 -28
  19. package/dist-es/commands/ListParallelDataCommand.js +21 -28
  20. package/dist-es/commands/ListTagsForResourceCommand.js +32 -0
  21. package/dist-es/commands/ListTerminologiesCommand.js +21 -28
  22. package/dist-es/commands/ListTextTranslationJobsCommand.js +21 -28
  23. package/dist-es/commands/StartTextTranslationJobCommand.js +21 -28
  24. package/dist-es/commands/StopTextTranslationJobCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +32 -0
  26. package/dist-es/commands/TranslateTextCommand.js +21 -28
  27. package/dist-es/commands/UntagResourceCommand.js +32 -0
  28. package/dist-es/commands/UpdateParallelDataCommand.js +21 -28
  29. package/dist-es/commands/index.js +3 -0
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/TranslateServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +343 -218
  33. package/dist-es/pagination/ListLanguagesPaginator.js +25 -68
  34. package/dist-es/pagination/ListParallelDataPaginator.js +25 -68
  35. package/dist-es/pagination/ListTerminologiesPaginator.js +25 -68
  36. package/dist-es/pagination/ListTextTranslationJobsPaginator.js +25 -68
  37. package/dist-es/protocols/Aws_json1_1.js +1444 -1482
  38. package/dist-es/runtimeConfig.browser.js +26 -12
  39. package/dist-es/runtimeConfig.js +30 -12
  40. package/dist-es/runtimeConfig.native.js +8 -5
  41. package/dist-es/runtimeConfig.shared.js +8 -11
  42. package/dist-types/Translate.d.ts +12 -0
  43. package/dist-types/TranslateClient.d.ts +5 -2
  44. package/dist-types/commands/ListTagsForResourceCommand.d.ts +18 -0
  45. package/dist-types/commands/TagResourceCommand.d.ts +18 -0
  46. package/dist-types/commands/UntagResourceCommand.d.ts +18 -0
  47. package/dist-types/commands/index.d.ts +3 -0
  48. package/dist-types/models/models_0.d.ts +69 -8
  49. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  50. package/dist-types/ts3.4/Translate.d.ts +51 -0
  51. package/dist-types/ts3.4/TranslateClient.d.ts +18 -0
  52. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
  53. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  54. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  55. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +56 -7
  57. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  58. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
12
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
13
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
- export var getRuntimeConfig = function (config) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var defaultsMode = resolveDefaultsModeConfig(config);
18
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
- var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4, defaultConfigProvider()];
23
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
- }
25
- }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
14
+ export const getRuntimeConfig = (config) => {
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ base64Decoder: config?.base64Decoder ?? fromBase64,
24
+ base64Encoder: config?.base64Encoder ?? toBase64,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? invalidProvider("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? Sha256,
34
+ streamCollector: config?.streamCollector ?? streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
26
40
  };
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
15
14
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
15
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
16
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
- export var getRuntimeConfig = function (config) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ export const getRuntimeConfig = (config) => {
20
18
  emitWarningIfUnsupportedVersion(process.version);
21
- var defaultsMode = resolveDefaultsModeConfig(config);
22
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
- var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
- switch (_a.label) {
26
- case 0: return [4, defaultConfigProvider()];
27
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
- }
29
- }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ base64Decoder: config?.base64Decoder ?? fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ??
37
+ loadNodeConfig({
38
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
+ }),
41
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
+ streamCollector: config?.streamCollector ?? streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
+ };
30
48
  };
@@ -1,8 +1,11 @@
1
- import { __assign } from "tslib";
2
1
  import { Sha256 } from "@aws-crypto/sha256-js";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- export var getRuntimeConfig = function (config) {
5
- var _a;
6
- var browserDefaults = getBrowserRuntimeConfig(config);
7
- return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
8
11
  };
@@ -1,13 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export var getRuntimeConfig = function (config) {
4
- var _a, _b, _c, _d, _e;
5
- return ({
6
- apiVersion: "2017-07-01",
7
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Translate",
11
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
- });
13
- };
3
+ export const getRuntimeConfig = (config) => ({
4
+ apiVersion: "2017-07-01",
5
+ disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ logger: config?.logger ?? {},
7
+ regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
+ serviceId: config?.serviceId ?? "Translate",
9
+ urlParser: config?.urlParser ?? parseUrl,
10
+ });
@@ -8,11 +8,14 @@ import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "./comma
8
8
  import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "./commands/ImportTerminologyCommand";
9
9
  import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "./commands/ListLanguagesCommand";
10
10
  import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "./commands/ListParallelDataCommand";
11
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
11
12
  import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "./commands/ListTerminologiesCommand";
12
13
  import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "./commands/ListTextTranslationJobsCommand";
13
14
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "./commands/StartTextTranslationJobCommand";
14
15
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "./commands/StopTextTranslationJobCommand";
16
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
15
17
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
18
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
16
19
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
17
20
  import { TranslateClient } from "./TranslateClient";
18
21
  /**
@@ -85,6 +88,9 @@ export declare class Translate extends TranslateClient {
85
88
  listParallelData(args: ListParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<ListParallelDataCommandOutput>;
86
89
  listParallelData(args: ListParallelDataCommandInput, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
87
90
  listParallelData(args: ListParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
91
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
92
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
93
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
88
94
  /**
89
95
  * <p>Provides a list of custom terminologies associated with your account.</p>
90
96
  */
@@ -122,6 +128,9 @@ export declare class Translate extends TranslateClient {
122
128
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopTextTranslationJobCommandOutput>;
123
129
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
124
130
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
131
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
132
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
133
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
125
134
  /**
126
135
  * <p>Translates input text from the source language to the target language. For a list of
127
136
  * available languages and language codes, see <a>what-is-languages</a>.</p>
@@ -129,6 +138,9 @@ export declare class Translate extends TranslateClient {
129
138
  translateText(args: TranslateTextCommandInput, options?: __HttpHandlerOptions): Promise<TranslateTextCommandOutput>;
130
139
  translateText(args: TranslateTextCommandInput, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
131
140
  translateText(args: TranslateTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
141
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
142
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
143
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
132
144
  /**
133
145
  * <p>Updates a previously created parallel data resource by importing a new input file from
134
146
  * Amazon S3.</p>
@@ -15,14 +15,17 @@ import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "./comma
15
15
  import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "./commands/ImportTerminologyCommand";
16
16
  import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "./commands/ListLanguagesCommand";
17
17
  import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "./commands/ListParallelDataCommand";
18
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
18
19
  import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "./commands/ListTerminologiesCommand";
19
20
  import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "./commands/ListTextTranslationJobsCommand";
20
21
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "./commands/StartTextTranslationJobCommand";
21
22
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "./commands/StopTextTranslationJobCommand";
23
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
24
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
25
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
23
26
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
24
- export declare type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListLanguagesCommandInput | ListParallelDataCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TranslateTextCommandInput | UpdateParallelDataCommandInput;
25
- export declare type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListLanguagesCommandOutput | ListParallelDataCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TranslateTextCommandOutput | UpdateParallelDataCommandOutput;
27
+ export declare type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListLanguagesCommandInput | ListParallelDataCommandInput | ListTagsForResourceCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TagResourceCommandInput | TranslateTextCommandInput | UntagResourceCommandInput | UpdateParallelDataCommandInput;
28
+ export declare type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListLanguagesCommandOutput | ListParallelDataCommandOutput | ListTagsForResourceCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TagResourceCommandOutput | TranslateTextCommandOutput | UntagResourceCommandOutput | UpdateParallelDataCommandOutput;
26
29
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
27
30
  /**
28
31
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,18 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
5
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
6
+ }
7
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
8
+ }
9
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TranslateClientResolvedConfig> {
10
+ readonly input: ListTagsForResourceCommandInput;
11
+ constructor(input: ListTagsForResourceCommandInput);
12
+ /**
13
+ * @internal
14
+ */
15
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
16
+ private serialize;
17
+ private deserialize;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
5
+ export interface TagResourceCommandInput extends TagResourceRequest {
6
+ }
7
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
8
+ }
9
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, TranslateClientResolvedConfig> {
10
+ readonly input: TagResourceCommandInput;
11
+ constructor(input: TagResourceCommandInput);
12
+ /**
13
+ * @internal
14
+ */
15
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
16
+ private serialize;
17
+ private deserialize;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig } from "../TranslateClient";
5
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
6
+ }
7
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
+ }
9
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, TranslateClientResolvedConfig> {
10
+ readonly input: UntagResourceCommandInput;
11
+ constructor(input: UntagResourceCommandInput);
12
+ /**
13
+ * @internal
14
+ */
15
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
16
+ private serialize;
17
+ private deserialize;
18
+ }
@@ -7,9 +7,12 @@ export * from "./GetTerminologyCommand";
7
7
  export * from "./ImportTerminologyCommand";
8
8
  export * from "./ListLanguagesCommand";
9
9
  export * from "./ListParallelDataCommand";
10
+ export * from "./ListTagsForResourceCommand";
10
11
  export * from "./ListTerminologiesCommand";
11
12
  export * from "./ListTextTranslationJobsCommand";
12
13
  export * from "./StartTextTranslationJobCommand";
13
14
  export * from "./StopTextTranslationJobCommand";
15
+ export * from "./TagResourceCommand";
14
16
  export * from "./TranslateTextCommand";
17
+ export * from "./UntagResourceCommand";
15
18
  export * from "./UpdateParallelDataCommand";
@@ -32,6 +32,19 @@ export interface AppliedTerminology {
32
32
  */
33
33
  Terms?: Term[];
34
34
  }
35
+ /**
36
+ * <p>Another modification is being made. That modification must complete before you can make
37
+ * your change.</p>
38
+ */
39
+ export declare class ConcurrentModificationException extends __BaseException {
40
+ readonly name: "ConcurrentModificationException";
41
+ readonly $fault: "client";
42
+ Message?: string;
43
+ /**
44
+ * @internal
45
+ */
46
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
47
+ }
35
48
  /**
36
49
  * <p>There was a conflict processing the request. Try your request again.</p>
37
50
  */
@@ -79,6 +92,10 @@ export interface ParallelDataConfig {
79
92
  */
80
93
  Format: ParallelDataFormat | string | undefined;
81
94
  }
95
+ export interface Tag {
96
+ Key: string | undefined;
97
+ Value: string | undefined;
98
+ }
82
99
  export interface CreateParallelDataRequest {
83
100
  /**
84
101
  * <p>A custom name for the parallel data resource in Amazon Translate. You must assign a name
@@ -102,6 +119,7 @@ export interface CreateParallelDataRequest {
102
119
  * Amazon Translate through an AWS SDK.</p>
103
120
  */
104
121
  ClientToken?: string;
122
+ Tags?: Tag[];
105
123
  }
106
124
  export declare enum ParallelDataStatus {
107
125
  ACTIVE = "ACTIVE",
@@ -185,18 +203,14 @@ export declare class TooManyRequestsException extends __BaseException {
185
203
  */
186
204
  constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
187
205
  }
188
- /**
189
- * <p>Another modification is being made. That modification must complete before you can make
190
- * your change.</p>
191
- */
192
- export declare class ConcurrentModificationException extends __BaseException {
193
- readonly name: "ConcurrentModificationException";
206
+ export declare class TooManyTagsException extends __BaseException {
207
+ readonly name: "TooManyTagsException";
194
208
  readonly $fault: "client";
195
- Message?: string;
209
+ ResourceArn?: string;
196
210
  /**
197
211
  * @internal
198
212
  */
199
- constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
213
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
200
214
  }
201
215
  export interface DeleteParallelDataRequest {
202
216
  /**
@@ -824,6 +838,7 @@ export interface ImportTerminologyRequest {
824
838
  * <p>The encryption key for the custom terminology being imported.</p>
825
839
  */
826
840
  EncryptionKey?: EncryptionKey;
841
+ Tags?: Tag[];
827
842
  }
828
843
  export interface ImportTerminologyResponse {
829
844
  /**
@@ -930,6 +945,12 @@ export interface ListParallelDataResponse {
930
945
  */
931
946
  NextToken?: string;
932
947
  }
948
+ export interface ListTagsForResourceRequest {
949
+ ResourceArn: string | undefined;
950
+ }
951
+ export interface ListTagsForResourceResponse {
952
+ Tags?: Tag[];
953
+ }
933
954
  export interface ListTerminologiesRequest {
934
955
  /**
935
956
  * <p>If the result of the request to ListTerminologies was truncated, include the NextToken to
@@ -1160,6 +1181,12 @@ export interface StopTextTranslationJobResponse {
1160
1181
  */
1161
1182
  JobStatus?: JobStatus | string;
1162
1183
  }
1184
+ export interface TagResourceRequest {
1185
+ ResourceArn: string | undefined;
1186
+ Tags: Tag[] | undefined;
1187
+ }
1188
+ export interface TagResourceResponse {
1189
+ }
1163
1190
  /**
1164
1191
  * <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
1165
1192
  * low confidence level is acceptable for your application, you can use the language in the
@@ -1264,6 +1291,12 @@ export interface TranslateTextResponse {
1264
1291
  */
1265
1292
  AppliedSettings?: TranslationSettings;
1266
1293
  }
1294
+ export interface UntagResourceRequest {
1295
+ ResourceArn: string | undefined;
1296
+ TagKeys: string[] | undefined;
1297
+ }
1298
+ export interface UntagResourceResponse {
1299
+ }
1267
1300
  export interface UpdateParallelDataRequest {
1268
1301
  /**
1269
1302
  * <p>The name of the parallel data resource being updated.</p>
@@ -1320,6 +1353,10 @@ export declare const EncryptionKeyFilterSensitiveLog: (obj: EncryptionKey) => an
1320
1353
  * @internal
1321
1354
  */
1322
1355
  export declare const ParallelDataConfigFilterSensitiveLog: (obj: ParallelDataConfig) => any;
1356
+ /**
1357
+ * @internal
1358
+ */
1359
+ export declare const TagFilterSensitiveLog: (obj: Tag) => any;
1323
1360
  /**
1324
1361
  * @internal
1325
1362
  */
@@ -1432,6 +1469,14 @@ export declare const ListParallelDataRequestFilterSensitiveLog: (obj: ListParall
1432
1469
  * @internal
1433
1470
  */
1434
1471
  export declare const ListParallelDataResponseFilterSensitiveLog: (obj: ListParallelDataResponse) => any;
1472
+ /**
1473
+ * @internal
1474
+ */
1475
+ export declare const ListTagsForResourceRequestFilterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
1476
+ /**
1477
+ * @internal
1478
+ */
1479
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1435
1480
  /**
1436
1481
  * @internal
1437
1482
  */
@@ -1468,6 +1513,14 @@ export declare const StopTextTranslationJobRequestFilterSensitiveLog: (obj: Stop
1468
1513
  * @internal
1469
1514
  */
1470
1515
  export declare const StopTextTranslationJobResponseFilterSensitiveLog: (obj: StopTextTranslationJobResponse) => any;
1516
+ /**
1517
+ * @internal
1518
+ */
1519
+ export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
1520
+ /**
1521
+ * @internal
1522
+ */
1523
+ export declare const TagResourceResponseFilterSensitiveLog: (obj: TagResourceResponse) => any;
1471
1524
  /**
1472
1525
  * @internal
1473
1526
  */
@@ -1476,6 +1529,14 @@ export declare const TranslateTextRequestFilterSensitiveLog: (obj: TranslateText
1476
1529
  * @internal
1477
1530
  */
1478
1531
  export declare const TranslateTextResponseFilterSensitiveLog: (obj: TranslateTextResponse) => any;
1532
+ /**
1533
+ * @internal
1534
+ */
1535
+ export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;
1536
+ /**
1537
+ * @internal
1538
+ */
1539
+ export declare const UntagResourceResponseFilterSensitiveLog: (obj: UntagResourceResponse) => any;
1479
1540
  /**
1480
1541
  * @internal
1481
1542
  */
@@ -9,11 +9,14 @@ import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "../comm
9
9
  import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "../commands/ImportTerminologyCommand";
10
10
  import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "../commands/ListLanguagesCommand";
11
11
  import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "../commands/ListParallelDataCommand";
12
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
12
13
  import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "../commands/ListTerminologiesCommand";
13
14
  import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "../commands/ListTextTranslationJobsCommand";
14
15
  import { StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput } from "../commands/StartTextTranslationJobCommand";
15
16
  import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput } from "../commands/StopTextTranslationJobCommand";
17
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
16
18
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "../commands/TranslateTextCommand";
19
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
17
20
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "../commands/UpdateParallelDataCommand";
18
21
  export declare const serializeAws_json1_1CreateParallelDataCommand: (input: CreateParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
22
  export declare const serializeAws_json1_1DeleteParallelDataCommand: (input: DeleteParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -24,11 +27,14 @@ export declare const serializeAws_json1_1GetTerminologyCommand: (input: GetTermi
24
27
  export declare const serializeAws_json1_1ImportTerminologyCommand: (input: ImportTerminologyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
25
28
  export declare const serializeAws_json1_1ListLanguagesCommand: (input: ListLanguagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
29
  export declare const serializeAws_json1_1ListParallelDataCommand: (input: ListParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
+ export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
31
  export declare const serializeAws_json1_1ListTerminologiesCommand: (input: ListTerminologiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
32
  export declare const serializeAws_json1_1ListTextTranslationJobsCommand: (input: ListTextTranslationJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
29
33
  export declare const serializeAws_json1_1StartTextTranslationJobCommand: (input: StartTextTranslationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
34
  export declare const serializeAws_json1_1StopTextTranslationJobCommand: (input: StopTextTranslationJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
+ export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
31
36
  export declare const serializeAws_json1_1TranslateTextCommand: (input: TranslateTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
37
+ export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
38
  export declare const serializeAws_json1_1UpdateParallelDataCommand: (input: UpdateParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
39
  export declare const deserializeAws_json1_1CreateParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateParallelDataCommandOutput>;
34
40
  export declare const deserializeAws_json1_1DeleteParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteParallelDataCommandOutput>;
@@ -39,9 +45,12 @@ export declare const deserializeAws_json1_1GetTerminologyCommand: (output: __Htt
39
45
  export declare const deserializeAws_json1_1ImportTerminologyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportTerminologyCommandOutput>;
40
46
  export declare const deserializeAws_json1_1ListLanguagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLanguagesCommandOutput>;
41
47
  export declare const deserializeAws_json1_1ListParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListParallelDataCommandOutput>;
48
+ export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
42
49
  export declare const deserializeAws_json1_1ListTerminologiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTerminologiesCommandOutput>;
43
50
  export declare const deserializeAws_json1_1ListTextTranslationJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTextTranslationJobsCommandOutput>;
44
51
  export declare const deserializeAws_json1_1StartTextTranslationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartTextTranslationJobCommandOutput>;
45
52
  export declare const deserializeAws_json1_1StopTextTranslationJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopTextTranslationJobCommandOutput>;
53
+ export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
46
54
  export declare const deserializeAws_json1_1TranslateTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TranslateTextCommandOutput>;
55
+ export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
47
56
  export declare const deserializeAws_json1_1UpdateParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateParallelDataCommandOutput>;
@@ -35,6 +35,10 @@ import {
35
35
  ListParallelDataCommandInput,
36
36
  ListParallelDataCommandOutput,
37
37
  } from "./commands/ListParallelDataCommand";
38
+ import {
39
+ ListTagsForResourceCommandInput,
40
+ ListTagsForResourceCommandOutput,
41
+ } from "./commands/ListTagsForResourceCommand";
38
42
  import {
39
43
  ListTerminologiesCommandInput,
40
44
  ListTerminologiesCommandOutput,
@@ -51,10 +55,18 @@ import {
51
55
  StopTextTranslationJobCommandInput,
52
56
  StopTextTranslationJobCommandOutput,
53
57
  } from "./commands/StopTextTranslationJobCommand";
58
+ import {
59
+ TagResourceCommandInput,
60
+ TagResourceCommandOutput,
61
+ } from "./commands/TagResourceCommand";
54
62
  import {
55
63
  TranslateTextCommandInput,
56
64
  TranslateTextCommandOutput,
57
65
  } from "./commands/TranslateTextCommand";
66
+ import {
67
+ UntagResourceCommandInput,
68
+ UntagResourceCommandOutput,
69
+ } from "./commands/UntagResourceCommand";
58
70
  import {
59
71
  UpdateParallelDataCommandInput,
60
72
  UpdateParallelDataCommandOutput,
@@ -178,6 +190,19 @@ export declare class Translate extends TranslateClient {
178
190
  options: __HttpHandlerOptions,
179
191
  cb: (err: any, data?: ListParallelDataCommandOutput) => void
180
192
  ): void;
193
+ listTagsForResource(
194
+ args: ListTagsForResourceCommandInput,
195
+ options?: __HttpHandlerOptions
196
+ ): Promise<ListTagsForResourceCommandOutput>;
197
+ listTagsForResource(
198
+ args: ListTagsForResourceCommandInput,
199
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
200
+ ): void;
201
+ listTagsForResource(
202
+ args: ListTagsForResourceCommandInput,
203
+ options: __HttpHandlerOptions,
204
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
205
+ ): void;
181
206
  listTerminologies(
182
207
  args: ListTerminologiesCommandInput,
183
208
  options?: __HttpHandlerOptions
@@ -230,6 +255,19 @@ export declare class Translate extends TranslateClient {
230
255
  options: __HttpHandlerOptions,
231
256
  cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void
232
257
  ): void;
258
+ tagResource(
259
+ args: TagResourceCommandInput,
260
+ options?: __HttpHandlerOptions
261
+ ): Promise<TagResourceCommandOutput>;
262
+ tagResource(
263
+ args: TagResourceCommandInput,
264
+ cb: (err: any, data?: TagResourceCommandOutput) => void
265
+ ): void;
266
+ tagResource(
267
+ args: TagResourceCommandInput,
268
+ options: __HttpHandlerOptions,
269
+ cb: (err: any, data?: TagResourceCommandOutput) => void
270
+ ): void;
233
271
  translateText(
234
272
  args: TranslateTextCommandInput,
235
273
  options?: __HttpHandlerOptions
@@ -243,6 +281,19 @@ export declare class Translate extends TranslateClient {
243
281
  options: __HttpHandlerOptions,
244
282
  cb: (err: any, data?: TranslateTextCommandOutput) => void
245
283
  ): void;
284
+ untagResource(
285
+ args: UntagResourceCommandInput,
286
+ options?: __HttpHandlerOptions
287
+ ): Promise<UntagResourceCommandOutput>;
288
+ untagResource(
289
+ args: UntagResourceCommandInput,
290
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
291
+ ): void;
292
+ untagResource(
293
+ args: UntagResourceCommandInput,
294
+ options: __HttpHandlerOptions,
295
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
296
+ ): void;
246
297
  updateParallelData(
247
298
  args: UpdateParallelDataCommandInput,
248
299
  options?: __HttpHandlerOptions