page_title | subcategory | description |
---|---|---|
airbyte_source_gcs Resource - terraform-provider-airbyte |
SourceGcs Resource |
SourceGcs Resource
resource "airbyte_source_gcs" "my_source_gcs" {
configuration = {
bucket = "...my_bucket..."
credentials = {
service_account_authentication = {
service_account = "...my_service_account..."
}
}
start_date = "2021-01-01T00:00:00.000000Z"
streams = [
{
days_to_sync_if_history_is_full = 6
format = {
excel_format = {
# ...
}
jsonl_format = {
# ...
}
}
globs = [
"..."
]
input_schema = "...my_input_schema..."
name = "...my_name..."
recent_n_files_to_read_for_schema_discovery = 6
schemaless = false
validation_policy = "Wait for Discover"
}
]
}
definition_id = "9b2af220-0694-476e-aec8-441217b74908"
name = "...my_name..."
secret_id = "...my_secret_id..."
workspace_id = "4d3d2617-b7bf-4f1a-9c4e-25756fd184ac"
}
configuration
(Attributes) NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes because it is responsible for converting legacy GCS configs into file based configs using the File-Based CDK. (see below for nested schema)name
(String) Name of the source e.g. dev-mysql-instance.workspace_id
(String)
definition_id
(String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.secret_id
(String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
created_at
(Number)resource_allocation
(Attributes) actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. (see below for nested schema)source_id
(String)source_type
(String)
Required:
bucket
(String) Name of the GCS bucket where the file(s) exist.credentials
(Attributes) Credentials for connecting to the Google Cloud Storage API (see below for nested schema)streams
(Attributes List) Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. (see below for nested schema)
Optional:
start_date
(String) UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated.
Optional:
authenticate_via_google_o_auth
(Attributes) (see below for nested schema)service_account_authentication
(Attributes) (see below for nested schema)
Required:
access_token
(String, Sensitive) Access Tokenclient_id
(String, Sensitive) Client IDclient_secret
(String, Sensitive) Client Secretrefresh_token
(String, Sensitive) Access Token
Required:
service_account
(String, Sensitive) Enter your Google Cloud service account key in JSON format
Required:
format
(Attributes) The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. (see below for nested schema)name
(String) The name of the stream.
Optional:
days_to_sync_if_history_is_full
(Number) When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. Default: 3globs
(List of String) The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here.input_schema
(String) The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files.recent_n_files_to_read_for_schema_discovery
(Number) The number of resent files which will be used to discover the schema for this stream.schemaless
(Boolean) When enabled, syncs will not validate or structure records against the stream's schema. Default: falsevalidation_policy
(String) The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. Default: "Emit Record"; must be one of ["Emit Record", "Skip Record", "Wait for Discover"]
Optional:
avro_format
(Attributes) (see below for nested schema)csv_format
(Attributes) (see below for nested schema)excel_format
(Attributes) (see below for nested schema)jsonl_format
(Attributes) (see below for nested schema)parquet_format
(Attributes) (see below for nested schema)unstructured_document_format
(Attributes) Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. (see below for nested schema)
Optional:
double_as_string
(Boolean) Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. Default: false
Optional:
delimiter
(String) The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. Default: ","double_quote
(Boolean) Whether two quotes in a quoted CSV value denote a single quote in the data. Default: trueencoding
(String) The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. Default: "utf8"escape_char
(String) The character used for escaping special characters. To disallow escaping, leave this field blank.false_values
(List of String) A set of case-sensitive strings that should be interpreted as false values.header_definition
(Attributes) How headers will be defined.User Provided
assumes the CSV does not have a header row and uses the headers provided andAutogenerated
assumes the CSV does not have a header row and the CDK will generate headers using forf{i}
wherei
is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. (see below for nested schema)ignore_errors_on_fields_mismatch
(Boolean) Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. Default: falsenull_values
(List of String) A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field.quote_char
(String) The character used for quoting CSV values. To disallow quoting, make this field blank. Default: """skip_rows_after_header
(Number) The number of rows to skip after the header row. Default: 0skip_rows_before_header
(Number) The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. Default: 0strings_can_be_null
(Boolean) Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. Default: truetrue_values
(List of String) A set of case-sensitive strings that should be interpreted as true values.
Optional:
autogenerated
(Attributes) (see below for nested schema)from_csv
(Attributes) (see below for nested schema)user_provided
(Attributes) (see below for nested schema)
Required:
column_names
(List of String) The column names that will be used while emitting the CSV records
Optional:
decimal_as_float
(Boolean) Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. Default: false
Optional:
processing
(Attributes) Processing configuration (see below for nested schema)skip_unprocessable_files
(Boolean) If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. Default: truestrategy
(String) The strategy used to parse documents.fast
extracts text directly from the document which doesn't work for all files.ocr_only
is more reliable, but slower.hi_res
is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf. Default: "auto"; must be one of ["auto", "fast", "ocr_only", "hi_res"]
Optional:
local
(Attributes) Process files locally, supportingfast
andocr
modes. This is the default option. (see below for nested schema)via_api
(Attributes) Process files via an API, using thehi_res
mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. (see below for nested schema)
Optional:
api_key
(String, Sensitive) The API key to use matching the environment. Default: ""api_url
(String) The URL of the unstructured API to use. Default: "https://api.unstructured.io"parameters
(Attributes List) List of parameters send to the API (see below for nested schema)
Nested Schema for configuration.streams.format.unstructured_document_format.processing.via_api.parameters
Required:
name
(String) The name of the unstructured API parameter to usevalue
(String) The value of the parameter
Read-Only:
default
(Attributes) optional resource requirements to run workers (blank for unbounded allocations) (see below for nested schema)job_specific
(Attributes List) (see below for nested schema)
Read-Only:
cpu_limit
(String)cpu_request
(String)ephemeral_storage_limit
(String)ephemeral_storage_request
(String)memory_limit
(String)memory_request
(String)
Read-Only:
job_type
(String) enum that describes the different types of jobs that the platform runs. must be one of ["get_spec", "check_connection", "discover_schema", "sync", "reset_connection", "connection_updater", "replicate"]resource_requirements
(Attributes) optional resource requirements to run workers (blank for unbounded allocations) (see below for nested schema)
Read-Only:
cpu_limit
(String)cpu_request
(String)ephemeral_storage_limit
(String)ephemeral_storage_request
(String)memory_limit
(String)memory_request
(String)
Import is supported using the following syntax:
terraform import airbyte_source_gcs.my_airbyte_source_gcs ""