describeLunaClient method

Future<DescribeLunaClientResponse> describeLunaClient({
  1. String? certificateFingerprint,
  2. String? clientArn,
})

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.

Retrieves information about an HSM client.

May throw CloudHsmServiceException. May throw CloudHsmInternalException. May throw InvalidRequestException.

Parameter certificateFingerprint : The certificate fingerprint.

Parameter clientArn : The ARN of the client.

Implementation

Future<DescribeLunaClientResponse> describeLunaClient({
  String? certificateFingerprint,
  String? clientArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CloudHsmFrontendService.DescribeLunaClient'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (certificateFingerprint != null)
        'CertificateFingerprint': certificateFingerprint,
      if (clientArn != null) 'ClientArn': clientArn,
    },
  );

  return DescribeLunaClientResponse.fromJson(jsonResponse.body);
}