get_campaign_asset
¶
get_campaign_asset(
catalog: Catalog,
campaign_identifier: CampaignIdentifier,
campaign_asset_identifier: CampaignAssetId,
*,
config_overrides: Optional[PartnerCentralMarketingClientConfig] = None,
) -> GetCampaignAssetResponse
Retrieves an asset by its identifier.
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. -
ResourceNotFoundException–The specified resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Get an asset
>>> client.get_campaign_asset(catalog='AWS', campaign_identifier='camp-5Hq2m8x4k1p9w', campaign_asset_identifier='ast-4b81e0c9f2a7b')
Source code in docs_src/capo_partnercentral_marketing/_services/partner_central_marketing.py
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 | |