describeAvailabilityOptions method

Future<DescribeAvailabilityOptionsResponse> describeAvailabilityOptions({
  1. required String domainName,
  2. bool? deployed,
})

Gets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the Deployed option to true to show the active configuration and exclude pending changes. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide.

May throw BaseException. May throw InternalException. May throw InvalidTypeException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw DisabledOperationException.

Parameter domainName : The name of the domain you want to describe.

Parameter deployed : Whether to display the deployed configuration (true) or include any pending changes (false). Defaults to false.

Implementation

Future<DescribeAvailabilityOptionsResponse> describeAvailabilityOptions({
  required String domainName,
  bool? deployed,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['DomainName'] = domainName;
  deployed?.also((arg) => $request['Deployed'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeAvailabilityOptions',
    version: '2013-01-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeAvailabilityOptionsRequest'],
    shapes: shapes,
    resultWrapper: 'DescribeAvailabilityOptionsResult',
  );
  return DescribeAvailabilityOptionsResponse.fromXml($result);
}