updateParameterGroup method
Modifies the parameters of a parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.
May throw InvalidParameterCombinationException.
May throw InvalidParameterGroupStateFault.
May throw InvalidParameterValueException.
May throw ParameterGroupNotFoundFault.
May throw ServiceLinkedRoleNotFoundFault.
Parameter parameterGroupName :
The name of the parameter group.
Parameter parameterNameValues :
An array of name-value pairs for the parameters in the group. Each element
in the array represents a single parameter.
Implementation
Future<UpdateParameterGroupResponse> updateParameterGroup({
required String parameterGroupName,
required List<ParameterNameValue> parameterNameValues,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDAXV3.UpdateParameterGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ParameterGroupName': parameterGroupName,
'ParameterNameValues': parameterNameValues,
},
);
return UpdateParameterGroupResponse.fromJson(jsonResponse.body);
}