updateServiceAccessPolicies method
Configures the policies that control access to the domain's document and search services. The maximum size of an access policy document is 100 KB.
May throw BaseException. May throw InternalException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw InvalidTypeException.
Implementation
Future<UpdateServiceAccessPoliciesResponse> updateServiceAccessPolicies({
required String accessPolicies,
required String domainName,
}) async {
ArgumentError.checkNotNull(accessPolicies, 'accessPolicies');
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['AccessPolicies'] = accessPolicies;
$request['DomainName'] = domainName;
final $result = await _protocol.send(
$request,
action: 'UpdateServiceAccessPolicies',
version: '2011-02-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateServiceAccessPoliciesRequest'],
shapes: shapes,
resultWrapper: 'UpdateServiceAccessPoliciesResult',
);
return UpdateServiceAccessPoliciesResponse.fromXml($result);
}