

# LoggingConfiguration

Specifies a change to the logging configuration of Amazon Redshift Serverless with express configuration. `logDestinationType` selects the destination. When it is `s3table`, the S3 Tables members apply. Omit `logExports` in this case. When it is `cloudwatch` or omitted, `logExports` is required. Omit the S3 Tables members in this case.

## Contents
<a name="API_LoggingConfiguration_Contents"></a>

 ** logDestinationType **   <a name="redshiftserverless-Type-LoggingConfiguration-logDestinationType"></a>
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.
Type: String  
Valid Values: `s3table | cloudwatch`   
Required: No

 ** logExports **   <a name="redshiftserverless-Type-LoggingConfiguration-logExports"></a>
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`.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 16 items.  
Valid Values: `useractivitylog | userlog | connectionlog`   
Required: No

 ** s3TableAction **   <a name="redshiftserverless-Type-LoggingConfiguration-s3TableAction"></a>
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`.  
Type: String  
Valid Values: `Enable | Disable`   
Required: No

 ** s3TableGranularity **   <a name="redshiftserverless-Type-LoggingConfiguration-s3TableGranularity"></a>
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 AWS account.
Type: String  
Valid Values: `workgroup | account`   
Required: No

 ** s3TableKmsKeyId **   <a name="redshiftserverless-Type-LoggingConfiguration-s3TableKmsKeyId"></a>
The identifier of the AWS 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`.  
Type: String  
Required: No

 ** s3TableNames **   <a name="redshiftserverless-Type-LoggingConfiguration-s3TableNames"></a>
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`.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 256 items.  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `(all|sys_[a-z0-9_]+)`   
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/redshift-serverless-2021-04-21/LoggingConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/redshift-serverless-2021-04-21/LoggingConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/redshift-serverless-2021-04-21/LoggingConfiguration) 