228x Filetype PDF File size 0.94 MB Source: docs.aws.amazon.com
Amazon Translate Developer Guide Amazon Translate Developer Guide Amazon Translate: Developer Guide Copyright © 2022 Amazon Web Services, Inc. and/or its affiliates. All rights reserved. Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon. Amazon Translate Developer Guide Table of Contents What is Amazon Translate? ................................................................................................................. 1 Use cases .................................................................................................................................. 1 First-time user ........................................................................................................................... 1 Amazon Translate pricing ............................................................................................................ 2 Amazon Translate API Reference .................................................................................................. 2 Supported languages .......................................................................................................................... 3 Limitations in language support ................................................................................................... 5 How it works ..................................................................................................................................... 6 Automatic language detection ..................................................................................................... 6 Exception handling ..................................................................................................................... 6 Next steps ................................................................................................................................. 7 Getting started .................................................................................................................................. 8 Step 1: Set up an account ........................................................................................................... 8 Sign up for AWS ................................................................................................................ 8 Create an IAM user ............................................................................................................. 8 Next step .......................................................................................................................... 9 Step 2: Set up the AWS CLI ......................................................................................................... 9 Next step ........................................................................................................................ 10 Step 3: Getting started (console) ................................................................................................ 10 Next step ........................................................................................................................ 11 Step 4: Getting started (AWS CLI) .............................................................................................. 11 Translate text using the command line ............................................................................... 12 Translate text using a JSON file ......................................................................................... 12 Next step ........................................................................................................................ 13 Step 5: Getting started (SDK) .................................................................................................... 13 Using the SDK for Java ..................................................................................................... 13 Using the AWS SDK for Python .......................................................................................... 14 Using the Mobile SDK for Android ...................................................................................... 16 Using the Mobile SDK for iOS ............................................................................................ 17 Translation processing modes ............................................................................................................ 19 Real-time translation ................................................................................................................ 19 Asynchronous batch processing .................................................................................................. 19 Region availability ............................................................................................................ 19 Prerequisites .................................................................................................................... 20 Running a job .................................................................................................................. 23 Monitoring and analyzing .................................................................................................. 27 Getting results ................................................................................................................. 29 Customizing your translations ............................................................................................................ 31 Using do-not-translate tags ....................................................................................................... 31 Using do-not-translate with the console .............................................................................. 31 Using do-not-translate with the API ................................................................................... 32 Customizing with custom terminology ........................................................................................ 32 How does this work? ........................................................................................................ 33 Creating a custom terminology .......................................................................................... 33 Using custom terminologies .............................................................................................. 35 Encrypting your terminology ............................................................................................. 36 Best practices .................................................................................................................. 36 Masking Profanity .................................................................................................................... 36 Using the profanity setting ................................................................................................ 37 Unsupported languages .................................................................................................... 37 Setting Formality ..................................................................................................................... 37 Using the formality setting ................................................................................................ 38 Supported languages ........................................................................................................ 38 Customizing with parallel data ................................................................................................... 39 iii Amazon Translate Developer Guide Region availability ............................................................................................................ 40 Parallel data input files for Amazon Translate ...................................................................... 40 Adding parallel data ......................................................................................................... 44 Viewing and managing parallel data ................................................................................... 46 Examples ......................................................................................................................................... 50 Using Amazon Polly with Amazon Translate ................................................................................ 50 Code ............................................................................................................................... 50 Using Amazon Translate to translate a chat channel ..................................................................... 54 Using Amazon Translate with DynamoDB .................................................................................... 62 Example code .................................................................................................................. 63 Using Amazon Translate to translate a web page ......................................................................... 65 Using Amazon Translate to translate large documents .................................................................. 68 Using Signature Version 4 with Amazon Translate ........................................................................ 70 Setting up ....................................................................................................................... 70 Code ............................................................................................................................... 70 Security ........................................................................................................................................... 74 Data protection ........................................................................................................................ 74 Encryption at rest ............................................................................................................. 75 Encryption in transit ......................................................................................................... 76 Identity and access management ............................................................................................... 76 Audience ......................................................................................................................... 76 Authenticating with identities ............................................................................................ 77 Managing access using policies .......................................................................................... 78 Allow users to view their own permissions ........................................................................... 80 How Amazon Translate works with IAM ............................................................................... 81 Identity-based policy examples .......................................................................................... 83 Troubleshooting ............................................................................................................... 86 Amazon Translate API permissions reference ........................................................................ 87 Monitoring ............................................................................................................................... 88 Monitoring with CloudWatch ............................................................................................. 90 Logging Amazon Translate API calls with AWS CloudTrail ...................................................... 91 CloudWatch metrics and dimensions for Amazon Translate .................................................... 92 Monitoring with EventBridge ............................................................................................. 94 Compliance validation ............................................................................................................... 96 Resilience ................................................................................................................................ 96 Infrastructure security ............................................................................................................... 96 VPC endpoints (AWS PrivateLink) ............................................................................................... 97 Considerations for Amazon Translate VPC endpoints ............................................................. 97 Creating an interface VPC endpoint for Amazon Translate ..................................................... 97 Creating a VPC endpoint policy for Amazon Translate ........................................................... 97 Guidelines and limits ........................................................................................................................ 99 Supported AWS Regions ............................................................................................................ 99 Compliance .............................................................................................................................. 99 Throttling ................................................................................................................................ 99 Guidelines ............................................................................................................................... 99 Service limits ........................................................................................................................... 99 Document history ........................................................................................................................... 102 API reference ................................................................................................................................. 108 ............................................................................................................................................ 108 AWS glossary ................................................................................................................................. 109 iv
no reviews yet
Please Login to review.