Skip to content

delete_data_transformation_profile

delete_data_transformation_profile(
    profile_id: ProfileIdString,
    *,
    config_overrides: Optional[HealthLakeClientConfig] = None,
) -> DeleteDataTransformationProfileResponse

Deletes a data transformation profile and all its versions, including the DRAFT and all published versions.

Parameters:

  • profile_id (ProfileIdString) –

    The unique identifier of the profile to delete.

Raises:

Source code in docs_src/capo_healthlake/_services/health_lake.py
def delete_data_transformation_profile(
    self,
    profile_id: "capo_healthlake.types.profile_id_string.ProfileIdString",
    *,
    config_overrides: Optional[HealthLakeClientConfig] = None,
) -> "capo_healthlake.types.delete_data_transformation_profile_response.DeleteDataTransformationProfileResponse":
    """<p>Deletes a data transformation profile and all its versions, including the DRAFT and all published versions.</p>

    Args:
        profile_id: <p>The unique identifier of the profile to delete.</p>

    Raises:
        capo_healthlake.errors.access_denied_exception.AccessDeniedException: <p>Access is denied. Your account is not authorized to perform this operation.</p>
        capo_healthlake.errors.internal_server_exception.InternalServerException: <p>An unknown internal error occurred in the service.</p>
        capo_healthlake.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested data store was not found.</p>
        capo_healthlake.errors.throttling_exception.ThrottlingException: <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
        capo_healthlake.errors.validation_exception.ValidationException: <p>The user input parameter was invalid.</p>
        capo_healthlake.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_healthlake.types.delete_data_transformation_profile_request.DeleteDataTransformationProfileRequest]",
    ) -> OperationResponse[
        "capo_healthlake.types.delete_data_transformation_profile_response.DeleteDataTransformationProfileResponse"
    ]:
        import capo_healthlake._operations.health_lake.delete_data_transformation_profile

        output, http_response = (
            capo_healthlake._operations.health_lake.delete_data_transformation_profile.delete_data_transformation_profile(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteDataTransformationProfile")
    )
    input_: capo_healthlake.types.delete_data_transformation_profile_request.DeleteDataTransformationProfileRequest = {
        "profile_id": profile_id
    }

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