Skip to content

get_marketplace_revenue_share async

get_marketplace_revenue_share(
    catalog: CatalogName,
    *,
    config_overrides: Optional[
        AsyncPartnerCentralRevenueMeasurementClientConfig
    ] = None,
    identifier: Optional[MarketplaceRevenueShareIdentifier] = None,
    revision: Optional[RevisionToken] = None,
) -> GetMarketplaceRevenueShareOutput

Retrieves the details of a specific marketplace revenue share.

Parameters:

  • catalog (CatalogName) –

    The catalog that the marketplace revenue share belongs to.

  • identifier (Optional[MarketplaceRevenueShareIdentifier], default: None ) –

    The marketplace revenue share to retrieve, by ID (mrs-...) or ARN.

  • revision (Optional[RevisionToken], default: None ) –

    The revision of the marketplace revenue share to retrieve. Omit to return the latest revision.

Raises:

Examples:

Example for GetMarketplaceRevenueShare

>>> await client.get_marketplace_revenue_share(catalog='AWS', identifier='mrs-abc123def4567')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/async_partner_central_revenue_measurement.py
async def get_marketplace_revenue_share(
    self,
    catalog: "capo_partnercentral_revenue_measurement.types.catalog_name.CatalogName",
    *,
    config_overrides: Optional[
        AsyncPartnerCentralRevenueMeasurementClientConfig
    ] = None,
    identifier: Optional[
        "capo_partnercentral_revenue_measurement.types.marketplace_revenue_share_identifier.MarketplaceRevenueShareIdentifier"
    ] = None,
    revision: Optional[
        "capo_partnercentral_revenue_measurement.types.revision_token.RevisionToken"
    ] = None,
) -> "capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_output.GetMarketplaceRevenueShareOutput":
    """<p>Retrieves the details of a specific marketplace revenue share.</p>

    Args:
        catalog: <p>The catalog that the marketplace revenue share belongs to.</p>
        identifier: <p>The marketplace revenue share to retrieve, by ID (mrs-...) or ARN.</p>
        revision: <p>The revision of the marketplace revenue share to retrieve. Omit to return the latest revision.</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.conflict_exception.ConflictException: <p>The request could not be completed due to a conflict with the current state of the resource.</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 GetMarketplaceRevenueShare

        >>> await client.get_marketplace_revenue_share(catalog='AWS', identifier='mrs-abc123def4567')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_input.GetMarketplaceRevenueShareInput]",
    ) -> AsyncOperationResponse[
        "capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_output.GetMarketplaceRevenueShareOutput"
    ]:
        import capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.get_marketplace_revenue_share

        (
            output,
            http_response,
        ) = await capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.get_marketplace_revenue_share.async_get_marketplace_revenue_share(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_output.GetMarketplaceRevenueShareOutput",
    ) -> dict[str, Any]:
        import capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_output

        return capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "GetMarketplaceRevenueShare", redact_output=_redact_output
        ),
    )
    input_: capo_partnercentral_revenue_measurement.types.get_marketplace_revenue_share_input.GetMarketplaceRevenueShareInput = {
        "catalog": catalog
    }
    if identifier is not None:
        input_["identifier"] = identifier
    if revision is not None:
        input_["revision"] = revision

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output