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,
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
>>> 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
1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 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 | |