getApplication method
Gets information about an application.
May throw ApplicationDoesNotExistException.
May throw ApplicationNameRequiredException.
May throw InvalidApplicationNameException.
Parameter applicationName :
The name of an CodeDeploy application associated with the user or Amazon
Web Services account.
Implementation
Future<GetApplicationOutput> getApplication({
required String applicationName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.GetApplication'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'applicationName': applicationName,
},
);
return GetApplicationOutput.fromJson(jsonResponse.body);
}