getCloudFormationTemplate method

Future<GetCloudFormationTemplateResponse> getCloudFormationTemplate({
  1. required String applicationId,
  2. required String templateId,
})

Gets the specified AWS CloudFormation template.

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

Parameter applicationId : The Amazon Resource Name (ARN) of the application.

Parameter templateId : The UUID returned by CreateCloudFormationTemplate.

Pattern: 0-9a-fA-F{8}-0-9a-fA-F{4}-0-9a-fA-F{4}-0-9a-fA-F{4}-0-9a-fA-F{12}

Implementation

Future<GetCloudFormationTemplateResponse> getCloudFormationTemplate({
  required String applicationId,
  required String templateId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(templateId, 'templateId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/templates/${Uri.encodeComponent(templateId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetCloudFormationTemplateResponse.fromJson(response);
}