Skip to content

create_blueprint_version

create_blueprint_version(
    blueprint_arn: BlueprintArn,
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    client_token: Optional[ClientToken] = None,
) -> CreateBlueprintVersionResponse

Creates a new version of an existing Amazon Bedrock Data Automation Blueprint

Parameters:

  • blueprint_arn (BlueprintArn) –

    ARN generated at the server side when a Blueprint is created

Raises:

Source code in docs_src/capo_bedrock_data_automation/_services/bedrock_data_automation.py
def create_blueprint_version(
    self,
    blueprint_arn: "capo_bedrock_data_automation.types.blueprint_arn.BlueprintArn",
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    client_token: Optional[
        "capo_bedrock_data_automation.types.client_token.ClientToken"
    ] = None,
) -> "capo_bedrock_data_automation.types.create_blueprint_version_response.CreateBlueprintVersionResponse":
    """Creates a new version of an existing Amazon Bedrock Data Automation Blueprint

    Args:
        blueprint_arn: ARN generated at the server side when a Blueprint is created

    Raises:
        capo_bedrock_data_automation.errors.access_denied_exception.AccessDeniedException: This exception is thrown when a request is denied per access permissions
        capo_bedrock_data_automation.errors.internal_server_exception.InternalServerException: This exception is thrown if there was an unexpected error during processing of request
        capo_bedrock_data_automation.errors.resource_not_found_exception.ResourceNotFoundException: This exception is thrown when a resource referenced by the operation does not exist
        capo_bedrock_data_automation.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: This exception is thrown when a request is made beyond the service quota
        capo_bedrock_data_automation.errors.throttling_exception.ThrottlingException: This exception is thrown when the number of requests exceeds the limit
        capo_bedrock_data_automation.errors.validation_exception.ValidationException: This exception is thrown when the request's input validation fails
        capo_bedrock_data_automation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_bedrock_data_automation.types.create_blueprint_version_request.CreateBlueprintVersionRequest]",
    ) -> OperationResponse[
        "capo_bedrock_data_automation.types.create_blueprint_version_response.CreateBlueprintVersionResponse"
    ]:
        import capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.create_blueprint_version

        output, http_response = (
            capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.create_blueprint_version.create_blueprint_version(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_bedrock_data_automation.types.create_blueprint_version_response.CreateBlueprintVersionResponse",
    ) -> dict[str, Any]:
        import capo_bedrock_data_automation.types.create_blueprint_version_response

        return capo_bedrock_data_automation.types.create_blueprint_version_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("CreateBlueprintVersion", redact_output=_redact_output),
    )
    input_: capo_bedrock_data_automation.types.create_blueprint_version_request.CreateBlueprintVersionRequest = {
        "blueprint_arn": blueprint_arn
    }
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

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