Skip to content

Latest commit

 

History

History
162 lines (114 loc) · 6.15 KB

File metadata and controls

162 lines (114 loc) · 6.15 KB
page_title subcategory description
airbyte_source_trustpilot Resource - terraform-provider-airbyte
SourceTrustpilot Resource

airbyte_source_trustpilot (Resource)

SourceTrustpilot Resource

Example Usage

resource "airbyte_source_trustpilot" "my_source_trustpilot" {
  configuration = {
    additional_properties = "{ \"see\": \"documentation\" }"
    business_units = [
      "..."
    ]
    credentials = {
      o_auth20 = {
        access_token      = "...my_access_token..."
        client_id         = "...my_client_id..."
        client_secret     = "...my_client_secret..."
        refresh_token     = "...my_refresh_token..."
        token_expiry_date = "2021-01-15T05:49:01.644Z"
      }
    }
    start_date = "%Y-%m-%dT%H:%M:%SZ"
  }
  definition_id = "581c2bce-fff6-4e03-8eb1-8a082e29e93b"
  name          = "...my_name..."
  secret_id     = "...my_secret_id..."
  workspace_id  = "89025dc4-af49-4123-85ae-315d50718f82"
}

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: "d7e23ea6-d741-4314-9209-a33c91a2e945"; 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:

  • business_units (List of String) The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration.
  • credentials (Attributes) (see below for nested schema)
  • start_date (String) For streams with sync. method incremental the start date time to be used

Optional:

  • additional_properties (String) Parsed as JSON.

Nested Schema for configuration.credentials

Optional:

  • api_key (Attributes) The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0. (see below for nested schema)
  • o_auth20 (Attributes) (see below for nested schema)

Nested Schema for configuration.credentials.api_key

Required:

  • client_id (String, Sensitive) The API key of the Trustpilot API application.

Nested Schema for configuration.credentials.o_auth20

Required:

  • access_token (String, Sensitive) Access Token for making authenticated requests.
  • client_id (String, Sensitive) The API key of the Trustpilot API application. (represents the OAuth Client ID)
  • client_secret (String, Sensitive) The Secret of the Trustpilot API application. (represents the OAuth Client Secret)
  • refresh_token (String, Sensitive) The key to refresh the expired access_token.
  • token_expiry_date (String) The date-time when the access token should be refreshed.

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_trustpilot.my_airbyte_source_trustpilot
  id = "..."
}

The terraform import command can be used, for example:

terraform import airbyte_source_trustpilot.my_airbyte_source_trustpilot "..."