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,
) -> 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
>>> 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
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 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 | |