Skip to content

update_parameter_group async

update_parameter_group(
    parameter_group_name: String,
    parameter_name_values: ParameterNameValueList,
    *,
    config_overrides: Optional[AsyncDAXClientConfig] = None,
) -> UpdateParameterGroupResponse

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.

Parameters:

  • parameter_group_name (String) –

    The name of the parameter group.

  • parameter_name_values (ParameterNameValueList) –

    An array of name-value pairs for the parameters in the group. Each element in the array represents a single parameter.

    record-ttl-millis and query-ttl-millis are the only supported parameter names. For more details, see Configuring TTL Settings.

Raises:

Source code in docs_src/capo_dax/_services/async_dax.py
async def update_parameter_group(
    self,
    parameter_group_name: "capo_dax.types.string.String",
    parameter_name_values: "capo_dax.types.parameter_name_value_list.ParameterNameValueList",
    *,
    config_overrides: Optional[AsyncDAXClientConfig] = None,
) -> "capo_dax.types.update_parameter_group_response.UpdateParameterGroupResponse":
    """<p>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.</p>

    Args:
        parameter_group_name: <p>The name of the parameter group.</p>
        parameter_name_values: <p>An array of name-value pairs for the parameters in the group. Each element in the array represents a single parameter.</p> <note> <p> <code>record-ttl-millis</code> and <code>query-ttl-millis</code> are the only supported parameter names. For more details, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.cluster-management.html#DAX.cluster-management.custom-settings.ttl">Configuring TTL Settings</a>.</p> </note>

    Raises:
        capo_dax.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Two or more incompatible parameters were specified.</p>
        capo_dax.errors.invalid_parameter_group_state_fault.InvalidParameterGroupStateFault: <p>One or more parameters in a parameter group are in an invalid state.</p>
        capo_dax.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value for a parameter is invalid.</p>
        capo_dax.errors.parameter_group_not_found_fault.ParameterGroupNotFoundFault: <p>The specified parameter group does not exist.</p>
        capo_dax.errors.service_linked_role_not_found_fault.ServiceLinkedRoleNotFoundFault: <p>The specified service linked role (SLR) was not found.</p>
        capo_dax.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_dax.types.update_parameter_group_request.UpdateParameterGroupRequest]",
    ) -> AsyncOperationResponse[
        "capo_dax.types.update_parameter_group_response.UpdateParameterGroupResponse"
    ]:
        import capo_dax._operations.amazon_daxv3.update_parameter_group

        (
            output,
            http_response,
        ) = await capo_dax._operations.amazon_daxv3.update_parameter_group.async_update_parameter_group(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateParameterGroup")
    )
    input_: capo_dax.types.update_parameter_group_request.UpdateParameterGroupRequest = {
        "parameter_group_name": parameter_group_name,
        "parameter_name_values": parameter_name_values,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output