getAppReplicationConfiguration method

Future<GetAppReplicationConfigurationResponse> getAppReplicationConfiguration({
  1. String? appId,
})

Retrieves the application replication configuration associated with the specified application.

May throw UnauthorizedOperationException. May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw InternalError. May throw OperationNotPermittedException.

Parameter appId : The ID of the application.

Implementation

Future<GetAppReplicationConfigurationResponse>
    getAppReplicationConfiguration({
  String? appId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSServerMigrationService_V2016_10_24.GetAppReplicationConfiguration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (appId != null) 'appId': appId,
    },
  );

  return GetAppReplicationConfigurationResponse.fromJson(jsonResponse.body);
}