Skip to content

ViewDefinition

Source code in docs_src/capo_glue/types/view_definition.py
class ViewDefinition(TypedDict, closed=True):
    is_protected: NotRequired["capo_glue.types.nullable_boolean.NullableBoolean"]
    """<p>You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.</p>"""
    is_managed: NotRequired["capo_glue.types.nullable_boolean.NullableBoolean"]
    """<p>Specifies whether the materialized view is managed by Glue.</p>"""
    definer: NotRequired["capo_glue.types.arn_string.ArnString"]
    """<p>The definer of a view in SQL.</p>"""
    view_version_id: "capo_glue.types.table_version_id.TableVersionId"
    """<p>The ID value that identifies this view's version. For materialized views, the version ID is the Apache Iceberg table's snapshot ID. </p>"""
    view_version_token: NotRequired["capo_glue.types.hash_string.HashString"]
    """<p>The version ID of the Apache Iceberg table.</p>"""
    refresh_seconds: NotRequired["capo_glue.types.refresh_seconds.RefreshSeconds"]
    """<p>Auto refresh interval in seconds for the materialized view. If not specified, the view will not automatically refresh.</p>"""
    last_refresh_type: NotRequired["capo_glue.types.last_refresh_type.LastRefreshType"]
    """<p>Sets the method used for the most recent refresh.</p>"""
    sub_objects: NotRequired["capo_glue.types.view_sub_objects_list.ViewSubObjectsList"]
    """<p>A list of table Amazon Resource Names (ARNs).</p>"""
    sub_object_version_ids: NotRequired[
        "capo_glue.types.view_sub_object_version_ids_list.ViewSubObjectVersionIdsList"
    ]
    """<p>List of the Apache Iceberg table versions referenced by the materialized view.</p>"""
    sub_objects_statistics: NotRequired[
        "capo_glue.types.sub_objects_statistics_list.SubObjectsStatisticsList"
    ]
    """<p>Statistics captured for each sub-object referenced by the materialized view as of its most recent refresh, such as the source type, Glue version ID, and the partition, file, and byte counts. Each entry describes one sub-object, identified by its source type.</p>"""
    representations: NotRequired[
        "capo_glue.types.view_representation_list.ViewRepresentationList"
    ]
    """<p>A list of representations.</p>"""
    spark_pipeline_info: NotRequired[
        "capo_glue.types.spark_pipeline_info_map.SparkPipelineInfoMap"
    ]
    """<p>A map of key-value pairs containing Spark Declarative Pipelines (SDP) information for the materialized view.</p>"""

definer instance-attribute

definer: NotRequired[ArnString]

The definer of a view in SQL.

is_managed instance-attribute

is_managed: NotRequired[NullableBoolean]

Specifies whether the materialized view is managed by Glue.

is_protected instance-attribute

is_protected: NotRequired[NullableBoolean]

You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.

last_refresh_type instance-attribute

last_refresh_type: NotRequired[LastRefreshType]

Sets the method used for the most recent refresh.

refresh_seconds instance-attribute

refresh_seconds: NotRequired[RefreshSeconds]

Auto refresh interval in seconds for the materialized view. If not specified, the view will not automatically refresh.

representations instance-attribute

representations: NotRequired[ViewRepresentationList]

A list of representations.

spark_pipeline_info instance-attribute

spark_pipeline_info: NotRequired[SparkPipelineInfoMap]

A map of key-value pairs containing Spark Declarative Pipelines (SDP) information for the materialized view.

sub_object_version_ids instance-attribute

sub_object_version_ids: NotRequired[ViewSubObjectVersionIdsList]

List of the Apache Iceberg table versions referenced by the materialized view.

sub_objects instance-attribute

sub_objects: NotRequired[ViewSubObjectsList]

A list of table Amazon Resource Names (ARNs).

sub_objects_statistics instance-attribute

sub_objects_statistics: NotRequired[SubObjectsStatisticsList]

Statistics captured for each sub-object referenced by the materialized view as of its most recent refresh, such as the source type, Glue version ID, and the partition, file, and byte counts. Each entry describes one sub-object, identified by its source type.

view_version_id instance-attribute

view_version_id: TableVersionId

The ID value that identifies this view's version. For materialized views, the version ID is the Apache Iceberg table's snapshot ID.

view_version_token instance-attribute

view_version_token: NotRequired[HashString]

The version ID of the Apache Iceberg table.