Skip to content

update_blueprint

update_blueprint(
    name: OrchestrationNameString,
    blueprint_location: OrchestrationS3Location,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    description: Optional[Generic512CharString] = None,
) -> UpdateBlueprintResponse

Updates a registered blueprint.

Parameters:

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def update_blueprint(
    self,
    name: "capo_glue.types.orchestration_name_string.OrchestrationNameString",
    blueprint_location: "capo_glue.types.orchestration_s3_location.OrchestrationS3Location",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    description: Optional[
        "capo_glue.types.generic512_char_string.Generic512CharString"
    ] = None,
) -> "capo_glue.types.update_blueprint_response.UpdateBlueprintResponse":
    """<p>Updates a registered blueprint.</p>

    Args:
        name: <p>The name of the blueprint.</p>
        description: <p>A description of the blueprint.</p>
        blueprint_location: <p>Specifies a path in Amazon S3 where the blueprint is published.</p>

    Raises:
        capo_glue.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Two processes are trying to modify a resource simultaneously.</p>
        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.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.update_blueprint_request.UpdateBlueprintRequest]",
    ) -> OperationResponse[
        "capo_glue.types.update_blueprint_response.UpdateBlueprintResponse"
    ]:
        import capo_glue._operations.aws_glue.update_blueprint

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateBlueprint")
    )
    input_: capo_glue.types.update_blueprint_request.UpdateBlueprintRequest = {
        "name": name,
        "blueprint_location": blueprint_location,
    }
    if description is not None:
        input_["description"] = description

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