create_parallel_data
async
¶
create_parallel_data(
name: ResourceName,
parallel_data_config: ParallelDataConfig,
client_token: ClientTokenString,
*,
config_overrides: Optional[AsyncTranslateClientConfig] = None,
description: Optional[Description] = None,
encryption_key: Optional[EncryptionKey] = None,
tags: Optional[TagList] = None,
) -> CreateParallelDataResponse
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples that show how you want segments of text to be translated. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
Parameters:
-
name(ResourceName) –A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
-
description(Optional[Description], default:None) –A custom description for the parallel data resource in Amazon Translate.
-
parallel_data_config(ParallelDataConfig) –Specifies the format and S3 location of the parallel data input file.
-
client_token(ClientTokenString) –A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
-
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.
-
ConflictException–There was a conflict processing the request. Try your request again.
-
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.
-
InvalidRequestException–The request that you made is not valid. Check your request to determine why it's not valid and then retry the request.
-
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.