PartnerCentralRevenueMeasurementAPI / Client / create_revenue_attribution

create_revenue_attribution

PartnerCentralRevenueMeasurementAPI.Client.create_revenue_attribution(**kwargs)

Creates a new revenue attribution record in the specified catalog.

See also: AWS API Documentation

Request Syntax

response = client.create_revenue_attribution(
    Catalog='AWS'|'Sandbox',
    ClientToken='string',
    Name='string',
    Description='string',
    TenancyModel='MULTI_TENANT'|'SINGLE_TENANT',
    ProductIdentifier='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • Catalog (string) –

    [REQUIRED]

    The catalog in which to create the revenue attribution.

  • ClientToken (string) –

    A unique token to ensure idempotency of the create request.

    This field is autopopulated if not provided.

  • Name (string) –

    [REQUIRED]

    The name of the revenue attribution. Must be unique within the catalog and the partner’s account.

  • Description (string) – A description of the revenue attribution.

  • TenancyModel (string) –

    [REQUIRED]

    The tenancy model for this revenue attribution.

  • ProductIdentifier (string) – The unique product identifier in AWS Marketplace. Accepts a product entity ID (e.g., prod-abc123def4567) or a product ARN.

  • Tags (list) –

    Tags to associate with the revenue attribution upon creation.

    • (dict) –

      A key-value pair used for organizing and managing resources through metadata tags.

      • Key (string) – [REQUIRED]

        The key portion of the tag.

      • Value (string) – [REQUIRED]

        The value portion of the tag.

Return type:

dict

Returns:

Response Syntax

{
    'Id': 'string',
    'Arn': 'string',
    'Name': 'string',
    'Description': 'string',
    'TenancyModel': 'MULTI_TENANT'|'SINGLE_TENANT',
    'MarketplaceProduct': {
        'ProductId': 'string',
        'ProductCode': 'string',
        'ProductName': 'string'
    },
    'Revision': 'string'
}

Response Structure

  • (dict) –

    • Id (string) –

      The unique identifier of the newly created revenue attribution.

    • Arn (string) –

      The Amazon Resource Name (ARN) of the newly created revenue attribution.

    • Name (string) –

      The name of the revenue attribution.

    • Description (string) –

      The description of the revenue attribution.

    • TenancyModel (string) –

      The tenancy model for this revenue attribution.

    • MarketplaceProduct (dict) –

      The associated AWS Marketplace product listing, if set at creation.

      • ProductId (string) –

        The product identifier provided at attribution creation.

      • ProductCode (string) –

        The AWS Marketplace product code resolved using the product identifier.

      • ProductName (string) –

        The display name of the AWS Marketplace product.

    • Revision (string) –

      The revision of the newly created attribution resource.

Exceptions

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ServiceQuotaExceededException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ThrottlingException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ValidationException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.AccessDeniedException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.InternalServerException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ConflictException

  • PartnerCentralRevenueMeasurementAPI.Client.exceptions.ResourceNotFoundException