RuntimeforBedrockDataAutomation / Client / invoke_data_automation

invoke_data_automation

RuntimeforBedrockDataAutomation.Client.invoke_data_automation(**kwargs)

Sync API: Invoke data automation.

See also: AWS API Documentation

Request Syntax

response = client.invoke_data_automation(
    inputConfiguration={
        'bytes': b'bytes',
        's3Uri': 'string'
    },
    dataAutomationConfiguration={
        'dataAutomationProjectArn': 'string',
        'stage': 'LIVE'|'DEVELOPMENT'
    },
    blueprints=[
        {
            'blueprintArn': 'string',
            'version': 'string',
            'stage': 'DEVELOPMENT'|'LIVE'
        },
    ],
    dataAutomationProfileArn='string',
    encryptionConfiguration={
        'kmsKeyId': 'string',
        'kmsEncryptionContext': {
            'string': 'string'
        }
    }
)
Parameters:
  • inputConfiguration (dict) –

    [REQUIRED]

    Input configuration.

    • bytes (bytes) –

      Input data as bytes

    • s3Uri (string) –

      S3 URI of the input data

  • dataAutomationConfiguration (dict) –

    Data automation configuration.

    • dataAutomationProjectArn (string) – [REQUIRED]

      Data automation project arn.

    • stage (string) –

      Data automation stage.

  • blueprints (list) –

    Blueprint list.

    • (dict) –

      Blueprint.

      • blueprintArn (string) – [REQUIRED]

        Arn of blueprint.

      • version (string) –

        Version of blueprint.

      • stage (string) –

        Stage of blueprint.

  • dataAutomationProfileArn (string) –

    [REQUIRED]

    Data automation profile ARN

  • encryptionConfiguration (dict) –

    Encryption configuration.

    • kmsKeyId (string) – [REQUIRED]

      Customer KMS key used for encryption

    • kmsEncryptionContext (dict) –

      KMS encryption context.

      • (string) –

        Excryption context key.

        • (string) –

          Encryption context value.

Return type:

dict

Returns:

Response Syntax

{
    'semanticModality': 'DOCUMENT'|'IMAGE'|'AUDIO'|'VIDEO',
    'outputSegments': [
        {
            'customOutputStatus': 'MATCH'|'NO_MATCH',
            'customOutput': 'string',
            'standardOutput': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    Invoke Data Automation Response

    • semanticModality (string) –

      Detected semantic modality

    • outputSegments (list) –

      List of outputs for each logical sub-doc

      • (dict) –

        Output segment

        • customOutputStatus (string) –

          Status of blueprint match

        • customOutput (string) –

          Custom output response

        • standardOutput (string) –

          Standard output response

Exceptions