DataZone / Client / delete_asset

delete_asset

DataZone.Client.delete_asset(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.delete_asset(
    domainIdentifier='string',
    identifier='string'
)
Parameters:
  • domainIdentifier (string) –

    [REQUIRED]

    The ID of the Amazon DataZone domain in which the asset is deleted.

  • identifier (string) –

    [REQUIRED]

    The identifier of the asset that is deleted.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • DataZone.Client.exceptions.InternalServerException

  • DataZone.Client.exceptions.ResourceNotFoundException

  • DataZone.Client.exceptions.AccessDeniedException

  • DataZone.Client.exceptions.ThrottlingException

  • DataZone.Client.exceptions.ConflictException

  • DataZone.Client.exceptions.ValidationException

  • DataZone.Client.exceptions.UnauthorizedException