describeMigrationTask method
Retrieves a list of all attributes associated with a specific migration task.
May throw AccessDeniedException. May throw ThrottlingException. May throw InternalServerError. May throw ServiceUnavailableException. May throw InvalidInputException. May throw ResourceNotFoundException. May throw HomeRegionNotSetException.
Parameter migrationTaskName
:
The identifier given to the MigrationTask. Do not store personal data
in this field.
Parameter progressUpdateStream
:
The name of the ProgressUpdateStream.
Implementation
Future<DescribeMigrationTaskResult> describeMigrationTask({
required String migrationTaskName,
required String progressUpdateStream,
}) async {
ArgumentError.checkNotNull(migrationTaskName, 'migrationTaskName');
_s.validateStringLength(
'migrationTaskName',
migrationTaskName,
1,
256,
isRequired: true,
);
ArgumentError.checkNotNull(progressUpdateStream, 'progressUpdateStream');
_s.validateStringLength(
'progressUpdateStream',
progressUpdateStream,
1,
50,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSMigrationHub.DescribeMigrationTask'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MigrationTaskName': migrationTaskName,
'ProgressUpdateStream': progressUpdateStream,
},
);
return DescribeMigrationTaskResult.fromJson(jsonResponse.body);
}