describeCACertificate method
Describes a registered CA certificate.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException. May throw ResourceNotFoundException.
Parameter certificateId
:
The CA certificate identifier.
Implementation
Future<DescribeCACertificateResponse> describeCACertificate({
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: '/cacertificate/${Uri.encodeComponent(certificateId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeCACertificateResponse.fromJson(response);
}