create_parallel_data
¶
create_parallel_data(
name: ResourceName,
parallel_data_config: ParallelDataConfig,
client_token: ClientTokenString,
*,
config_overrides: Optional[TranslateClientConfig] = 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.
Source code in docs_src/capo_translate/_services/translate.py
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | |