updateParameterGroup method

Future<UpdateParameterGroupResponse> updateParameterGroup({
  1. required String parameterGroupName,
  2. required List<ParameterNameValue> parameterNameValues,
})

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 InvalidParameterGroupStateFault. May throw ParameterGroupNotFoundFault. May throw ServiceLinkedRoleNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.

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 {
  ArgumentError.checkNotNull(parameterGroupName, 'parameterGroupName');
  ArgumentError.checkNotNull(parameterNameValues, 'parameterNameValues');
  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);
}