Skip to content

ImportDataRule

Source code in docs_src/capo_s3files/types/import_data_rule.py
class ImportDataRule(TypedDict, closed=True):
    prefix: "str"
    """<p>The S3 key prefix that scopes this import rule. Only objects with keys beginning with this prefix are subject to the rule.</p>"""
    trigger: "capo_s3files.types.import_trigger.ImportTrigger"
    """<p>The event that triggers data import. Valid values are <code>ON_DIRECTORY_FIRST_ACCESS</code> (import when a directory is first accessed) and <code>ON_FILE_ACCESS</code> (import when a file is accessed).</p>"""
    size_less_than: "int"
    """<p>The upper size limit in bytes for this import rule. Only objects with a size strictly less than this value will have data imported into the file system.</p>"""

prefix instance-attribute

prefix: str

The S3 key prefix that scopes this import rule. Only objects with keys beginning with this prefix are subject to the rule.

size_less_than instance-attribute

size_less_than: int

The upper size limit in bytes for this import rule. Only objects with a size strictly less than this value will have data imported into the file system.

trigger instance-attribute

trigger: ImportTrigger

The event that triggers data import. Valid values are ON_DIRECTORY_FIRST_ACCESS (import when a directory is first accessed) and ON_FILE_ACCESS (import when a file is accessed).