getApplication method
Gets information about an application.
May throw ApplicationNameRequiredException. May throw InvalidApplicationNameException. May throw ApplicationDoesNotExistException.
Parameter applicationName
:
The name of an AWS CodeDeploy application associated with the IAM user or
AWS account.
Implementation
Future<GetApplicationOutput> getApplication({
required String applicationName,
}) async {
ArgumentError.checkNotNull(applicationName, 'applicationName');
_s.validateStringLength(
'applicationName',
applicationName,
1,
100,
isRequired: true,
);
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);
}