Retrieves the details of a specific marketplace revenue share allocation.
Parameters:
-
catalog
(CatalogName)
–
The catalog that the allocation belongs to.
-
product_id
(MarketplaceProductId)
–
The AWS Marketplace product identifier of the parent revenue share.
-
marketplace_revenue_share_allocation_id
(MarketplaceRevenueShareAllocationId)
–
The unique identifier of the allocation to retrieve.
-
marketplace_revenue_share_revision
(Optional[RevisionToken], default:
None
)
–
The revision of the parent marketplace revenue share at which to retrieve the allocation. Omit to return the latest.
Raises:
Examples:
Example for GetMarketplaceRevenueShareAllocation
>>> await client.get_marketplace_revenue_share_allocation(catalog='AWS', product_id='prod-abc123def4567', marketplace_revenue_share_allocation_id='mrsa-abc123def4567')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/async_partner_central_revenue_measurement.py
| async def get_marketplace_revenue_share_allocation(
self,
catalog: "capo_partnercentral_revenue_measurement.types.catalog_name.CatalogName",
product_id: "capo_partnercentral_revenue_measurement.types.marketplace_product_id.MarketplaceProductId",
marketplace_revenue_share_allocation_id: "capo_partnercentral_revenue_measurement.types.marketplace_revenue_share_allocation_id.MarketplaceRevenueShareAllocationId",
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = None,
marketplace_revenue_share_revision: Optional[
"capo_partnercentral_revenue_measurement.types.revision_token.RevisionToken"
] = None,
) -> "capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_allocation_output.GetMarketplaceRevenueShareAllocationOutput":
"""<p>Retrieves the details of a specific marketplace revenue share allocation.</p>
Args:
catalog: <p>The catalog that the allocation belongs to.</p>
product_id: <p>The AWS Marketplace product identifier of the parent revenue share.</p>
marketplace_revenue_share_allocation_id: <p>The unique identifier of the allocation to retrieve.</p>
marketplace_revenue_share_revision: <p>The revision of the parent marketplace revenue share at which to retrieve the allocation. Omit to return the latest.</p>
Raises:
capo_partnercentral_revenue_measurement.errors.access_denied_exception.AccessDeniedException: <p>The request was denied due to insufficient permissions.</p>
capo_partnercentral_revenue_measurement.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
capo_partnercentral_revenue_measurement.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_partnercentral_revenue_measurement.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Retry your request.</p>
capo_partnercentral_revenue_measurement.errors.validation_exception.ValidationException: <p>The request failed validation due to invalid input parameters.</p>
capo_partnercentral_revenue_measurement.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Example for GetMarketplaceRevenueShareAllocation
>>> await client.get_marketplace_revenue_share_allocation(catalog='AWS', product_id='prod-abc123def4567', marketplace_revenue_share_allocation_id='mrsa-abc123def4567')
"""
async def _handler(
req: "AsyncOperationRequest[capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_allocation_input.GetMarketplaceRevenueShareAllocationInput]",
) -> AsyncOperationResponse[
"capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_allocation_output.GetMarketplaceRevenueShareAllocationOutput"
]:
import capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.get_marketplace_revenue_share_allocation
(
output,
http_response,
) = await capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.get_marketplace_revenue_share_allocation.async_get_marketplace_revenue_share_allocation(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetMarketplaceRevenueShareAllocation")
)
input_: capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_allocation_input.GetMarketplaceRevenueShareAllocationInput = {
"catalog": catalog,
"product_id": product_id,
"marketplace_revenue_share_allocation_id": marketplace_revenue_share_allocation_id,
}
if marketplace_revenue_share_revision is not None:
input_["marketplace_revenue_share_revision"] = (
marketplace_revenue_share_revision
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|