Runtime for Amazon Bedrock Data Automation

2024/12/04 - Runtime for Amazon Bedrock Data Automation - 2 new api methods

Changes  Introduced two APIs ListPromptRouters and GetPromptRouter for Intelligent Prompt Router feature. Add support for Bedrock Guardrails image content filter. New Bedrock Marketplace feature enabling a wider range of bedrock compatible models with self-hosted capability.

GetDataAutomationStatus (new) Link ¶

API used to get data automation status.

See also: AWS API Documentation

Request Syntax

client.get_data_automation_status(
    invocationArn='string'
)
type invocationArn:

string

param invocationArn:

[REQUIRED]

Invocation arn.

rtype:

dict

returns:

Response Syntax

{
    'status': 'Created'|'InProgress'|'Success'|'ServiceError'|'ClientError',
    'errorType': 'string',
    'errorMessage': 'string',
    'outputConfiguration': {
        's3Uri': 'string'
    }
}

Response Structure

  • (dict) --

    Response of GetDataAutomationStatus API.

    • status (string) --

      Job Status.

    • errorType (string) --

      Error Type.

    • errorMessage (string) --

      Error Message.

    • outputConfiguration (dict) --

      Output configuration.

      • s3Uri (string) --

        S3 uri.

InvokeDataAutomationAsync (new) Link ¶

Async API: Invoke data automation.

See also: AWS API Documentation

Request Syntax

client.invoke_data_automation_async(
    clientToken='string',
    inputConfiguration={
        's3Uri': 'string'
    },
    outputConfiguration={
        's3Uri': 'string'
    },
    dataAutomationConfiguration={
        'dataAutomationArn': 'string',
        'stage': 'LIVE'|'DEVELOPMENT'
    },
    encryptionConfiguration={
        'kmsKeyId': 'string',
        'kmsEncryptionContext': {
            'string': 'string'
        }
    },
    notificationConfiguration={
        'eventBridgeConfiguration': {
            'eventBridgeEnabled': True|False
        }
    },
    blueprints=[
        {
            'blueprintArn': 'string',
            'version': 'string',
            'stage': 'DEVELOPMENT'|'LIVE'
        },
    ]
)
type clientToken:

string

param clientToken:

Idempotency token.

This field is autopopulated if not provided.

type inputConfiguration:

dict

param inputConfiguration:

[REQUIRED]

Input configuration.

  • s3Uri (string) -- [REQUIRED]

    S3 uri.

type outputConfiguration:

dict

param outputConfiguration:

[REQUIRED]

Output configuration.

  • s3Uri (string) -- [REQUIRED]

    S3 uri.

type dataAutomationConfiguration:

dict

param dataAutomationConfiguration:

Data automation configuration.

  • dataAutomationArn (string) -- [REQUIRED]

    Data automation arn.

  • stage (string) --

    Data automation stage.

type encryptionConfiguration:

dict

param encryptionConfiguration:

Encryption configuration.

  • kmsKeyId (string) -- [REQUIRED]

    KMS key id.

  • kmsEncryptionContext (dict) --

    KMS encryption context.

    • (string) --

      Excryption context key.

      • (string) --

        Encryption context value.

type notificationConfiguration:

dict

param notificationConfiguration:

Notification configuration.

  • eventBridgeConfiguration (dict) -- [REQUIRED]

    Event bridge configuration.

    • eventBridgeEnabled (boolean) -- [REQUIRED]

      Event bridge flag.

type blueprints:

list

param blueprints:

Blueprint list.

  • (dict) --

    Blueprint.

    • blueprintArn (string) -- [REQUIRED]

      Arn of blueprint.

    • version (string) --

      Version of blueprint.

    • stage (string) --

      Stage of blueprint.

rtype:

dict

returns:

Response Syntax

{
    'invocationArn': 'string'
}

Response Structure

  • (dict) --

    Invoke Data Automation Async Response

    • invocationArn (string) --

      ARN of the automation job