Skip to content

delete_data_automation_library

delete_data_automation_library(
    library_arn: DataAutomationLibraryArn,
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
) -> DeleteDataAutomationLibraryResponse

Deletes an existing Amazon Bedrock Data Automation Library

Parameters:

Raises:

Source code in docs_src/capo_bedrock_data_automation/_services/bedrock_data_automation.py
def delete_data_automation_library(
    self,
    library_arn: "capo_bedrock_data_automation.types.data_automation_library_arn.DataAutomationLibraryArn",
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
) -> "capo_bedrock_data_automation.types.delete_data_automation_library_response.DeleteDataAutomationLibraryResponse":
    """Deletes an existing Amazon Bedrock Data Automation Library

    Args:
        library_arn: ARN generated at the server side when a DataAutomationLibrary 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.conflict_exception.ConflictException: This exception is thrown when there is a conflict performing an operation
        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.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.delete_data_automation_library_request.DeleteDataAutomationLibraryRequest]",
    ) -> OperationResponse[
        "capo_bedrock_data_automation.types.delete_data_automation_library_response.DeleteDataAutomationLibraryResponse"
    ]:
        import capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.delete_data_automation_library

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteDataAutomationLibrary")
    )
    input_: capo_bedrock_data_automation.types.delete_data_automation_library_request.DeleteDataAutomationLibraryRequest = {
        "library_arn": library_arn
    }

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