delete_domain
¶
delete_domain(
identifier: DomainId,
*,
config_overrides: Optional[DataZoneClientConfig] = 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/data_zone.py
13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 | |