getTemplate method

Future<GetTemplateResponse> getTemplate({
  1. required String templateArn,
})

Retrieves a certificate template that the connector uses to issue certificates from a private CA.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter templateArn : The Amazon Resource Name (ARN) that was returned when you called CreateTemplate.

Implementation

Future<GetTemplateResponse> getTemplate({
  required String templateArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/templates/${Uri.encodeComponent(templateArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetTemplateResponse.fromJson(response);
}