add_user_pool_client_secret
¶
add_user_pool_client_secret(
user_pool_id: UserPoolIdType,
client_id: ClientIdType,
*,
config_overrides: Optional[CognitoIdentityProviderClientConfig] = None,
client_secret: Optional[ClientSecretType] = None,
) -> AddUserPoolClientSecretResponse
Creates a new client secret for an existing confidential user pool app client. Supports up to 2 active secrets per app client for zero-downtime credential rotation workflows.
Parameters:
-
user_pool_id(UserPoolIdType) –The ID of the user pool that contains the app client.
-
client_id(ClientIdType) –The ID of the app client for which you want to create a new secret.
-
client_secret(Optional[ClientSecretType], default:None) –The client secret value you want to use. If you don't provide this parameter, Amazon Cognito generates a secure secret for you.
Raises:
-
AccessDeniedException–This exception is thrown when you don't have sufficient permissions to perform the requested operation.
-
InternalServerException–This exception is thrown when Amazon Cognito encounters an internal server error.
-
InvalidParameterException–This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
-
LimitExceededException–This exception is thrown when a user exceeds the limit for a requested Amazon Web Services resource.
-
ResourceNotFoundException–This exception is thrown when the Amazon Cognito service can't find the requested resource.
-
TooManyRequestsException–This exception is thrown when the user has made too many requests for a given operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cognito_identity_provider/_services/cognito_identity_provider.py
674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 | |