deleteUserPoolClientSecret method
Deletes a specific client secret from a user pool app client. You cannot delete the last remaining secret for an app client.
May throw InternalServerException.
May throw InvalidParameterException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw TooManyRequestsException.
Parameter clientId :
The ID of the app client from which you want to delete the secret.
Parameter clientSecretId :
The unique identifier of the client secret you want to delete.
Parameter userPoolId :
The ID of the user pool that contains the app client.
Implementation
Future<void> deleteUserPoolClientSecret({
required String clientId,
required String clientSecretId,
required String userPoolId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSCognitoIdentityProviderService.DeleteUserPoolClientSecret'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClientId': clientId,
'ClientSecretId': clientSecretId,
'UserPoolId': userPoolId,
},
);
}