stop_product_subscription
¶
stop_product_subscription(
*,
config_overrides: Optional[LicenseManagerUserSubscriptionsClientConfig] = None,
username: Optional[str] = None,
identity_provider: Optional[IdentityProvider] = None,
product: Optional[str] = None,
product_user_arn: Optional[Arn] = None,
domain: Optional[str] = None,
) -> StopProductSubscriptionResponse
Stops a product subscription for a user with the specified identity provider.
Parameters:
-
username(Optional[str], default:None) –The user name from the identity provider for the user.
-
identity_provider(Optional[IdentityProvider], default:None) –An object that specifies details for the identity provider.
-
product(Optional[str], default:None) –The name of the user-based subscription product.
Valid values:
VISUAL_STUDIO_ENTERPRISE|VISUAL_STUDIO_PROFESSIONAL|OFFICE_PROFESSIONAL_PLUS|OFFICE_STANDARD|REMOTE_DESKTOP_SERVICES -
product_user_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the product user.
-
domain(Optional[str], default:None) –The domain name of the Active Directory that contains the user for whom to stop 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/license_manager_user_subscriptions.py
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 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 | |