update_user
async
¶
update_user(
identity_store_id: IdentityStoreId,
user_id: ResourceId,
operations: AttributeOperations,
*,
config_overrides: Optional[AsyncidentitystoreClientConfig] = None,
revision: Optional[ResourceRevision] = None,
) -> UpdateUserResponse
Updates the specified user metadata and attributes in the specified identity store.
Parameters:
-
identity_store_id(IdentityStoreId) –The globally unique identifier for the identity store.
You can specify the identity store by ID or by Amazon Resource Name (ARN). For example, identity store ID
d-1234567890or identity store ARNarn:aws:identitystore::111122223333:identitystore/d-1234567890. -
user_id(ResourceId) –The identifier for a user in the identity store.
You can specify the user by ID or by Amazon Resource Name (ARN). For example, user ID
a1b2c3d4-5678-90ab-cdef-EXAMPLE11111or user ARNarn:aws:identitystore:::user/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. -
operations(AttributeOperations) –A list of
AttributeOperationobjects to apply to the requested user. These operations might add, replace, or remove an attribute. For more information on the attributes that can be added, replaced, or removed, see User. -
revision(Optional[ResourceRevision], default:None) –The expected current revision of the user. When you provide this value, the update is applied only if it matches the current revision of the user in the identity store, which prevents you from overwriting concurrent changes. If the value doesn't match, the operation fails with a
ConflictException. If you don't provide this value, the update is applied unconditionally.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure with an internal server.
-
ThrottlingException–Indicates that the principal has crossed the throttling limits of the API operations.
-
ConflictException–This request cannot be completed for one of the following reasons:
-
Performing the requested operation would violate an existing uniqueness claim in the identity store. Resolve the conflict before retrying this request.
-
The requested resource was being concurrently modified by another request.
-
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
ServiceQuotaExceededException–The request would cause the number of users or groups in the identity store to exceed the maximum allowed.
-
ValidationException–The request failed because it contains a syntax error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_identitystore/_services/async_identitystore.py
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 | |