importAppCatalog method
Allows application import from AWS Migration Hub.
May throw UnauthorizedOperationException. May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw InternalError. May throw OperationNotPermittedException.
Parameter roleName
:
The name of the service role. If you omit this parameter, we create a
service-linked role for AWS Migration Hub in your account. Otherwise, the
role that you provide must have the policy
and trust policy described in the AWS Migration Hub User Guide.
Implementation
Future<void> importAppCatalog({
String? roleName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSServerMigrationService_V2016_10_24.ImportAppCatalog'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (roleName != null) 'roleName': roleName,
},
);
}