Skip to content

invoke_data_automation

invoke_data_automation(
    input_configuration: SyncInputConfiguration,
    data_automation_profile_arn: DataAutomationProfileArn,
    *,
    config_overrides: Optional[BedrockDataAutomationRuntimeClientConfig] = None,
    data_automation_configuration: Optional[DataAutomationConfiguration] = None,
    blueprints: Optional[BlueprintList] = None,
    encryption_configuration: Optional[EncryptionConfiguration] = None,
    output_configuration: Optional[OutputConfiguration] = None,
) -> InvokeDataAutomationResponse

Sync API: Invoke data automation.

Parameters:

Raises:

Source code in docs_src/capo_bedrock_data_automation_runtime/_services/bedrock_data_automation_runtime.py
def invoke_data_automation(
    self,
    input_configuration: "capo_bedrock_data_automation_runtime.types.sync_input_configuration.SyncInputConfiguration",
    data_automation_profile_arn: "capo_bedrock_data_automation_runtime.types.data_automation_profile_arn.DataAutomationProfileArn",
    *,
    config_overrides: Optional[BedrockDataAutomationRuntimeClientConfig] = None,
    data_automation_configuration: Optional[
        "capo_bedrock_data_automation_runtime.types.data_automation_configuration.DataAutomationConfiguration"
    ] = None,
    blueprints: Optional[
        "capo_bedrock_data_automation_runtime.types.blueprint_list.BlueprintList"
    ] = None,
    encryption_configuration: Optional[
        "capo_bedrock_data_automation_runtime.types.encryption_configuration.EncryptionConfiguration"
    ] = None,
    output_configuration: Optional[
        "capo_bedrock_data_automation_runtime.types.output_configuration.OutputConfiguration"
    ] = None,
) -> "capo_bedrock_data_automation_runtime.types.invoke_data_automation_response.InvokeDataAutomationResponse":
    """Sync API: Invoke data automation.

    Args:
        input_configuration: Input configuration.
        data_automation_configuration: Data automation configuration.
        blueprints: Blueprint list.
        data_automation_profile_arn: Data automation profile ARN
        encryption_configuration: Encryption configuration.
        output_configuration: Output configuration.

    Raises:
        capo_bedrock_data_automation_runtime.errors.access_denied_exception.AccessDeniedException: This exception will be thrown when customer does not have access to API.
        capo_bedrock_data_automation_runtime.errors.internal_server_exception.InternalServerException: This exception is for any internal un-expected service errors.
        capo_bedrock_data_automation_runtime.errors.service_unavailable_exception.ServiceUnavailableException: This exception will be thrown when service is temporarily unavailable.
        capo_bedrock_data_automation_runtime.errors.throttling_exception.ThrottlingException: This exception will be thrown when customer reached API TPS limit.
        capo_bedrock_data_automation_runtime.errors.validation_exception.ValidationException: This exception will be thrown when customer provided invalid parameters.
        capo_bedrock_data_automation_runtime.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_bedrock_data_automation_runtime.types.invoke_data_automation_request.InvokeDataAutomationRequest]",
    ) -> OperationResponse[
        "capo_bedrock_data_automation_runtime.types.invoke_data_automation_response.InvokeDataAutomationResponse"
    ]:
        import capo_bedrock_data_automation_runtime._operations.amazon_bedrock_keystone_runtime_service.invoke_data_automation

        output, http_response = (
            capo_bedrock_data_automation_runtime._operations.amazon_bedrock_keystone_runtime_service.invoke_data_automation.invoke_data_automation(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("InvokeDataAutomation")
    )
    input_: capo_bedrock_data_automation_runtime.types.invoke_data_automation_request.InvokeDataAutomationRequest = {
        "input_configuration": input_configuration,
        "data_automation_profile_arn": data_automation_profile_arn,
    }
    if data_automation_configuration is not None:
        input_["data_automation_configuration"] = data_automation_configuration
    if blueprints is not None:
        input_["blueprints"] = blueprints
    if encryption_configuration is not None:
        input_["encryption_configuration"] = encryption_configuration
    if output_configuration is not None:
        input_["output_configuration"] = output_configuration

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output