create_revenue_attribution
async
¶
create_revenue_attribution(
catalog: CatalogName,
name: str,
tenancy_model: TenancyModel,
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = None,
client_token: Optional[ClientToken] = None,
description: Optional[str] = None,
product_identifier: Optional[str] = None,
tags: Optional[TagList] = None,
context: Optional[RevenueAttributionContext] = 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.
-
context(Optional[RevenueAttributionContext], default:None) –Program-defined key-value attributes for the revenue attribution.
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
>>> await client.create_revenue_attribution(catalog='AWS', name='My Revenue Attribution', tenancy_model='MULTI_TENANT')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/async_partner_central_revenue_measurement.py
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 | |