describeCertificate method

Future<DescribeCertificateResponse> describeCertificate({
  1. required String certificateId,
})

Describes the certificate that's identified by the CertificateId.

May throw InternalServiceError. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.

Parameter certificateId : An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.

Implementation

Future<DescribeCertificateResponse> describeCertificate({
  required String certificateId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'TransferService.DescribeCertificate'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CertificateId': certificateId,
    },
  );

  return DescribeCertificateResponse.fromJson(jsonResponse.body);
}