start_product_subscription
async
¶
start_product_subscription(
username: str,
identity_provider: IdentityProvider,
product: str,
*,
config_overrides: Optional[AsyncLicenseManagerUserSubscriptionsClientConfig] = None,
domain: Optional[str] = None,
tags: Optional[Tags] = None,
) -> StartProductSubscriptionResponse
Starts a product subscription for a user with the specified identity provider.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
Parameters:
-
username(str) –The user name from the identity provider of the user.
-
identity_provider(IdentityProvider) –An object that specifies details for the identity provider.
-
product(str) –The name of the user-based subscription product.
Valid values:
VISUAL_STUDIO_ENTERPRISE|VISUAL_STUDIO_PROFESSIONAL|OFFICE_PROFESSIONAL_PLUS|OFFICE_STANDARD|REMOTE_DESKTOP_SERVICES -
domain(Optional[str], default:None) –The domain name of the Active Directory that contains the user for whom to start the product subscription.
-
tags(Optional[Tags], default:None) –The tags that apply to the product subscription.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
ConflictException–The request couldn't be completed because it conflicted with the current state of the resource.
-
InternalServerException–An exception occurred with the service.
-
ResourceNotFoundException–The resource couldn't be found.
-
ServiceQuotaExceededException–The request failed because a service quota is exceeded.
-
ThrottlingException–The request was denied because of request throttling. Retry the request.
-
ValidationException–A parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_license_manager_user_subscriptions/_services/async_license_manager_user_subscriptions.py
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 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 | |