Skip to content

get_revenue_attribution

get_revenue_attribution(
    catalog: CatalogName,
    identifier: RevenueAttributionIdentifier,
    *,
    config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
    revision: Optional[RevisionToken] = None,
) -> GetRevenueAttributionOutput

Retrieves the details of a specific revenue attribution.

Parameters:

  • catalog (CatalogName) –

    The catalog that the revenue attribution belongs to.

  • identifier (RevenueAttributionIdentifier) –

    The unique identifier of the revenue attribution to retrieve. Accepts a direct ID or ARN.

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

    The revision of the attribution to retrieve. Omit to return the latest revision.

Raises:

Examples:

Example for GetRevenueAttribution

>>> client.get_revenue_attribution(catalog='AWS', identifier='ra-0a1b2c3d4e5f6')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/partner_central_revenue_measurement.py
def get_revenue_attribution(
    self,
    catalog: "capo_partnercentral_revenue_measurement.types.catalog_name.CatalogName",
    identifier: "capo_partnercentral_revenue_measurement.types.revenue_attribution_identifier.RevenueAttributionIdentifier",
    *,
    config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
    revision: Optional[
        "capo_partnercentral_revenue_measurement.types.revision_token.RevisionToken"
    ] = None,
) -> "capo_partnercentral_revenue_measurement.types.get_revenue_attribution_output.GetRevenueAttributionOutput":
    """<p>Retrieves the details of a specific revenue attribution.</p>

    Args:
        catalog: <p>The catalog that the revenue attribution belongs to.</p>
        identifier: <p>The unique identifier of the revenue attribution to retrieve. Accepts a direct ID or ARN.</p>
        revision: <p>The revision of the attribution 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.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 GetRevenueAttribution

        >>> client.get_revenue_attribution(catalog='AWS', identifier='ra-0a1b2c3d4e5f6')
    """

    def _handler(
        req: "OperationRequest[capo_partnercentral_revenue_measurement.types.get_revenue_attribution_input.GetRevenueAttributionInput]",
    ) -> OperationResponse[
        "capo_partnercentral_revenue_measurement.types.get_revenue_attribution_output.GetRevenueAttributionOutput"
    ]:
        import capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.get_revenue_attribution

        output, http_response = (
            capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.get_revenue_attribution.get_revenue_attribution(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetRevenueAttribution")
    )
    input_: capo_partnercentral_revenue_measurement.types.get_revenue_attribution_input.GetRevenueAttributionInput = {
        "catalog": catalog,
        "identifier": identifier,
    }
    if revision is not None:
        input_["revision"] = revision

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output