Skip to content

Latest commit

 

History

History
185 lines (127 loc) · 7.99 KB

File metadata and controls

185 lines (127 loc) · 7.99 KB
page_title subcategory description
airbyte_source_zendesk_sunshine Resource - terraform-provider-airbyte
SourceZendeskSunshine Resource

airbyte_source_zendesk_sunshine (Resource)

SourceZendeskSunshine Resource

Example Usage

resource "airbyte_source_zendesk_sunshine" "my_source_zendesksunshine" {
  configuration = {
    additional_properties = "{ \"see\": \"documentation\" }"
    credentials = {
      o_auth20 = {
        access_token          = "...my_access_token..."
        additional_properties = "{ \"see\": \"documentation\" }"
        client_id             = "...my_client_id..."
        client_secret         = "...my_client_secret..."
        refresh_token         = "...my_refresh_token..."
        token_expiry_date     = "2022-04-04T03:34:15.040Z"
      }
    }
    start_date = "2021-01-01T00:00:00Z"
    subdomain  = "...my_subdomain..."
  }
  definition_id = "43634078-6fe9-43b1-8353-3f4d41ebe272"
  name          = "...my_name..."
  secret_id     = "...my_secret_id..."
  workspace_id  = "07eb1a65-b331-4763-a6be-7aae875b6a88"
}

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: "325e0640-e7b3-4e24-b823-3361008f603f"; 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:

  • start_date (String) The date from which you'd like to replicate data for Zendesk Sunshine API, in the format YYYY-MM-DDT00:00:00Z.
  • subdomain (String) The subdomain for your Zendesk Account.

Optional:

  • additional_properties (String) Parsed as JSON.
  • credentials (Attributes) Zendesk allows three authentication methods. We recommend using OAuth2.0 for Airbyte Cloud users and API token for Airbyte Open Source users. (see below for nested schema)

Nested Schema for configuration.credentials

Optional:

Nested Schema for configuration.credentials.api_token

Required:

  • api_token (String, Sensitive) The value of the API token generated. See the docs for more information.
  • email (String) The user email for your Zendesk account.

Optional:

  • additional_properties (String) Parsed as JSON.

Nested Schema for configuration.credentials.o_auth20

Required:

  • client_id (String, Sensitive) The OAuth client's ID. See Zendesk OAuth grant-type tokens documentation for more information.
  • client_secret (String, Sensitive) The OAuth client secret. See Zendesk OAuth grant-type tokens documentation for more information.
  • refresh_token (String, Sensitive) The refresh token used to obtain new access tokens. Note that Zendesk uses rotating refresh tokens - each refresh will return a new refresh token and invalidate the previous one.

Optional:

  • access_token (String, Sensitive) Access Token for making authenticated requests.
  • additional_properties (String) Parsed as JSON.
  • token_expiry_date (String) The date-time when the access token should be refreshed.

Nested Schema for configuration.credentials.o_auth20_legacy

Required:

  • access_token (String, Sensitive) The OAuth access token. See the Zendesk docs for more information on generating this token.

Optional:

  • additional_properties (String) Parsed as JSON.
  • client_id (String, Sensitive) The OAuth client's ID. See this guide for more information.
  • client_secret (String, Sensitive) The OAuth client secret. See this guide for more information.

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_zendesk_sunshine.my_airbyte_source_zendesk_sunshine
  id = "..."
}

The terraform import command can be used, for example:

terraform import airbyte_source_zendesk_sunshine.my_airbyte_source_zendesk_sunshine "..."