create_revenue_attribution
¶
create_revenue_attribution(
catalog: CatalogName,
name: str,
tenancy_model: TenancyModel,
*,
config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[str] = None,
product_identifier: Optional[str] = None,
tags: Optional[TagList] = None,
) -> CreateRevenueAttributionOutput
Creates a new revenue attribution record in the specified catalog.
Parameters:
-
catalog(CatalogName) –The catalog in which to create the revenue attribution.
-
client_token(Optional[ClientToken], default:None) –A unique token to ensure idempotency of the create request.
-
name(str) –The name of the revenue attribution. Must be unique within the catalog and the partner's account.
-
description(Optional[str], default:None) –A description of the revenue attribution.
-
tenancy_model(TenancyModel) –The tenancy model for this revenue attribution.
-
product_identifier(Optional[str], default:None) –The unique product identifier in AWS Marketplace. Accepts a product entity ID (e.g., prod-abc123def4567) or a product ARN.
-
tags(Optional[TagList], default:None) –Tags to associate with the revenue attribution upon creation.
Raises:
-
AccessDeniedException–The request was denied due to insufficient permissions.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The request would exceed a service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Retry your request.
-
ValidationException–The request failed validation due to invalid input parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example for CreateRevenueAttribution
>>> client.create_revenue_attribution(catalog='AWS', name='My Revenue Attribution', tenancy_model='MULTI_TENANT')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/partner_central_revenue_measurement.py
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 | |