Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 2.07 KB

source_reddit.md

File metadata and controls

77 lines (58 loc) · 2.07 KB
page_title subcategory description
airbyte_source_reddit Resource - terraform-provider-airbyte
SourceReddit Resource

airbyte_source_reddit (Resource)

SourceReddit Resource

Example Usage

resource "airbyte_source_reddit" "my_source_reddit" {
  configuration = {
    api_key         = "...my_api_key..."
    exact           = false
    include_over_18 = false
    limit           = 7.22
    query           = "...my_query..."
    start_date      = "2022-03-13T00:28:12.795Z"
    subreddits = [
      "{ \"see\": \"documentation\" }"
    ]
  }
  definition_id = "4f067f59-71b2-4ee8-9f10-699b0aa1c7e5"
  name          = "...my_name..."
  secret_id     = "...my_secret_id..."
  workspace_id  = "aa39cb1c-7b7a-4dd0-8715-54f9fb9a7b25"
}

Schema

Required

  • configuration (Attributes) (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. 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)
  • source_id (String)
  • source_type (String)

Nested Schema for configuration

Required:

  • api_key (String, Sensitive)
  • start_date (String)

Optional:

  • exact (Boolean) Specifies exact keyword and reduces distractions
  • include_over_18 (Boolean) Includes mature content. Default: false
  • limit (Number) Max records per page limit
  • query (String) Specifies the query for searching in reddits and subreddits. Default: "airbyte"
  • subreddits (List of String) Subreddits for exploration

Import

Import is supported using the following syntax:

terraform import airbyte_source_reddit.my_airbyte_source_reddit ""