CognitoIdentityProvider / Client / delete_user_pool_client_secret

delete_user_pool_client_secret

CognitoIdentityProvider.Client.delete_user_pool_client_secret(**kwargs)

Deletes a specific client secret from a user pool app client. You cannot delete the last remaining secret for an app client.

See also: AWS API Documentation

Request Syntax

response = client.delete_user_pool_client_secret(
    UserPoolId='string',
    ClientId='string',
    ClientSecretId='string'
)
Parameters:
  • UserPoolId (string) –

    [REQUIRED]

    The ID of the user pool that contains the app client.

  • ClientId (string) –

    [REQUIRED]

    The ID of the app client from which you want to delete the secret.

  • ClientSecretId (string) –

    [REQUIRED]

    The unique identifier of the client secret you want to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    The response from deleting a client secret.

Exceptions

  • CognitoIdentityProvider.Client.exceptions.InvalidParameterException

  • CognitoIdentityProvider.Client.exceptions.InternalServerException

  • CognitoIdentityProvider.Client.exceptions.TooManyRequestsException

  • CognitoIdentityProvider.Client.exceptions.LimitExceededException

  • CognitoIdentityProvider.Client.exceptions.ResourceNotFoundException