Starts deleting a Dataset and the resources that Amazon Connect Health built for it. You can delete a dataset whose status is ACTIVE, CREATE_FAILED, or DELETE_FAILED. The dataset moves to DELETING, and then to DELETED. If the delete fails, the dataset moves to DELETE_FAILED, and you can call DeleteDataset again.
Medical coding jobs that already use the dataset finish. Amazon Connect Health rejects new requests that specify the dataset.
Datasets are in preview release and are subject to change.
Parameters:
-
domain_id
(DomainId)
–
The unique identifier of the parent Domain.
-
dataset_id
(DatasetId)
–
The unique identifier of the dataset to delete.
Raises:
Source code in docs_src/capo_connecthealth/_services/async_connect_health.py
| async def delete_dataset(
self,
domain_id: "capo_connecthealth.types.domain_id.DomainId",
dataset_id: "capo_connecthealth.types.dataset_id.DatasetId",
*,
config_overrides: Optional[AsyncConnectHealthClientConfig] = None,
) -> "capo_connecthealth.types.delete_dataset_output.DeleteDatasetOutput":
"""<p>Starts deleting a Dataset and the resources that Amazon Connect Health built for it. You can delete a dataset whose status is ACTIVE, CREATE_FAILED, or DELETE_FAILED. The dataset moves to DELETING, and then to DELETED. If the delete fails, the dataset moves to DELETE_FAILED, and you can call DeleteDataset again.</p> <p>Medical coding jobs that already use the dataset finish. Amazon Connect Health rejects new requests that specify the dataset.</p> <p>Datasets are in preview release and are subject to change.</p>
Args:
domain_id: <p>The unique identifier of the parent Domain.</p>
dataset_id: <p>The unique identifier of the dataset to delete.</p>
Raises:
capo_connecthealth.errors.access_denied_exception.AccessDeniedException: <p>This error is thrown when the client does not supply proper credentials to the API.</p>
capo_connecthealth.errors.conflict_exception.ConflictException: <p>This error is thrown when a resource update is no longer valid due to assumptions about initial state changing.</p>
capo_connecthealth.errors.internal_server_exception.InternalServerException: <p>This error is thrown when a transient error causes our API to fail.</p>
capo_connecthealth.errors.resource_not_found_exception.ResourceNotFoundException: <p>This error is thrown when the requested resource is not found.</p>
capo_connecthealth.errors.throttling_exception.ThrottlingException: <p>This error is thrown when the client exceeds the allowed request rate.</p>
capo_connecthealth.errors.validation_exception.ValidationException: <p>This error is thrown when the client supplies invalid input to the API.</p>
capo_connecthealth.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_connecthealth.types.delete_dataset_input.DeleteDatasetInput]",
) -> AsyncOperationResponse[
"capo_connecthealth.types.delete_dataset_output.DeleteDatasetOutput"
]:
import capo_connecthealth._operations.connect_health.delete_dataset
(
output,
http_response,
) = await capo_connecthealth._operations.connect_health.delete_dataset.async_delete_dataset(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteDataset")
)
input_: capo_connecthealth.types.delete_dataset_input.DeleteDatasetInput = {
"domain_id": domain_id,
"dataset_id": dataset_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|