associate_user
async
¶
associate_user(
username: str,
instance_id: str,
identity_provider: IdentityProvider,
*,
config_overrides: Optional[AsyncLicenseManagerUserSubscriptionsClientConfig] = None,
domain: Optional[str] = None,
tags: Optional[Tags] = None,
) -> AssociateUserResponse
Associates the user to an EC2 instance to utilize user-based subscriptions.
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.
-
instance_id(str) –The ID of the EC2 instance that provides the user-based subscription.
-
identity_provider(IdentityProvider) –The identity provider for the user.
-
domain(Optional[str], default:None) –The domain name of the Active Directory that contains information for the user to associate.
-
tags(Optional[Tags], default:None) –The tags that apply for the user association.
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
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | |