delete_domain
async
¶
delete_domain(
identifier: DomainId,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
client_token: Optional[str] = None,
skip_deletion_check: Optional[bool] = None,
cascade_delete: Optional[bool] = None,
) -> DeleteDomainOutput
Deletes a Amazon DataZone domain.
Parameters:
-
identifier(DomainId) –The identifier of the Amazon Web Services domain that is to be deleted.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
-
skip_deletion_check(Optional[bool], default:None) –Specifies whether to skip the check that prevents deletion of a domain that still contains resources. When you use this parameter, Amazon DataZone deletes the domain but might not remove its associated resources, which can leave orphaned resources behind. To delete a domain and fully clean up its associated resources, use
cascadeDeleteinstead. You can't use this parameter together withcascadeDelete. -
cascade_delete(Optional[bool], default:None) –Specifies whether to delete the domain along with all of its associated resources. When you use this parameter, Amazon DataZone deletes the domain and cleanly removes its associated resources without leaving orphaned resources behind. Amazon DataZone reports deletion progress in the
deleteProgressfield. Amazon DataZone reports any resources that it can't delete in thefailureReasonsfield of theGetDomainresponse. You can't use this parameter together withskipDeletionCheck. If you don't specify a value, the default isfalse.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/async_data_zone.py
13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 | |