Skip to content

start_blueprint_run

start_blueprint_run(
    blueprint_name: OrchestrationNameString,
    role_arn: OrchestrationIAMRoleArn,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    parameters: Optional[BlueprintParameters] = None,
) -> StartBlueprintRunResponse

Starts a new run of the specified blueprint.

Parameters:

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def start_blueprint_run(
    self,
    blueprint_name: "capo_glue.types.orchestration_name_string.OrchestrationNameString",
    role_arn: "capo_glue.types.orchestration_iam_role_arn.OrchestrationIAMRoleArn",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    parameters: Optional[
        "capo_glue.types.blueprint_parameters.BlueprintParameters"
    ] = None,
) -> "capo_glue.types.start_blueprint_run_response.StartBlueprintRunResponse":
    """<p>Starts a new run of the specified blueprint.</p>

    Args:
        blueprint_name: <p>The name of the blueprint.</p>
        parameters: <p>Specifies the parameters as a <code>BlueprintParameters</code> object.</p>
        role_arn: <p>Specifies the IAM role used to create the workflow.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.illegal_blueprint_state_exception.IllegalBlueprintStateException: <p>The blueprint is in an invalid state to perform a requested operation.</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.resource_number_limit_exceeded_exception.ResourceNumberLimitExceededException: <p>A resource numerical limit was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.start_blueprint_run_request.StartBlueprintRunRequest]",
    ) -> OperationResponse[
        "capo_glue.types.start_blueprint_run_response.StartBlueprintRunResponse"
    ]:
        import capo_glue._operations.aws_glue.start_blueprint_run

        output, http_response = (
            capo_glue._operations.aws_glue.start_blueprint_run.start_blueprint_run(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartBlueprintRun")
    )
    input_: capo_glue.types.start_blueprint_run_request.StartBlueprintRunRequest = {
        "blueprint_name": blueprint_name,
        "role_arn": role_arn,
    }
    if parameters is not None:
        input_["parameters"] = parameters

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