deleteUserPoolClient method
Deletes a user pool app client. After you delete an app client, users can no longer sign in to the associated application.
May throw ConcurrentModificationException.
May throw InternalErrorException.
May throw InvalidParameterException.
May throw NotAuthorizedException.
May throw OperationNotEnabledException.
May throw ResourceNotFoundException.
May throw TooManyRequestsException.
Parameter clientId :
The ID of the user pool app client that you want to delete.
Parameter userPoolId :
The ID of the user pool where you want to delete the client.
Implementation
Future<void> deleteUserPoolClient({
required String clientId,
required String userPoolId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCognitoIdentityProviderService.DeleteUserPoolClient'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClientId': clientId,
'UserPoolId': userPoolId,
},
);
}