updateServiceAccessPolicies method
Configures the access rules that control access to the domain's document and search endpoints. For more information, see Configuring Access for an Amazon CloudSearch Domain.
May throw BaseException. May throw InternalException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw InvalidTypeException.
Parameter accessPolicies
:
The access rules you want to configure. These rules replace any existing
rules.
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: '2013-01-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateServiceAccessPoliciesRequest'],
shapes: shapes,
resultWrapper: 'UpdateServiceAccessPoliciesResult',
);
return UpdateServiceAccessPoliciesResponse.fromXml($result);
}