import_terminology
async
¶
import_terminology(
name: ResourceName,
merge_strategy: MergeStrategy,
terminology_data: TerminologyData,
*,
config_overrides: Optional[AsyncTranslateClientConfig] = None,
description: Optional[Description] = None,
encryption_key: Optional[EncryptionKey] = None,
tags: Optional[TagList] = None,
) -> ImportTerminologyResponse
Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.
Parameters:
-
name(ResourceName) –The name of the custom terminology being imported.
-
merge_strategy(MergeStrategy) –The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
-
description(Optional[Description], default:None) –The description of the custom terminology being imported.
-
terminology_data(TerminologyData) –The terminology data for the custom terminology being imported.
-
encryption_key(Optional[EncryptionKey], default:None) –The encryption key for the custom terminology being imported.
-
tags(Optional[TagList], default:None) –Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources.
Raises:
-
ConcurrentModificationException–Another modification is being made. That modification must complete before you can make your change.
-
InternalServerException–An internal server error occurred. Retry your request.
-
InvalidParameterValueException–The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation.
-
LimitExceededException–The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit.
-
TooManyRequestsException–You have made too many requests within a short period of time. Wait for a short time and then try your request again.
-
TooManyTagsException–You have added too many tags to this resource. The maximum is 50 tags.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_translate/_services/async_translate.py
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 | |