import_terminology
¶
import_terminology(
name: ResourceName,
merge_strategy: MergeStrategy,
terminology_data: TerminologyData,
*,
config_overrides: Optional[TranslateClientConfig] = 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/translate.py
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 | |