Skip to content

Latest commit

 

History

History
125 lines (89 loc) · 4.85 KB

File metadata and controls

125 lines (89 loc) · 4.85 KB
page_title subcategory description
airbyte_source_recharge Resource - terraform-provider-airbyte
SourceRecharge Resource

airbyte_source_recharge (Resource)

SourceRecharge Resource

Example Usage

resource "airbyte_source_recharge" "my_source_recharge" {
  configuration = {
    access_token              = "...my_access_token..."
    additional_properties     = "{ \"see\": \"documentation\" }"
    lookback_window_days      = 3
    start_date                = "2021-05-14T00:00:00Z"
    use_orders_deprecated_api = false
  }
  definition_id = "65c9c52e-82c6-4949-b562-e7636f196391"
  name          = "...my_name..."
  secret_id     = "...my_secret_id..."
  workspace_id  = "bcd1634a-8c70-4b63-a447-c6aa3630dfac"
}

Schema

Required

  • configuration (Attributes) The values required to configure the source. The schema for this must match the schema return by source_definition_specifications/get for the source. (see below for nested schema)
  • name (String) Name of the source e.g. dev-mysql-instance.
  • workspace_id (String)

Optional

  • definition_id (String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Default: "45d2e135-2ede-49e1-939f-3e3ec357a65e"; Requires replacement if changed.
  • secret_id (String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.

Read-Only

  • 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)

Nested Schema for configuration

Required:

  • access_token (String, Sensitive) The value of the Access Token generated. See the docs for more information.
  • start_date (String) The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated.

Optional:

  • additional_properties (String) Parsed as JSON.
  • lookback_window_days (Number) Specifies how many days of historical data should be reloaded each time the recharge connector runs. Default: 0
  • use_orders_deprecated_api (Boolean) Define whether or not the Orders stream should use the deprecated 2021-01 API version, or use 2021-11, otherwise. Default: true

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.
  • 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:

In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

import {
  to = airbyte_source_recharge.my_airbyte_source_recharge
  id = "..."
}

The terraform import command can be used, for example:

terraform import airbyte_source_recharge.my_airbyte_source_recharge "..."