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
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | |