2026/12/01 - Redshift Serverless - 5 new api methods
Changes Added support for Amazon Redshift Serverless with express configuration. Use GetExpressConfiguration and UpdateExpressConfiguration to manage its settings, and CreateRoleAssociation, DeleteRoleAssociation, and ListRoleAssociations to grant system-defined roles.
Associates an IAM principal with an Amazon Redshift system-defined role on Amazon Redshift Serverless with express configuration. When the principal connects to the regional endpoint, its database user gets the associated system-defined role for monitoring, operational, or administrative tasks. A role association doesn't give access to your data. You must also have separate permissions to obtain credentials and connect to the regional endpoint. To associate multiple principals or role types, submit a separate request for each association. You can associate up to 10 principals with each role type.
See also: AWS API Documentation
Request Syntax
client.create_role_association(
targetArn='string',
roleType='string',
principal={
'iam': {
'arn': 'string'
}
}
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the default endpoint. Only express-default is supported, and it must be in the same Amazon Web Services account as the caller. The ARN format is arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default, for example arn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default.
string
[REQUIRED]
The case-sensitive system-defined role to associate the principal with. Valid values are sys:superuser, sys:operator, sys:dba, sys:secadmin, and sys:monitor. On the express configuration, sys:operator, sys:dba, and sys:superuser give the same permissions.
dict
[REQUIRED]
The IAM role or IAM user to associate with the role type, specified by its ARN. The principal must exist and must be in the same Amazon Web Services account as the caller.
iam (dict) --
An IAM role or IAM user.
arn (string) -- [REQUIRED]
The ARN of the IAM role or IAM user. The principal must be in the same account as the caller.
dict
Response Syntax
{
'targetArn': 'string',
'roleType': 'string',
'principal': {
'iam': {
'arn': 'string',
'resolvedUniqueId': 'string'
}
}
}
Response Structure
(dict) --
targetArn (string) --
The Amazon Resource Name (ARN) of the default endpoint.
roleType (string) --
The system-defined role the principal is associated with.
principal (dict) --
The associated principal, including its resolved unique ID.
iam (dict) --
An IAM role or IAM user.
arn (string) --
The ARN of the IAM role or IAM user.
resolvedUniqueId (string) --
The unique ID that IAM assigned to the principal. Amazon Redshift looks up this ID from the principal ARN when it creates the association. Role IDs begin with AROA, and user IDs begin with AIDA. The association is tied to this ID. A deleted and recreated IAM principal with the same ARN doesn't inherit the previous principal's association. The response omits this field when an idempotent DeleteRoleAssociation request finds no existing association.
Removes the association, if it exists, between an IAM principal and an Amazon Redshift system-defined role on Amazon Redshift Serverless with express configuration. This operation is idempotent. If the association doesn't exist, the request still succeeds.
See also: AWS API Documentation
Request Syntax
client.delete_role_association(
targetArn='string',
roleType='string',
principal={
'iam': {
'arn': 'string'
}
}
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the default endpoint. Only express-default is supported, and it must be in the same Amazon Web Services account as the caller. The ARN format is arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default, for example arn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default.
string
[REQUIRED]
The case-sensitive system-defined role to remove the principal from. Valid values are sys:superuser, sys:operator, sys:dba, sys:secadmin, and sys:monitor.
dict
[REQUIRED]
The IAM role or IAM user to remove from the role type. Specify the ARN used to create the association. The IAM principal doesn't need to exist when you delete the association.
iam (dict) --
An IAM role or IAM user.
arn (string) -- [REQUIRED]
The ARN of the IAM role or IAM user. The principal must be in the same account as the caller.
dict
Response Syntax
{
'targetArn': 'string',
'roleType': 'string',
'principal': {
'iam': {
'arn': 'string',
'resolvedUniqueId': 'string'
}
}
}
Response Structure
(dict) --
targetArn (string) --
The Amazon Resource Name (ARN) of the default endpoint.
roleType (string) --
The system-defined role specified in the request.
principal (dict) --
The principal from the request. If the request removed an existing association, the response includes its resolved unique ID. If no association existed, the response omits the resolved unique ID.
iam (dict) --
An IAM role or IAM user.
arn (string) --
The ARN of the IAM role or IAM user.
resolvedUniqueId (string) --
The unique ID that IAM assigned to the principal. Amazon Redshift looks up this ID from the principal ARN when it creates the association. Role IDs begin with AROA, and user IDs begin with AIDA. The association is tied to this ID. A deleted and recreated IAM principal with the same ARN doesn't inherit the previous principal's association. The response omits this field when an idempotent DeleteRoleAssociation request finds no existing association.
Returns the configuration of Amazon Redshift Serverless with express configuration. The first call in an Amazon Web Services account and Amazon Web Services Region activates Amazon Redshift Serverless with express configuration in that Region. To use this operation, you must have the redshift-serverless:GetExpressConfiguration permission, and the iam:CreateServiceLinkedRole permission if the account doesn't already have the Amazon Redshift service-linked role.
See also: AWS API Documentation
Request Syntax
client.get_express_configuration()
dict
Response Syntax
{
'expressConfiguration': {
'workgroupArn': 'string',
'workgroupName': 'string',
'configParameters': [
{
'parameterKey': 'string',
'parameterValue': 'string'
},
],
'maxCapacity': 123,
'endpoint': {
'address': 'string',
'port': 123,
'vpcEndpoints': [
{
'vpcEndpointId': 'string',
'vpcId': 'string',
'networkInterfaces': [
{
'networkInterfaceId': 'string',
'subnetId': 'string',
'privateIpAddress': 'string',
'availabilityZone': 'string',
'ipv6Address': 'string'
},
]
},
]
},
'dbName': 'string',
'loggingConfiguration': {
'logExports': [
'useractivitylog'|'userlog'|'connectionlog',
],
's3TablePublishStatus': {
's3Tables': [
'string',
],
's3TableNamespace': 'string',
's3TableGranularity': 'workgroup'|'account',
'enabledAll': True|False,
'lastIngestionTimes': {
'string': 'string'
}
}
}
}
}
Response Structure
(dict) --
expressConfiguration (dict) --
The configuration of Amazon Redshift Serverless with express configuration.
workgroupArn (string) --
The Amazon Resource Name (ARN) of the default endpoint, in the form arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default.
workgroupName (string) --
The name of the default endpoint. The value is always express-default.
configParameters (list) --
An array of parameters that are set for Amazon Redshift Serverless with express configuration. The response includes default values for parameters that you haven't set. Query monitoring rule parameters such as max_join_row_count are not returned when they are not set or are set to -1. The exception is max_query_execution_time, which defaults to 14400.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_large_strings_opt_in, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and either wlm_json_configuration or query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such as max_scan_row_count, max_query_execution_time) or use wlm_json_configuration to define query queues with rules, but not both. If you're using wlm_json_configuration, the maximum size of parameterValue is 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
parameterValue (string) --
The value of the parameter to set.
maxCapacity (integer) --
The maximum capacity that Amazon Redshift Serverless with express configuration uses to serve queries, in Redshift Processing Units (RPUs). The response omits this field when no maximum capacity is set. In that case, capacity scales up to 512 RPUs.
endpoint (dict) --
The service-managed regional endpoint that you run queries against, in the form express-default.express.region.redshift-serverless.amazonaws.com. The port is always 5439.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
networkInterfaceId (string) --
The unique identifier of the network interface.
subnetId (string) --
The unique identifier of the subnet.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
availabilityZone (string) --
The availability Zone.
ipv6Address (string) --
The IPv6 address of the network interface within the subnet.
dbName (string) --
The name of the database. The value is always dev.
loggingConfiguration (dict) --
The logging configuration of Amazon Redshift Serverless with express configuration: the audit logs exported to Amazon CloudWatch and the status of publishing system tables to Amazon S3 Tables.
logExports (list) --
The types of logs exported to Amazon CloudWatch for Amazon Redshift Serverless with express configuration. An empty list means no logs are exported.
(string) --
s3TablePublishStatus (dict) --
The current status of publishing system tables to Amazon S3 Tables. This field is present only when publishing to S3 Tables is configured. An UpdateExpressConfiguration response includes it only when the request enables publishing to S3 Tables. To read the status after any other update, call GetExpressConfiguration.
s3Tables (list) --
The system tables currently being published.
(string) --
A system-table view name to publish to S3 Tables (e.g. "sys_query_history"), or the keyword "all" to publish every current and future system table.
s3TableNamespace (string) --
The identifier of the namespace in the S3 table bucket that holds the published tables.
s3TableGranularity (string) --
The scope currently in effect: workgroup (Amazon Redshift Serverless with express configuration) or account (the Amazon Web Services account).
enabledAll (boolean) --
true when every current and future system table is published, rather than an explicit list of tables.
lastIngestionTimes (dict) --
A map of system table name to the time that table last received data, as an ISO-8601 timestamp. A table that hasn't been ingested yet is absent from the map. Use it to judge data freshness.
(string) --
(string) --
Returns the role associations on Amazon Redshift Serverless with express configuration, grouped by role type. The response isn't paginated: it contains at most five role types with up to 10 principals each.
See also: AWS API Documentation
Request Syntax
client.list_role_associations(
targetArn='string',
roleType='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the default endpoint. Only express-default is supported, and it must be in the same Amazon Web Services account as the caller. The ARN format is arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default, for example arn:aws:redshift-serverless:us-east-1:111122223333:workgroup/express/express-default.
string
The case-sensitive system-defined role to list principals for. Valid values are sys:superuser, sys:operator, sys:dba, sys:secadmin, and sys:monitor. When omitted, returns all existing role associations for the target, grouped by role type.
dict
Response Syntax
{
'targetArn': 'string',
'roleAssociations': [
{
'roleType': 'string',
'principals': [
{
'iam': {
'arn': 'string',
'resolvedUniqueId': 'string'
}
},
]
},
]
}
Response Structure
(dict) --
targetArn (string) --
The Amazon Resource Name (ARN) of the default endpoint.
roleAssociations (list) --
The existing role associations, grouped by role type. The list is empty when no associations match the request.
(dict) --
A system-defined role and the principals associated with it.
roleType (string) --
The system-defined role.
principals (list) --
The principals associated with the role type.
(dict) --
An identity principal returned in a role association.
iam (dict) --
An IAM role or IAM user.
arn (string) --
The ARN of the IAM role or IAM user.
resolvedUniqueId (string) --
The unique ID that IAM assigned to the principal. Amazon Redshift looks up this ID from the principal ARN when it creates the association. Role IDs begin with AROA, and user IDs begin with AIDA. The association is tied to this ID. A deleted and recreated IAM principal with the same ARN doesn't inherit the previous principal's association. The response omits this field when an idempotent DeleteRoleAssociation request finds no existing association.
Updates the configuration of Amazon Redshift Serverless with express configuration. Each request can update only one of configParameters, maxCapacity, or loggingConfiguration.
See also: AWS API Documentation
Request Syntax
client.update_express_configuration(
configParameters=[
{
'parameterKey': 'string',
'parameterValue': 'string'
},
],
maxCapacity=123,
loggingConfiguration={
'logExports': [
'useractivitylog'|'userlog'|'connectionlog',
],
'logDestinationType': 's3table'|'cloudwatch',
's3TableAction': 'Enable'|'Disable',
's3TableNames': [
'string',
],
's3TableKmsKeyId': 'string',
's3TableGranularity': 'workgroup'|'account'
}
)
list
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.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_large_strings_opt_in, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and either wlm_json_configuration or query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such as max_scan_row_count, max_query_execution_time) or use wlm_json_configuration to define query queues with rules, but not both. If you're using wlm_json_configuration, the maximum size of parameterValue is 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
parameterValue (string) --
The value of the parameter to set.
integer
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.
dict
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.
logExports (list) --
The types of logs to export to Amazon CloudWatch. Available export types are userlog, connectionlog, and useractivitylog. Specify an empty list to stop exporting logs. Required when logDestinationType is cloudwatch or omitted. Can't be specified when logDestinationType is s3table.
(string) --
logDestinationType (string) --
The destination for the log data. Valid values:
cloudwatch - Exports audit logs to Amazon CloudWatch. This is the default.
s3table - Publishes system tables to Amazon S3 Tables.
s3TableAction (string) --
Whether to enable or disable publishing system tables to Amazon S3 Tables. Valid values are Enable and Disable, and they are case-sensitive. When omitted, defaults to Enable. Valid only when logDestinationType is s3table.
s3TableNames (list) --
The system tables to publish (on enable) or to stop publishing (on disable). Each value is either a system table view name that begins with sys_ or the keyword all, in lowercase. Omitting this field, passing an empty list, or including all each select every current and future system table. Each name must be 1-128 characters, and the list can contain up to 256 names. Valid only when logDestinationType is s3table.
(string) --
A system-table view name to publish to S3 Tables (e.g. "sys_query_history"), or the keyword "all" to publish every current and future system table.
s3TableKmsKeyId (string) --
The identifier of the Key Management Service key used to encrypt the published Amazon S3 Tables data. When omitted, the data is encrypted with SSE-S3 (Amazon S3 managed keys). Valid only when logDestinationType is s3table.
s3TableGranularity (string) --
The scope of the Amazon S3 Tables destination. Valid only when logDestinationType is s3table. Valid values are case-sensitive:
workgroup - Scopes the published tables to Amazon Redshift Serverless with express configuration. This is the default.
account - Scopes the published tables to the Amazon Web Services account.
dict
Response Syntax
{
'expressConfiguration': {
'workgroupArn': 'string',
'workgroupName': 'string',
'configParameters': [
{
'parameterKey': 'string',
'parameterValue': 'string'
},
],
'maxCapacity': 123,
'endpoint': {
'address': 'string',
'port': 123,
'vpcEndpoints': [
{
'vpcEndpointId': 'string',
'vpcId': 'string',
'networkInterfaces': [
{
'networkInterfaceId': 'string',
'subnetId': 'string',
'privateIpAddress': 'string',
'availabilityZone': 'string',
'ipv6Address': 'string'
},
]
},
]
},
'dbName': 'string',
'loggingConfiguration': {
'logExports': [
'useractivitylog'|'userlog'|'connectionlog',
],
's3TablePublishStatus': {
's3Tables': [
'string',
],
's3TableNamespace': 'string',
's3TableGranularity': 'workgroup'|'account',
'enabledAll': True|False,
'lastIngestionTimes': {
'string': 'string'
}
}
}
}
}
Response Structure
(dict) --
expressConfiguration (dict) --
The updated configuration of Amazon Redshift Serverless with express configuration.
workgroupArn (string) --
The Amazon Resource Name (ARN) of the default endpoint, in the form arn:aws-partition:redshift-serverless:region:account-id:workgroup/express/express-default.
workgroupName (string) --
The name of the default endpoint. The value is always express-default.
configParameters (list) --
An array of parameters that are set for Amazon Redshift Serverless with express configuration. The response includes default values for parameters that you haven't set. Query monitoring rule parameters such as max_join_row_count are not returned when they are not set or are set to -1. The exception is max_query_execution_time, which defaults to 14400.
(dict) --
An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
parameterKey (string) --
The key of the parameter. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_large_strings_opt_in, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and either wlm_json_configuration or query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such as max_scan_row_count, max_query_execution_time) or use wlm_json_configuration to define query queues with rules, but not both. If you're using wlm_json_configuration, the maximum size of parameterValue is 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
parameterValue (string) --
The value of the parameter to set.
maxCapacity (integer) --
The maximum capacity that Amazon Redshift Serverless with express configuration uses to serve queries, in Redshift Processing Units (RPUs). The response omits this field when no maximum capacity is set. In that case, capacity scales up to 512 RPUs.
endpoint (dict) --
The service-managed regional endpoint that you run queries against, in the form express-default.express.region.redshift-serverless.amazonaws.com. The port is always 5439.
address (string) --
The DNS address of the VPC endpoint.
port (integer) --
The port that Amazon Redshift Serverless listens on.
vpcEndpoints (list) --
An array of VpcEndpoint objects.
(dict) --
The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.
vpcEndpointId (string) --
The connection endpoint ID for connecting to Amazon Redshift Serverless.
vpcId (string) --
The VPC identifier that the endpoint is associated with.
networkInterfaces (list) --
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) --
Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.
networkInterfaceId (string) --
The unique identifier of the network interface.
subnetId (string) --
The unique identifier of the subnet.
privateIpAddress (string) --
The IPv4 address of the network interface within the subnet.
availabilityZone (string) --
The availability Zone.
ipv6Address (string) --
The IPv6 address of the network interface within the subnet.
dbName (string) --
The name of the database. The value is always dev.
loggingConfiguration (dict) --
The logging configuration of Amazon Redshift Serverless with express configuration: the audit logs exported to Amazon CloudWatch and the status of publishing system tables to Amazon S3 Tables.
logExports (list) --
The types of logs exported to Amazon CloudWatch for Amazon Redshift Serverless with express configuration. An empty list means no logs are exported.
(string) --
s3TablePublishStatus (dict) --
The current status of publishing system tables to Amazon S3 Tables. This field is present only when publishing to S3 Tables is configured. An UpdateExpressConfiguration response includes it only when the request enables publishing to S3 Tables. To read the status after any other update, call GetExpressConfiguration.
s3Tables (list) --
The system tables currently being published.
(string) --
A system-table view name to publish to S3 Tables (e.g. "sys_query_history"), or the keyword "all" to publish every current and future system table.
s3TableNamespace (string) --
The identifier of the namespace in the S3 table bucket that holds the published tables.
s3TableGranularity (string) --
The scope currently in effect: workgroup (Amazon Redshift Serverless with express configuration) or account (the Amazon Web Services account).
enabledAll (boolean) --
true when every current and future system table is published, rather than an explicit list of tables.
lastIngestionTimes (dict) --
A map of system table name to the time that table last received data, as an ISO-8601 timestamp. A table that hasn't been ingested yet is absent from the map. Use it to judge data freshness.
(string) --
(string) --