describeOrderableDBInstanceOptions method

Future<OrderableDBInstanceOptionsMessage> describeOrderableDBInstanceOptions({
  1. required String engine,
  2. String? dBInstanceClass,
  3. String? engineVersion,
  4. String? licenseModel,
  5. String? marker,
  6. int? maxRecords,
  7. bool? vpc,
})

Implementation

Future<OrderableDBInstanceOptionsMessage> describeOrderableDBInstanceOptions({
  required String engine,
  String? dBInstanceClass,
  String? engineVersion,
  String? licenseModel,
  String? marker,
  int? maxRecords,
  bool? vpc,
}) async {
  ArgumentError.checkNotNull(engine, 'engine');
  final $request = <String, dynamic>{};
  $request['Engine'] = engine;
  dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg);
  engineVersion?.also((arg) => $request['EngineVersion'] = arg);
  licenseModel?.also((arg) => $request['LicenseModel'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  vpc?.also((arg) => $request['Vpc'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeOrderableDBInstanceOptions',
    version: '2013-01-10',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeOrderableDBInstanceOptionsMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeOrderableDBInstanceOptionsResult',
  );
  return OrderableDBInstanceOptionsMessage.fromXml($result);
}