getCloudWatchAlarmTemplate method

Future<GetCloudWatchAlarmTemplateResponse> getCloudWatchAlarmTemplate({
  1. required String identifier,
})

Retrieves the specified cloudwatch alarm template.

May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter identifier : A cloudwatch alarm template's identifier. Can be either be its id or current name.

Implementation

Future<GetCloudWatchAlarmTemplateResponse> getCloudWatchAlarmTemplate({
  required String identifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/prod/cloudwatch-alarm-templates/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetCloudWatchAlarmTemplateResponse.fromJson(response);
}