describeServiceAccessPolicies method

Future<DescribeServiceAccessPoliciesResponse> describeServiceAccessPolicies({
  1. required String domainName,
})

Gets information about the resource-based policies that control access to the domain's document and search services.

May throw BaseException. May throw InternalException. May throw ResourceNotFoundException.

Implementation

Future<DescribeServiceAccessPoliciesResponse> describeServiceAccessPolicies({
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['DomainName'] = domainName;
  final $result = await _protocol.send(
    $request,
    action: 'DescribeServiceAccessPolicies',
    version: '2011-02-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeServiceAccessPoliciesRequest'],
    shapes: shapes,
    resultWrapper: 'DescribeServiceAccessPoliciesResult',
  );
  return DescribeServiceAccessPoliciesResponse.fromXml($result);
}