describeApplicationState method
Gets the migration status of an application.
May throw AccessDeniedException.
May throw HomeRegionNotSetException.
May throw InternalServerError.
May throw InvalidInputException.
May throw PolicyErrorException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter applicationId :
The configurationId in Application Discovery Service that uniquely
identifies the grouped application.
Implementation
Future<DescribeApplicationStateResult> describeApplicationState({
required String applicationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSMigrationHub.DescribeApplicationState'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ApplicationId': applicationId,
},
);
return DescribeApplicationStateResult.fromJson(jsonResponse.body);
}