updateScalingParameters method
Future<UpdateScalingParametersResponse>
updateScalingParameters({
- required String domainName,
- required ScalingParameters scalingParameters,
Configures scaling parameters for a domain. A domain's scaling parameters specify the desired search instance type and replication count. Amazon CloudSearch will still automatically scale your domain based on the volume of data and traffic, but not below the desired instance type and replication count. If the Multi-AZ option is enabled, these values control the resources used per Availability Zone. For more information, see Configuring Scaling Options in the Amazon CloudSearch Developer Guide.
May throw BaseException. May throw InternalException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw InvalidTypeException.
Implementation
Future<UpdateScalingParametersResponse> updateScalingParameters({
required String domainName,
required ScalingParameters scalingParameters,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
ArgumentError.checkNotNull(scalingParameters, 'scalingParameters');
final $request = <String, dynamic>{};
$request['DomainName'] = domainName;
$request['ScalingParameters'] = scalingParameters;
final $result = await _protocol.send(
$request,
action: 'UpdateScalingParameters',
version: '2013-01-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateScalingParametersRequest'],
shapes: shapes,
resultWrapper: 'UpdateScalingParametersResult',
);
return UpdateScalingParametersResponse.fromXml($result);
}