unlink_identity
async
¶
unlink_identity(
identity_id: IdentityId,
logins: LoginsMap,
logins_to_remove: LoginsList,
*,
config_overrides: Optional[AsyncCognitoIdentityClientConfig] = None,
) -> None
Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.
This is a public API. You do not need any credentials to call this API.
Parameters:
-
identity_id(IdentityId) –A unique identifier in the format REGION:GUID.
-
logins(LoginsMap) –A set of optional name-value pairs that map provider names to provider tokens.
-
logins_to_remove(LoginsList) –Provider names to unlink from this identity.
Raises:
-
ExternalServiceException–An exception thrown when a dependent service such as Facebook or Twitter is not responding
-
InternalErrorException–Thrown when the service encounters an error during processing the request.
-
InvalidParameterException–Thrown for missing or bad input parameter(s).
-
NotAuthorizedException–Thrown when a user is not authorized to access the requested resource.
-
ResourceConflictException–Thrown when a user tries to use a login which is already linked to another account.
-
ResourceNotFoundException–Thrown when the requested resource (for example, a dataset or record) does not exist.
-
TooManyRequestsException–Thrown when a request is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cognito_identity/_services/async_cognito_identity.py
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 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 | |