describeApplicationState method

Future<DescribeApplicationStateResult> describeApplicationState({
  1. required String applicationId,
})

Gets the migration status of an application.

May throw AccessDeniedException. May throw ThrottlingException. May throw InternalServerError. May throw ServiceUnavailableException. May throw InvalidInputException. May throw PolicyErrorException. May throw ResourceNotFoundException. May throw HomeRegionNotSetException.

Parameter applicationId : The configurationId in Application Discovery Service that uniquely identifies the grouped application.

Implementation

Future<DescribeApplicationStateResult> describeApplicationState({
  required String applicationId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  _s.validateStringLength(
    'applicationId',
    applicationId,
    1,
    1600,
    isRequired: true,
  );
  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);
}