Skip to content

LoggingConfiguration

Source code in docs_src/capo_redshift_serverless/types/logging_configuration.py
class LoggingConfiguration(TypedDict, closed=True):
    log_exports: NotRequired[
        "capo_redshift_serverless.types.log_export_list.LogExportList"
    ]
    """<p>The types of logs to export to Amazon CloudWatch. Available export types are <code>userlog</code>, <code>connectionlog</code>, and <code>useractivitylog</code>. Specify an empty list to stop exporting logs. Required when <code>logDestinationType</code> is <code>cloudwatch</code> or omitted. Can't be specified when <code>logDestinationType</code> is <code>s3table</code>.</p>"""
    log_destination_type: NotRequired[
        "capo_redshift_serverless.types.log_destination_type.LogDestinationType"
    ]
    """<p>The destination for the log data. Valid values:</p> <ul> <li> <p> <code>cloudwatch</code> - Exports audit logs to Amazon CloudWatch. This is the default.</p> </li> <li> <p> <code>s3table</code> - Publishes system tables to Amazon S3 Tables.</p> </li> </ul>"""
    s3_table_action: NotRequired[
        "capo_redshift_serverless.types.s3_table_action.S3TableAction"
    ]
    """<p>Whether to enable or disable publishing system tables to Amazon S3 Tables. Valid values are <code>Enable</code> and <code>Disable</code>, and they are case-sensitive. When omitted, defaults to <code>Enable</code>. Valid only when <code>logDestinationType</code> is <code>s3table</code>.</p>"""
    s3_table_names: NotRequired[
        "capo_redshift_serverless.types.s3_table_name_list.S3TableNameList"
    ]
    """<p>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 <code>sys_</code> or the keyword <code>all</code>, in lowercase. Omitting this field, passing an empty list, or including <code>all</code> 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 <code>logDestinationType</code> is <code>s3table</code>.</p>"""
    s3_table_kms_key_id: NotRequired[
        "capo_redshift_serverless.types.kms_key_id.KmsKeyId"
    ]
    """<p>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 <code>logDestinationType</code> is <code>s3table</code>.</p>"""
    s3_table_granularity: NotRequired[
        "capo_redshift_serverless.types.express_s3_table_granularity.ExpressS3TableGranularity"
    ]
    """<p>The scope of the Amazon S3 Tables destination. Valid only when <code>logDestinationType</code> is <code>s3table</code>. Valid values are case-sensitive:</p> <ul> <li> <p> <code>workgroup</code> - Scopes the published tables to Amazon Redshift Serverless with express configuration. This is the default.</p> </li> <li> <p> <code>account</code> - Scopes the published tables to the Amazon Web Services account.</p> </li> </ul>"""

log_destination_type instance-attribute

log_destination_type: NotRequired[LogDestinationType]

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.

log_exports instance-attribute

log_exports: NotRequired[LogExportList]

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.

s3_table_action instance-attribute

s3_table_action: NotRequired[S3TableAction]

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.

s3_table_granularity instance-attribute

s3_table_granularity: NotRequired[ExpressS3TableGranularity]

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.

s3_table_kms_key_id instance-attribute

s3_table_kms_key_id: NotRequired[KmsKeyId]

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.

s3_table_names instance-attribute

s3_table_names: NotRequired[S3TableNameList]

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.