airbyte.SourceDrift
Explore with Pulumi AI
SourceDrift Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as airbyte from "@pulumi/airbyte";
const mySourceDrift = new airbyte.SourceDrift("mySourceDrift", {
    configuration: {
        credentials: {
            accessToken: {
                accessToken: "...my_access_token...",
            },
            oAuth20: {
                accessToken: "...my_access_token...",
                clientId: "...my_client_id...",
                clientSecret: "...my_client_secret...",
                refreshToken: "...my_refresh_token...",
            },
        },
        email: "...my_email...",
    },
    definitionId: "e7bbba77-1c0e-4409-bc9d-3e42115df2be",
    secretId: "...my_secret_id...",
    workspaceId: "0ce318ec-038a-42b0-88ff-2c9a6bed6638",
});
import pulumi
import pulumi_airbyte as airbyte
my_source_drift = airbyte.SourceDrift("mySourceDrift",
    configuration={
        "credentials": {
            "access_token": {
                "access_token": "...my_access_token...",
            },
            "o_auth20": {
                "access_token": "...my_access_token...",
                "client_id": "...my_client_id...",
                "client_secret": "...my_client_secret...",
                "refresh_token": "...my_refresh_token...",
            },
        },
        "email": "...my_email...",
    },
    definition_id="e7bbba77-1c0e-4409-bc9d-3e42115df2be",
    secret_id="...my_secret_id...",
    workspace_id="0ce318ec-038a-42b0-88ff-2c9a6bed6638")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/airbyte/airbyte"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := airbyte.NewSourceDrift(ctx, "mySourceDrift", &airbyte.SourceDriftArgs{
			Configuration: &airbyte.SourceDriftConfigurationArgs{
				Credentials: &airbyte.SourceDriftConfigurationCredentialsArgs{
					AccessToken: &airbyte.SourceDriftConfigurationCredentialsAccessTokenArgs{
						AccessToken: pulumi.String("...my_access_token..."),
					},
					OAuth20: &airbyte.SourceDriftConfigurationCredentialsOAuth20Args{
						AccessToken:  pulumi.String("...my_access_token..."),
						ClientId:     pulumi.String("...my_client_id..."),
						ClientSecret: pulumi.String("...my_client_secret..."),
						RefreshToken: pulumi.String("...my_refresh_token..."),
					},
				},
				Email: pulumi.String("...my_email..."),
			},
			DefinitionId: pulumi.String("e7bbba77-1c0e-4409-bc9d-3e42115df2be"),
			SecretId:     pulumi.String("...my_secret_id..."),
			WorkspaceId:  pulumi.String("0ce318ec-038a-42b0-88ff-2c9a6bed6638"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Airbyte = Pulumi.Airbyte;
return await Deployment.RunAsync(() => 
{
    var mySourceDrift = new Airbyte.SourceDrift("mySourceDrift", new()
    {
        Configuration = new Airbyte.Inputs.SourceDriftConfigurationArgs
        {
            Credentials = new Airbyte.Inputs.SourceDriftConfigurationCredentialsArgs
            {
                AccessToken = new Airbyte.Inputs.SourceDriftConfigurationCredentialsAccessTokenArgs
                {
                    AccessToken = "...my_access_token...",
                },
                OAuth20 = new Airbyte.Inputs.SourceDriftConfigurationCredentialsOAuth20Args
                {
                    AccessToken = "...my_access_token...",
                    ClientId = "...my_client_id...",
                    ClientSecret = "...my_client_secret...",
                    RefreshToken = "...my_refresh_token...",
                },
            },
            Email = "...my_email...",
        },
        DefinitionId = "e7bbba77-1c0e-4409-bc9d-3e42115df2be",
        SecretId = "...my_secret_id...",
        WorkspaceId = "0ce318ec-038a-42b0-88ff-2c9a6bed6638",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.airbyte.SourceDrift;
import com.pulumi.airbyte.SourceDriftArgs;
import com.pulumi.airbyte.inputs.SourceDriftConfigurationArgs;
import com.pulumi.airbyte.inputs.SourceDriftConfigurationCredentialsArgs;
import com.pulumi.airbyte.inputs.SourceDriftConfigurationCredentialsAccessTokenArgs;
import com.pulumi.airbyte.inputs.SourceDriftConfigurationCredentialsOAuth20Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var mySourceDrift = new SourceDrift("mySourceDrift", SourceDriftArgs.builder()
            .configuration(SourceDriftConfigurationArgs.builder()
                .credentials(SourceDriftConfigurationCredentialsArgs.builder()
                    .accessToken(SourceDriftConfigurationCredentialsAccessTokenArgs.builder()
                        .accessToken("...my_access_token...")
                        .build())
                    .oAuth20(SourceDriftConfigurationCredentialsOAuth20Args.builder()
                        .accessToken("...my_access_token...")
                        .clientId("...my_client_id...")
                        .clientSecret("...my_client_secret...")
                        .refreshToken("...my_refresh_token...")
                        .build())
                    .build())
                .email("...my_email...")
                .build())
            .definitionId("e7bbba77-1c0e-4409-bc9d-3e42115df2be")
            .secretId("...my_secret_id...")
            .workspaceId("0ce318ec-038a-42b0-88ff-2c9a6bed6638")
            .build());
    }
}
resources:
  mySourceDrift:
    type: airbyte:SourceDrift
    properties:
      configuration:
        credentials:
          accessToken:
            accessToken: '...my_access_token...'
          oAuth20:
            accessToken: '...my_access_token...'
            clientId: '...my_client_id...'
            clientSecret: '...my_client_secret...'
            refreshToken: '...my_refresh_token...'
        email: '...my_email...'
      definitionId: e7bbba77-1c0e-4409-bc9d-3e42115df2be
      secretId: '...my_secret_id...'
      workspaceId: 0ce318ec-038a-42b0-88ff-2c9a6bed6638
Create SourceDrift Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceDrift(name: string, args: SourceDriftArgs, opts?: CustomResourceOptions);@overload
def SourceDrift(resource_name: str,
                args: SourceDriftArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def SourceDrift(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                configuration: Optional[SourceDriftConfigurationArgs] = None,
                workspace_id: Optional[str] = None,
                definition_id: Optional[str] = None,
                name: Optional[str] = None,
                secret_id: Optional[str] = None)func NewSourceDrift(ctx *Context, name string, args SourceDriftArgs, opts ...ResourceOption) (*SourceDrift, error)public SourceDrift(string name, SourceDriftArgs args, CustomResourceOptions? opts = null)
public SourceDrift(String name, SourceDriftArgs args)
public SourceDrift(String name, SourceDriftArgs args, CustomResourceOptions options)
type: airbyte:SourceDrift
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SourceDriftArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SourceDriftArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SourceDriftArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceDriftArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceDriftArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sourceDriftResource = new Airbyte.SourceDrift("sourceDriftResource", new()
{
    Configuration = new Airbyte.Inputs.SourceDriftConfigurationArgs
    {
        Credentials = new Airbyte.Inputs.SourceDriftConfigurationCredentialsArgs
        {
            AccessToken = new Airbyte.Inputs.SourceDriftConfigurationCredentialsAccessTokenArgs
            {
                AccessToken = "string",
            },
            OAuth20 = new Airbyte.Inputs.SourceDriftConfigurationCredentialsOAuth20Args
            {
                AccessToken = "string",
                ClientId = "string",
                ClientSecret = "string",
                RefreshToken = "string",
            },
        },
        Email = "string",
    },
    WorkspaceId = "string",
    DefinitionId = "string",
    Name = "string",
    SecretId = "string",
});
example, err := airbyte.NewSourceDrift(ctx, "sourceDriftResource", &airbyte.SourceDriftArgs{
Configuration: &.SourceDriftConfigurationArgs{
Credentials: &.SourceDriftConfigurationCredentialsArgs{
AccessToken: &.SourceDriftConfigurationCredentialsAccessTokenArgs{
AccessToken: pulumi.String("string"),
},
OAuth20: &.SourceDriftConfigurationCredentialsOAuth20Args{
AccessToken: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
RefreshToken: pulumi.String("string"),
},
},
Email: pulumi.String("string"),
},
WorkspaceId: pulumi.String("string"),
DefinitionId: pulumi.String("string"),
Name: pulumi.String("string"),
SecretId: pulumi.String("string"),
})
var sourceDriftResource = new SourceDrift("sourceDriftResource", SourceDriftArgs.builder()
    .configuration(SourceDriftConfigurationArgs.builder()
        .credentials(SourceDriftConfigurationCredentialsArgs.builder()
            .accessToken(SourceDriftConfigurationCredentialsAccessTokenArgs.builder()
                .accessToken("string")
                .build())
            .oAuth20(SourceDriftConfigurationCredentialsOAuth20Args.builder()
                .accessToken("string")
                .clientId("string")
                .clientSecret("string")
                .refreshToken("string")
                .build())
            .build())
        .email("string")
        .build())
    .workspaceId("string")
    .definitionId("string")
    .name("string")
    .secretId("string")
    .build());
source_drift_resource = airbyte.SourceDrift("sourceDriftResource",
    configuration={
        "credentials": {
            "access_token": {
                "access_token": "string",
            },
            "o_auth20": {
                "access_token": "string",
                "client_id": "string",
                "client_secret": "string",
                "refresh_token": "string",
            },
        },
        "email": "string",
    },
    workspace_id="string",
    definition_id="string",
    name="string",
    secret_id="string")
const sourceDriftResource = new airbyte.SourceDrift("sourceDriftResource", {
    configuration: {
        credentials: {
            accessToken: {
                accessToken: "string",
            },
            oAuth20: {
                accessToken: "string",
                clientId: "string",
                clientSecret: "string",
                refreshToken: "string",
            },
        },
        email: "string",
    },
    workspaceId: "string",
    definitionId: "string",
    name: "string",
    secretId: "string",
});
type: airbyte:SourceDrift
properties:
    configuration:
        credentials:
            accessToken:
                accessToken: string
            oAuth20:
                accessToken: string
                clientId: string
                clientSecret: string
                refreshToken: string
        email: string
    definitionId: string
    name: string
    secretId: string
    workspaceId: string
SourceDrift Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SourceDrift resource accepts the following input properties:
- Configuration
SourceDrift Configuration 
- WorkspaceId string
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- Configuration
SourceDrift Configuration Args 
- WorkspaceId string
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration
SourceDrift Configuration 
- workspaceId String
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration
SourceDrift Configuration 
- workspaceId string
- definitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name string
- Name of the source e.g. dev-mysql-instance.
- secretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration
SourceDrift Configuration Args 
- workspace_id str
- definition_id str
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name str
- Name of the source e.g. dev-mysql-instance.
- secret_id str
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- configuration Property Map
- workspaceId String
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceDrift resource produces the following output properties:
- CreatedAt double
- Id string
- The provider-assigned unique ID for this managed resource.
- SourceId string
- SourceType string
- CreatedAt float64
- Id string
- The provider-assigned unique ID for this managed resource.
- SourceId string
- SourceType string
- createdAt Double
- id String
- The provider-assigned unique ID for this managed resource.
- sourceId String
- sourceType String
- createdAt number
- id string
- The provider-assigned unique ID for this managed resource.
- sourceId string
- sourceType string
- created_at float
- id str
- The provider-assigned unique ID for this managed resource.
- source_id str
- source_type str
- createdAt Number
- id String
- The provider-assigned unique ID for this managed resource.
- sourceId String
- sourceType String
Look up Existing SourceDrift Resource
Get an existing SourceDrift resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SourceDriftState, opts?: CustomResourceOptions): SourceDrift@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        configuration: Optional[SourceDriftConfigurationArgs] = None,
        created_at: Optional[float] = None,
        definition_id: Optional[str] = None,
        name: Optional[str] = None,
        secret_id: Optional[str] = None,
        source_id: Optional[str] = None,
        source_type: Optional[str] = None,
        workspace_id: Optional[str] = None) -> SourceDriftfunc GetSourceDrift(ctx *Context, name string, id IDInput, state *SourceDriftState, opts ...ResourceOption) (*SourceDrift, error)public static SourceDrift Get(string name, Input<string> id, SourceDriftState? state, CustomResourceOptions? opts = null)public static SourceDrift get(String name, Output<String> id, SourceDriftState state, CustomResourceOptions options)resources:  _:    type: airbyte:SourceDrift    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Configuration
SourceDrift Configuration 
- CreatedAt double
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- SourceId string
- SourceType string
- WorkspaceId string
- Configuration
SourceDrift Configuration Args 
- CreatedAt float64
- DefinitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- Name string
- Name of the source e.g. dev-mysql-instance.
- SecretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- SourceId string
- SourceType string
- WorkspaceId string
- configuration
SourceDrift Configuration 
- createdAt Double
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- sourceId String
- sourceType String
- workspaceId String
- configuration
SourceDrift Configuration 
- createdAt number
- definitionId string
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name string
- Name of the source e.g. dev-mysql-instance.
- secretId string
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- sourceId string
- sourceType string
- workspaceId string
- configuration
SourceDrift Configuration Args 
- created_at float
- definition_id str
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name str
- Name of the source e.g. dev-mysql-instance.
- secret_id str
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- source_id str
- source_type str
- workspace_id str
- configuration Property Map
- createdAt Number
- definitionId String
- The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.
- name String
- Name of the source e.g. dev-mysql-instance.
- secretId String
- Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
- sourceId String
- sourceType String
- workspaceId String
Supporting Types
SourceDriftConfiguration, SourceDriftConfigurationArgs      
- Credentials
SourceDrift Configuration Credentials 
- Email string
- Email used as parameter for contacts stream. Default: "test@test.com"
- Credentials
SourceDrift Configuration Credentials 
- Email string
- Email used as parameter for contacts stream. Default: "test@test.com"
- credentials
SourceDrift Configuration Credentials 
- email String
- Email used as parameter for contacts stream. Default: "test@test.com"
- credentials
SourceDrift Configuration Credentials 
- email string
- Email used as parameter for contacts stream. Default: "test@test.com"
- credentials
SourceDrift Configuration Credentials 
- email str
- Email used as parameter for contacts stream. Default: "test@test.com"
- credentials Property Map
- email String
- Email used as parameter for contacts stream. Default: "test@test.com"
SourceDriftConfigurationCredentials, SourceDriftConfigurationCredentialsArgs        
SourceDriftConfigurationCredentialsAccessToken, SourceDriftConfigurationCredentialsAccessTokenArgs            
- AccessToken string
- Drift Access Token. See the \n\ndocs\n\n for more information on how to generate this key.
- AccessToken string
- Drift Access Token. See the \n\ndocs\n\n for more information on how to generate this key.
- accessToken String
- Drift Access Token. See the \n\ndocs\n\n for more information on how to generate this key.
- accessToken string
- Drift Access Token. See the \n\ndocs\n\n for more information on how to generate this key.
- access_token str
- Drift Access Token. See the \n\ndocs\n\n for more information on how to generate this key.
- accessToken String
- Drift Access Token. See the \n\ndocs\n\n for more information on how to generate this key.
SourceDriftConfigurationCredentialsOAuth20, SourceDriftConfigurationCredentialsOAuth20Args          
- AccessToken string
- Access Token for making authenticated requests.
- ClientId string
- The Client ID of your Drift developer application.
- ClientSecret string
- The Client Secret of your Drift developer application.
- RefreshToken string
- Refresh Token to renew the expired Access Token.
- AccessToken string
- Access Token for making authenticated requests.
- ClientId string
- The Client ID of your Drift developer application.
- ClientSecret string
- The Client Secret of your Drift developer application.
- RefreshToken string
- Refresh Token to renew the expired Access Token.
- accessToken String
- Access Token for making authenticated requests.
- clientId String
- The Client ID of your Drift developer application.
- clientSecret String
- The Client Secret of your Drift developer application.
- refreshToken String
- Refresh Token to renew the expired Access Token.
- accessToken string
- Access Token for making authenticated requests.
- clientId string
- The Client ID of your Drift developer application.
- clientSecret string
- The Client Secret of your Drift developer application.
- refreshToken string
- Refresh Token to renew the expired Access Token.
- access_token str
- Access Token for making authenticated requests.
- client_id str
- The Client ID of your Drift developer application.
- client_secret str
- The Client Secret of your Drift developer application.
- refresh_token str
- Refresh Token to renew the expired Access Token.
- accessToken String
- Access Token for making authenticated requests.
- clientId String
- The Client ID of your Drift developer application.
- clientSecret String
- The Client Secret of your Drift developer application.
- refreshToken String
- Refresh Token to renew the expired Access Token.
Import
$ pulumi import airbyte:index/sourceDrift:SourceDrift my_airbyte_source_drift ""
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- airbyte airbytehq/terraform-provider-airbyte
- License
- Notes
- This Pulumi package is based on the airbyteTerraform Provider.