

# UpdateExpressConfiguration

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

## Request Syntax
<a name="API_UpdateExpressConfiguration_RequestSyntax"></a>

```
{
   "configParameters": [ 
      { 
         "parameterKey": "{{string}}",
         "parameterValue": "{{string}}"
      }
   ],
   "loggingConfiguration": { 
      "logDestinationType": "{{string}}",
      "logExports": [ "{{string}}" ],
      "s3TableAction": "{{string}}",
      "s3TableGranularity": "{{string}}",
      "s3TableKmsKeyId": "{{string}}",
      "s3TableNames": [ "{{string}}" ]
   },
   "maxCapacity": {{number}}
}
```

## Request Parameters
<a name="API_UpdateExpressConfiguration_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [configParameters](#API_UpdateExpressConfiguration_RequestSyntax) **   <a name="redshiftserverless-UpdateExpressConfiguration-request-configParameters"></a>
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.  
Type: Array of [ConfigParameter](API_ConfigParameter.md) objects  
Required: No

 ** [loggingConfiguration](#API_UpdateExpressConfiguration_RequestSyntax) **   <a name="redshiftserverless-UpdateExpressConfiguration-request-loggingConfiguration"></a>
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.  
Type: [LoggingConfiguration](API_LoggingConfiguration.md) object  
Required: No

 ** [maxCapacity](#API_UpdateExpressConfiguration_RequestSyntax) **   <a name="redshiftserverless-UpdateExpressConfiguration-request-maxCapacity"></a>
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.  
Type: Integer  
Required: No

## Response Syntax
<a name="API_UpdateExpressConfiguration_ResponseSyntax"></a>

```
{
   "expressConfiguration": { 
      "configParameters": [ 
         { 
            "parameterKey": "string",
            "parameterValue": "string"
         }
      ],
      "dbName": "string",
      "endpoint": { 
         "address": "string",
         "port": number,
         "vpcEndpoints": [ 
            { 
               "networkInterfaces": [ 
                  { 
                     "availabilityZone": "string",
                     "ipv6Address": "string",
                     "networkInterfaceId": "string",
                     "privateIpAddress": "string",
                     "subnetId": "string"
                  }
               ],
               "vpcEndpointId": "string",
               "vpcId": "string"
            }
         ]
      },
      "loggingConfiguration": { 
         "logExports": [ "string" ],
         "s3TablePublishStatus": { 
            "enabledAll": boolean,
            "lastIngestionTimes": { 
               "string" : "string" 
            },
            "s3TableGranularity": "string",
            "s3TableNamespace": "string",
            "s3Tables": [ "string" ]
         }
      },
      "maxCapacity": number,
      "workgroupArn": "string",
      "workgroupName": "string"
   }
}
```

## Response Elements
<a name="API_UpdateExpressConfiguration_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [expressConfiguration](#API_UpdateExpressConfiguration_ResponseSyntax) **   <a name="redshiftserverless-UpdateExpressConfiguration-response-expressConfiguration"></a>
The updated configuration of Amazon Redshift Serverless with express configuration.  
Type: [ExpressConfiguration](API_ExpressConfiguration.md) object

## Errors
<a name="API_UpdateExpressConfiguration_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You do not have sufficient access to perform this action.  
HTTP Status Code: 400

 ** ConflictException **   
The submitted action has conflicts.  
HTTP Status Code: 400

 ** InternalServerException **   
The request processing has failed because of an unknown error, exception or failure.  
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The resource could not be found.    
 ** resourceName **   
The name of the resource that could not be found.
HTTP Status Code: 400

 ** ValidationException **   
The input failed to satisfy the constraints specified by an AWS service.  
HTTP Status Code: 400

## See Also
<a name="API_UpdateExpressConfiguration_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/redshift-serverless-2021-04-21/UpdateExpressConfiguration) 