delete_campaign_asset
async
¶
delete_campaign_asset(
catalog: Catalog,
campaign_identifier: CampaignIdentifier,
campaign_asset_identifier: CampaignAssetId,
*,
config_overrides: Optional[AsyncPartnerCentralMarketingClientConfig] = None,
) -> None
Permanently deletes a campaign asset.
Parameters:
-
catalog(Catalog) –The catalog (AWS or Sandbox).
-
campaign_identifier(CampaignIdentifier) –The campaign identifier.
-
campaign_asset_identifier(CampaignAssetId) –The asset identifier.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. An IAM denial carries no
Reason. A refusal for the caller's Partner Central state carries one, so a client tells the two apart by its presence. -
InternalServerException–An unexpected error occurred during the processing of the request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service. A caller branches on
Reason, and where the rejection is attributable to particular fields it readsFieldListrather than parsingMessage, which is prose and may change. -
ConflictException–The request conflicts with the current state of the resource.
-
ResourceNotFoundException–The specified resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Delete an asset
>>> await client.delete_campaign_asset(catalog='AWS', campaign_identifier='camp-5Hq2m8x4k1p9w', campaign_asset_identifier='ast-4b81e0c9f2a7b')