StartAwsTranslateJob 2.0.0

Bundle
org.apache.nifi | nifi-aws-nar
Description
Trigger a AWS Translate job. It should be followed by GetAwsTranslateJobStatus processor in order to monitor job status.
Tags
AWS, Amazon, ML, Machine Learning, Translate
Input Requirement
Supports Sensitive Dynamic Properties
false
  • Additional Details for StartAwsTranslateJob 2.0.0

    Amazon Translate

    StartAwsTranslateJob

    Amazon Translate is a neural machine translation service for translating text to and from English across a breadth of supported languages. Powered by deep-learning technologies, Amazon Translate delivers fast, high-quality, and affordable language translation. It provides a managed, continually trained solution, so you can easily translate company and user-authored content or build applications that require support across multiple languages. The machine translation engine has been trained on a wide variety of content across different domains to produce quality translations that serve any industry need.

    Usage

    Amazon ML Processors are implemented to utilize ML services based on the official AWS API Reference. You can find example json payload in the documentation at the Request Syntax sections. For more details please check the official Translate API reference With this processor you will trigger a startTextTranslationJob async call to Translate Service You can define json payload as property or provide as a flow file content. Property has higher precedence.

    JSON payload template - note that it can be simplified with the optional fields, check AWS documentation for more details - example:

    {
      "ClientToken": "string",
      "DataAccessRoleArn": "string",
      "InputDataConfig": {
        "ContentType": "string",
        "S3Uri": "string"
      },
      "JobName": "string",
      "OutputDataConfig": {
        "EncryptionKey": {
          "Id": "string",
          "Type": "string"
        },
        "S3Uri": "string"
      },
      "ParallelDataNames": [
        "string"
      ],
      "Settings": {
        "Formality": "string",
        "Profanity": "string"
      },
      "SourceLanguageCode": "string",
      "TargetLanguageCodes": [
        "string"
      ],
      "TerminologyNames": [
        "string"
      ]
    }
    
Properties
Relationships
Name Description
original Upon successful completion, the original FlowFile will be routed to this relationship.
success FlowFiles are routed to success relationship
failure FlowFiles are routed to failure relationship
Writes Attributes
Name Description
awsTaskId The task ID that can be used to poll for Job completion in GetAwsTranslateJobStatus
See Also