delete_asset
async
¶
delete_asset(
domain_identifier: DomainId,
identifier: AssetIdentifier,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
) -> DeleteAssetOutput
Deletes an asset in Amazon DataZone.
-
--domain-identifier must refer to a valid and existing domain.
-
--identifier must refer to an existing asset in the specified domain.
-
Asset must not be referenced in any existing asset filters.
-
Asset must not be linked to any draft or published data product.
-
User must have delete permissions for the domain and project.
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain in which the asset is deleted.
-
identifier(AssetIdentifier) –The identifier of the asset that is deleted.
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
12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 | |