global_connection

package
v0.3.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalConnectionDataSource added in v0.3.15

func GlobalConnectionDataSource() datasource.DataSource

func GlobalConnectionResource

func GlobalConnectionResource() resource.Resource

func GlobalConnectionsDataSource added in v0.3.15

func GlobalConnectionsDataSource() datasource.DataSource

Types

type ApacheSparkConfig added in v0.3.13

type ApacheSparkConfig struct {
	Method         types.String `tfsdk:"method"`
	Host           types.String `tfsdk:"host"`
	Port           types.Int64  `tfsdk:"port"`
	Cluster        types.String `tfsdk:"cluster"`
	ConnectTimeout types.Int64  `tfsdk:"connect_timeout"`
	ConnectRetries types.Int64  `tfsdk:"connect_retries"`
	// nullable
	Organization types.String `tfsdk:"organization"`
	User         types.String `tfsdk:"user"`
	Auth         types.String `tfsdk:"auth"`
}

type AthenaConfig added in v0.3.13

type AthenaConfig struct {
	RegionName   types.String `tfsdk:"region_name"`
	Database     types.String `tfsdk:"database"`
	S3StagingDir types.String `tfsdk:"s3_staging_dir"`
	// nullable
	WorkGroup         types.String `tfsdk:"work_group"`
	SparkWorkGroup    types.String `tfsdk:"spark_work_group"`
	S3DataDir         types.String `tfsdk:"s3_data_dir"`
	S3DataNaming      types.String `tfsdk:"s3_data_naming"`
	S3TmpTableDir     types.String `tfsdk:"s3_tmp_table_dir"`
	PollInterval      types.Int64  `tfsdk:"poll_interval"`
	NumRetries        types.Int64  `tfsdk:"num_retries"`
	NumBoto3Retries   types.Int64  `tfsdk:"num_boto3_retries"`
	NumIcebergRetries types.Int64  `tfsdk:"num_iceberg_retries"`
}

type BigQueryConfig

type BigQueryConfig struct {
	GCPProjectID            types.String   `tfsdk:"gcp_project_id"`
	TimeoutSeconds          types.Int64    `tfsdk:"timeout_seconds"`
	PrivateKeyID            types.String   `tfsdk:"private_key_id"`
	PrivateKey              types.String   `tfsdk:"private_key"`
	ClientEmail             types.String   `tfsdk:"client_email"`
	ClientID                types.String   `tfsdk:"client_id"`
	AuthURI                 types.String   `tfsdk:"auth_uri"`
	TokenURI                types.String   `tfsdk:"token_uri"`
	AuthProviderX509CertURL types.String   `tfsdk:"auth_provider_x509_cert_url"`
	ClientX509CertURL       types.String   `tfsdk:"client_x509_cert_url"`
	Retries                 types.Int64    `tfsdk:"retries"`
	Scopes                  []types.String `tfsdk:"scopes"`
	// nullable
	Priority                  types.String `tfsdk:"priority"`
	Location                  types.String `tfsdk:"location"`
	MaximumBytesBilled        types.Int64  `tfsdk:"maximum_bytes_billed"`
	ExecutionProject          types.String `tfsdk:"execution_project"`
	ImpersonateServiceAccount types.String `tfsdk:"impersonate_service_account"`
	JobRetryDeadlineSeconds   types.Int64  `tfsdk:"job_retry_deadline_seconds"`
	JobCreationTimeoutSeconds types.Int64  `tfsdk:"job_creation_timeout_seconds"`
	ApplicationID             types.String `tfsdk:"application_id"`
	ApplicationSecret         types.String `tfsdk:"application_secret"`
	GcsBucket                 types.String `tfsdk:"gcs_bucket"`
	DataprocRegion            types.String `tfsdk:"dataproc_region"`
	DataprocClusterName       types.String `tfsdk:"dataproc_cluster_name"`
}

type ConfigDetails added in v0.3.13

type ConfigDetails struct {
	EmptyConfigName    interface{}
	IsEmptyConfig      func(*GlobalConnectionResourceModel) bool
	GetSSHTunnelConfig func(*GlobalConnectionResourceModel) *SSHTunnelConfig
}

type DatabricksConfig

type DatabricksConfig struct {
	Host     types.String `tfsdk:"host"`
	HTTPPath types.String `tfsdk:"http_path"`
	// nullable
	Catalog      types.String `tfsdk:"catalog"`
	ClientID     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
}

type FabricConfig

type FabricConfig struct {
	Server       types.String `tfsdk:"server"`
	Port         types.Int64  `tfsdk:"port"`
	Database     types.String `tfsdk:"database"`
	Retries      types.Int64  `tfsdk:"retries"`
	LoginTimeout types.Int64  `tfsdk:"login_timeout"`
	QueryTimeout types.Int64  `tfsdk:"query_timeout"`
}

type GlobalConnectionResourceModel

type GlobalConnectionResourceModel struct {
	ID                    types.Int64        `tfsdk:"id"`
	AdapterVersion        types.String       `tfsdk:"adapter_version"`
	Name                  types.String       `tfsdk:"name"`
	IsSshTunnelEnabled    types.Bool         `tfsdk:"is_ssh_tunnel_enabled"` //TODO: check if we can deprecate this
	PrivateLinkEndpointId types.String       `tfsdk:"private_link_endpoint_id"`
	OauthConfigurationId  types.Int64        `tfsdk:"oauth_configuration_id"`
	SnowflakeConfig       *SnowflakeConfig   `tfsdk:"snowflake"`
	BigQueryConfig        *BigQueryConfig    `tfsdk:"bigquery"`
	DatabricksConfig      *DatabricksConfig  `tfsdk:"databricks"`
	RedshiftConfig        *RedshiftConfig    `tfsdk:"redshift"`
	PostgresConfig        *PostgresConfig    `tfsdk:"postgres"`
	FabricConfig          *FabricConfig      `tfsdk:"fabric"`
	SynapseConfig         *SynapseConfig     `tfsdk:"synapse"`
	StarburstConfig       *StarburstConfig   `tfsdk:"starburst"`
	AthenaConfig          *AthenaConfig      `tfsdk:"athena"`
	ApacheSparkConfig     *ApacheSparkConfig `tfsdk:"apache_spark"`
}

type GlobalConnectionSummary added in v0.3.15

type GlobalConnectionSummary struct {
	ID                    types.Int64  `tfsdk:"id"`
	Name                  types.String `tfsdk:"name"`
	CreatedAt             types.String `tfsdk:"created_at"`
	UpdatedAt             types.String `tfsdk:"updated_at"`
	AdapterVersion        types.String `tfsdk:"adapter_version"`
	PrivateLinkEndpointID types.String `tfsdk:"private_link_endpoint_id"`
	IsSSHTunnelEnabled    types.Bool   `tfsdk:"is_ssh_tunnel_enabled"`
	OauthConfigurationID  types.Int64  `tfsdk:"oauth_configuration_id"`
	EnvironmentCount      types.Int64  `tfsdk:"environment__count"`
}

type GlobalConnectionsDatasourceModel added in v0.3.15

type GlobalConnectionsDatasourceModel struct {
	Connections []GlobalConnectionSummary `tfsdk:"connections"`
}

type PostgresConfig

type PostgresConfig struct {
	HostName types.String `tfsdk:"hostname"`
	Port     types.Int64  `tfsdk:"port"`
	// nullable
	DBName    types.String     `tfsdk:"dbname"`
	SSHTunnel *SSHTunnelConfig `tfsdk:"ssh_tunnel"`
}

type RedshiftConfig

type RedshiftConfig struct {
	HostName types.String `tfsdk:"hostname"`
	Port     types.Int64  `tfsdk:"port"`
	// nullable
	DBName    types.String     `tfsdk:"dbname"`
	SSHTunnel *SSHTunnelConfig `tfsdk:"ssh_tunnel"`
}

type SSHTunnelConfig added in v0.3.13

type SSHTunnelConfig struct {
	ID        types.Int64  `tfsdk:"id"`
	Username  types.String `tfsdk:"username"`
	Port      types.Int64  `tfsdk:"port"`
	HostName  types.String `tfsdk:"hostname"`
	PublicKey types.String `tfsdk:"public_key"`
}

type SnowflakeConfig

type SnowflakeConfig struct {
	Account                types.String `tfsdk:"account"`
	Database               types.String `tfsdk:"database"`
	Warehouse              types.String `tfsdk:"warehouse"`
	ClientSessionKeepAlive types.Bool   `tfsdk:"client_session_keep_alive"`
	AllowSso               types.Bool   `tfsdk:"allow_sso"`
	OauthClientID          types.String `tfsdk:"oauth_client_id"`
	OauthClientSecret      types.String `tfsdk:"oauth_client_secret"`
	// nullable
	Role types.String `tfsdk:"role"`
}

type StarburstConfig

type StarburstConfig struct {
	Method types.String `tfsdk:"method"`
	Host   types.String `tfsdk:"host"`
	Port   types.Int64  `tfsdk:"port"`
}

type SynapseConfig

type SynapseConfig struct {
	Host         types.String `tfsdk:"host"`
	Port         types.Int64  `tfsdk:"port"`
	Database     types.String `tfsdk:"database"`
	Retries      types.Int64  `tfsdk:"retries"`
	LoginTimeout types.Int64  `tfsdk:"login_timeout"`
	QueryTimeout types.Int64  `tfsdk:"query_timeout"`
}

Fabric and Synapse are very similar, except Synapse uses Host instead of Server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL