Skip to content

Latest commit

 

History

History
139 lines (100 loc) · 5.62 KB

destination_cobra.md

File metadata and controls

139 lines (100 loc) · 5.62 KB
page_title subcategory description
airbyte_destination_cobra Resource - terraform-provider-airbyte
DestinationCobra Resource

airbyte_destination_cobra (Resource)

DestinationCobra Resource

Example Usage

resource "airbyte_destination_cobra" "my_destination_cobra" {
  configuration = {
    client_id                     = "...my_client_id..."
    client_secret                 = "...my_client_secret..."
    is_sandbox                    = true
    print_record_content_on_error = false
    refresh_token                 = "...my_refresh_token..."
    stream_mappings = [
      {
        destination_table = "...my_destination_table..."
        source_stream     = "...my_source_stream..."
        update_mode       = "DELETE"
        upsert_key        = "...my_upsert_key..."
      }
    ]
    stream_order = [
      "..."
    ]
  }
  definition_id = "639ce355-2f32-46fc-b636-542060b9a351"
  name          = "...my_name..."
  workspace_id  = "7743f23f-cbcc-4682-9621-edebf51717cf"
}

Schema

Required

  • configuration (Attributes) (see below for nested schema)
  • name (String) Name of the destination e.g. dev-mysql-instance.
  • workspace_id (String)

Optional

  • definition_id (String) The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. Requires replacement if changed.

Read-Only

  • created_at (Number)
  • destination_id (String)
  • destination_type (String)
  • 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)

Nested Schema for configuration

Required:

  • client_id (String) Enter your Salesforce developer application's Client ID
  • client_secret (String, Sensitive) Enter your Salesforce developer application's Client secret
  • refresh_token (String, Sensitive) Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account.

Optional:

  • is_sandbox (Boolean) Toggle if you're using a Salesforce Sandbox. Default: false
  • print_record_content_on_error (Boolean) If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. Default: false
  • stream_mappings (Attributes List) (see below for nested schema)
  • stream_order (List of String) The order in which the streams should be synced. Streams are synced in the order they are listed. Only those streams will be synced so make sure all the input streams are configured here.

Nested Schema for configuration.stream_mappings

Required:

  • destination_table (String) The name for the table to update the data in the destination.
  • source_stream (String) The name for the input stream.
  • update_mode (String) How to update the data in the destination. must be one of ["INSERT", "UPDATE", "UPSERT", "DELETE"]

Optional:

  • upsert_key (String) Given the operation is an upsert, a field representing an external ID needs to be provided

Nested Schema for resource_allocation

Read-Only:

Nested Schema for resource_allocation.default

Read-Only:

  • cpu_limit (String)
  • cpu_request (String)
  • ephemeral_storage_limit (String)
  • ephemeral_storage_request (String)
  • memory_limit (String)
  • memory_request (String)

Nested Schema for resource_allocation.job_specific

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)

Nested Schema for resource_allocation.job_specific.resource_requirements

Read-Only:

  • cpu_limit (String)
  • cpu_request (String)
  • ephemeral_storage_limit (String)
  • ephemeral_storage_request (String)
  • memory_limit (String)
  • memory_request (String)

Import

Import is supported using the following syntax:

terraform import airbyte_destination_cobra.my_airbyte_destination_cobra ""