Skip to content

update_express_configuration async

update_express_configuration(
    *,
    config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
    config_parameters: Optional[ConfigParameterList] = None,
    max_capacity: Optional[int] = None,
    logging_configuration: Optional[LoggingConfiguration] = None,
) -> UpdateExpressConfigurationResponse

Updates the configuration of Amazon Redshift Serverless with express configuration. Each request can update only one of configParameters, maxCapacity, or loggingConfiguration.

Parameters:

  • config_parameters (Optional[ConfigParameterList], default: None ) –

    An array of parameters to set for advanced control over a database. The update merges with the current parameters: a parameter that you leave out of the request keeps its current value. You can set the following parameters:

    • datestyle, enable_case_sensitive_identifier, enable_large_strings_opt_in, enable_user_activity_logging, query_group, search_path, and use_fips_ssl.

    • Query monitoring rules. To remove a rule, set its value to -1. Setting max_query_execution_time to -1 also removes its default limit. The rules and their valid ranges are as follows:

      • max_io_skew – 0–99

      • max_join_row_count – 0–999,999,999,999,999

      • max_nested_loop_join_row_count – 0–999,999,999,999,999

      • max_query_blocks_read – 0–1,048,575 (1 MB blocks)

      • max_query_execution_time – 0–86,399 seconds (default 14400)

      • max_query_queue_time – 0–86,399 seconds

      • max_query_temp_blocks_to_disk – 0–319,815,679 (1 MB blocks)

      • max_return_row_count – 0–999,999,999,999,999

      • max_scan_row_count – 0–999,999,999,999,999

    The following parameters, which Amazon Redshift Serverless supports, aren't supported on the express configuration: wlm_json_configuration, require_ssl, max_query_cpu_time, max_query_cpu_usage_percent, and max_cpu_skew. TLS is always required.

  • max_capacity (Optional[int], default: None ) –

    The maximum capacity that Amazon Redshift Serverless with express configuration uses to serve queries, in Redshift Processing Units (RPUs). Valid values are 64–1024, in multiples of 8. To remove a previously set maximum capacity, specify -1. Without a maximum capacity, capacity scales up to 512 RPUs.

  • logging_configuration (Optional[LoggingConfiguration], default: None ) –

    The logging configuration to update: either the audit logs exported to Amazon CloudWatch, or publishing system tables to Amazon S3 Tables. You can change only one of the two in a single request.

Raises:

Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
async def update_express_configuration(
    self,
    *,
    config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
    config_parameters: Optional[
        "capo_redshift_serverless.types.config_parameter_list.ConfigParameterList"
    ] = None,
    max_capacity: Optional[int] = None,
    logging_configuration: Optional[
        "capo_redshift_serverless.types.logging_configuration.LoggingConfiguration"
    ] = None,
) -> "capo_redshift_serverless.types.update_express_configuration_response.UpdateExpressConfigurationResponse":
    """<p>Updates the configuration of Amazon Redshift Serverless with express configuration. Each request can update only one of <code>configParameters</code>, <code>maxCapacity</code>, or <code>loggingConfiguration</code>.</p>

    Args:
        config_parameters: <p>An array of parameters to set for advanced control over a database. The update merges with the current parameters: a parameter that you leave out of the request keeps its current value. You can set the following parameters:</p> <ul> <li> <p> <code>datestyle</code>, <code>enable_case_sensitive_identifier</code>, <code>enable_large_strings_opt_in</code>, <code>enable_user_activity_logging</code>, <code>query_group</code>, <code>search_path</code>, and <code>use_fips_ssl</code>.</p> </li> <li> <p>Query monitoring rules. To remove a rule, set its value to <code>-1</code>. Setting <code>max_query_execution_time</code> to <code>-1</code> also removes its default limit. The rules and their valid ranges are as follows:</p> <ul> <li> <p> <code>max_io_skew</code> – 0–99</p> </li> <li> <p> <code>max_join_row_count</code> – 0–999,999,999,999,999</p> </li> <li> <p> <code>max_nested_loop_join_row_count</code> – 0–999,999,999,999,999</p> </li> <li> <p> <code>max_query_blocks_read</code> – 0–1,048,575 (1 MB blocks)</p> </li> <li> <p> <code>max_query_execution_time</code> – 0–86,399 seconds (default <code>14400</code>)</p> </li> <li> <p> <code>max_query_queue_time</code> – 0–86,399 seconds</p> </li> <li> <p> <code>max_query_temp_blocks_to_disk</code> – 0–319,815,679 (1 MB blocks)</p> </li> <li> <p> <code>max_return_row_count</code> – 0–999,999,999,999,999</p> </li> <li> <p> <code>max_scan_row_count</code> – 0–999,999,999,999,999</p> </li> </ul> </li> </ul> <p>The following parameters, which Amazon Redshift Serverless supports, aren't supported on the express configuration: <code>wlm_json_configuration</code>, <code>require_ssl</code>, <code>max_query_cpu_time</code>, <code>max_query_cpu_usage_percent</code>, and <code>max_cpu_skew</code>. TLS is always required.</p>
        max_capacity: <p>The maximum capacity that Amazon Redshift Serverless with express configuration uses to serve queries, in Redshift Processing Units (RPUs). Valid values are 64–1024, in multiples of 8. To remove a previously set maximum capacity, specify <code>-1</code>. Without a maximum capacity, capacity scales up to 512 RPUs.</p>
        logging_configuration: <p>The logging configuration to update: either the audit logs exported to Amazon CloudWatch, or publishing system tables to Amazon S3 Tables. You can change only one of the two in a single request.</p>

    Raises:
        capo_redshift_serverless.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_redshift_serverless.errors.conflict_exception.ConflictException: <p>The submitted action has conflicts.</p>
        capo_redshift_serverless.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_redshift_serverless.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
        capo_redshift_serverless.errors.validation_exception.ValidationException: <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_redshift_serverless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_redshift_serverless.types.update_express_configuration_request.UpdateExpressConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_redshift_serverless.types.update_express_configuration_response.UpdateExpressConfigurationResponse"
    ]:
        import capo_redshift_serverless._operations.redshift_serverless.update_express_configuration

        (
            output,
            http_response,
        ) = await capo_redshift_serverless._operations.redshift_serverless.update_express_configuration.async_update_express_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateExpressConfiguration")
    )
    input_: capo_redshift_serverless.types.update_express_configuration_request.UpdateExpressConfigurationRequest = {}
    if config_parameters is not None:
        input_["config_parameters"] = config_parameters
    if max_capacity is not None:
        input_["max_capacity"] = max_capacity
    if logging_configuration is not None:
        input_["logging_configuration"] = logging_configuration

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