start_product_subscription
¶
start_product_subscription(
username: str,
identity_provider: IdentityProvider,
product: str,
*,
config_overrides: Optional[LicenseManagerUserSubscriptionsClientConfig] = 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/license_manager_user_subscriptions.py
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 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 | |