getEnvironmentTemplate method

Future<GetEnvironmentTemplateOutput> getEnvironmentTemplate({
  1. required String name,
})

Get detailed data for an environment template.

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

Parameter name : The name of the environment template that you want to get the detailed data for.

Implementation

Future<GetEnvironmentTemplateOutput> getEnvironmentTemplate({
  required String name,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AwsProton20200720.GetEnvironmentTemplate'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'name': name,
    },
  );

  return GetEnvironmentTemplateOutput.fromJson(jsonResponse.body);
}