View a markdown version of this page

Amazon Data Firehose system tables schema and example queries - Amazon Data Firehose

Amazon Data Firehose system tables schema and example queries

Table schemas

delivery_streams

Full name: "s3tablescatalog/aws-catalog"."firehose"."delivery_streams". Partitioned by bucket(32, id).

The delivery_streams system table contains one row for each Firehose stream in your account and Region.

The following table describes the columns of the delivery_streams table.

Column Type Required Description
id string Yes Unique identifier of the asset.
ingestion_time timestamptz Yes Time this asset record was ingested into the system table, in UTC.
update_time timestamptz No Time the asset was last updated in the AWS Glue Data Catalog, in UTC.
schema_version string Yes Identifier of this system table's column layout. Changes when a column is added, removed, renamed, or retyped.
created_time timestamptz No Time the resource was created, in UTC.
name string No The user-provided business name for the asset.
description string No The user-provided business description for the asset.
resource_name string Yes The resource's technical name.
resource_description string No The resource's technical description.
delivery_stream_status_enum string Yes The current status of the delivery stream. This status reflects the resource lifecycle and does not indicate data delivery health. Values: Creating, CreatingFailed, Active, Deleting, DeleteFailed, Suspended.
destination_type_enum string Yes The type of destination that this delivery stream delivers records to. Values: S3, Redshift, OpenSearch, OpenSearchServerless, Splunk, HttpEndpoint, Snowflake, Iceberg.
encryption_configuration_key_type_enum string No Indicates the type of AWS KMS key that is used for encryption: an AWS owned key or a customer managed key. Values: AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK. Null when server-side encryption is off.
encryption_configuration_status_enum string No This is the server-side encryption (SSE) status for the Firehose stream. Value: ENABLED. Null when server-side encryption is off.
source_type_enum string Yes The type of source that feeds records into this delivery stream. Values: DirectPut, KinesisStream, Msk.
kms_key_id string No The ARN of the customer managed AWS KMS key that encrypts the Firehose stream. Null when the stream uses an AWS owned key or isn't encrypted.
direct_put_source_throughput_hint_in_megabytes int No The throughput hint set for the delivery stream, in MiB per second. It is for information only and does not change the Firehose throughput limit.
kinesis_stream_source_kinesis_stream_arn string No The Amazon Resource Name (ARN) of the source Kinesis data stream.
kinesis_stream_source_role_arn string No The ARN of the role used by the source Kinesis data stream.
msk_source_authentication_connectivity_enum string No The type of connectivity that Firehose uses to connect to the Amazon MSK cluster.
msk_source_authentication_role_arn string No The ARN of the role that Firehose uses to access the Amazon MSK cluster.
msk_source_msk_cluster_arn string No The ARN of the Amazon MSK cluster.
msk_source_read_from_timestamp timestamptz No The start date and time in UTC for the offset position within your MSK topic from where Firehose begins to read.
msk_source_topic_name string No The topic name within the Amazon MSK cluster.
extended_s3_destination_bucket_arn string No The ARN of the S3 bucket.
extended_s3_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
extended_s3_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
extended_s3_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
extended_s3_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
extended_s3_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
extended_s3_destination_compression_format_enum string No The compression format.
extended_s3_destination_conversion_schema_catalog_id string No The ID of the AWS Glue Data Catalog that holds the record format conversion schema.
extended_s3_destination_conversion_schema_database_name string No The name of the AWS Glue database that holds the record format conversion schema.
extended_s3_destination_conversion_schema_region string No The Region of the AWS Glue table that holds the record format conversion schema.
extended_s3_destination_conversion_schema_role_arn string No The role that Firehose uses to access the AWS Glue table that holds the record format conversion schema.
extended_s3_destination_conversion_schema_table_name string No The name of the AWS Glue table that holds the record format conversion schema.
extended_s3_destination_conversion_schema_version_id string No The version of the AWS Glue table schema used for record format conversion.
extended_s3_destination_custom_time_zone string No The time zone you prefer.
extended_s3_destination_data_format_conversion_enabled_enum string No Indicates whether record format conversion is enabled.
extended_s3_destination_dynamic_partitioning_enabled_enum string No Indicates whether dynamic partitioning is enabled.
extended_s3_destination_dynamic_partitioning_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
extended_s3_destination_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
extended_s3_destination_file_extension string No Specify a file extension.
extended_s3_destination_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
extended_s3_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
extended_s3_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
extended_s3_destination_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
extended_s3_destination_s3_backup_bucket_arn string No For the Amazon S3 backup, the ARN of the S3 bucket.
extended_s3_destination_s3_backup_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
extended_s3_destination_s3_backup_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
extended_s3_destination_s3_backup_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
extended_s3_destination_s3_backup_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
extended_s3_destination_s3_backup_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
extended_s3_destination_s3_backup_compression_format_enum string No For the Amazon S3 backup, the compression format.
extended_s3_destination_s3_backup_error_output_prefix string No For the Amazon S3 backup, a prefix that Firehose evaluates and adds to failed records before writing them to S3.
extended_s3_destination_s3_backup_mode_enum string No The Amazon S3 backup mode.
extended_s3_destination_s3_backup_prefix string No For the Amazon S3 backup, the "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
extended_s3_destination_s3_backup_role_arn string No For the Amazon S3 backup, the Amazon Resource Name (ARN) of the Amazon Web Services credentials.
redshift_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
redshift_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
redshift_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
redshift_destination_cluster_jdbc_url string No The database connection string.
redshift_destination_copy_options string No Optional parameters to use with the Amazon Redshift COPY command.
redshift_destination_data_table_columns string No A comma-separated list of column names.
redshift_destination_data_table_name string No The name of the target table.
redshift_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
redshift_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
redshift_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
redshift_destination_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
redshift_destination_s3_backup_configuration_bucket_arn string No The ARN of the S3 bucket.
redshift_destination_s3_backup_configuration_compression_format_enum string No The compression format.
redshift_destination_s3_backup_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
redshift_destination_s3_backup_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
redshift_destination_s3_backup_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
redshift_destination_s3_backup_mode_enum string No The Amazon S3 backup mode.
redshift_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
redshift_destination_s3_configuration_compression_format_enum string No The compression format.
redshift_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
redshift_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
redshift_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
redshift_destination_secrets_manager_configuration_enabled_enum string No Specifies whether you want to use the secrets manager feature.
redshift_destination_secrets_manager_configuration_role_arn string No Specifies the role that Firehose assumes when calling the Secrets Manager API operation.
redshift_destination_secrets_manager_configuration_secret_arn string No The ARN of the secret that stores your credentials.
opensearch_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
opensearch_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
opensearch_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
opensearch_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
opensearch_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
opensearch_destination_cluster_endpoint string No The endpoint to use when communicating with the cluster.
opensearch_destination_document_id_options_default_document_id_format_enum string No When the FIREHOSE_DEFAULT option is chosen, Firehose generates a unique document ID for each record based on a unique internal identifier.
opensearch_destination_domain_arn string No The ARN of the Amazon OpenSearch Service domain.
opensearch_destination_index_name string No The Amazon OpenSearch Service index name.
opensearch_destination_index_rotation_period_enum string No The Amazon OpenSearch Service index rotation period.
opensearch_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
opensearch_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
opensearch_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
opensearch_destination_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
opensearch_destination_s3_backup_mode_enum string No The Amazon S3 backup mode.
opensearch_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
opensearch_destination_s3_configuration_compression_format_enum string No The compression format.
opensearch_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
opensearch_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
opensearch_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
opensearch_destination_type_name string No The Amazon OpenSearch Service type name.
opensearch_destination_vpc_configuration_role_arn string No The ARN of the IAM role that the Firehose stream uses to create endpoints in the destination VPC.
opensearch_destination_vpc_configuration_vpc_id string No The ID of the Amazon OpenSearch Service destination's VPC.
opensearch_serverless_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
opensearch_serverless_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
opensearch_serverless_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
opensearch_serverless_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
opensearch_serverless_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
opensearch_serverless_destination_collection_endpoint string No The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
opensearch_serverless_destination_index_name string No The Serverless offering for Amazon OpenSearch Service index name.
opensearch_serverless_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
opensearch_serverless_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
opensearch_serverless_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
opensearch_serverless_destination_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
opensearch_serverless_destination_s3_backup_mode_enum string No The Amazon S3 backup mode.
opensearch_serverless_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
opensearch_serverless_destination_s3_configuration_compression_format_enum string No The compression format.
opensearch_serverless_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
opensearch_serverless_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
opensearch_serverless_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
opensearch_serverless_destination_vpc_configuration_role_arn string No The ARN of the IAM role that the Firehose stream uses to create endpoints in the destination VPC.
opensearch_serverless_destination_vpc_configuration_vpc_id string No The ID of the Amazon OpenSearch Service destination's VPC.
splunk_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
splunk_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
splunk_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
splunk_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
splunk_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
splunk_destination_hec_acknowledgment_timeout_in_seconds int No The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends it data.
splunk_destination_hec_endpoint string No The HTTP Event Collector (HEC) endpoint to which Firehose sends your data.
splunk_destination_hec_endpoint_type_enum string No This type can be either "Raw" or "Event.".
splunk_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
splunk_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
splunk_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
splunk_destination_s3_backup_mode_enum string No Defines how documents should be delivered to Amazon S3.
splunk_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
splunk_destination_s3_configuration_compression_format_enum string No The compression format.
splunk_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
splunk_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
splunk_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
splunk_destination_secrets_manager_configuration_enabled_enum string No Specifies whether you want to use the secrets manager feature.
splunk_destination_secrets_manager_configuration_role_arn string No Specifies the role that Firehose assumes when calling the Secrets Manager API operation.
splunk_destination_secrets_manager_configuration_secret_arn string No The ARN of the secret that stores your credentials.
http_endpoint_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
http_endpoint_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
http_endpoint_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
http_endpoint_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
http_endpoint_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
http_endpoint_destination_endpoint_name string No The name of the HTTP endpoint selected as the destination.
http_endpoint_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
http_endpoint_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
http_endpoint_destination_request_configuration_content_encoding_enum string No Firehose uses the content encoding to compress the body of a request before sending the request to the destination.
http_endpoint_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
http_endpoint_destination_role_arn string No Firehose uses this IAM role for all the permissions that the delivery stream needs.
http_endpoint_destination_s3_backup_mode_enum string No Describes the S3 bucket backup options for the data that Firehose delivers to the HTTP endpoint destination.
http_endpoint_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
http_endpoint_destination_s3_configuration_compression_format_enum string No The compression format.
http_endpoint_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
http_endpoint_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
http_endpoint_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
http_endpoint_destination_secrets_manager_configuration_enabled_enum string No Specifies whether you want to use the secrets manager feature.
http_endpoint_destination_secrets_manager_configuration_role_arn string No Specifies the role that Firehose assumes when calling the Secrets Manager API operation.
http_endpoint_destination_secrets_manager_configuration_secret_arn string No The ARN of the secret that stores your credentials.
snowflake_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
snowflake_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
snowflake_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
snowflake_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
snowflake_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
snowflake_destination_data_loading_option_enum string No Choose to load JSON keys mapped to table column names or choose to split the JSON payload where content is mapped to a record content column and source metadata is mapped to a record metadata column.
snowflake_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
snowflake_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
snowflake_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
snowflake_destination_role_arn string No The Amazon Resource Name (ARN) of the Snowflake role.
snowflake_destination_s3_backup_mode_enum string No Choose an S3 backup mode.
snowflake_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
snowflake_destination_s3_configuration_compression_format_enum string No The compression format.
snowflake_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
snowflake_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
snowflake_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.
snowflake_destination_secrets_manager_configuration_enabled_enum string No Specifies whether you want to use the secrets manager feature.
snowflake_destination_secrets_manager_configuration_role_arn string No Specifies the role that Firehose assumes when calling the Secrets Manager API operation.
snowflake_destination_secrets_manager_configuration_secret_arn string No The ARN of the secret that stores your credentials.
snowflake_destination_snowflake_role_configuration_enabled_enum string No Indicates whether Firehose uses a Snowflake role.
iceberg_destination_append_only_enum string No Describes whether all incoming data for this delivery stream will be append only (inserts only and not for updates and deletes) for Iceberg delivery.
iceberg_destination_buffering_hints_interval_in_seconds int No Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination.
iceberg_destination_buffering_hints_size_in_megabytes int No Buffer incoming data to the specified size, in MiBs, before delivering it to the destination.
iceberg_destination_catalog_arn string No Specifies the Glue catalog ARN identifier of the destination Apache Iceberg Tables.
iceberg_destination_cloudwatch_logging_options_enabled_enum string No Enables or disables CloudWatch logging.
iceberg_destination_cloudwatch_logging_options_log_group_name string No The CloudWatch group name for logging.
iceberg_destination_cloudwatch_logging_options_log_stream_name string No The CloudWatch log stream name for logging.
iceberg_destination_processing_enabled_enum string No Indicates whether data processing is enabled.
iceberg_destination_processing_lambda_arn string No The ARN of the Lambda function that transforms records, taken from the LambdaArn parameter of the Lambda processor. This field is absent when no Lambda processor is configured.
iceberg_destination_retry_options_duration_in_seconds int No The period of time during which Firehose retries to deliver data to the specified destination.
iceberg_destination_role_arn string No The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling Apache Iceberg Tables.
iceberg_destination_s3_backup_mode_enum string No Describes how Firehose will backup records.
iceberg_destination_s3_configuration_bucket_arn string No The ARN of the S3 bucket.
iceberg_destination_s3_configuration_compression_format_enum string No The compression format.
iceberg_destination_s3_configuration_error_output_prefix string No A prefix that Firehose evaluates and adds to failed records before writing them to S3.
iceberg_destination_s3_configuration_prefix string No The "YYYY/MM/DD/HH" time format prefix is automatically used for delivered Amazon S3 files.
iceberg_destination_s3_configuration_role_arn string No The Amazon Resource Name (ARN) of the Amazon Web Services credentials.

Example queries

Streams by source and destination type

SELECT source_type_enum, destination_type_enum, count(*) AS streams FROM "s3tablescatalog/aws-catalog"."firehose"."delivery_streams" GROUP BY 1, 2;

Streams by encryption setting

SELECT encryption_configuration_status_enum, count(*) AS streams FROM "s3tablescatalog/aws-catalog"."firehose"."delivery_streams" GROUP BY 1;