listLunaClients method
This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference.
For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference.
Lists all of the clients.
This operation supports pagination with the use of the
NextToken member. If more results are available, the
NextToken member of the response contains a token that you
pass in the next call to ListLunaClients to retrieve the next
set of items.
May throw CloudHsmInternalException.
May throw CloudHsmServiceException.
May throw InvalidRequestException.
Parameter nextToken :
The NextToken value from a previous call to
ListLunaClients. Pass null if this is the first call.
Implementation
Future<ListLunaClientsResponse> listLunaClients({
String? nextToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CloudHsmFrontendService.ListLunaClients'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListLunaClientsResponse.fromJson(jsonResponse.body);
}