describeCertificate method
Gets information about the specified certificate.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException. May throw ResourceNotFoundException.
Parameter certificateId
:
The ID of the certificate. (The last part of the certificate ARN contains
the certificate ID.)
Implementation
Future<DescribeCertificateResponse> describeCertificate({
required String certificateId,
}) async {
ArgumentError.checkNotNull(certificateId, 'certificateId');
_s.validateStringLength(
'certificateId',
certificateId,
64,
64,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/certificates/${Uri.encodeComponent(certificateId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeCertificateResponse.fromJson(response);
}