diff --git a/provider/cmd/pulumi-resource-dbtcloud/bridge-metadata.json b/provider/cmd/pulumi-resource-dbtcloud/bridge-metadata.json index 4e93e8f..58aa261 100644 --- a/provider/cmd/pulumi-resource-dbtcloud/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-dbtcloud/bridge-metadata.json @@ -245,6 +245,26 @@ "dbtcloud_extended_attributes": { "current": "dbtcloud:index/getExtendedAttributes:getExtendedAttributes" }, + "dbtcloud_global_connection": { + "current": "dbtcloud:index/getGlobalConnection:getGlobalConnection", + "fields": { + "bigquery": { + "fields": { + "scopes": { + "maxItemsOne": false + } + } + } + } + }, + "dbtcloud_global_connections": { + "current": "dbtcloud:index/getGlobalConnections:getGlobalConnections", + "fields": { + "connections": { + "maxItemsOne": false + } + } + }, "dbtcloud_group": { "current": "dbtcloud:index/getGroup:getGroup", "fields": { @@ -338,6 +358,14 @@ "dbtcloud_project": { "current": "dbtcloud:index/getProject:getProject" }, + "dbtcloud_projects": { + "current": "dbtcloud:index/getProjects:getProjects", + "fields": { + "projects": { + "maxItemsOne": false + } + } + }, "dbtcloud_repository": { "current": "dbtcloud:index/getRepository:getRepository" }, @@ -434,6 +462,8 @@ "dbtcloud:index/getEnvironmentVariable:getEnvironmentVariable": 0, "dbtcloud:index/getEnvironments:getEnvironments": 1, "dbtcloud:index/getExtendedAttributes:getExtendedAttributes": 0, + "dbtcloud:index/getGlobalConnection:getGlobalConnection": 1, + "dbtcloud:index/getGlobalConnections:getGlobalConnections": 1, "dbtcloud:index/getGroup:getGroup": 1, "dbtcloud:index/getGroupUsers:getGroupUsers": 0, "dbtcloud:index/getJob:getJob": 0, @@ -442,6 +472,7 @@ "dbtcloud:index/getPostgresCredential:getPostgresCredential": 0, "dbtcloud:index/getPrivatelinkEndpoint:getPrivatelinkEndpoint": 0, "dbtcloud:index/getProject:getProject": 0, + "dbtcloud:index/getProjects:getProjects": 1, "dbtcloud:index/getRepository:getRepository": 0, "dbtcloud:index/getServiceToken:getServiceToken": 1, "dbtcloud:index/getSnowflakeCredential:getSnowflakeCredential": 0, diff --git a/provider/cmd/pulumi-resource-dbtcloud/schema.json b/provider/cmd/pulumi-resource-dbtcloud/schema.json index 6ae3e33..283a503 100644 --- a/provider/cmd/pulumi-resource-dbtcloud/schema.json +++ b/provider/cmd/pulumi-resource-dbtcloud/schema.json @@ -893,6 +893,668 @@ } } }, + "dbtcloud:index/getGlobalConnectionApacheSpark:getGlobalConnectionApacheSpark": { + "properties": { + "auth": { + "type": "string", + "description": "Auth\n" + }, + "cluster": { + "type": "string", + "description": "Spark cluster for the connection\n" + }, + "connectRetries": { + "type": "integer", + "description": "Connection retries. Default=0\n" + }, + "connectTimeout": { + "type": "integer", + "description": "Connection time out in seconds. Default=10\n" + }, + "host": { + "type": "string", + "description": "Hostname of the connection\n" + }, + "method": { + "type": "string", + "description": "Authentication method for the connection (http or thrift).\n" + }, + "organization": { + "type": "string", + "description": "Organization ID\n" + }, + "port": { + "type": "integer", + "description": "Port for the connection. Default=443\n" + }, + "user": { + "type": "string", + "description": "User\n" + } + }, + "type": "object", + "required": [ + "auth", + "cluster", + "connectRetries", + "connectTimeout", + "host", + "method", + "organization", + "port", + "user" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionAthena:getGlobalConnectionAthena": { + "properties": { + "database": { + "type": "string", + "description": "Specify the database (data catalog) to build models into (lowercase only).\n" + }, + "numBoto3Retries": { + "type": "integer", + "description": "Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables).\n" + }, + "numIcebergRetries": { + "type": "integer", + "description": "Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR.\n" + }, + "numRetries": { + "type": "integer", + "description": "Number of times to retry a failing query.\n" + }, + "pollInterval": { + "type": "integer", + "description": "Interval in seconds to use for polling the status of query results in Athena.\n" + }, + "regionName": { + "type": "string", + "description": "AWS region of your Athena instance.\n" + }, + "s3DataDir": { + "type": "string", + "description": "Prefix for storing tables, if different from the connection's S3 staging directory.\n" + }, + "s3DataNaming": { + "type": "string", + "description": "How to generate table paths in the S3 data directory.\n" + }, + "s3StagingDir": { + "type": "string", + "description": "S3 location to store Athena query results and metadata.\n" + }, + "s3TmpTableDir": { + "type": "string", + "description": "Prefix for storing temporary tables, if different from the connection's S3 data directory.\n" + }, + "sparkWorkGroup": { + "type": "string", + "description": "Identifier of Athena Spark workgroup for running Python models.\n" + }, + "workGroup": { + "type": "string", + "description": "Identifier of Athena workgroup.\n" + } + }, + "type": "object", + "required": [ + "database", + "numBoto3Retries", + "numIcebergRetries", + "numRetries", + "pollInterval", + "regionName", + "s3DataDir", + "s3DataNaming", + "s3StagingDir", + "s3TmpTableDir", + "sparkWorkGroup", + "workGroup" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionBigquery:getGlobalConnectionBigquery": { + "properties": { + "applicationId": { + "type": "string", + "description": "OAuth Client ID\n", + "secret": true + }, + "applicationSecret": { + "type": "string", + "description": "OAuth Client Secret\n", + "secret": true + }, + "authProviderX509CertUrl": { + "type": "string", + "description": "Auth Provider X509 Cert URL for the Service Account\n" + }, + "authUri": { + "type": "string", + "description": "Auth URI for the Service Account\n" + }, + "clientEmail": { + "type": "string", + "description": "Service Account email\n" + }, + "clientId": { + "type": "string", + "description": "Client ID of the Service Account\n" + }, + "clientX509CertUrl": { + "type": "string", + "description": "Client X509 Cert URL for the Service Account\n" + }, + "dataprocClusterName": { + "type": "string", + "description": "Dataproc cluster name for PySpark workloads\n" + }, + "dataprocRegion": { + "type": "string", + "description": "Google Cloud region for PySpark workloads on Dataproc\n" + }, + "executionProject": { + "type": "string", + "description": "Project to bill for query execution\n" + }, + "gcpProjectId": { + "type": "string", + "description": "The GCP project ID to use for the connection\n" + }, + "gcsBucket": { + "type": "string", + "description": "URI for a Google Cloud Storage bucket to host Python code executed via Datapro\n" + }, + "impersonateServiceAccount": { + "type": "string", + "description": "Service Account to impersonate when running queries\n" + }, + "jobCreationTimeoutSeconds": { + "type": "integer", + "description": "Maximum timeout for the job creation step\n" + }, + "jobRetryDeadlineSeconds": { + "type": "integer", + "description": "Total number of seconds to wait while retrying the same query\n" + }, + "location": { + "type": "string", + "description": "Location to create new Datasets in\n" + }, + "maximumBytesBilled": { + "type": "integer", + "description": "Max number of bytes that can be billed for a given BigQuery query\n" + }, + "priority": { + "type": "string", + "description": "The priority with which to execute BigQuery queries (batch or interactive)\n" + }, + "privateKey": { + "type": "string", + "description": "Private Key for the Service Account\n", + "secret": true + }, + "privateKeyId": { + "type": "string", + "description": "Private Key ID for the Service Account\n" + }, + "retries": { + "type": "integer", + "description": "Number of retries for queries\n" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "OAuth scopes for the BigQuery connection\n" + }, + "timeoutSeconds": { + "type": "integer", + "description": "Timeout in seconds for queries\n" + }, + "tokenUri": { + "type": "string", + "description": "Token URI for the Service Account\n" + } + }, + "type": "object", + "required": [ + "applicationId", + "applicationSecret", + "authProviderX509CertUrl", + "authUri", + "clientEmail", + "clientId", + "clientX509CertUrl", + "dataprocClusterName", + "dataprocRegion", + "executionProject", + "gcpProjectId", + "gcsBucket", + "impersonateServiceAccount", + "jobCreationTimeoutSeconds", + "jobRetryDeadlineSeconds", + "location", + "maximumBytesBilled", + "priority", + "privateKey", + "privateKeyId", + "retries", + "scopes", + "timeoutSeconds", + "tokenUri" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionDatabricks:getGlobalConnectionDatabricks": { + "properties": { + "catalog": { + "type": "string", + "description": "Catalog name if Unity Catalog is enabled in your Databricks workspace.\n" + }, + "clientId": { + "type": "string", + "description": "Required to enable Databricks OAuth authentication for IDE developers.\n" + }, + "clientSecret": { + "type": "string", + "description": "Required to enable Databricks OAuth authentication for IDE developers.\n" + }, + "host": { + "type": "string", + "description": "The hostname of the Databricks cluster or SQL warehouse.\n" + }, + "httpPath": { + "type": "string", + "description": "The HTTP path of the Databricks cluster or SQL warehouse.\n" + } + }, + "type": "object", + "required": [ + "catalog", + "clientId", + "clientSecret", + "host", + "httpPath" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionFabric:getGlobalConnectionFabric": { + "properties": { + "database": { + "type": "string", + "description": "The database to connect to for this connection.\n" + }, + "loginTimeout": { + "type": "integer", + "description": "The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings.\n" + }, + "port": { + "type": "integer", + "description": "The port to connect to for this connection. Default=1433\n" + }, + "queryTimeout": { + "type": "integer", + "description": "The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings.\n" + }, + "retries": { + "type": "integer", + "description": "The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues.\n" + }, + "server": { + "type": "string", + "description": "The server hostname.\n" + } + }, + "type": "object", + "required": [ + "database", + "loginTimeout", + "port", + "queryTimeout", + "retries", + "server" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionPostgres:getGlobalConnectionPostgres": { + "properties": { + "dbname": { + "type": "string", + "description": "The database name for this connection.\n" + }, + "hostname": { + "type": "string", + "description": "The hostname of the database.\n" + }, + "port": { + "type": "integer", + "description": "The port to connect to for this connection. Default=5432\n" + }, + "sshTunnel": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionPostgresSshTunnel:getGlobalConnectionPostgresSshTunnel", + "description": "PostgreSQL SSH Tunnel configuration\n" + } + }, + "type": "object", + "required": [ + "dbname", + "hostname", + "port", + "sshTunnel" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionPostgresSshTunnel:getGlobalConnectionPostgresSshTunnel": { + "properties": { + "hostname": { + "type": "string", + "description": "The hostname for the SSH tunnel.\n" + }, + "id": { + "type": "integer", + "description": "The ID of the SSH tunnel connection.\n" + }, + "port": { + "type": "integer", + "description": "The HTTP port for the SSH tunnel.\n" + }, + "publicKey": { + "type": "string", + "description": "The SSH public key generated to allow connecting via SSH tunnel.\n" + }, + "username": { + "type": "string", + "description": "The username to use for the SSH tunnel.\n" + } + }, + "type": "object", + "required": [ + "hostname", + "id", + "port", + "publicKey", + "username" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionRedshift:getGlobalConnectionRedshift": { + "properties": { + "dbname": { + "type": "string", + "description": "The database name for this connection.\n" + }, + "hostname": { + "type": "string", + "description": "The hostname of the data warehouse.\n" + }, + "port": { + "type": "integer", + "description": "The port to connect to for this connection. Default=5432\n" + }, + "sshTunnel": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionRedshiftSshTunnel:getGlobalConnectionRedshiftSshTunnel", + "description": "Redshift SSH Tunnel configuration\n" + } + }, + "type": "object", + "required": [ + "dbname", + "hostname", + "port", + "sshTunnel" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionRedshiftSshTunnel:getGlobalConnectionRedshiftSshTunnel": { + "properties": { + "hostname": { + "type": "string", + "description": "The hostname for the SSH tunnel.\n" + }, + "id": { + "type": "integer", + "description": "The ID of the SSH tunnel connection.\n" + }, + "port": { + "type": "integer", + "description": "The HTTP port for the SSH tunnel.\n" + }, + "publicKey": { + "type": "string", + "description": "The SSH public key generated to allow connecting via SSH tunnel.\n" + }, + "username": { + "type": "string", + "description": "The username to use for the SSH tunnel.\n" + } + }, + "type": "object", + "required": [ + "hostname", + "id", + "port", + "publicKey", + "username" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionSnowflake:getGlobalConnectionSnowflake": { + "properties": { + "account": { + "type": "string", + "description": "The Snowflake account name\n" + }, + "allowSso": { + "type": "boolean", + "description": "Whether to allow Snowflake OAuth for the connection. If true, the `oauth_client_id` and `oauth_client_secret` fields must be set\n" + }, + "clientSessionKeepAlive": { + "type": "boolean", + "description": "If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (\u003e 4 hours)\n" + }, + "database": { + "type": "string", + "description": "The default database for the connection\n" + }, + "oauthClientId": { + "type": "string", + "description": "OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake\n", + "secret": true + }, + "oauthClientSecret": { + "type": "string", + "description": "OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake\n", + "secret": true + }, + "role": { + "type": "string", + "description": "The Snowflake role to use when running queries on the connection\n" + }, + "warehouse": { + "type": "string", + "description": "The default Snowflake Warehouse to use for the connection\n" + } + }, + "type": "object", + "required": [ + "account", + "allowSso", + "clientSessionKeepAlive", + "database", + "oauthClientId", + "oauthClientSecret", + "role", + "warehouse" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionStarburst:getGlobalConnectionStarburst": { + "properties": { + "host": { + "type": "string", + "description": "The hostname of the account to connect to.\n" + }, + "method": { + "type": "string", + "description": "The authentication method. Only LDAP for now.\n" + }, + "port": { + "type": "integer", + "description": "The port to connect to for this connection. Default=443\n" + } + }, + "type": "object", + "required": [ + "host", + "method", + "port" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionSynapse:getGlobalConnectionSynapse": { + "properties": { + "database": { + "type": "string", + "description": "The database to connect to for this connection.\n" + }, + "host": { + "type": "string", + "description": "The server hostname.\n" + }, + "loginTimeout": { + "type": "integer", + "description": "The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings.\n" + }, + "port": { + "type": "integer", + "description": "The port to connect to for this connection. Default=1433\n" + }, + "queryTimeout": { + "type": "integer", + "description": "The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings.\n" + }, + "retries": { + "type": "integer", + "description": "The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues.\n" + } + }, + "type": "object", + "required": [ + "database", + "host", + "loginTimeout", + "port", + "queryTimeout", + "retries" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getGlobalConnectionsConnection:getGlobalConnectionsConnection": { + "properties": { + "adapterVersion": { + "type": "string", + "description": "Type of adapter used for the connection\n" + }, + "createdAt": { + "type": "string", + "description": "When the connection was created\n" + }, + "environmentCount": { + "type": "integer", + "description": "Number of environments using this connection\n" + }, + "id": { + "type": "integer", + "description": "Connection Identifier\n" + }, + "isSshTunnelEnabled": { + "type": "boolean" + }, + "name": { + "type": "string", + "description": "Connection name\n" + }, + "oauthConfigurationId": { + "type": "integer" + }, + "privateLinkEndpointId": { + "type": "integer", + "description": "Private Link Endpoint ID.\n" + }, + "updatedAt": { + "type": "string", + "description": "When the connection was updated\n" + } + }, + "type": "object", + "required": [ + "adapterVersion", + "createdAt", + "environmentCount", + "id", + "isSshTunnelEnabled", + "name", + "oauthConfigurationId", + "privateLinkEndpointId", + "updatedAt" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, "dbtcloud:index/getGroupGroupPermission:getGroupGroupPermission": { "properties": { "allProjects": { @@ -1251,6 +1913,117 @@ } } }, + "dbtcloud:index/getProjectsProject:getProjectsProject": { + "properties": { + "connection": { + "$ref": "#/types/dbtcloud:index/getProjectsProjectConnection:getProjectsProjectConnection", + "description": "Details for the connection linked to the project\n" + }, + "createdAt": { + "type": "string", + "description": "When the project was created\n" + }, + "dbtProjectSubdirectory": { + "type": "string", + "description": "Subdirectory for the dbt project inside the git repo\n" + }, + "description": { + "type": "string", + "description": "Project description\n" + }, + "id": { + "type": "integer", + "description": "Project ID\n" + }, + "name": { + "type": "string", + "description": "Project name\n" + }, + "repository": { + "$ref": "#/types/dbtcloud:index/getProjectsProjectRepository:getProjectsProjectRepository", + "description": "Details for the repository linked to the project\n" + }, + "semanticLayerConfigId": { + "type": "integer", + "description": "Semantic layer config ID\n" + }, + "updatedAt": { + "type": "string", + "description": "When the project was last updated\n" + } + }, + "type": "object", + "required": [ + "connection", + "createdAt", + "dbtProjectSubdirectory", + "description", + "id", + "name", + "repository", + "semanticLayerConfigId", + "updatedAt" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getProjectsProjectConnection:getProjectsProjectConnection": { + "properties": { + "adapterVersion": { + "type": "string", + "description": "Version of the adapter for the connection. Will tell what connection type it is\n" + }, + "id": { + "type": "integer", + "description": "Connection ID\n" + }, + "name": { + "type": "string", + "description": "Connection name\n" + } + }, + "type": "object", + "required": [ + "adapterVersion", + "id", + "name" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "dbtcloud:index/getProjectsProjectRepository:getProjectsProjectRepository": { + "properties": { + "id": { + "type": "integer", + "description": "Repository ID\n" + }, + "pullRequestUrlTemplate": { + "type": "string", + "description": "URL template for PRs\n" + }, + "remoteUrl": { + "type": "string", + "description": "URL of the git repo remote\n" + } + }, + "type": "object", + "required": [ + "id", + "pullRequestUrlTemplate", + "remoteUrl" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, "dbtcloud:index/getServiceTokenServiceTokenPermission:getServiceTokenServiceTokenPermission": { "properties": { "allProjects": { @@ -5761,6 +6534,132 @@ "type": "object" } }, + "dbtcloud:index/getGlobalConnection:getGlobalConnection": { + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as dbtcloud from \"@pulumi/dbtcloud\";\n\nconst myConnection = dbtcloud.getGlobalConnection({\n id: 1234,\n});\n```\n```python\nimport pulumi\nimport pulumi_dbtcloud as dbtcloud\n\nmy_connection = dbtcloud.get_global_connection(id=1234)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing DbtCloud = Pulumi.DbtCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myConnection = DbtCloud.GetGlobalConnection.Invoke(new()\n {\n Id = 1234,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := dbtcloud.LookupGlobalConnection(ctx, \u0026dbtcloud.LookupGlobalConnectionArgs{\n\t\t\tId: 1234,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.dbtcloud.DbtcloudFunctions;\nimport com.pulumi.dbtcloud.inputs.GetGlobalConnectionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var myConnection = DbtcloudFunctions.getGlobalConnection(GetGlobalConnectionArgs.builder()\n .id(1234)\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n myConnection:\n fn::invoke:\n Function: dbtcloud:getGlobalConnection\n Arguments:\n id: 1234\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "inputs": { + "description": "A collection of arguments for invoking getGlobalConnection.\n", + "properties": { + "id": { + "type": "integer", + "description": "Connection Identifier\n" + } + }, + "type": "object", + "required": [ + "id" + ] + }, + "outputs": { + "description": "A collection of values returned by getGlobalConnection.\n", + "properties": { + "adapterVersion": { + "description": "Version of the adapter\n", + "type": "string" + }, + "apacheSpark": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionApacheSpark:getGlobalConnectionApacheSpark", + "description": "Apache Spark connection configuration.\n" + }, + "athena": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionAthena:getGlobalConnectionAthena", + "description": "Athena connection configuration.\n" + }, + "bigquery": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionBigquery:getGlobalConnectionBigquery" + }, + "databricks": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionDatabricks:getGlobalConnectionDatabricks", + "description": "Databricks connection configuration\n" + }, + "fabric": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionFabric:getGlobalConnectionFabric", + "description": "Microsoft Fabric connection configuration.\n" + }, + "id": { + "description": "Connection Identifier\n", + "type": "integer" + }, + "isSshTunnelEnabled": { + "description": "Whether the connection can use an SSH tunnel\n", + "type": "boolean" + }, + "name": { + "description": "Connection name\n", + "type": "string" + }, + "oauthConfigurationId": { + "type": "integer" + }, + "postgres": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionPostgres:getGlobalConnectionPostgres", + "description": "PostgreSQL connection configuration.\n" + }, + "privateLinkEndpointId": { + "description": "Private Link Endpoint ID. This ID can be found using the `privatelink_endpoint` data source\n", + "type": "string" + }, + "redshift": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionRedshift:getGlobalConnectionRedshift", + "description": "Redshift connection configuration\n" + }, + "snowflake": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionSnowflake:getGlobalConnectionSnowflake", + "description": "Snowflake connection configuration\n" + }, + "starburst": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionStarburst:getGlobalConnectionStarburst", + "description": "Starburst/Trino connection configuration.\n" + }, + "synapse": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionSynapse:getGlobalConnectionSynapse", + "description": "Azure Synapse Analytics connection configuration.\n" + } + }, + "required": [ + "adapterVersion", + "apacheSpark", + "athena", + "bigquery", + "databricks", + "fabric", + "id", + "isSshTunnelEnabled", + "name", + "oauthConfigurationId", + "postgres", + "privateLinkEndpointId", + "redshift", + "snowflake", + "starburst", + "synapse" + ], + "type": "object" + } + }, + "dbtcloud:index/getGlobalConnections:getGlobalConnections": { + "description": "All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as dbtcloud from \"@pulumi/dbtcloud\";\n\nconst myConnections = dbtcloud.getGlobalConnections({});\n```\n```python\nimport pulumi\nimport pulumi_dbtcloud as dbtcloud\n\nmy_connections = dbtcloud.get_global_connections()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing DbtCloud = Pulumi.DbtCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myConnections = DbtCloud.GetGlobalConnections.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := dbtcloud.GetGlobalConnections(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.dbtcloud.DbtcloudFunctions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var myConnections = DbtcloudFunctions.getGlobalConnections();\n\n }\n}\n```\n```yaml\nvariables:\n myConnections:\n fn::invoke:\n Function: dbtcloud:getGlobalConnections\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "outputs": { + "description": "A collection of values returned by getGlobalConnections.\n", + "properties": { + "connections": { + "description": "A set of all the connections\n", + "items": { + "$ref": "#/types/dbtcloud:index/getGlobalConnectionsConnection:getGlobalConnectionsConnection" + }, + "type": "array" + }, + "id": { + "description": "The provider-assigned unique ID for this managed resource.\n", + "type": "string" + } + }, + "required": [ + "connections", + "id" + ], + "type": "object" + } + }, "dbtcloud:index/getGroup:getGroup": { "description": "Retrieve group details\n", "inputs": { @@ -6291,6 +7190,45 @@ "type": "object" } }, + "dbtcloud:index/getProjects:getProjects": { + "description": "Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name.\n\n", + "inputs": { + "description": "A collection of arguments for invoking getProjects.\n", + "properties": { + "nameContains": { + "type": "string", + "description": "Used to filter projects by name, Optional\n" + } + }, + "type": "object" + }, + "outputs": { + "description": "A collection of values returned by getProjects.\n", + "properties": { + "id": { + "description": "The provider-assigned unique ID for this managed resource.\n", + "type": "string" + }, + "nameContains": { + "description": "Used to filter projects by name, Optional\n", + "type": "string" + }, + "projects": { + "description": "Set of projects with their details\n", + "items": { + "$ref": "#/types/dbtcloud:index/getProjectsProject:getProjectsProject" + }, + "type": "array" + } + }, + "required": [ + "nameContains", + "projects", + "id" + ], + "type": "object" + } + }, "dbtcloud:index/getRepository:getRepository": { "inputs": { "description": "A collection of arguments for invoking getRepository.\n", diff --git a/provider/go.mod b/provider/go.mod index 6376ebe..d68c0d6 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.3 replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10 require ( - github.com/dbt-labs/terraform-provider-dbtcloud v0.3.14 + github.com/dbt-labs/terraform-provider-dbtcloud v0.3.15 github.com/pulumi/pulumi-terraform-bridge/pf v0.42.1 github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 github.com/pulumi/pulumi/sdk/v3 v3.129.0 diff --git a/provider/go.sum b/provider/go.sum index 5b71ce5..b5fcfa3 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1336,8 +1336,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dbt-labs/terraform-provider-dbtcloud v0.3.14 h1:wiSqMb5KdLv4MiD4vq36l6f+tsLBi6kZn4f+E+INH10= -github.com/dbt-labs/terraform-provider-dbtcloud v0.3.14/go.mod h1:yxU6SKTrwoHnVtkDtjHIjHTl/3Ast0oN6/ugp2LD4lI= +github.com/dbt-labs/terraform-provider-dbtcloud v0.3.15 h1:b2dq02krVQ/dRhy9ByQr0EMsgbYR63T6I6k57lygy5Y= +github.com/dbt-labs/terraform-provider-dbtcloud v0.3.15/go.mod h1:yxU6SKTrwoHnVtkDtjHIjHTl/3Ast0oN6/ugp2LD4lI= github.com/deckarep/golang-set/v2 v2.6.0 h1:XfcQbWM1LlMB8BsJ8N9vW5ehnnPVIw0je80NsVHagjM= github.com/deckarep/golang-set/v2 v2.6.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= github.com/djherbis/times v1.6.0 h1:w2ctJ92J8fBvWPxugmXIv7Nz7Q3iDMKNx9v5ocVH20c= diff --git a/sdk/dotnet/GetGlobalConnection.cs b/sdk/dotnet/GetGlobalConnection.cs new file mode 100644 index 0000000..c9fb7ce --- /dev/null +++ b/sdk/dotnet/GetGlobalConnection.cs @@ -0,0 +1,203 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud +{ + public static class GetGlobalConnection + { + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DbtCloud = Pulumi.DbtCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myConnection = DbtCloud.GetGlobalConnection.Invoke(new() + /// { + /// Id = 1234, + /// }); + /// + /// }); + /// ``` + /// + public static Task InvokeAsync(GetGlobalConnectionArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("dbtcloud:index/getGlobalConnection:getGlobalConnection", args ?? new GetGlobalConnectionArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DbtCloud = Pulumi.DbtCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myConnection = DbtCloud.GetGlobalConnection.Invoke(new() + /// { + /// Id = 1234, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGlobalConnectionInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("dbtcloud:index/getGlobalConnection:getGlobalConnection", args ?? new GetGlobalConnectionInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetGlobalConnectionArgs : global::Pulumi.InvokeArgs + { + /// + /// Connection Identifier + /// + [Input("id", required: true)] + public int Id { get; set; } + + public GetGlobalConnectionArgs() + { + } + public static new GetGlobalConnectionArgs Empty => new GetGlobalConnectionArgs(); + } + + public sealed class GetGlobalConnectionInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// Connection Identifier + /// + [Input("id", required: true)] + public Input Id { get; set; } = null!; + + public GetGlobalConnectionInvokeArgs() + { + } + public static new GetGlobalConnectionInvokeArgs Empty => new GetGlobalConnectionInvokeArgs(); + } + + + [OutputType] + public sealed class GetGlobalConnectionResult + { + /// + /// Version of the adapter + /// + public readonly string AdapterVersion; + /// + /// Apache Spark connection configuration. + /// + public readonly Outputs.GetGlobalConnectionApacheSparkResult ApacheSpark; + /// + /// Athena connection configuration. + /// + public readonly Outputs.GetGlobalConnectionAthenaResult Athena; + public readonly Outputs.GetGlobalConnectionBigqueryResult Bigquery; + /// + /// Databricks connection configuration + /// + public readonly Outputs.GetGlobalConnectionDatabricksResult Databricks; + /// + /// Microsoft Fabric connection configuration. + /// + public readonly Outputs.GetGlobalConnectionFabricResult Fabric; + /// + /// Connection Identifier + /// + public readonly int Id; + /// + /// Whether the connection can use an SSH tunnel + /// + public readonly bool IsSshTunnelEnabled; + /// + /// Connection name + /// + public readonly string Name; + public readonly int OauthConfigurationId; + /// + /// PostgreSQL connection configuration. + /// + public readonly Outputs.GetGlobalConnectionPostgresResult Postgres; + /// + /// Private Link Endpoint ID. This ID can be found using the `privatelink_endpoint` data source + /// + public readonly string PrivateLinkEndpointId; + /// + /// Redshift connection configuration + /// + public readonly Outputs.GetGlobalConnectionRedshiftResult Redshift; + /// + /// Snowflake connection configuration + /// + public readonly Outputs.GetGlobalConnectionSnowflakeResult Snowflake; + /// + /// Starburst/Trino connection configuration. + /// + public readonly Outputs.GetGlobalConnectionStarburstResult Starburst; + /// + /// Azure Synapse Analytics connection configuration. + /// + public readonly Outputs.GetGlobalConnectionSynapseResult Synapse; + + [OutputConstructor] + private GetGlobalConnectionResult( + string adapterVersion, + + Outputs.GetGlobalConnectionApacheSparkResult apacheSpark, + + Outputs.GetGlobalConnectionAthenaResult athena, + + Outputs.GetGlobalConnectionBigqueryResult bigquery, + + Outputs.GetGlobalConnectionDatabricksResult databricks, + + Outputs.GetGlobalConnectionFabricResult fabric, + + int id, + + bool isSshTunnelEnabled, + + string name, + + int oauthConfigurationId, + + Outputs.GetGlobalConnectionPostgresResult postgres, + + string privateLinkEndpointId, + + Outputs.GetGlobalConnectionRedshiftResult redshift, + + Outputs.GetGlobalConnectionSnowflakeResult snowflake, + + Outputs.GetGlobalConnectionStarburstResult starburst, + + Outputs.GetGlobalConnectionSynapseResult synapse) + { + AdapterVersion = adapterVersion; + ApacheSpark = apacheSpark; + Athena = athena; + Bigquery = bigquery; + Databricks = databricks; + Fabric = fabric; + Id = id; + IsSshTunnelEnabled = isSshTunnelEnabled; + Name = name; + OauthConfigurationId = oauthConfigurationId; + Postgres = postgres; + PrivateLinkEndpointId = privateLinkEndpointId; + Redshift = redshift; + Snowflake = snowflake; + Starburst = starburst; + Synapse = synapse; + } + } +} diff --git a/sdk/dotnet/GetGlobalConnections.cs b/sdk/dotnet/GetGlobalConnections.cs new file mode 100644 index 0000000..be30c86 --- /dev/null +++ b/sdk/dotnet/GetGlobalConnections.cs @@ -0,0 +1,80 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud +{ + public static class GetGlobalConnections + { + /// + /// All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DbtCloud = Pulumi.DbtCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myConnections = DbtCloud.GetGlobalConnections.Invoke(); + /// + /// }); + /// ``` + /// + public static Task InvokeAsync(InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("dbtcloud:index/getGlobalConnections:getGlobalConnections", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DbtCloud = Pulumi.DbtCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myConnections = DbtCloud.GetGlobalConnections.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("dbtcloud:index/getGlobalConnections:getGlobalConnections", InvokeArgs.Empty, options.WithDefaults()); + } + + + [OutputType] + public sealed class GetGlobalConnectionsResult + { + /// + /// A set of all the connections + /// + public readonly ImmutableArray Connections; + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + + [OutputConstructor] + private GetGlobalConnectionsResult( + ImmutableArray connections, + + string id) + { + Connections = connections; + Id = id; + } + } +} diff --git a/sdk/dotnet/GetProjects.cs b/sdk/dotnet/GetProjects.cs new file mode 100644 index 0000000..2553033 --- /dev/null +++ b/sdk/dotnet/GetProjects.cs @@ -0,0 +1,86 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud +{ + public static class GetProjects + { + /// + /// Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + /// + public static Task InvokeAsync(GetProjectsArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("dbtcloud:index/getProjects:getProjects", args ?? new GetProjectsArgs(), options.WithDefaults()); + + /// + /// Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + /// + public static Output Invoke(GetProjectsInvokeArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("dbtcloud:index/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetProjectsArgs : global::Pulumi.InvokeArgs + { + /// + /// Used to filter projects by name, Optional + /// + [Input("nameContains")] + public string? NameContains { get; set; } + + public GetProjectsArgs() + { + } + public static new GetProjectsArgs Empty => new GetProjectsArgs(); + } + + public sealed class GetProjectsInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// Used to filter projects by name, Optional + /// + [Input("nameContains")] + public Input? NameContains { get; set; } + + public GetProjectsInvokeArgs() + { + } + public static new GetProjectsInvokeArgs Empty => new GetProjectsInvokeArgs(); + } + + + [OutputType] + public sealed class GetProjectsResult + { + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + /// + /// Used to filter projects by name, Optional + /// + public readonly string NameContains; + /// + /// Set of projects with their details + /// + public readonly ImmutableArray Projects; + + [OutputConstructor] + private GetProjectsResult( + string id, + + string nameContains, + + ImmutableArray projects) + { + Id = id; + NameContains = nameContains; + Projects = projects; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionApacheSparkResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionApacheSparkResult.cs new file mode 100644 index 0000000..02dc555 --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionApacheSparkResult.cs @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionApacheSparkResult + { + /// + /// Auth + /// + public readonly string Auth; + /// + /// Spark cluster for the connection + /// + public readonly string Cluster; + /// + /// Connection retries. Default=0 + /// + public readonly int ConnectRetries; + /// + /// Connection time out in seconds. Default=10 + /// + public readonly int ConnectTimeout; + /// + /// Hostname of the connection + /// + public readonly string Host; + /// + /// Authentication method for the connection (http or thrift). + /// + public readonly string Method; + /// + /// Organization ID + /// + public readonly string Organization; + /// + /// Port for the connection. Default=443 + /// + public readonly int Port; + /// + /// User + /// + public readonly string User; + + [OutputConstructor] + private GetGlobalConnectionApacheSparkResult( + string auth, + + string cluster, + + int connectRetries, + + int connectTimeout, + + string host, + + string method, + + string organization, + + int port, + + string user) + { + Auth = auth; + Cluster = cluster; + ConnectRetries = connectRetries; + ConnectTimeout = connectTimeout; + Host = host; + Method = method; + Organization = organization; + Port = port; + User = user; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionAthenaResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionAthenaResult.cs new file mode 100644 index 0000000..c2ac8de --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionAthenaResult.cs @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionAthenaResult + { + /// + /// Specify the database (data catalog) to build models into (lowercase only). + /// + public readonly string Database; + /// + /// Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + /// + public readonly int NumBoto3Retries; + /// + /// Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + /// + public readonly int NumIcebergRetries; + /// + /// Number of times to retry a failing query. + /// + public readonly int NumRetries; + /// + /// Interval in seconds to use for polling the status of query results in Athena. + /// + public readonly int PollInterval; + /// + /// AWS region of your Athena instance. + /// + public readonly string RegionName; + /// + /// Prefix for storing tables, if different from the connection's S3 staging directory. + /// + public readonly string S3DataDir; + /// + /// How to generate table paths in the S3 data directory. + /// + public readonly string S3DataNaming; + /// + /// S3 location to store Athena query results and metadata. + /// + public readonly string S3StagingDir; + /// + /// Prefix for storing temporary tables, if different from the connection's S3 data directory. + /// + public readonly string S3TmpTableDir; + /// + /// Identifier of Athena Spark workgroup for running Python models. + /// + public readonly string SparkWorkGroup; + /// + /// Identifier of Athena workgroup. + /// + public readonly string WorkGroup; + + [OutputConstructor] + private GetGlobalConnectionAthenaResult( + string database, + + int numBoto3Retries, + + int numIcebergRetries, + + int numRetries, + + int pollInterval, + + string regionName, + + string s3DataDir, + + string s3DataNaming, + + string s3StagingDir, + + string s3TmpTableDir, + + string sparkWorkGroup, + + string workGroup) + { + Database = database; + NumBoto3Retries = numBoto3Retries; + NumIcebergRetries = numIcebergRetries; + NumRetries = numRetries; + PollInterval = pollInterval; + RegionName = regionName; + S3DataDir = s3DataDir; + S3DataNaming = s3DataNaming; + S3StagingDir = s3StagingDir; + S3TmpTableDir = s3TmpTableDir; + SparkWorkGroup = sparkWorkGroup; + WorkGroup = workGroup; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionBigqueryResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionBigqueryResult.cs new file mode 100644 index 0000000..b9050aa --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionBigqueryResult.cs @@ -0,0 +1,189 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionBigqueryResult + { + /// + /// OAuth Client ID + /// + public readonly string ApplicationId; + /// + /// OAuth Client Secret + /// + public readonly string ApplicationSecret; + /// + /// Auth Provider X509 Cert URL for the Service Account + /// + public readonly string AuthProviderX509CertUrl; + /// + /// Auth URI for the Service Account + /// + public readonly string AuthUri; + /// + /// Service Account email + /// + public readonly string ClientEmail; + /// + /// Client ID of the Service Account + /// + public readonly string ClientId; + /// + /// Client X509 Cert URL for the Service Account + /// + public readonly string ClientX509CertUrl; + /// + /// Dataproc cluster name for PySpark workloads + /// + public readonly string DataprocClusterName; + /// + /// Google Cloud region for PySpark workloads on Dataproc + /// + public readonly string DataprocRegion; + /// + /// Project to bill for query execution + /// + public readonly string ExecutionProject; + /// + /// The GCP project ID to use for the connection + /// + public readonly string GcpProjectId; + /// + /// URI for a Google Cloud Storage bucket to host Python code executed via Datapro + /// + public readonly string GcsBucket; + /// + /// Service Account to impersonate when running queries + /// + public readonly string ImpersonateServiceAccount; + /// + /// Maximum timeout for the job creation step + /// + public readonly int JobCreationTimeoutSeconds; + /// + /// Total number of seconds to wait while retrying the same query + /// + public readonly int JobRetryDeadlineSeconds; + /// + /// Location to create new Datasets in + /// + public readonly string Location; + /// + /// Max number of bytes that can be billed for a given BigQuery query + /// + public readonly int MaximumBytesBilled; + /// + /// The priority with which to execute BigQuery queries (batch or interactive) + /// + public readonly string Priority; + /// + /// Private Key for the Service Account + /// + public readonly string PrivateKey; + /// + /// Private Key ID for the Service Account + /// + public readonly string PrivateKeyId; + /// + /// Number of retries for queries + /// + public readonly int Retries; + /// + /// OAuth scopes for the BigQuery connection + /// + public readonly ImmutableArray Scopes; + /// + /// Timeout in seconds for queries + /// + public readonly int TimeoutSeconds; + /// + /// Token URI for the Service Account + /// + public readonly string TokenUri; + + [OutputConstructor] + private GetGlobalConnectionBigqueryResult( + string applicationId, + + string applicationSecret, + + string authProviderX509CertUrl, + + string authUri, + + string clientEmail, + + string clientId, + + string clientX509CertUrl, + + string dataprocClusterName, + + string dataprocRegion, + + string executionProject, + + string gcpProjectId, + + string gcsBucket, + + string impersonateServiceAccount, + + int jobCreationTimeoutSeconds, + + int jobRetryDeadlineSeconds, + + string location, + + int maximumBytesBilled, + + string priority, + + string privateKey, + + string privateKeyId, + + int retries, + + ImmutableArray scopes, + + int timeoutSeconds, + + string tokenUri) + { + ApplicationId = applicationId; + ApplicationSecret = applicationSecret; + AuthProviderX509CertUrl = authProviderX509CertUrl; + AuthUri = authUri; + ClientEmail = clientEmail; + ClientId = clientId; + ClientX509CertUrl = clientX509CertUrl; + DataprocClusterName = dataprocClusterName; + DataprocRegion = dataprocRegion; + ExecutionProject = executionProject; + GcpProjectId = gcpProjectId; + GcsBucket = gcsBucket; + ImpersonateServiceAccount = impersonateServiceAccount; + JobCreationTimeoutSeconds = jobCreationTimeoutSeconds; + JobRetryDeadlineSeconds = jobRetryDeadlineSeconds; + Location = location; + MaximumBytesBilled = maximumBytesBilled; + Priority = priority; + PrivateKey = privateKey; + PrivateKeyId = privateKeyId; + Retries = retries; + Scopes = scopes; + TimeoutSeconds = timeoutSeconds; + TokenUri = tokenUri; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionDatabricksResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionDatabricksResult.cs new file mode 100644 index 0000000..f10c2cb --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionDatabricksResult.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionDatabricksResult + { + /// + /// Catalog name if Unity Catalog is enabled in your Databricks workspace. + /// + public readonly string Catalog; + /// + /// Required to enable Databricks OAuth authentication for IDE developers. + /// + public readonly string ClientId; + /// + /// Required to enable Databricks OAuth authentication for IDE developers. + /// + public readonly string ClientSecret; + /// + /// The hostname of the Databricks cluster or SQL warehouse. + /// + public readonly string Host; + /// + /// The HTTP path of the Databricks cluster or SQL warehouse. + /// + public readonly string HttpPath; + + [OutputConstructor] + private GetGlobalConnectionDatabricksResult( + string catalog, + + string clientId, + + string clientSecret, + + string host, + + string httpPath) + { + Catalog = catalog; + ClientId = clientId; + ClientSecret = clientSecret; + Host = host; + HttpPath = httpPath; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionFabricResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionFabricResult.cs new file mode 100644 index 0000000..bf05c27 --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionFabricResult.cs @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionFabricResult + { + /// + /// The database to connect to for this connection. + /// + public readonly string Database; + /// + /// The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + /// + public readonly int LoginTimeout; + /// + /// The port to connect to for this connection. Default=1433 + /// + public readonly int Port; + /// + /// The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + /// + public readonly int QueryTimeout; + /// + /// The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + /// + public readonly int Retries; + /// + /// The server hostname. + /// + public readonly string Server; + + [OutputConstructor] + private GetGlobalConnectionFabricResult( + string database, + + int loginTimeout, + + int port, + + int queryTimeout, + + int retries, + + string server) + { + Database = database; + LoginTimeout = loginTimeout; + Port = port; + QueryTimeout = queryTimeout; + Retries = retries; + Server = server; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionPostgresResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionPostgresResult.cs new file mode 100644 index 0000000..3cf2469 --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionPostgresResult.cs @@ -0,0 +1,49 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionPostgresResult + { + /// + /// The database name for this connection. + /// + public readonly string Dbname; + /// + /// The hostname of the database. + /// + public readonly string Hostname; + /// + /// The port to connect to for this connection. Default=5432 + /// + public readonly int Port; + /// + /// PostgreSQL SSH Tunnel configuration + /// + public readonly Outputs.GetGlobalConnectionPostgresSshTunnelResult SshTunnel; + + [OutputConstructor] + private GetGlobalConnectionPostgresResult( + string dbname, + + string hostname, + + int port, + + Outputs.GetGlobalConnectionPostgresSshTunnelResult sshTunnel) + { + Dbname = dbname; + Hostname = hostname; + Port = port; + SshTunnel = sshTunnel; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionPostgresSshTunnelResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionPostgresSshTunnelResult.cs new file mode 100644 index 0000000..b97577c --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionPostgresSshTunnelResult.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionPostgresSshTunnelResult + { + /// + /// The hostname for the SSH tunnel. + /// + public readonly string Hostname; + /// + /// The ID of the SSH tunnel connection. + /// + public readonly int Id; + /// + /// The HTTP port for the SSH tunnel. + /// + public readonly int Port; + /// + /// The SSH public key generated to allow connecting via SSH tunnel. + /// + public readonly string PublicKey; + /// + /// The username to use for the SSH tunnel. + /// + public readonly string Username; + + [OutputConstructor] + private GetGlobalConnectionPostgresSshTunnelResult( + string hostname, + + int id, + + int port, + + string publicKey, + + string username) + { + Hostname = hostname; + Id = id; + Port = port; + PublicKey = publicKey; + Username = username; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionRedshiftResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionRedshiftResult.cs new file mode 100644 index 0000000..9485efb --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionRedshiftResult.cs @@ -0,0 +1,49 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionRedshiftResult + { + /// + /// The database name for this connection. + /// + public readonly string Dbname; + /// + /// The hostname of the data warehouse. + /// + public readonly string Hostname; + /// + /// The port to connect to for this connection. Default=5432 + /// + public readonly int Port; + /// + /// Redshift SSH Tunnel configuration + /// + public readonly Outputs.GetGlobalConnectionRedshiftSshTunnelResult SshTunnel; + + [OutputConstructor] + private GetGlobalConnectionRedshiftResult( + string dbname, + + string hostname, + + int port, + + Outputs.GetGlobalConnectionRedshiftSshTunnelResult sshTunnel) + { + Dbname = dbname; + Hostname = hostname; + Port = port; + SshTunnel = sshTunnel; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionRedshiftSshTunnelResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionRedshiftSshTunnelResult.cs new file mode 100644 index 0000000..0bc3625 --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionRedshiftSshTunnelResult.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionRedshiftSshTunnelResult + { + /// + /// The hostname for the SSH tunnel. + /// + public readonly string Hostname; + /// + /// The ID of the SSH tunnel connection. + /// + public readonly int Id; + /// + /// The HTTP port for the SSH tunnel. + /// + public readonly int Port; + /// + /// The SSH public key generated to allow connecting via SSH tunnel. + /// + public readonly string PublicKey; + /// + /// The username to use for the SSH tunnel. + /// + public readonly string Username; + + [OutputConstructor] + private GetGlobalConnectionRedshiftSshTunnelResult( + string hostname, + + int id, + + int port, + + string publicKey, + + string username) + { + Hostname = hostname; + Id = id; + Port = port; + PublicKey = publicKey; + Username = username; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionSnowflakeResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionSnowflakeResult.cs new file mode 100644 index 0000000..d859e3d --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionSnowflakeResult.cs @@ -0,0 +1,77 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionSnowflakeResult + { + /// + /// The Snowflake account name + /// + public readonly string Account; + /// + /// Whether to allow Snowflake OAuth for the connection. If true, the `oauth_client_id` and `oauth_client_secret` fields must be set + /// + public readonly bool AllowSso; + /// + /// If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + /// + public readonly bool ClientSessionKeepAlive; + /// + /// The default database for the connection + /// + public readonly string Database; + /// + /// OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + /// + public readonly string OauthClientId; + /// + /// OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + /// + public readonly string OauthClientSecret; + /// + /// The Snowflake role to use when running queries on the connection + /// + public readonly string Role; + /// + /// The default Snowflake Warehouse to use for the connection + /// + public readonly string Warehouse; + + [OutputConstructor] + private GetGlobalConnectionSnowflakeResult( + string account, + + bool allowSso, + + bool clientSessionKeepAlive, + + string database, + + string oauthClientId, + + string oauthClientSecret, + + string role, + + string warehouse) + { + Account = account; + AllowSso = allowSso; + ClientSessionKeepAlive = clientSessionKeepAlive; + Database = database; + OauthClientId = oauthClientId; + OauthClientSecret = oauthClientSecret; + Role = role; + Warehouse = warehouse; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionStarburstResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionStarburstResult.cs new file mode 100644 index 0000000..5b37155 --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionStarburstResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionStarburstResult + { + /// + /// The hostname of the account to connect to. + /// + public readonly string Host; + /// + /// The authentication method. Only LDAP for now. + /// + public readonly string Method; + /// + /// The port to connect to for this connection. Default=443 + /// + public readonly int Port; + + [OutputConstructor] + private GetGlobalConnectionStarburstResult( + string host, + + string method, + + int port) + { + Host = host; + Method = method; + Port = port; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionSynapseResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionSynapseResult.cs new file mode 100644 index 0000000..da4169b --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionSynapseResult.cs @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionSynapseResult + { + /// + /// The database to connect to for this connection. + /// + public readonly string Database; + /// + /// The server hostname. + /// + public readonly string Host; + /// + /// The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + /// + public readonly int LoginTimeout; + /// + /// The port to connect to for this connection. Default=1433 + /// + public readonly int Port; + /// + /// The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + /// + public readonly int QueryTimeout; + /// + /// The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + /// + public readonly int Retries; + + [OutputConstructor] + private GetGlobalConnectionSynapseResult( + string database, + + string host, + + int loginTimeout, + + int port, + + int queryTimeout, + + int retries) + { + Database = database; + Host = host; + LoginTimeout = loginTimeout; + Port = port; + QueryTimeout = queryTimeout; + Retries = retries; + } + } +} diff --git a/sdk/dotnet/Outputs/GetGlobalConnectionsConnectionResult.cs b/sdk/dotnet/Outputs/GetGlobalConnectionsConnectionResult.cs new file mode 100644 index 0000000..160dd01 --- /dev/null +++ b/sdk/dotnet/Outputs/GetGlobalConnectionsConnectionResult.cs @@ -0,0 +1,78 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetGlobalConnectionsConnectionResult + { + /// + /// Type of adapter used for the connection + /// + public readonly string AdapterVersion; + /// + /// When the connection was created + /// + public readonly string CreatedAt; + /// + /// Number of environments using this connection + /// + public readonly int EnvironmentCount; + /// + /// Connection Identifier + /// + public readonly int Id; + public readonly bool IsSshTunnelEnabled; + /// + /// Connection name + /// + public readonly string Name; + public readonly int OauthConfigurationId; + /// + /// Private Link Endpoint ID. + /// + public readonly int PrivateLinkEndpointId; + /// + /// When the connection was updated + /// + public readonly string UpdatedAt; + + [OutputConstructor] + private GetGlobalConnectionsConnectionResult( + string adapterVersion, + + string createdAt, + + int environmentCount, + + int id, + + bool isSshTunnelEnabled, + + string name, + + int oauthConfigurationId, + + int privateLinkEndpointId, + + string updatedAt) + { + AdapterVersion = adapterVersion; + CreatedAt = createdAt; + EnvironmentCount = environmentCount; + Id = id; + IsSshTunnelEnabled = isSshTunnelEnabled; + Name = name; + OauthConfigurationId = oauthConfigurationId; + PrivateLinkEndpointId = privateLinkEndpointId; + UpdatedAt = updatedAt; + } + } +} diff --git a/sdk/dotnet/Outputs/GetProjectsProjectConnectionResult.cs b/sdk/dotnet/Outputs/GetProjectsProjectConnectionResult.cs new file mode 100644 index 0000000..8824c20 --- /dev/null +++ b/sdk/dotnet/Outputs/GetProjectsProjectConnectionResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetProjectsProjectConnectionResult + { + /// + /// Version of the adapter for the connection. Will tell what connection type it is + /// + public readonly string AdapterVersion; + /// + /// Connection ID + /// + public readonly int Id; + /// + /// Connection name + /// + public readonly string Name; + + [OutputConstructor] + private GetProjectsProjectConnectionResult( + string adapterVersion, + + int id, + + string name) + { + AdapterVersion = adapterVersion; + Id = id; + Name = name; + } + } +} diff --git a/sdk/dotnet/Outputs/GetProjectsProjectRepositoryResult.cs b/sdk/dotnet/Outputs/GetProjectsProjectRepositoryResult.cs new file mode 100644 index 0000000..1830313 --- /dev/null +++ b/sdk/dotnet/Outputs/GetProjectsProjectRepositoryResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetProjectsProjectRepositoryResult + { + /// + /// Repository ID + /// + public readonly int Id; + /// + /// URL template for PRs + /// + public readonly string PullRequestUrlTemplate; + /// + /// URL of the git repo remote + /// + public readonly string RemoteUrl; + + [OutputConstructor] + private GetProjectsProjectRepositoryResult( + int id, + + string pullRequestUrlTemplate, + + string remoteUrl) + { + Id = id; + PullRequestUrlTemplate = pullRequestUrlTemplate; + RemoteUrl = remoteUrl; + } + } +} diff --git a/sdk/dotnet/Outputs/GetProjectsProjectResult.cs b/sdk/dotnet/Outputs/GetProjectsProjectResult.cs new file mode 100644 index 0000000..38b0e87 --- /dev/null +++ b/sdk/dotnet/Outputs/GetProjectsProjectResult.cs @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.DbtCloud.Outputs +{ + + [OutputType] + public sealed class GetProjectsProjectResult + { + /// + /// Details for the connection linked to the project + /// + public readonly Outputs.GetProjectsProjectConnectionResult Connection; + /// + /// When the project was created + /// + public readonly string CreatedAt; + /// + /// Subdirectory for the dbt project inside the git repo + /// + public readonly string DbtProjectSubdirectory; + /// + /// Project description + /// + public readonly string Description; + /// + /// Project ID + /// + public readonly int Id; + /// + /// Project name + /// + public readonly string Name; + /// + /// Details for the repository linked to the project + /// + public readonly Outputs.GetProjectsProjectRepositoryResult Repository; + /// + /// Semantic layer config ID + /// + public readonly int SemanticLayerConfigId; + /// + /// When the project was last updated + /// + public readonly string UpdatedAt; + + [OutputConstructor] + private GetProjectsProjectResult( + Outputs.GetProjectsProjectConnectionResult connection, + + string createdAt, + + string dbtProjectSubdirectory, + + string description, + + int id, + + string name, + + Outputs.GetProjectsProjectRepositoryResult repository, + + int semanticLayerConfigId, + + string updatedAt) + { + Connection = connection; + CreatedAt = createdAt; + DbtProjectSubdirectory = dbtProjectSubdirectory; + Description = description; + Id = id; + Name = name; + Repository = repository; + SemanticLayerConfigId = semanticLayerConfigId; + UpdatedAt = updatedAt; + } + } +} diff --git a/sdk/go/dbtcloud/getGlobalConnection.go b/sdk/go/dbtcloud/getGlobalConnection.go new file mode 100644 index 0000000..14e9a17 --- /dev/null +++ b/sdk/go/dbtcloud/getGlobalConnection.go @@ -0,0 +1,207 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package dbtcloud + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := dbtcloud.LookupGlobalConnection(ctx, &dbtcloud.LookupGlobalConnectionArgs{ +// Id: 1234, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +func LookupGlobalConnection(ctx *pulumi.Context, args *LookupGlobalConnectionArgs, opts ...pulumi.InvokeOption) (*LookupGlobalConnectionResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGlobalConnectionResult + err := ctx.Invoke("dbtcloud:index/getGlobalConnection:getGlobalConnection", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getGlobalConnection. +type LookupGlobalConnectionArgs struct { + // Connection Identifier + Id int `pulumi:"id"` +} + +// A collection of values returned by getGlobalConnection. +type LookupGlobalConnectionResult struct { + // Version of the adapter + AdapterVersion string `pulumi:"adapterVersion"` + // Apache Spark connection configuration. + ApacheSpark GetGlobalConnectionApacheSpark `pulumi:"apacheSpark"` + // Athena connection configuration. + Athena GetGlobalConnectionAthena `pulumi:"athena"` + Bigquery GetGlobalConnectionBigquery `pulumi:"bigquery"` + // Databricks connection configuration + Databricks GetGlobalConnectionDatabricks `pulumi:"databricks"` + // Microsoft Fabric connection configuration. + Fabric GetGlobalConnectionFabric `pulumi:"fabric"` + // Connection Identifier + Id int `pulumi:"id"` + // Whether the connection can use an SSH tunnel + IsSshTunnelEnabled bool `pulumi:"isSshTunnelEnabled"` + // Connection name + Name string `pulumi:"name"` + OauthConfigurationId int `pulumi:"oauthConfigurationId"` + // PostgreSQL connection configuration. + Postgres GetGlobalConnectionPostgres `pulumi:"postgres"` + // Private Link Endpoint ID. This ID can be found using the `privatelinkEndpoint` data source + PrivateLinkEndpointId string `pulumi:"privateLinkEndpointId"` + // Redshift connection configuration + Redshift GetGlobalConnectionRedshift `pulumi:"redshift"` + // Snowflake connection configuration + Snowflake GetGlobalConnectionSnowflake `pulumi:"snowflake"` + // Starburst/Trino connection configuration. + Starburst GetGlobalConnectionStarburst `pulumi:"starburst"` + // Azure Synapse Analytics connection configuration. + Synapse GetGlobalConnectionSynapse `pulumi:"synapse"` +} + +func LookupGlobalConnectionOutput(ctx *pulumi.Context, args LookupGlobalConnectionOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalConnectionResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupGlobalConnectionResult, error) { + args := v.(LookupGlobalConnectionArgs) + r, err := LookupGlobalConnection(ctx, &args, opts...) + var s LookupGlobalConnectionResult + if r != nil { + s = *r + } + return s, err + }).(LookupGlobalConnectionResultOutput) +} + +// A collection of arguments for invoking getGlobalConnection. +type LookupGlobalConnectionOutputArgs struct { + // Connection Identifier + Id pulumi.IntInput `pulumi:"id"` +} + +func (LookupGlobalConnectionOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupGlobalConnectionArgs)(nil)).Elem() +} + +// A collection of values returned by getGlobalConnection. +type LookupGlobalConnectionResultOutput struct{ *pulumi.OutputState } + +func (LookupGlobalConnectionResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupGlobalConnectionResult)(nil)).Elem() +} + +func (o LookupGlobalConnectionResultOutput) ToLookupGlobalConnectionResultOutput() LookupGlobalConnectionResultOutput { + return o +} + +func (o LookupGlobalConnectionResultOutput) ToLookupGlobalConnectionResultOutputWithContext(ctx context.Context) LookupGlobalConnectionResultOutput { + return o +} + +// Version of the adapter +func (o LookupGlobalConnectionResultOutput) AdapterVersion() pulumi.StringOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) string { return v.AdapterVersion }).(pulumi.StringOutput) +} + +// Apache Spark connection configuration. +func (o LookupGlobalConnectionResultOutput) ApacheSpark() GetGlobalConnectionApacheSparkOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionApacheSpark { return v.ApacheSpark }).(GetGlobalConnectionApacheSparkOutput) +} + +// Athena connection configuration. +func (o LookupGlobalConnectionResultOutput) Athena() GetGlobalConnectionAthenaOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionAthena { return v.Athena }).(GetGlobalConnectionAthenaOutput) +} + +func (o LookupGlobalConnectionResultOutput) Bigquery() GetGlobalConnectionBigqueryOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionBigquery { return v.Bigquery }).(GetGlobalConnectionBigqueryOutput) +} + +// Databricks connection configuration +func (o LookupGlobalConnectionResultOutput) Databricks() GetGlobalConnectionDatabricksOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionDatabricks { return v.Databricks }).(GetGlobalConnectionDatabricksOutput) +} + +// Microsoft Fabric connection configuration. +func (o LookupGlobalConnectionResultOutput) Fabric() GetGlobalConnectionFabricOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionFabric { return v.Fabric }).(GetGlobalConnectionFabricOutput) +} + +// Connection Identifier +func (o LookupGlobalConnectionResultOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) int { return v.Id }).(pulumi.IntOutput) +} + +// Whether the connection can use an SSH tunnel +func (o LookupGlobalConnectionResultOutput) IsSshTunnelEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) bool { return v.IsSshTunnelEnabled }).(pulumi.BoolOutput) +} + +// Connection name +func (o LookupGlobalConnectionResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) string { return v.Name }).(pulumi.StringOutput) +} + +func (o LookupGlobalConnectionResultOutput) OauthConfigurationId() pulumi.IntOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) int { return v.OauthConfigurationId }).(pulumi.IntOutput) +} + +// PostgreSQL connection configuration. +func (o LookupGlobalConnectionResultOutput) Postgres() GetGlobalConnectionPostgresOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionPostgres { return v.Postgres }).(GetGlobalConnectionPostgresOutput) +} + +// Private Link Endpoint ID. This ID can be found using the `privatelinkEndpoint` data source +func (o LookupGlobalConnectionResultOutput) PrivateLinkEndpointId() pulumi.StringOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) string { return v.PrivateLinkEndpointId }).(pulumi.StringOutput) +} + +// Redshift connection configuration +func (o LookupGlobalConnectionResultOutput) Redshift() GetGlobalConnectionRedshiftOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionRedshift { return v.Redshift }).(GetGlobalConnectionRedshiftOutput) +} + +// Snowflake connection configuration +func (o LookupGlobalConnectionResultOutput) Snowflake() GetGlobalConnectionSnowflakeOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionSnowflake { return v.Snowflake }).(GetGlobalConnectionSnowflakeOutput) +} + +// Starburst/Trino connection configuration. +func (o LookupGlobalConnectionResultOutput) Starburst() GetGlobalConnectionStarburstOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionStarburst { return v.Starburst }).(GetGlobalConnectionStarburstOutput) +} + +// Azure Synapse Analytics connection configuration. +func (o LookupGlobalConnectionResultOutput) Synapse() GetGlobalConnectionSynapseOutput { + return o.ApplyT(func(v LookupGlobalConnectionResult) GetGlobalConnectionSynapse { return v.Synapse }).(GetGlobalConnectionSynapseOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupGlobalConnectionResultOutput{}) +} diff --git a/sdk/go/dbtcloud/getGlobalConnections.go b/sdk/go/dbtcloud/getGlobalConnections.go new file mode 100644 index 0000000..a3692ce --- /dev/null +++ b/sdk/go/dbtcloud/getGlobalConnections.go @@ -0,0 +1,95 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package dbtcloud + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := dbtcloud.GetGlobalConnections(ctx, nil, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +func GetGlobalConnections(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetGlobalConnectionsResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetGlobalConnectionsResult + err := ctx.Invoke("dbtcloud:index/getGlobalConnections:getGlobalConnections", nil, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of values returned by getGlobalConnections. +type GetGlobalConnectionsResult struct { + // A set of all the connections + Connections []GetGlobalConnectionsConnection `pulumi:"connections"` + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` +} + +func GetGlobalConnectionsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetGlobalConnectionsResultOutput { + return pulumi.ToOutput(0).ApplyT(func(int) (GetGlobalConnectionsResult, error) { + r, err := GetGlobalConnections(ctx, opts...) + var s GetGlobalConnectionsResult + if r != nil { + s = *r + } + return s, err + }).(GetGlobalConnectionsResultOutput) +} + +// A collection of values returned by getGlobalConnections. +type GetGlobalConnectionsResultOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionsResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionsResult)(nil)).Elem() +} + +func (o GetGlobalConnectionsResultOutput) ToGetGlobalConnectionsResultOutput() GetGlobalConnectionsResultOutput { + return o +} + +func (o GetGlobalConnectionsResultOutput) ToGetGlobalConnectionsResultOutputWithContext(ctx context.Context) GetGlobalConnectionsResultOutput { + return o +} + +// A set of all the connections +func (o GetGlobalConnectionsResultOutput) Connections() GetGlobalConnectionsConnectionArrayOutput { + return o.ApplyT(func(v GetGlobalConnectionsResult) []GetGlobalConnectionsConnection { return v.Connections }).(GetGlobalConnectionsConnectionArrayOutput) +} + +// The provider-assigned unique ID for this managed resource. +func (o GetGlobalConnectionsResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionsResult) string { return v.Id }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(GetGlobalConnectionsResultOutput{}) +} diff --git a/sdk/go/dbtcloud/getProjects.go b/sdk/go/dbtcloud/getProjects.go new file mode 100644 index 0000000..65fc1d3 --- /dev/null +++ b/sdk/go/dbtcloud/getProjects.go @@ -0,0 +1,96 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package dbtcloud + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. +func GetProjects(ctx *pulumi.Context, args *GetProjectsArgs, opts ...pulumi.InvokeOption) (*GetProjectsResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetProjectsResult + err := ctx.Invoke("dbtcloud:index/getProjects:getProjects", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getProjects. +type GetProjectsArgs struct { + // Used to filter projects by name, Optional + NameContains *string `pulumi:"nameContains"` +} + +// A collection of values returned by getProjects. +type GetProjectsResult struct { + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + // Used to filter projects by name, Optional + NameContains string `pulumi:"nameContains"` + // Set of projects with their details + Projects []GetProjectsProject `pulumi:"projects"` +} + +func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (GetProjectsResult, error) { + args := v.(GetProjectsArgs) + r, err := GetProjects(ctx, &args, opts...) + var s GetProjectsResult + if r != nil { + s = *r + } + return s, err + }).(GetProjectsResultOutput) +} + +// A collection of arguments for invoking getProjects. +type GetProjectsOutputArgs struct { + // Used to filter projects by name, Optional + NameContains pulumi.StringPtrInput `pulumi:"nameContains"` +} + +func (GetProjectsOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsArgs)(nil)).Elem() +} + +// A collection of values returned by getProjects. +type GetProjectsResultOutput struct{ *pulumi.OutputState } + +func (GetProjectsResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsResult)(nil)).Elem() +} + +func (o GetProjectsResultOutput) ToGetProjectsResultOutput() GetProjectsResultOutput { + return o +} + +func (o GetProjectsResultOutput) ToGetProjectsResultOutputWithContext(ctx context.Context) GetProjectsResultOutput { + return o +} + +// The provider-assigned unique ID for this managed resource. +func (o GetProjectsResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsResult) string { return v.Id }).(pulumi.StringOutput) +} + +// Used to filter projects by name, Optional +func (o GetProjectsResultOutput) NameContains() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsResult) string { return v.NameContains }).(pulumi.StringOutput) +} + +// Set of projects with their details +func (o GetProjectsResultOutput) Projects() GetProjectsProjectArrayOutput { + return o.ApplyT(func(v GetProjectsResult) []GetProjectsProject { return v.Projects }).(GetProjectsProjectArrayOutput) +} + +func init() { + pulumi.RegisterOutputType(GetProjectsResultOutput{}) +} diff --git a/sdk/go/dbtcloud/pulumiTypes.go b/sdk/go/dbtcloud/pulumiTypes.go index 4935d67..1af2432 100644 --- a/sdk/go/dbtcloud/pulumiTypes.go +++ b/sdk/go/dbtcloud/pulumiTypes.go @@ -3928,6 +3928,1504 @@ func (o GetEnvironmentsEnvironmentArrayOutput) Index(i pulumi.IntInput) GetEnvir }).(GetEnvironmentsEnvironmentOutput) } +type GetGlobalConnectionApacheSpark struct { + // Auth + Auth string `pulumi:"auth"` + // Spark cluster for the connection + Cluster string `pulumi:"cluster"` + // Connection retries. Default=0 + ConnectRetries int `pulumi:"connectRetries"` + // Connection time out in seconds. Default=10 + ConnectTimeout int `pulumi:"connectTimeout"` + // Hostname of the connection + Host string `pulumi:"host"` + // Authentication method for the connection (http or thrift). + Method string `pulumi:"method"` + // Organization ID + Organization string `pulumi:"organization"` + // Port for the connection. Default=443 + Port int `pulumi:"port"` + // User + User string `pulumi:"user"` +} + +// GetGlobalConnectionApacheSparkInput is an input type that accepts GetGlobalConnectionApacheSparkArgs and GetGlobalConnectionApacheSparkOutput values. +// You can construct a concrete instance of `GetGlobalConnectionApacheSparkInput` via: +// +// GetGlobalConnectionApacheSparkArgs{...} +type GetGlobalConnectionApacheSparkInput interface { + pulumi.Input + + ToGetGlobalConnectionApacheSparkOutput() GetGlobalConnectionApacheSparkOutput + ToGetGlobalConnectionApacheSparkOutputWithContext(context.Context) GetGlobalConnectionApacheSparkOutput +} + +type GetGlobalConnectionApacheSparkArgs struct { + // Auth + Auth pulumi.StringInput `pulumi:"auth"` + // Spark cluster for the connection + Cluster pulumi.StringInput `pulumi:"cluster"` + // Connection retries. Default=0 + ConnectRetries pulumi.IntInput `pulumi:"connectRetries"` + // Connection time out in seconds. Default=10 + ConnectTimeout pulumi.IntInput `pulumi:"connectTimeout"` + // Hostname of the connection + Host pulumi.StringInput `pulumi:"host"` + // Authentication method for the connection (http or thrift). + Method pulumi.StringInput `pulumi:"method"` + // Organization ID + Organization pulumi.StringInput `pulumi:"organization"` + // Port for the connection. Default=443 + Port pulumi.IntInput `pulumi:"port"` + // User + User pulumi.StringInput `pulumi:"user"` +} + +func (GetGlobalConnectionApacheSparkArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionApacheSpark)(nil)).Elem() +} + +func (i GetGlobalConnectionApacheSparkArgs) ToGetGlobalConnectionApacheSparkOutput() GetGlobalConnectionApacheSparkOutput { + return i.ToGetGlobalConnectionApacheSparkOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionApacheSparkArgs) ToGetGlobalConnectionApacheSparkOutputWithContext(ctx context.Context) GetGlobalConnectionApacheSparkOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionApacheSparkOutput) +} + +type GetGlobalConnectionApacheSparkOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionApacheSparkOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionApacheSpark)(nil)).Elem() +} + +func (o GetGlobalConnectionApacheSparkOutput) ToGetGlobalConnectionApacheSparkOutput() GetGlobalConnectionApacheSparkOutput { + return o +} + +func (o GetGlobalConnectionApacheSparkOutput) ToGetGlobalConnectionApacheSparkOutputWithContext(ctx context.Context) GetGlobalConnectionApacheSparkOutput { + return o +} + +// Auth +func (o GetGlobalConnectionApacheSparkOutput) Auth() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) string { return v.Auth }).(pulumi.StringOutput) +} + +// Spark cluster for the connection +func (o GetGlobalConnectionApacheSparkOutput) Cluster() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) string { return v.Cluster }).(pulumi.StringOutput) +} + +// Connection retries. Default=0 +func (o GetGlobalConnectionApacheSparkOutput) ConnectRetries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) int { return v.ConnectRetries }).(pulumi.IntOutput) +} + +// Connection time out in seconds. Default=10 +func (o GetGlobalConnectionApacheSparkOutput) ConnectTimeout() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) int { return v.ConnectTimeout }).(pulumi.IntOutput) +} + +// Hostname of the connection +func (o GetGlobalConnectionApacheSparkOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) string { return v.Host }).(pulumi.StringOutput) +} + +// Authentication method for the connection (http or thrift). +func (o GetGlobalConnectionApacheSparkOutput) Method() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) string { return v.Method }).(pulumi.StringOutput) +} + +// Organization ID +func (o GetGlobalConnectionApacheSparkOutput) Organization() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) string { return v.Organization }).(pulumi.StringOutput) +} + +// Port for the connection. Default=443 +func (o GetGlobalConnectionApacheSparkOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) int { return v.Port }).(pulumi.IntOutput) +} + +// User +func (o GetGlobalConnectionApacheSparkOutput) User() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionApacheSpark) string { return v.User }).(pulumi.StringOutput) +} + +type GetGlobalConnectionAthena struct { + // Specify the database (data catalog) to build models into (lowercase only). + Database string `pulumi:"database"` + // Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + NumBoto3Retries int `pulumi:"numBoto3Retries"` + // Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + NumIcebergRetries int `pulumi:"numIcebergRetries"` + // Number of times to retry a failing query. + NumRetries int `pulumi:"numRetries"` + // Interval in seconds to use for polling the status of query results in Athena. + PollInterval int `pulumi:"pollInterval"` + // AWS region of your Athena instance. + RegionName string `pulumi:"regionName"` + // Prefix for storing tables, if different from the connection's S3 staging directory. + S3DataDir string `pulumi:"s3DataDir"` + // How to generate table paths in the S3 data directory. + S3DataNaming string `pulumi:"s3DataNaming"` + // S3 location to store Athena query results and metadata. + S3StagingDir string `pulumi:"s3StagingDir"` + // Prefix for storing temporary tables, if different from the connection's S3 data directory. + S3TmpTableDir string `pulumi:"s3TmpTableDir"` + // Identifier of Athena Spark workgroup for running Python models. + SparkWorkGroup string `pulumi:"sparkWorkGroup"` + // Identifier of Athena workgroup. + WorkGroup string `pulumi:"workGroup"` +} + +// GetGlobalConnectionAthenaInput is an input type that accepts GetGlobalConnectionAthenaArgs and GetGlobalConnectionAthenaOutput values. +// You can construct a concrete instance of `GetGlobalConnectionAthenaInput` via: +// +// GetGlobalConnectionAthenaArgs{...} +type GetGlobalConnectionAthenaInput interface { + pulumi.Input + + ToGetGlobalConnectionAthenaOutput() GetGlobalConnectionAthenaOutput + ToGetGlobalConnectionAthenaOutputWithContext(context.Context) GetGlobalConnectionAthenaOutput +} + +type GetGlobalConnectionAthenaArgs struct { + // Specify the database (data catalog) to build models into (lowercase only). + Database pulumi.StringInput `pulumi:"database"` + // Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + NumBoto3Retries pulumi.IntInput `pulumi:"numBoto3Retries"` + // Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + NumIcebergRetries pulumi.IntInput `pulumi:"numIcebergRetries"` + // Number of times to retry a failing query. + NumRetries pulumi.IntInput `pulumi:"numRetries"` + // Interval in seconds to use for polling the status of query results in Athena. + PollInterval pulumi.IntInput `pulumi:"pollInterval"` + // AWS region of your Athena instance. + RegionName pulumi.StringInput `pulumi:"regionName"` + // Prefix for storing tables, if different from the connection's S3 staging directory. + S3DataDir pulumi.StringInput `pulumi:"s3DataDir"` + // How to generate table paths in the S3 data directory. + S3DataNaming pulumi.StringInput `pulumi:"s3DataNaming"` + // S3 location to store Athena query results and metadata. + S3StagingDir pulumi.StringInput `pulumi:"s3StagingDir"` + // Prefix for storing temporary tables, if different from the connection's S3 data directory. + S3TmpTableDir pulumi.StringInput `pulumi:"s3TmpTableDir"` + // Identifier of Athena Spark workgroup for running Python models. + SparkWorkGroup pulumi.StringInput `pulumi:"sparkWorkGroup"` + // Identifier of Athena workgroup. + WorkGroup pulumi.StringInput `pulumi:"workGroup"` +} + +func (GetGlobalConnectionAthenaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionAthena)(nil)).Elem() +} + +func (i GetGlobalConnectionAthenaArgs) ToGetGlobalConnectionAthenaOutput() GetGlobalConnectionAthenaOutput { + return i.ToGetGlobalConnectionAthenaOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionAthenaArgs) ToGetGlobalConnectionAthenaOutputWithContext(ctx context.Context) GetGlobalConnectionAthenaOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionAthenaOutput) +} + +type GetGlobalConnectionAthenaOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionAthenaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionAthena)(nil)).Elem() +} + +func (o GetGlobalConnectionAthenaOutput) ToGetGlobalConnectionAthenaOutput() GetGlobalConnectionAthenaOutput { + return o +} + +func (o GetGlobalConnectionAthenaOutput) ToGetGlobalConnectionAthenaOutputWithContext(ctx context.Context) GetGlobalConnectionAthenaOutput { + return o +} + +// Specify the database (data catalog) to build models into (lowercase only). +func (o GetGlobalConnectionAthenaOutput) Database() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.Database }).(pulumi.StringOutput) +} + +// Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). +func (o GetGlobalConnectionAthenaOutput) NumBoto3Retries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) int { return v.NumBoto3Retries }).(pulumi.IntOutput) +} + +// Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. +func (o GetGlobalConnectionAthenaOutput) NumIcebergRetries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) int { return v.NumIcebergRetries }).(pulumi.IntOutput) +} + +// Number of times to retry a failing query. +func (o GetGlobalConnectionAthenaOutput) NumRetries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) int { return v.NumRetries }).(pulumi.IntOutput) +} + +// Interval in seconds to use for polling the status of query results in Athena. +func (o GetGlobalConnectionAthenaOutput) PollInterval() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) int { return v.PollInterval }).(pulumi.IntOutput) +} + +// AWS region of your Athena instance. +func (o GetGlobalConnectionAthenaOutput) RegionName() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.RegionName }).(pulumi.StringOutput) +} + +// Prefix for storing tables, if different from the connection's S3 staging directory. +func (o GetGlobalConnectionAthenaOutput) S3DataDir() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.S3DataDir }).(pulumi.StringOutput) +} + +// How to generate table paths in the S3 data directory. +func (o GetGlobalConnectionAthenaOutput) S3DataNaming() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.S3DataNaming }).(pulumi.StringOutput) +} + +// S3 location to store Athena query results and metadata. +func (o GetGlobalConnectionAthenaOutput) S3StagingDir() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.S3StagingDir }).(pulumi.StringOutput) +} + +// Prefix for storing temporary tables, if different from the connection's S3 data directory. +func (o GetGlobalConnectionAthenaOutput) S3TmpTableDir() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.S3TmpTableDir }).(pulumi.StringOutput) +} + +// Identifier of Athena Spark workgroup for running Python models. +func (o GetGlobalConnectionAthenaOutput) SparkWorkGroup() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.SparkWorkGroup }).(pulumi.StringOutput) +} + +// Identifier of Athena workgroup. +func (o GetGlobalConnectionAthenaOutput) WorkGroup() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionAthena) string { return v.WorkGroup }).(pulumi.StringOutput) +} + +type GetGlobalConnectionBigquery struct { + // OAuth Client ID + ApplicationId string `pulumi:"applicationId"` + // OAuth Client Secret + ApplicationSecret string `pulumi:"applicationSecret"` + // Auth Provider X509 Cert URL for the Service Account + AuthProviderX509CertUrl string `pulumi:"authProviderX509CertUrl"` + // Auth URI for the Service Account + AuthUri string `pulumi:"authUri"` + // Service Account email + ClientEmail string `pulumi:"clientEmail"` + // Client ID of the Service Account + ClientId string `pulumi:"clientId"` + // Client X509 Cert URL for the Service Account + ClientX509CertUrl string `pulumi:"clientX509CertUrl"` + // Dataproc cluster name for PySpark workloads + DataprocClusterName string `pulumi:"dataprocClusterName"` + // Google Cloud region for PySpark workloads on Dataproc + DataprocRegion string `pulumi:"dataprocRegion"` + // Project to bill for query execution + ExecutionProject string `pulumi:"executionProject"` + // The GCP project ID to use for the connection + GcpProjectId string `pulumi:"gcpProjectId"` + // URI for a Google Cloud Storage bucket to host Python code executed via Datapro + GcsBucket string `pulumi:"gcsBucket"` + // Service Account to impersonate when running queries + ImpersonateServiceAccount string `pulumi:"impersonateServiceAccount"` + // Maximum timeout for the job creation step + JobCreationTimeoutSeconds int `pulumi:"jobCreationTimeoutSeconds"` + // Total number of seconds to wait while retrying the same query + JobRetryDeadlineSeconds int `pulumi:"jobRetryDeadlineSeconds"` + // Location to create new Datasets in + Location string `pulumi:"location"` + // Max number of bytes that can be billed for a given BigQuery query + MaximumBytesBilled int `pulumi:"maximumBytesBilled"` + // The priority with which to execute BigQuery queries (batch or interactive) + Priority string `pulumi:"priority"` + // Private Key for the Service Account + PrivateKey string `pulumi:"privateKey"` + // Private Key ID for the Service Account + PrivateKeyId string `pulumi:"privateKeyId"` + // Number of retries for queries + Retries int `pulumi:"retries"` + // OAuth scopes for the BigQuery connection + Scopes []string `pulumi:"scopes"` + // Timeout in seconds for queries + TimeoutSeconds int `pulumi:"timeoutSeconds"` + // Token URI for the Service Account + TokenUri string `pulumi:"tokenUri"` +} + +// GetGlobalConnectionBigqueryInput is an input type that accepts GetGlobalConnectionBigqueryArgs and GetGlobalConnectionBigqueryOutput values. +// You can construct a concrete instance of `GetGlobalConnectionBigqueryInput` via: +// +// GetGlobalConnectionBigqueryArgs{...} +type GetGlobalConnectionBigqueryInput interface { + pulumi.Input + + ToGetGlobalConnectionBigqueryOutput() GetGlobalConnectionBigqueryOutput + ToGetGlobalConnectionBigqueryOutputWithContext(context.Context) GetGlobalConnectionBigqueryOutput +} + +type GetGlobalConnectionBigqueryArgs struct { + // OAuth Client ID + ApplicationId pulumi.StringInput `pulumi:"applicationId"` + // OAuth Client Secret + ApplicationSecret pulumi.StringInput `pulumi:"applicationSecret"` + // Auth Provider X509 Cert URL for the Service Account + AuthProviderX509CertUrl pulumi.StringInput `pulumi:"authProviderX509CertUrl"` + // Auth URI for the Service Account + AuthUri pulumi.StringInput `pulumi:"authUri"` + // Service Account email + ClientEmail pulumi.StringInput `pulumi:"clientEmail"` + // Client ID of the Service Account + ClientId pulumi.StringInput `pulumi:"clientId"` + // Client X509 Cert URL for the Service Account + ClientX509CertUrl pulumi.StringInput `pulumi:"clientX509CertUrl"` + // Dataproc cluster name for PySpark workloads + DataprocClusterName pulumi.StringInput `pulumi:"dataprocClusterName"` + // Google Cloud region for PySpark workloads on Dataproc + DataprocRegion pulumi.StringInput `pulumi:"dataprocRegion"` + // Project to bill for query execution + ExecutionProject pulumi.StringInput `pulumi:"executionProject"` + // The GCP project ID to use for the connection + GcpProjectId pulumi.StringInput `pulumi:"gcpProjectId"` + // URI for a Google Cloud Storage bucket to host Python code executed via Datapro + GcsBucket pulumi.StringInput `pulumi:"gcsBucket"` + // Service Account to impersonate when running queries + ImpersonateServiceAccount pulumi.StringInput `pulumi:"impersonateServiceAccount"` + // Maximum timeout for the job creation step + JobCreationTimeoutSeconds pulumi.IntInput `pulumi:"jobCreationTimeoutSeconds"` + // Total number of seconds to wait while retrying the same query + JobRetryDeadlineSeconds pulumi.IntInput `pulumi:"jobRetryDeadlineSeconds"` + // Location to create new Datasets in + Location pulumi.StringInput `pulumi:"location"` + // Max number of bytes that can be billed for a given BigQuery query + MaximumBytesBilled pulumi.IntInput `pulumi:"maximumBytesBilled"` + // The priority with which to execute BigQuery queries (batch or interactive) + Priority pulumi.StringInput `pulumi:"priority"` + // Private Key for the Service Account + PrivateKey pulumi.StringInput `pulumi:"privateKey"` + // Private Key ID for the Service Account + PrivateKeyId pulumi.StringInput `pulumi:"privateKeyId"` + // Number of retries for queries + Retries pulumi.IntInput `pulumi:"retries"` + // OAuth scopes for the BigQuery connection + Scopes pulumi.StringArrayInput `pulumi:"scopes"` + // Timeout in seconds for queries + TimeoutSeconds pulumi.IntInput `pulumi:"timeoutSeconds"` + // Token URI for the Service Account + TokenUri pulumi.StringInput `pulumi:"tokenUri"` +} + +func (GetGlobalConnectionBigqueryArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionBigquery)(nil)).Elem() +} + +func (i GetGlobalConnectionBigqueryArgs) ToGetGlobalConnectionBigqueryOutput() GetGlobalConnectionBigqueryOutput { + return i.ToGetGlobalConnectionBigqueryOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionBigqueryArgs) ToGetGlobalConnectionBigqueryOutputWithContext(ctx context.Context) GetGlobalConnectionBigqueryOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionBigqueryOutput) +} + +type GetGlobalConnectionBigqueryOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionBigqueryOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionBigquery)(nil)).Elem() +} + +func (o GetGlobalConnectionBigqueryOutput) ToGetGlobalConnectionBigqueryOutput() GetGlobalConnectionBigqueryOutput { + return o +} + +func (o GetGlobalConnectionBigqueryOutput) ToGetGlobalConnectionBigqueryOutputWithContext(ctx context.Context) GetGlobalConnectionBigqueryOutput { + return o +} + +// OAuth Client ID +func (o GetGlobalConnectionBigqueryOutput) ApplicationId() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ApplicationId }).(pulumi.StringOutput) +} + +// OAuth Client Secret +func (o GetGlobalConnectionBigqueryOutput) ApplicationSecret() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ApplicationSecret }).(pulumi.StringOutput) +} + +// Auth Provider X509 Cert URL for the Service Account +func (o GetGlobalConnectionBigqueryOutput) AuthProviderX509CertUrl() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.AuthProviderX509CertUrl }).(pulumi.StringOutput) +} + +// Auth URI for the Service Account +func (o GetGlobalConnectionBigqueryOutput) AuthUri() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.AuthUri }).(pulumi.StringOutput) +} + +// Service Account email +func (o GetGlobalConnectionBigqueryOutput) ClientEmail() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ClientEmail }).(pulumi.StringOutput) +} + +// Client ID of the Service Account +func (o GetGlobalConnectionBigqueryOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ClientId }).(pulumi.StringOutput) +} + +// Client X509 Cert URL for the Service Account +func (o GetGlobalConnectionBigqueryOutput) ClientX509CertUrl() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ClientX509CertUrl }).(pulumi.StringOutput) +} + +// Dataproc cluster name for PySpark workloads +func (o GetGlobalConnectionBigqueryOutput) DataprocClusterName() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.DataprocClusterName }).(pulumi.StringOutput) +} + +// Google Cloud region for PySpark workloads on Dataproc +func (o GetGlobalConnectionBigqueryOutput) DataprocRegion() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.DataprocRegion }).(pulumi.StringOutput) +} + +// Project to bill for query execution +func (o GetGlobalConnectionBigqueryOutput) ExecutionProject() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ExecutionProject }).(pulumi.StringOutput) +} + +// The GCP project ID to use for the connection +func (o GetGlobalConnectionBigqueryOutput) GcpProjectId() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.GcpProjectId }).(pulumi.StringOutput) +} + +// URI for a Google Cloud Storage bucket to host Python code executed via Datapro +func (o GetGlobalConnectionBigqueryOutput) GcsBucket() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.GcsBucket }).(pulumi.StringOutput) +} + +// Service Account to impersonate when running queries +func (o GetGlobalConnectionBigqueryOutput) ImpersonateServiceAccount() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.ImpersonateServiceAccount }).(pulumi.StringOutput) +} + +// Maximum timeout for the job creation step +func (o GetGlobalConnectionBigqueryOutput) JobCreationTimeoutSeconds() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) int { return v.JobCreationTimeoutSeconds }).(pulumi.IntOutput) +} + +// Total number of seconds to wait while retrying the same query +func (o GetGlobalConnectionBigqueryOutput) JobRetryDeadlineSeconds() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) int { return v.JobRetryDeadlineSeconds }).(pulumi.IntOutput) +} + +// Location to create new Datasets in +func (o GetGlobalConnectionBigqueryOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.Location }).(pulumi.StringOutput) +} + +// Max number of bytes that can be billed for a given BigQuery query +func (o GetGlobalConnectionBigqueryOutput) MaximumBytesBilled() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) int { return v.MaximumBytesBilled }).(pulumi.IntOutput) +} + +// The priority with which to execute BigQuery queries (batch or interactive) +func (o GetGlobalConnectionBigqueryOutput) Priority() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.Priority }).(pulumi.StringOutput) +} + +// Private Key for the Service Account +func (o GetGlobalConnectionBigqueryOutput) PrivateKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.PrivateKey }).(pulumi.StringOutput) +} + +// Private Key ID for the Service Account +func (o GetGlobalConnectionBigqueryOutput) PrivateKeyId() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.PrivateKeyId }).(pulumi.StringOutput) +} + +// Number of retries for queries +func (o GetGlobalConnectionBigqueryOutput) Retries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) int { return v.Retries }).(pulumi.IntOutput) +} + +// OAuth scopes for the BigQuery connection +func (o GetGlobalConnectionBigqueryOutput) Scopes() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) []string { return v.Scopes }).(pulumi.StringArrayOutput) +} + +// Timeout in seconds for queries +func (o GetGlobalConnectionBigqueryOutput) TimeoutSeconds() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) int { return v.TimeoutSeconds }).(pulumi.IntOutput) +} + +// Token URI for the Service Account +func (o GetGlobalConnectionBigqueryOutput) TokenUri() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionBigquery) string { return v.TokenUri }).(pulumi.StringOutput) +} + +type GetGlobalConnectionDatabricks struct { + // Catalog name if Unity Catalog is enabled in your Databricks workspace. + Catalog string `pulumi:"catalog"` + // Required to enable Databricks OAuth authentication for IDE developers. + ClientId string `pulumi:"clientId"` + // Required to enable Databricks OAuth authentication for IDE developers. + ClientSecret string `pulumi:"clientSecret"` + // The hostname of the Databricks cluster or SQL warehouse. + Host string `pulumi:"host"` + // The HTTP path of the Databricks cluster or SQL warehouse. + HttpPath string `pulumi:"httpPath"` +} + +// GetGlobalConnectionDatabricksInput is an input type that accepts GetGlobalConnectionDatabricksArgs and GetGlobalConnectionDatabricksOutput values. +// You can construct a concrete instance of `GetGlobalConnectionDatabricksInput` via: +// +// GetGlobalConnectionDatabricksArgs{...} +type GetGlobalConnectionDatabricksInput interface { + pulumi.Input + + ToGetGlobalConnectionDatabricksOutput() GetGlobalConnectionDatabricksOutput + ToGetGlobalConnectionDatabricksOutputWithContext(context.Context) GetGlobalConnectionDatabricksOutput +} + +type GetGlobalConnectionDatabricksArgs struct { + // Catalog name if Unity Catalog is enabled in your Databricks workspace. + Catalog pulumi.StringInput `pulumi:"catalog"` + // Required to enable Databricks OAuth authentication for IDE developers. + ClientId pulumi.StringInput `pulumi:"clientId"` + // Required to enable Databricks OAuth authentication for IDE developers. + ClientSecret pulumi.StringInput `pulumi:"clientSecret"` + // The hostname of the Databricks cluster or SQL warehouse. + Host pulumi.StringInput `pulumi:"host"` + // The HTTP path of the Databricks cluster or SQL warehouse. + HttpPath pulumi.StringInput `pulumi:"httpPath"` +} + +func (GetGlobalConnectionDatabricksArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionDatabricks)(nil)).Elem() +} + +func (i GetGlobalConnectionDatabricksArgs) ToGetGlobalConnectionDatabricksOutput() GetGlobalConnectionDatabricksOutput { + return i.ToGetGlobalConnectionDatabricksOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionDatabricksArgs) ToGetGlobalConnectionDatabricksOutputWithContext(ctx context.Context) GetGlobalConnectionDatabricksOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionDatabricksOutput) +} + +type GetGlobalConnectionDatabricksOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionDatabricksOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionDatabricks)(nil)).Elem() +} + +func (o GetGlobalConnectionDatabricksOutput) ToGetGlobalConnectionDatabricksOutput() GetGlobalConnectionDatabricksOutput { + return o +} + +func (o GetGlobalConnectionDatabricksOutput) ToGetGlobalConnectionDatabricksOutputWithContext(ctx context.Context) GetGlobalConnectionDatabricksOutput { + return o +} + +// Catalog name if Unity Catalog is enabled in your Databricks workspace. +func (o GetGlobalConnectionDatabricksOutput) Catalog() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionDatabricks) string { return v.Catalog }).(pulumi.StringOutput) +} + +// Required to enable Databricks OAuth authentication for IDE developers. +func (o GetGlobalConnectionDatabricksOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionDatabricks) string { return v.ClientId }).(pulumi.StringOutput) +} + +// Required to enable Databricks OAuth authentication for IDE developers. +func (o GetGlobalConnectionDatabricksOutput) ClientSecret() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionDatabricks) string { return v.ClientSecret }).(pulumi.StringOutput) +} + +// The hostname of the Databricks cluster or SQL warehouse. +func (o GetGlobalConnectionDatabricksOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionDatabricks) string { return v.Host }).(pulumi.StringOutput) +} + +// The HTTP path of the Databricks cluster or SQL warehouse. +func (o GetGlobalConnectionDatabricksOutput) HttpPath() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionDatabricks) string { return v.HttpPath }).(pulumi.StringOutput) +} + +type GetGlobalConnectionFabric struct { + // The database to connect to for this connection. + Database string `pulumi:"database"` + // The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + LoginTimeout int `pulumi:"loginTimeout"` + // The port to connect to for this connection. Default=1433 + Port int `pulumi:"port"` + // The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + QueryTimeout int `pulumi:"queryTimeout"` + // The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + Retries int `pulumi:"retries"` + // The server hostname. + Server string `pulumi:"server"` +} + +// GetGlobalConnectionFabricInput is an input type that accepts GetGlobalConnectionFabricArgs and GetGlobalConnectionFabricOutput values. +// You can construct a concrete instance of `GetGlobalConnectionFabricInput` via: +// +// GetGlobalConnectionFabricArgs{...} +type GetGlobalConnectionFabricInput interface { + pulumi.Input + + ToGetGlobalConnectionFabricOutput() GetGlobalConnectionFabricOutput + ToGetGlobalConnectionFabricOutputWithContext(context.Context) GetGlobalConnectionFabricOutput +} + +type GetGlobalConnectionFabricArgs struct { + // The database to connect to for this connection. + Database pulumi.StringInput `pulumi:"database"` + // The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + LoginTimeout pulumi.IntInput `pulumi:"loginTimeout"` + // The port to connect to for this connection. Default=1433 + Port pulumi.IntInput `pulumi:"port"` + // The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + QueryTimeout pulumi.IntInput `pulumi:"queryTimeout"` + // The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + Retries pulumi.IntInput `pulumi:"retries"` + // The server hostname. + Server pulumi.StringInput `pulumi:"server"` +} + +func (GetGlobalConnectionFabricArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionFabric)(nil)).Elem() +} + +func (i GetGlobalConnectionFabricArgs) ToGetGlobalConnectionFabricOutput() GetGlobalConnectionFabricOutput { + return i.ToGetGlobalConnectionFabricOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionFabricArgs) ToGetGlobalConnectionFabricOutputWithContext(ctx context.Context) GetGlobalConnectionFabricOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionFabricOutput) +} + +type GetGlobalConnectionFabricOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionFabricOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionFabric)(nil)).Elem() +} + +func (o GetGlobalConnectionFabricOutput) ToGetGlobalConnectionFabricOutput() GetGlobalConnectionFabricOutput { + return o +} + +func (o GetGlobalConnectionFabricOutput) ToGetGlobalConnectionFabricOutputWithContext(ctx context.Context) GetGlobalConnectionFabricOutput { + return o +} + +// The database to connect to for this connection. +func (o GetGlobalConnectionFabricOutput) Database() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionFabric) string { return v.Database }).(pulumi.StringOutput) +} + +// The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. +func (o GetGlobalConnectionFabricOutput) LoginTimeout() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionFabric) int { return v.LoginTimeout }).(pulumi.IntOutput) +} + +// The port to connect to for this connection. Default=1433 +func (o GetGlobalConnectionFabricOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionFabric) int { return v.Port }).(pulumi.IntOutput) +} + +// The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. +func (o GetGlobalConnectionFabricOutput) QueryTimeout() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionFabric) int { return v.QueryTimeout }).(pulumi.IntOutput) +} + +// The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. +func (o GetGlobalConnectionFabricOutput) Retries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionFabric) int { return v.Retries }).(pulumi.IntOutput) +} + +// The server hostname. +func (o GetGlobalConnectionFabricOutput) Server() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionFabric) string { return v.Server }).(pulumi.StringOutput) +} + +type GetGlobalConnectionPostgres struct { + // The database name for this connection. + Dbname string `pulumi:"dbname"` + // The hostname of the database. + Hostname string `pulumi:"hostname"` + // The port to connect to for this connection. Default=5432 + Port int `pulumi:"port"` + // PostgreSQL SSH Tunnel configuration + SshTunnel GetGlobalConnectionPostgresSshTunnel `pulumi:"sshTunnel"` +} + +// GetGlobalConnectionPostgresInput is an input type that accepts GetGlobalConnectionPostgresArgs and GetGlobalConnectionPostgresOutput values. +// You can construct a concrete instance of `GetGlobalConnectionPostgresInput` via: +// +// GetGlobalConnectionPostgresArgs{...} +type GetGlobalConnectionPostgresInput interface { + pulumi.Input + + ToGetGlobalConnectionPostgresOutput() GetGlobalConnectionPostgresOutput + ToGetGlobalConnectionPostgresOutputWithContext(context.Context) GetGlobalConnectionPostgresOutput +} + +type GetGlobalConnectionPostgresArgs struct { + // The database name for this connection. + Dbname pulumi.StringInput `pulumi:"dbname"` + // The hostname of the database. + Hostname pulumi.StringInput `pulumi:"hostname"` + // The port to connect to for this connection. Default=5432 + Port pulumi.IntInput `pulumi:"port"` + // PostgreSQL SSH Tunnel configuration + SshTunnel GetGlobalConnectionPostgresSshTunnelInput `pulumi:"sshTunnel"` +} + +func (GetGlobalConnectionPostgresArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionPostgres)(nil)).Elem() +} + +func (i GetGlobalConnectionPostgresArgs) ToGetGlobalConnectionPostgresOutput() GetGlobalConnectionPostgresOutput { + return i.ToGetGlobalConnectionPostgresOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionPostgresArgs) ToGetGlobalConnectionPostgresOutputWithContext(ctx context.Context) GetGlobalConnectionPostgresOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionPostgresOutput) +} + +type GetGlobalConnectionPostgresOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionPostgresOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionPostgres)(nil)).Elem() +} + +func (o GetGlobalConnectionPostgresOutput) ToGetGlobalConnectionPostgresOutput() GetGlobalConnectionPostgresOutput { + return o +} + +func (o GetGlobalConnectionPostgresOutput) ToGetGlobalConnectionPostgresOutputWithContext(ctx context.Context) GetGlobalConnectionPostgresOutput { + return o +} + +// The database name for this connection. +func (o GetGlobalConnectionPostgresOutput) Dbname() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgres) string { return v.Dbname }).(pulumi.StringOutput) +} + +// The hostname of the database. +func (o GetGlobalConnectionPostgresOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgres) string { return v.Hostname }).(pulumi.StringOutput) +} + +// The port to connect to for this connection. Default=5432 +func (o GetGlobalConnectionPostgresOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgres) int { return v.Port }).(pulumi.IntOutput) +} + +// PostgreSQL SSH Tunnel configuration +func (o GetGlobalConnectionPostgresOutput) SshTunnel() GetGlobalConnectionPostgresSshTunnelOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgres) GetGlobalConnectionPostgresSshTunnel { return v.SshTunnel }).(GetGlobalConnectionPostgresSshTunnelOutput) +} + +type GetGlobalConnectionPostgresSshTunnel struct { + // The hostname for the SSH tunnel. + Hostname string `pulumi:"hostname"` + // The ID of the SSH tunnel connection. + Id int `pulumi:"id"` + // The HTTP port for the SSH tunnel. + Port int `pulumi:"port"` + // The SSH public key generated to allow connecting via SSH tunnel. + PublicKey string `pulumi:"publicKey"` + // The username to use for the SSH tunnel. + Username string `pulumi:"username"` +} + +// GetGlobalConnectionPostgresSshTunnelInput is an input type that accepts GetGlobalConnectionPostgresSshTunnelArgs and GetGlobalConnectionPostgresSshTunnelOutput values. +// You can construct a concrete instance of `GetGlobalConnectionPostgresSshTunnelInput` via: +// +// GetGlobalConnectionPostgresSshTunnelArgs{...} +type GetGlobalConnectionPostgresSshTunnelInput interface { + pulumi.Input + + ToGetGlobalConnectionPostgresSshTunnelOutput() GetGlobalConnectionPostgresSshTunnelOutput + ToGetGlobalConnectionPostgresSshTunnelOutputWithContext(context.Context) GetGlobalConnectionPostgresSshTunnelOutput +} + +type GetGlobalConnectionPostgresSshTunnelArgs struct { + // The hostname for the SSH tunnel. + Hostname pulumi.StringInput `pulumi:"hostname"` + // The ID of the SSH tunnel connection. + Id pulumi.IntInput `pulumi:"id"` + // The HTTP port for the SSH tunnel. + Port pulumi.IntInput `pulumi:"port"` + // The SSH public key generated to allow connecting via SSH tunnel. + PublicKey pulumi.StringInput `pulumi:"publicKey"` + // The username to use for the SSH tunnel. + Username pulumi.StringInput `pulumi:"username"` +} + +func (GetGlobalConnectionPostgresSshTunnelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionPostgresSshTunnel)(nil)).Elem() +} + +func (i GetGlobalConnectionPostgresSshTunnelArgs) ToGetGlobalConnectionPostgresSshTunnelOutput() GetGlobalConnectionPostgresSshTunnelOutput { + return i.ToGetGlobalConnectionPostgresSshTunnelOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionPostgresSshTunnelArgs) ToGetGlobalConnectionPostgresSshTunnelOutputWithContext(ctx context.Context) GetGlobalConnectionPostgresSshTunnelOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionPostgresSshTunnelOutput) +} + +type GetGlobalConnectionPostgresSshTunnelOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionPostgresSshTunnelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionPostgresSshTunnel)(nil)).Elem() +} + +func (o GetGlobalConnectionPostgresSshTunnelOutput) ToGetGlobalConnectionPostgresSshTunnelOutput() GetGlobalConnectionPostgresSshTunnelOutput { + return o +} + +func (o GetGlobalConnectionPostgresSshTunnelOutput) ToGetGlobalConnectionPostgresSshTunnelOutputWithContext(ctx context.Context) GetGlobalConnectionPostgresSshTunnelOutput { + return o +} + +// The hostname for the SSH tunnel. +func (o GetGlobalConnectionPostgresSshTunnelOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgresSshTunnel) string { return v.Hostname }).(pulumi.StringOutput) +} + +// The ID of the SSH tunnel connection. +func (o GetGlobalConnectionPostgresSshTunnelOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgresSshTunnel) int { return v.Id }).(pulumi.IntOutput) +} + +// The HTTP port for the SSH tunnel. +func (o GetGlobalConnectionPostgresSshTunnelOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgresSshTunnel) int { return v.Port }).(pulumi.IntOutput) +} + +// The SSH public key generated to allow connecting via SSH tunnel. +func (o GetGlobalConnectionPostgresSshTunnelOutput) PublicKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgresSshTunnel) string { return v.PublicKey }).(pulumi.StringOutput) +} + +// The username to use for the SSH tunnel. +func (o GetGlobalConnectionPostgresSshTunnelOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionPostgresSshTunnel) string { return v.Username }).(pulumi.StringOutput) +} + +type GetGlobalConnectionRedshift struct { + // The database name for this connection. + Dbname string `pulumi:"dbname"` + // The hostname of the data warehouse. + Hostname string `pulumi:"hostname"` + // The port to connect to for this connection. Default=5432 + Port int `pulumi:"port"` + // Redshift SSH Tunnel configuration + SshTunnel GetGlobalConnectionRedshiftSshTunnel `pulumi:"sshTunnel"` +} + +// GetGlobalConnectionRedshiftInput is an input type that accepts GetGlobalConnectionRedshiftArgs and GetGlobalConnectionRedshiftOutput values. +// You can construct a concrete instance of `GetGlobalConnectionRedshiftInput` via: +// +// GetGlobalConnectionRedshiftArgs{...} +type GetGlobalConnectionRedshiftInput interface { + pulumi.Input + + ToGetGlobalConnectionRedshiftOutput() GetGlobalConnectionRedshiftOutput + ToGetGlobalConnectionRedshiftOutputWithContext(context.Context) GetGlobalConnectionRedshiftOutput +} + +type GetGlobalConnectionRedshiftArgs struct { + // The database name for this connection. + Dbname pulumi.StringInput `pulumi:"dbname"` + // The hostname of the data warehouse. + Hostname pulumi.StringInput `pulumi:"hostname"` + // The port to connect to for this connection. Default=5432 + Port pulumi.IntInput `pulumi:"port"` + // Redshift SSH Tunnel configuration + SshTunnel GetGlobalConnectionRedshiftSshTunnelInput `pulumi:"sshTunnel"` +} + +func (GetGlobalConnectionRedshiftArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionRedshift)(nil)).Elem() +} + +func (i GetGlobalConnectionRedshiftArgs) ToGetGlobalConnectionRedshiftOutput() GetGlobalConnectionRedshiftOutput { + return i.ToGetGlobalConnectionRedshiftOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionRedshiftArgs) ToGetGlobalConnectionRedshiftOutputWithContext(ctx context.Context) GetGlobalConnectionRedshiftOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionRedshiftOutput) +} + +type GetGlobalConnectionRedshiftOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionRedshiftOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionRedshift)(nil)).Elem() +} + +func (o GetGlobalConnectionRedshiftOutput) ToGetGlobalConnectionRedshiftOutput() GetGlobalConnectionRedshiftOutput { + return o +} + +func (o GetGlobalConnectionRedshiftOutput) ToGetGlobalConnectionRedshiftOutputWithContext(ctx context.Context) GetGlobalConnectionRedshiftOutput { + return o +} + +// The database name for this connection. +func (o GetGlobalConnectionRedshiftOutput) Dbname() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshift) string { return v.Dbname }).(pulumi.StringOutput) +} + +// The hostname of the data warehouse. +func (o GetGlobalConnectionRedshiftOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshift) string { return v.Hostname }).(pulumi.StringOutput) +} + +// The port to connect to for this connection. Default=5432 +func (o GetGlobalConnectionRedshiftOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshift) int { return v.Port }).(pulumi.IntOutput) +} + +// Redshift SSH Tunnel configuration +func (o GetGlobalConnectionRedshiftOutput) SshTunnel() GetGlobalConnectionRedshiftSshTunnelOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshift) GetGlobalConnectionRedshiftSshTunnel { return v.SshTunnel }).(GetGlobalConnectionRedshiftSshTunnelOutput) +} + +type GetGlobalConnectionRedshiftSshTunnel struct { + // The hostname for the SSH tunnel. + Hostname string `pulumi:"hostname"` + // The ID of the SSH tunnel connection. + Id int `pulumi:"id"` + // The HTTP port for the SSH tunnel. + Port int `pulumi:"port"` + // The SSH public key generated to allow connecting via SSH tunnel. + PublicKey string `pulumi:"publicKey"` + // The username to use for the SSH tunnel. + Username string `pulumi:"username"` +} + +// GetGlobalConnectionRedshiftSshTunnelInput is an input type that accepts GetGlobalConnectionRedshiftSshTunnelArgs and GetGlobalConnectionRedshiftSshTunnelOutput values. +// You can construct a concrete instance of `GetGlobalConnectionRedshiftSshTunnelInput` via: +// +// GetGlobalConnectionRedshiftSshTunnelArgs{...} +type GetGlobalConnectionRedshiftSshTunnelInput interface { + pulumi.Input + + ToGetGlobalConnectionRedshiftSshTunnelOutput() GetGlobalConnectionRedshiftSshTunnelOutput + ToGetGlobalConnectionRedshiftSshTunnelOutputWithContext(context.Context) GetGlobalConnectionRedshiftSshTunnelOutput +} + +type GetGlobalConnectionRedshiftSshTunnelArgs struct { + // The hostname for the SSH tunnel. + Hostname pulumi.StringInput `pulumi:"hostname"` + // The ID of the SSH tunnel connection. + Id pulumi.IntInput `pulumi:"id"` + // The HTTP port for the SSH tunnel. + Port pulumi.IntInput `pulumi:"port"` + // The SSH public key generated to allow connecting via SSH tunnel. + PublicKey pulumi.StringInput `pulumi:"publicKey"` + // The username to use for the SSH tunnel. + Username pulumi.StringInput `pulumi:"username"` +} + +func (GetGlobalConnectionRedshiftSshTunnelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionRedshiftSshTunnel)(nil)).Elem() +} + +func (i GetGlobalConnectionRedshiftSshTunnelArgs) ToGetGlobalConnectionRedshiftSshTunnelOutput() GetGlobalConnectionRedshiftSshTunnelOutput { + return i.ToGetGlobalConnectionRedshiftSshTunnelOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionRedshiftSshTunnelArgs) ToGetGlobalConnectionRedshiftSshTunnelOutputWithContext(ctx context.Context) GetGlobalConnectionRedshiftSshTunnelOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionRedshiftSshTunnelOutput) +} + +type GetGlobalConnectionRedshiftSshTunnelOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionRedshiftSshTunnelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionRedshiftSshTunnel)(nil)).Elem() +} + +func (o GetGlobalConnectionRedshiftSshTunnelOutput) ToGetGlobalConnectionRedshiftSshTunnelOutput() GetGlobalConnectionRedshiftSshTunnelOutput { + return o +} + +func (o GetGlobalConnectionRedshiftSshTunnelOutput) ToGetGlobalConnectionRedshiftSshTunnelOutputWithContext(ctx context.Context) GetGlobalConnectionRedshiftSshTunnelOutput { + return o +} + +// The hostname for the SSH tunnel. +func (o GetGlobalConnectionRedshiftSshTunnelOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshiftSshTunnel) string { return v.Hostname }).(pulumi.StringOutput) +} + +// The ID of the SSH tunnel connection. +func (o GetGlobalConnectionRedshiftSshTunnelOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshiftSshTunnel) int { return v.Id }).(pulumi.IntOutput) +} + +// The HTTP port for the SSH tunnel. +func (o GetGlobalConnectionRedshiftSshTunnelOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshiftSshTunnel) int { return v.Port }).(pulumi.IntOutput) +} + +// The SSH public key generated to allow connecting via SSH tunnel. +func (o GetGlobalConnectionRedshiftSshTunnelOutput) PublicKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshiftSshTunnel) string { return v.PublicKey }).(pulumi.StringOutput) +} + +// The username to use for the SSH tunnel. +func (o GetGlobalConnectionRedshiftSshTunnelOutput) Username() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionRedshiftSshTunnel) string { return v.Username }).(pulumi.StringOutput) +} + +type GetGlobalConnectionSnowflake struct { + // The Snowflake account name + Account string `pulumi:"account"` + // Whether to allow Snowflake OAuth for the connection. If true, the `oauthClientId` and `oauthClientSecret` fields must be set + AllowSso bool `pulumi:"allowSso"` + // If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + ClientSessionKeepAlive bool `pulumi:"clientSessionKeepAlive"` + // The default database for the connection + Database string `pulumi:"database"` + // OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + OauthClientId string `pulumi:"oauthClientId"` + // OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + OauthClientSecret string `pulumi:"oauthClientSecret"` + // The Snowflake role to use when running queries on the connection + Role string `pulumi:"role"` + // The default Snowflake Warehouse to use for the connection + Warehouse string `pulumi:"warehouse"` +} + +// GetGlobalConnectionSnowflakeInput is an input type that accepts GetGlobalConnectionSnowflakeArgs and GetGlobalConnectionSnowflakeOutput values. +// You can construct a concrete instance of `GetGlobalConnectionSnowflakeInput` via: +// +// GetGlobalConnectionSnowflakeArgs{...} +type GetGlobalConnectionSnowflakeInput interface { + pulumi.Input + + ToGetGlobalConnectionSnowflakeOutput() GetGlobalConnectionSnowflakeOutput + ToGetGlobalConnectionSnowflakeOutputWithContext(context.Context) GetGlobalConnectionSnowflakeOutput +} + +type GetGlobalConnectionSnowflakeArgs struct { + // The Snowflake account name + Account pulumi.StringInput `pulumi:"account"` + // Whether to allow Snowflake OAuth for the connection. If true, the `oauthClientId` and `oauthClientSecret` fields must be set + AllowSso pulumi.BoolInput `pulumi:"allowSso"` + // If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + ClientSessionKeepAlive pulumi.BoolInput `pulumi:"clientSessionKeepAlive"` + // The default database for the connection + Database pulumi.StringInput `pulumi:"database"` + // OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + OauthClientId pulumi.StringInput `pulumi:"oauthClientId"` + // OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + OauthClientSecret pulumi.StringInput `pulumi:"oauthClientSecret"` + // The Snowflake role to use when running queries on the connection + Role pulumi.StringInput `pulumi:"role"` + // The default Snowflake Warehouse to use for the connection + Warehouse pulumi.StringInput `pulumi:"warehouse"` +} + +func (GetGlobalConnectionSnowflakeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionSnowflake)(nil)).Elem() +} + +func (i GetGlobalConnectionSnowflakeArgs) ToGetGlobalConnectionSnowflakeOutput() GetGlobalConnectionSnowflakeOutput { + return i.ToGetGlobalConnectionSnowflakeOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionSnowflakeArgs) ToGetGlobalConnectionSnowflakeOutputWithContext(ctx context.Context) GetGlobalConnectionSnowflakeOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionSnowflakeOutput) +} + +type GetGlobalConnectionSnowflakeOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionSnowflakeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionSnowflake)(nil)).Elem() +} + +func (o GetGlobalConnectionSnowflakeOutput) ToGetGlobalConnectionSnowflakeOutput() GetGlobalConnectionSnowflakeOutput { + return o +} + +func (o GetGlobalConnectionSnowflakeOutput) ToGetGlobalConnectionSnowflakeOutputWithContext(ctx context.Context) GetGlobalConnectionSnowflakeOutput { + return o +} + +// The Snowflake account name +func (o GetGlobalConnectionSnowflakeOutput) Account() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) string { return v.Account }).(pulumi.StringOutput) +} + +// Whether to allow Snowflake OAuth for the connection. If true, the `oauthClientId` and `oauthClientSecret` fields must be set +func (o GetGlobalConnectionSnowflakeOutput) AllowSso() pulumi.BoolOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) bool { return v.AllowSso }).(pulumi.BoolOutput) +} + +// If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) +func (o GetGlobalConnectionSnowflakeOutput) ClientSessionKeepAlive() pulumi.BoolOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) bool { return v.ClientSessionKeepAlive }).(pulumi.BoolOutput) +} + +// The default database for the connection +func (o GetGlobalConnectionSnowflakeOutput) Database() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) string { return v.Database }).(pulumi.StringOutput) +} + +// OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake +func (o GetGlobalConnectionSnowflakeOutput) OauthClientId() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) string { return v.OauthClientId }).(pulumi.StringOutput) +} + +// OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake +func (o GetGlobalConnectionSnowflakeOutput) OauthClientSecret() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) string { return v.OauthClientSecret }).(pulumi.StringOutput) +} + +// The Snowflake role to use when running queries on the connection +func (o GetGlobalConnectionSnowflakeOutput) Role() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) string { return v.Role }).(pulumi.StringOutput) +} + +// The default Snowflake Warehouse to use for the connection +func (o GetGlobalConnectionSnowflakeOutput) Warehouse() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSnowflake) string { return v.Warehouse }).(pulumi.StringOutput) +} + +type GetGlobalConnectionStarburst struct { + // The hostname of the account to connect to. + Host string `pulumi:"host"` + // The authentication method. Only LDAP for now. + Method string `pulumi:"method"` + // The port to connect to for this connection. Default=443 + Port int `pulumi:"port"` +} + +// GetGlobalConnectionStarburstInput is an input type that accepts GetGlobalConnectionStarburstArgs and GetGlobalConnectionStarburstOutput values. +// You can construct a concrete instance of `GetGlobalConnectionStarburstInput` via: +// +// GetGlobalConnectionStarburstArgs{...} +type GetGlobalConnectionStarburstInput interface { + pulumi.Input + + ToGetGlobalConnectionStarburstOutput() GetGlobalConnectionStarburstOutput + ToGetGlobalConnectionStarburstOutputWithContext(context.Context) GetGlobalConnectionStarburstOutput +} + +type GetGlobalConnectionStarburstArgs struct { + // The hostname of the account to connect to. + Host pulumi.StringInput `pulumi:"host"` + // The authentication method. Only LDAP for now. + Method pulumi.StringInput `pulumi:"method"` + // The port to connect to for this connection. Default=443 + Port pulumi.IntInput `pulumi:"port"` +} + +func (GetGlobalConnectionStarburstArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionStarburst)(nil)).Elem() +} + +func (i GetGlobalConnectionStarburstArgs) ToGetGlobalConnectionStarburstOutput() GetGlobalConnectionStarburstOutput { + return i.ToGetGlobalConnectionStarburstOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionStarburstArgs) ToGetGlobalConnectionStarburstOutputWithContext(ctx context.Context) GetGlobalConnectionStarburstOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionStarburstOutput) +} + +type GetGlobalConnectionStarburstOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionStarburstOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionStarburst)(nil)).Elem() +} + +func (o GetGlobalConnectionStarburstOutput) ToGetGlobalConnectionStarburstOutput() GetGlobalConnectionStarburstOutput { + return o +} + +func (o GetGlobalConnectionStarburstOutput) ToGetGlobalConnectionStarburstOutputWithContext(ctx context.Context) GetGlobalConnectionStarburstOutput { + return o +} + +// The hostname of the account to connect to. +func (o GetGlobalConnectionStarburstOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionStarburst) string { return v.Host }).(pulumi.StringOutput) +} + +// The authentication method. Only LDAP for now. +func (o GetGlobalConnectionStarburstOutput) Method() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionStarburst) string { return v.Method }).(pulumi.StringOutput) +} + +// The port to connect to for this connection. Default=443 +func (o GetGlobalConnectionStarburstOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionStarburst) int { return v.Port }).(pulumi.IntOutput) +} + +type GetGlobalConnectionSynapse struct { + // The database to connect to for this connection. + Database string `pulumi:"database"` + // The server hostname. + Host string `pulumi:"host"` + // The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + LoginTimeout int `pulumi:"loginTimeout"` + // The port to connect to for this connection. Default=1433 + Port int `pulumi:"port"` + // The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + QueryTimeout int `pulumi:"queryTimeout"` + // The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + Retries int `pulumi:"retries"` +} + +// GetGlobalConnectionSynapseInput is an input type that accepts GetGlobalConnectionSynapseArgs and GetGlobalConnectionSynapseOutput values. +// You can construct a concrete instance of `GetGlobalConnectionSynapseInput` via: +// +// GetGlobalConnectionSynapseArgs{...} +type GetGlobalConnectionSynapseInput interface { + pulumi.Input + + ToGetGlobalConnectionSynapseOutput() GetGlobalConnectionSynapseOutput + ToGetGlobalConnectionSynapseOutputWithContext(context.Context) GetGlobalConnectionSynapseOutput +} + +type GetGlobalConnectionSynapseArgs struct { + // The database to connect to for this connection. + Database pulumi.StringInput `pulumi:"database"` + // The server hostname. + Host pulumi.StringInput `pulumi:"host"` + // The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + LoginTimeout pulumi.IntInput `pulumi:"loginTimeout"` + // The port to connect to for this connection. Default=1433 + Port pulumi.IntInput `pulumi:"port"` + // The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + QueryTimeout pulumi.IntInput `pulumi:"queryTimeout"` + // The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + Retries pulumi.IntInput `pulumi:"retries"` +} + +func (GetGlobalConnectionSynapseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionSynapse)(nil)).Elem() +} + +func (i GetGlobalConnectionSynapseArgs) ToGetGlobalConnectionSynapseOutput() GetGlobalConnectionSynapseOutput { + return i.ToGetGlobalConnectionSynapseOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionSynapseArgs) ToGetGlobalConnectionSynapseOutputWithContext(ctx context.Context) GetGlobalConnectionSynapseOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionSynapseOutput) +} + +type GetGlobalConnectionSynapseOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionSynapseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionSynapse)(nil)).Elem() +} + +func (o GetGlobalConnectionSynapseOutput) ToGetGlobalConnectionSynapseOutput() GetGlobalConnectionSynapseOutput { + return o +} + +func (o GetGlobalConnectionSynapseOutput) ToGetGlobalConnectionSynapseOutputWithContext(ctx context.Context) GetGlobalConnectionSynapseOutput { + return o +} + +// The database to connect to for this connection. +func (o GetGlobalConnectionSynapseOutput) Database() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSynapse) string { return v.Database }).(pulumi.StringOutput) +} + +// The server hostname. +func (o GetGlobalConnectionSynapseOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionSynapse) string { return v.Host }).(pulumi.StringOutput) +} + +// The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. +func (o GetGlobalConnectionSynapseOutput) LoginTimeout() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionSynapse) int { return v.LoginTimeout }).(pulumi.IntOutput) +} + +// The port to connect to for this connection. Default=1433 +func (o GetGlobalConnectionSynapseOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionSynapse) int { return v.Port }).(pulumi.IntOutput) +} + +// The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. +func (o GetGlobalConnectionSynapseOutput) QueryTimeout() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionSynapse) int { return v.QueryTimeout }).(pulumi.IntOutput) +} + +// The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. +func (o GetGlobalConnectionSynapseOutput) Retries() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionSynapse) int { return v.Retries }).(pulumi.IntOutput) +} + +type GetGlobalConnectionsConnection struct { + // Type of adapter used for the connection + AdapterVersion string `pulumi:"adapterVersion"` + // When the connection was created + CreatedAt string `pulumi:"createdAt"` + // Number of environments using this connection + EnvironmentCount int `pulumi:"environmentCount"` + // Connection Identifier + Id int `pulumi:"id"` + IsSshTunnelEnabled bool `pulumi:"isSshTunnelEnabled"` + // Connection name + Name string `pulumi:"name"` + OauthConfigurationId int `pulumi:"oauthConfigurationId"` + // Private Link Endpoint ID. + PrivateLinkEndpointId int `pulumi:"privateLinkEndpointId"` + // When the connection was updated + UpdatedAt string `pulumi:"updatedAt"` +} + +// GetGlobalConnectionsConnectionInput is an input type that accepts GetGlobalConnectionsConnectionArgs and GetGlobalConnectionsConnectionOutput values. +// You can construct a concrete instance of `GetGlobalConnectionsConnectionInput` via: +// +// GetGlobalConnectionsConnectionArgs{...} +type GetGlobalConnectionsConnectionInput interface { + pulumi.Input + + ToGetGlobalConnectionsConnectionOutput() GetGlobalConnectionsConnectionOutput + ToGetGlobalConnectionsConnectionOutputWithContext(context.Context) GetGlobalConnectionsConnectionOutput +} + +type GetGlobalConnectionsConnectionArgs struct { + // Type of adapter used for the connection + AdapterVersion pulumi.StringInput `pulumi:"adapterVersion"` + // When the connection was created + CreatedAt pulumi.StringInput `pulumi:"createdAt"` + // Number of environments using this connection + EnvironmentCount pulumi.IntInput `pulumi:"environmentCount"` + // Connection Identifier + Id pulumi.IntInput `pulumi:"id"` + IsSshTunnelEnabled pulumi.BoolInput `pulumi:"isSshTunnelEnabled"` + // Connection name + Name pulumi.StringInput `pulumi:"name"` + OauthConfigurationId pulumi.IntInput `pulumi:"oauthConfigurationId"` + // Private Link Endpoint ID. + PrivateLinkEndpointId pulumi.IntInput `pulumi:"privateLinkEndpointId"` + // When the connection was updated + UpdatedAt pulumi.StringInput `pulumi:"updatedAt"` +} + +func (GetGlobalConnectionsConnectionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionsConnection)(nil)).Elem() +} + +func (i GetGlobalConnectionsConnectionArgs) ToGetGlobalConnectionsConnectionOutput() GetGlobalConnectionsConnectionOutput { + return i.ToGetGlobalConnectionsConnectionOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionsConnectionArgs) ToGetGlobalConnectionsConnectionOutputWithContext(ctx context.Context) GetGlobalConnectionsConnectionOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionsConnectionOutput) +} + +// GetGlobalConnectionsConnectionArrayInput is an input type that accepts GetGlobalConnectionsConnectionArray and GetGlobalConnectionsConnectionArrayOutput values. +// You can construct a concrete instance of `GetGlobalConnectionsConnectionArrayInput` via: +// +// GetGlobalConnectionsConnectionArray{ GetGlobalConnectionsConnectionArgs{...} } +type GetGlobalConnectionsConnectionArrayInput interface { + pulumi.Input + + ToGetGlobalConnectionsConnectionArrayOutput() GetGlobalConnectionsConnectionArrayOutput + ToGetGlobalConnectionsConnectionArrayOutputWithContext(context.Context) GetGlobalConnectionsConnectionArrayOutput +} + +type GetGlobalConnectionsConnectionArray []GetGlobalConnectionsConnectionInput + +func (GetGlobalConnectionsConnectionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetGlobalConnectionsConnection)(nil)).Elem() +} + +func (i GetGlobalConnectionsConnectionArray) ToGetGlobalConnectionsConnectionArrayOutput() GetGlobalConnectionsConnectionArrayOutput { + return i.ToGetGlobalConnectionsConnectionArrayOutputWithContext(context.Background()) +} + +func (i GetGlobalConnectionsConnectionArray) ToGetGlobalConnectionsConnectionArrayOutputWithContext(ctx context.Context) GetGlobalConnectionsConnectionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalConnectionsConnectionArrayOutput) +} + +type GetGlobalConnectionsConnectionOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionsConnectionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalConnectionsConnection)(nil)).Elem() +} + +func (o GetGlobalConnectionsConnectionOutput) ToGetGlobalConnectionsConnectionOutput() GetGlobalConnectionsConnectionOutput { + return o +} + +func (o GetGlobalConnectionsConnectionOutput) ToGetGlobalConnectionsConnectionOutputWithContext(ctx context.Context) GetGlobalConnectionsConnectionOutput { + return o +} + +// Type of adapter used for the connection +func (o GetGlobalConnectionsConnectionOutput) AdapterVersion() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) string { return v.AdapterVersion }).(pulumi.StringOutput) +} + +// When the connection was created +func (o GetGlobalConnectionsConnectionOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) string { return v.CreatedAt }).(pulumi.StringOutput) +} + +// Number of environments using this connection +func (o GetGlobalConnectionsConnectionOutput) EnvironmentCount() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) int { return v.EnvironmentCount }).(pulumi.IntOutput) +} + +// Connection Identifier +func (o GetGlobalConnectionsConnectionOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) int { return v.Id }).(pulumi.IntOutput) +} + +func (o GetGlobalConnectionsConnectionOutput) IsSshTunnelEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) bool { return v.IsSshTunnelEnabled }).(pulumi.BoolOutput) +} + +// Connection name +func (o GetGlobalConnectionsConnectionOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) string { return v.Name }).(pulumi.StringOutput) +} + +func (o GetGlobalConnectionsConnectionOutput) OauthConfigurationId() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) int { return v.OauthConfigurationId }).(pulumi.IntOutput) +} + +// Private Link Endpoint ID. +func (o GetGlobalConnectionsConnectionOutput) PrivateLinkEndpointId() pulumi.IntOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) int { return v.PrivateLinkEndpointId }).(pulumi.IntOutput) +} + +// When the connection was updated +func (o GetGlobalConnectionsConnectionOutput) UpdatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalConnectionsConnection) string { return v.UpdatedAt }).(pulumi.StringOutput) +} + +type GetGlobalConnectionsConnectionArrayOutput struct{ *pulumi.OutputState } + +func (GetGlobalConnectionsConnectionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetGlobalConnectionsConnection)(nil)).Elem() +} + +func (o GetGlobalConnectionsConnectionArrayOutput) ToGetGlobalConnectionsConnectionArrayOutput() GetGlobalConnectionsConnectionArrayOutput { + return o +} + +func (o GetGlobalConnectionsConnectionArrayOutput) ToGetGlobalConnectionsConnectionArrayOutputWithContext(ctx context.Context) GetGlobalConnectionsConnectionArrayOutput { + return o +} + +func (o GetGlobalConnectionsConnectionArrayOutput) Index(i pulumi.IntInput) GetGlobalConnectionsConnectionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetGlobalConnectionsConnection { + return vs[0].([]GetGlobalConnectionsConnection)[vs[1].(int)] + }).(GetGlobalConnectionsConnectionOutput) +} + type GetGroupGroupPermission struct { // Whether access should be provided for all projects or not. AllProjects bool `pulumi:"allProjects"` @@ -4955,6 +6453,315 @@ func (o GetJobsJobTriggersOutput) Schedule() pulumi.BoolOutput { return o.ApplyT(func(v GetJobsJobTriggers) bool { return v.Schedule }).(pulumi.BoolOutput) } +type GetProjectsProject struct { + // Details for the connection linked to the project + Connection GetProjectsProjectConnection `pulumi:"connection"` + // When the project was created + CreatedAt string `pulumi:"createdAt"` + // Subdirectory for the dbt project inside the git repo + DbtProjectSubdirectory string `pulumi:"dbtProjectSubdirectory"` + // Project description + Description string `pulumi:"description"` + // Project ID + Id int `pulumi:"id"` + // Project name + Name string `pulumi:"name"` + // Details for the repository linked to the project + Repository GetProjectsProjectRepository `pulumi:"repository"` + // Semantic layer config ID + SemanticLayerConfigId int `pulumi:"semanticLayerConfigId"` + // When the project was last updated + UpdatedAt string `pulumi:"updatedAt"` +} + +// GetProjectsProjectInput is an input type that accepts GetProjectsProjectArgs and GetProjectsProjectOutput values. +// You can construct a concrete instance of `GetProjectsProjectInput` via: +// +// GetProjectsProjectArgs{...} +type GetProjectsProjectInput interface { + pulumi.Input + + ToGetProjectsProjectOutput() GetProjectsProjectOutput + ToGetProjectsProjectOutputWithContext(context.Context) GetProjectsProjectOutput +} + +type GetProjectsProjectArgs struct { + // Details for the connection linked to the project + Connection GetProjectsProjectConnectionInput `pulumi:"connection"` + // When the project was created + CreatedAt pulumi.StringInput `pulumi:"createdAt"` + // Subdirectory for the dbt project inside the git repo + DbtProjectSubdirectory pulumi.StringInput `pulumi:"dbtProjectSubdirectory"` + // Project description + Description pulumi.StringInput `pulumi:"description"` + // Project ID + Id pulumi.IntInput `pulumi:"id"` + // Project name + Name pulumi.StringInput `pulumi:"name"` + // Details for the repository linked to the project + Repository GetProjectsProjectRepositoryInput `pulumi:"repository"` + // Semantic layer config ID + SemanticLayerConfigId pulumi.IntInput `pulumi:"semanticLayerConfigId"` + // When the project was last updated + UpdatedAt pulumi.StringInput `pulumi:"updatedAt"` +} + +func (GetProjectsProjectArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsProject)(nil)).Elem() +} + +func (i GetProjectsProjectArgs) ToGetProjectsProjectOutput() GetProjectsProjectOutput { + return i.ToGetProjectsProjectOutputWithContext(context.Background()) +} + +func (i GetProjectsProjectArgs) ToGetProjectsProjectOutputWithContext(ctx context.Context) GetProjectsProjectOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetProjectsProjectOutput) +} + +// GetProjectsProjectArrayInput is an input type that accepts GetProjectsProjectArray and GetProjectsProjectArrayOutput values. +// You can construct a concrete instance of `GetProjectsProjectArrayInput` via: +// +// GetProjectsProjectArray{ GetProjectsProjectArgs{...} } +type GetProjectsProjectArrayInput interface { + pulumi.Input + + ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput + ToGetProjectsProjectArrayOutputWithContext(context.Context) GetProjectsProjectArrayOutput +} + +type GetProjectsProjectArray []GetProjectsProjectInput + +func (GetProjectsProjectArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetProjectsProject)(nil)).Elem() +} + +func (i GetProjectsProjectArray) ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput { + return i.ToGetProjectsProjectArrayOutputWithContext(context.Background()) +} + +func (i GetProjectsProjectArray) ToGetProjectsProjectArrayOutputWithContext(ctx context.Context) GetProjectsProjectArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetProjectsProjectArrayOutput) +} + +type GetProjectsProjectOutput struct{ *pulumi.OutputState } + +func (GetProjectsProjectOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsProject)(nil)).Elem() +} + +func (o GetProjectsProjectOutput) ToGetProjectsProjectOutput() GetProjectsProjectOutput { + return o +} + +func (o GetProjectsProjectOutput) ToGetProjectsProjectOutputWithContext(ctx context.Context) GetProjectsProjectOutput { + return o +} + +// Details for the connection linked to the project +func (o GetProjectsProjectOutput) Connection() GetProjectsProjectConnectionOutput { + return o.ApplyT(func(v GetProjectsProject) GetProjectsProjectConnection { return v.Connection }).(GetProjectsProjectConnectionOutput) +} + +// When the project was created +func (o GetProjectsProjectOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProject) string { return v.CreatedAt }).(pulumi.StringOutput) +} + +// Subdirectory for the dbt project inside the git repo +func (o GetProjectsProjectOutput) DbtProjectSubdirectory() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProject) string { return v.DbtProjectSubdirectory }).(pulumi.StringOutput) +} + +// Project description +func (o GetProjectsProjectOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProject) string { return v.Description }).(pulumi.StringOutput) +} + +// Project ID +func (o GetProjectsProjectOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v GetProjectsProject) int { return v.Id }).(pulumi.IntOutput) +} + +// Project name +func (o GetProjectsProjectOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProject) string { return v.Name }).(pulumi.StringOutput) +} + +// Details for the repository linked to the project +func (o GetProjectsProjectOutput) Repository() GetProjectsProjectRepositoryOutput { + return o.ApplyT(func(v GetProjectsProject) GetProjectsProjectRepository { return v.Repository }).(GetProjectsProjectRepositoryOutput) +} + +// Semantic layer config ID +func (o GetProjectsProjectOutput) SemanticLayerConfigId() pulumi.IntOutput { + return o.ApplyT(func(v GetProjectsProject) int { return v.SemanticLayerConfigId }).(pulumi.IntOutput) +} + +// When the project was last updated +func (o GetProjectsProjectOutput) UpdatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProject) string { return v.UpdatedAt }).(pulumi.StringOutput) +} + +type GetProjectsProjectArrayOutput struct{ *pulumi.OutputState } + +func (GetProjectsProjectArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetProjectsProject)(nil)).Elem() +} + +func (o GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutput() GetProjectsProjectArrayOutput { + return o +} + +func (o GetProjectsProjectArrayOutput) ToGetProjectsProjectArrayOutputWithContext(ctx context.Context) GetProjectsProjectArrayOutput { + return o +} + +func (o GetProjectsProjectArrayOutput) Index(i pulumi.IntInput) GetProjectsProjectOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetProjectsProject { + return vs[0].([]GetProjectsProject)[vs[1].(int)] + }).(GetProjectsProjectOutput) +} + +type GetProjectsProjectConnection struct { + // Version of the adapter for the connection. Will tell what connection type it is + AdapterVersion string `pulumi:"adapterVersion"` + // Connection ID + Id int `pulumi:"id"` + // Connection name + Name string `pulumi:"name"` +} + +// GetProjectsProjectConnectionInput is an input type that accepts GetProjectsProjectConnectionArgs and GetProjectsProjectConnectionOutput values. +// You can construct a concrete instance of `GetProjectsProjectConnectionInput` via: +// +// GetProjectsProjectConnectionArgs{...} +type GetProjectsProjectConnectionInput interface { + pulumi.Input + + ToGetProjectsProjectConnectionOutput() GetProjectsProjectConnectionOutput + ToGetProjectsProjectConnectionOutputWithContext(context.Context) GetProjectsProjectConnectionOutput +} + +type GetProjectsProjectConnectionArgs struct { + // Version of the adapter for the connection. Will tell what connection type it is + AdapterVersion pulumi.StringInput `pulumi:"adapterVersion"` + // Connection ID + Id pulumi.IntInput `pulumi:"id"` + // Connection name + Name pulumi.StringInput `pulumi:"name"` +} + +func (GetProjectsProjectConnectionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsProjectConnection)(nil)).Elem() +} + +func (i GetProjectsProjectConnectionArgs) ToGetProjectsProjectConnectionOutput() GetProjectsProjectConnectionOutput { + return i.ToGetProjectsProjectConnectionOutputWithContext(context.Background()) +} + +func (i GetProjectsProjectConnectionArgs) ToGetProjectsProjectConnectionOutputWithContext(ctx context.Context) GetProjectsProjectConnectionOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetProjectsProjectConnectionOutput) +} + +type GetProjectsProjectConnectionOutput struct{ *pulumi.OutputState } + +func (GetProjectsProjectConnectionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsProjectConnection)(nil)).Elem() +} + +func (o GetProjectsProjectConnectionOutput) ToGetProjectsProjectConnectionOutput() GetProjectsProjectConnectionOutput { + return o +} + +func (o GetProjectsProjectConnectionOutput) ToGetProjectsProjectConnectionOutputWithContext(ctx context.Context) GetProjectsProjectConnectionOutput { + return o +} + +// Version of the adapter for the connection. Will tell what connection type it is +func (o GetProjectsProjectConnectionOutput) AdapterVersion() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProjectConnection) string { return v.AdapterVersion }).(pulumi.StringOutput) +} + +// Connection ID +func (o GetProjectsProjectConnectionOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v GetProjectsProjectConnection) int { return v.Id }).(pulumi.IntOutput) +} + +// Connection name +func (o GetProjectsProjectConnectionOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProjectConnection) string { return v.Name }).(pulumi.StringOutput) +} + +type GetProjectsProjectRepository struct { + // Repository ID + Id int `pulumi:"id"` + // URL template for PRs + PullRequestUrlTemplate string `pulumi:"pullRequestUrlTemplate"` + // URL of the git repo remote + RemoteUrl string `pulumi:"remoteUrl"` +} + +// GetProjectsProjectRepositoryInput is an input type that accepts GetProjectsProjectRepositoryArgs and GetProjectsProjectRepositoryOutput values. +// You can construct a concrete instance of `GetProjectsProjectRepositoryInput` via: +// +// GetProjectsProjectRepositoryArgs{...} +type GetProjectsProjectRepositoryInput interface { + pulumi.Input + + ToGetProjectsProjectRepositoryOutput() GetProjectsProjectRepositoryOutput + ToGetProjectsProjectRepositoryOutputWithContext(context.Context) GetProjectsProjectRepositoryOutput +} + +type GetProjectsProjectRepositoryArgs struct { + // Repository ID + Id pulumi.IntInput `pulumi:"id"` + // URL template for PRs + PullRequestUrlTemplate pulumi.StringInput `pulumi:"pullRequestUrlTemplate"` + // URL of the git repo remote + RemoteUrl pulumi.StringInput `pulumi:"remoteUrl"` +} + +func (GetProjectsProjectRepositoryArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsProjectRepository)(nil)).Elem() +} + +func (i GetProjectsProjectRepositoryArgs) ToGetProjectsProjectRepositoryOutput() GetProjectsProjectRepositoryOutput { + return i.ToGetProjectsProjectRepositoryOutputWithContext(context.Background()) +} + +func (i GetProjectsProjectRepositoryArgs) ToGetProjectsProjectRepositoryOutputWithContext(ctx context.Context) GetProjectsProjectRepositoryOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetProjectsProjectRepositoryOutput) +} + +type GetProjectsProjectRepositoryOutput struct{ *pulumi.OutputState } + +func (GetProjectsProjectRepositoryOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetProjectsProjectRepository)(nil)).Elem() +} + +func (o GetProjectsProjectRepositoryOutput) ToGetProjectsProjectRepositoryOutput() GetProjectsProjectRepositoryOutput { + return o +} + +func (o GetProjectsProjectRepositoryOutput) ToGetProjectsProjectRepositoryOutputWithContext(ctx context.Context) GetProjectsProjectRepositoryOutput { + return o +} + +// Repository ID +func (o GetProjectsProjectRepositoryOutput) Id() pulumi.IntOutput { + return o.ApplyT(func(v GetProjectsProjectRepository) int { return v.Id }).(pulumi.IntOutput) +} + +// URL template for PRs +func (o GetProjectsProjectRepositoryOutput) PullRequestUrlTemplate() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProjectRepository) string { return v.PullRequestUrlTemplate }).(pulumi.StringOutput) +} + +// URL of the git repo remote +func (o GetProjectsProjectRepositoryOutput) RemoteUrl() pulumi.StringOutput { + return o.ApplyT(func(v GetProjectsProjectRepository) string { return v.RemoteUrl }).(pulumi.StringOutput) +} + type GetServiceTokenServiceTokenPermission struct { // Whether or not to apply this permission to all projects for this service token AllProjects bool `pulumi:"allProjects"` @@ -5232,6 +7039,20 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceTokenServiceTokenPermissionArrayInput)(nil)).Elem(), ServiceTokenServiceTokenPermissionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetEnvironmentsEnvironmentInput)(nil)).Elem(), GetEnvironmentsEnvironmentArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetEnvironmentsEnvironmentArrayInput)(nil)).Elem(), GetEnvironmentsEnvironmentArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionApacheSparkInput)(nil)).Elem(), GetGlobalConnectionApacheSparkArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionAthenaInput)(nil)).Elem(), GetGlobalConnectionAthenaArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionBigqueryInput)(nil)).Elem(), GetGlobalConnectionBigqueryArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionDatabricksInput)(nil)).Elem(), GetGlobalConnectionDatabricksArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionFabricInput)(nil)).Elem(), GetGlobalConnectionFabricArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionPostgresInput)(nil)).Elem(), GetGlobalConnectionPostgresArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionPostgresSshTunnelInput)(nil)).Elem(), GetGlobalConnectionPostgresSshTunnelArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionRedshiftInput)(nil)).Elem(), GetGlobalConnectionRedshiftArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionRedshiftSshTunnelInput)(nil)).Elem(), GetGlobalConnectionRedshiftSshTunnelArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionSnowflakeInput)(nil)).Elem(), GetGlobalConnectionSnowflakeArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionStarburstInput)(nil)).Elem(), GetGlobalConnectionStarburstArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionSynapseInput)(nil)).Elem(), GetGlobalConnectionSynapseArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionsConnectionInput)(nil)).Elem(), GetGlobalConnectionsConnectionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetGlobalConnectionsConnectionArrayInput)(nil)).Elem(), GetGlobalConnectionsConnectionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetGroupGroupPermissionInput)(nil)).Elem(), GetGroupGroupPermissionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetGroupGroupPermissionArrayInput)(nil)).Elem(), GetGroupGroupPermissionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetGroupUsersUserInput)(nil)).Elem(), GetGroupUsersUserArgs{}) @@ -5247,6 +7068,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetJobsJobScheduleInput)(nil)).Elem(), GetJobsJobScheduleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetJobsJobSettingsInput)(nil)).Elem(), GetJobsJobSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetJobsJobTriggersInput)(nil)).Elem(), GetJobsJobTriggersArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetProjectsProjectInput)(nil)).Elem(), GetProjectsProjectArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetProjectsProjectArrayInput)(nil)).Elem(), GetProjectsProjectArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetProjectsProjectConnectionInput)(nil)).Elem(), GetProjectsProjectConnectionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetProjectsProjectRepositoryInput)(nil)).Elem(), GetProjectsProjectRepositoryArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetServiceTokenServiceTokenPermissionInput)(nil)).Elem(), GetServiceTokenServiceTokenPermissionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetServiceTokenServiceTokenPermissionArrayInput)(nil)).Elem(), GetServiceTokenServiceTokenPermissionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetUsersUserInput)(nil)).Elem(), GetUsersUserArgs{}) @@ -5285,6 +7110,20 @@ func init() { pulumi.RegisterOutputType(ServiceTokenServiceTokenPermissionArrayOutput{}) pulumi.RegisterOutputType(GetEnvironmentsEnvironmentOutput{}) pulumi.RegisterOutputType(GetEnvironmentsEnvironmentArrayOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionApacheSparkOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionAthenaOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionBigqueryOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionDatabricksOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionFabricOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionPostgresOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionPostgresSshTunnelOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionRedshiftOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionRedshiftSshTunnelOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionSnowflakeOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionStarburstOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionSynapseOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionsConnectionOutput{}) + pulumi.RegisterOutputType(GetGlobalConnectionsConnectionArrayOutput{}) pulumi.RegisterOutputType(GetGroupGroupPermissionOutput{}) pulumi.RegisterOutputType(GetGroupGroupPermissionArrayOutput{}) pulumi.RegisterOutputType(GetGroupUsersUserOutput{}) @@ -5300,6 +7139,10 @@ func init() { pulumi.RegisterOutputType(GetJobsJobScheduleOutput{}) pulumi.RegisterOutputType(GetJobsJobSettingsOutput{}) pulumi.RegisterOutputType(GetJobsJobTriggersOutput{}) + pulumi.RegisterOutputType(GetProjectsProjectOutput{}) + pulumi.RegisterOutputType(GetProjectsProjectArrayOutput{}) + pulumi.RegisterOutputType(GetProjectsProjectConnectionOutput{}) + pulumi.RegisterOutputType(GetProjectsProjectRepositoryOutput{}) pulumi.RegisterOutputType(GetServiceTokenServiceTokenPermissionOutput{}) pulumi.RegisterOutputType(GetServiceTokenServiceTokenPermissionArrayOutput{}) pulumi.RegisterOutputType(GetUsersUserOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/DbtcloudFunctions.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/DbtcloudFunctions.java index f1c600d..f28b0da 100644 --- a/sdk/java/src/main/java/com/pulumi/dbtcloud/DbtcloudFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/DbtcloudFunctions.java @@ -26,6 +26,8 @@ import com.pulumi.dbtcloud.inputs.GetEnvironmentsPlainArgs; import com.pulumi.dbtcloud.inputs.GetExtendedAttributesArgs; import com.pulumi.dbtcloud.inputs.GetExtendedAttributesPlainArgs; +import com.pulumi.dbtcloud.inputs.GetGlobalConnectionArgs; +import com.pulumi.dbtcloud.inputs.GetGlobalConnectionPlainArgs; import com.pulumi.dbtcloud.inputs.GetGroupArgs; import com.pulumi.dbtcloud.inputs.GetGroupPlainArgs; import com.pulumi.dbtcloud.inputs.GetGroupUsersArgs; @@ -42,6 +44,8 @@ import com.pulumi.dbtcloud.inputs.GetPrivatelinkEndpointPlainArgs; import com.pulumi.dbtcloud.inputs.GetProjectArgs; import com.pulumi.dbtcloud.inputs.GetProjectPlainArgs; +import com.pulumi.dbtcloud.inputs.GetProjectsArgs; +import com.pulumi.dbtcloud.inputs.GetProjectsPlainArgs; import com.pulumi.dbtcloud.inputs.GetRepositoryArgs; import com.pulumi.dbtcloud.inputs.GetRepositoryPlainArgs; import com.pulumi.dbtcloud.inputs.GetServiceTokenArgs; @@ -64,6 +68,8 @@ import com.pulumi.dbtcloud.outputs.GetEnvironmentVariableResult; import com.pulumi.dbtcloud.outputs.GetEnvironmentsResult; import com.pulumi.dbtcloud.outputs.GetExtendedAttributesResult; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionResult; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionsResult; import com.pulumi.dbtcloud.outputs.GetGroupResult; import com.pulumi.dbtcloud.outputs.GetGroupUsersResult; import com.pulumi.dbtcloud.outputs.GetJobResult; @@ -72,6 +78,7 @@ import com.pulumi.dbtcloud.outputs.GetPostgresCredentialResult; import com.pulumi.dbtcloud.outputs.GetPrivatelinkEndpointResult; import com.pulumi.dbtcloud.outputs.GetProjectResult; +import com.pulumi.dbtcloud.outputs.GetProjectsResult; import com.pulumi.dbtcloud.outputs.GetRepositoryResult; import com.pulumi.dbtcloud.outputs.GetServiceTokenResult; import com.pulumi.dbtcloud.outputs.GetSnowflakeCredentialResult; @@ -743,6 +750,400 @@ public static Output getExtendedAttributes(GetExten public static CompletableFuture getExtendedAttributesPlain(GetExtendedAttributesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("dbtcloud:index/getExtendedAttributes:getExtendedAttributes", TypeShape.of(GetExtendedAttributesResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * import com.pulumi.dbtcloud.inputs.GetGlobalConnectionArgs;
+     * 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) {
+     *         final var myConnection = DbtcloudFunctions.getGlobalConnection(GetGlobalConnectionArgs.builder()
+     *             .id(1234)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalConnection(GetGlobalConnectionArgs args) { + return getGlobalConnection(args, InvokeOptions.Empty); + } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * import com.pulumi.dbtcloud.inputs.GetGlobalConnectionArgs;
+     * 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) {
+     *         final var myConnection = DbtcloudFunctions.getGlobalConnection(GetGlobalConnectionArgs.builder()
+     *             .id(1234)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getGlobalConnectionPlain(GetGlobalConnectionPlainArgs args) { + return getGlobalConnectionPlain(args, InvokeOptions.Empty); + } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * import com.pulumi.dbtcloud.inputs.GetGlobalConnectionArgs;
+     * 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) {
+     *         final var myConnection = DbtcloudFunctions.getGlobalConnection(GetGlobalConnectionArgs.builder()
+     *             .id(1234)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalConnection(GetGlobalConnectionArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("dbtcloud:index/getGlobalConnection:getGlobalConnection", TypeShape.of(GetGlobalConnectionResult.class), args, Utilities.withVersion(options)); + } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * import com.pulumi.dbtcloud.inputs.GetGlobalConnectionArgs;
+     * 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) {
+     *         final var myConnection = DbtcloudFunctions.getGlobalConnection(GetGlobalConnectionArgs.builder()
+     *             .id(1234)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getGlobalConnectionPlain(GetGlobalConnectionPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("dbtcloud:index/getGlobalConnection:getGlobalConnection", TypeShape.of(GetGlobalConnectionResult.class), args, Utilities.withVersion(options)); + } + /** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * 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) {
+     *         final var myConnections = DbtcloudFunctions.getGlobalConnections();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalConnections() { + return getGlobalConnections(InvokeArgs.Empty, InvokeOptions.Empty); + } + /** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * 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) {
+     *         final var myConnections = DbtcloudFunctions.getGlobalConnections();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getGlobalConnectionsPlain() { + return getGlobalConnectionsPlain(InvokeArgs.Empty, InvokeOptions.Empty); + } + /** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * 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) {
+     *         final var myConnections = DbtcloudFunctions.getGlobalConnections();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalConnections(InvokeArgs args) { + return getGlobalConnections(args, InvokeOptions.Empty); + } + /** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * 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) {
+     *         final var myConnections = DbtcloudFunctions.getGlobalConnections();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getGlobalConnectionsPlain(InvokeArgs args) { + return getGlobalConnectionsPlain(args, InvokeOptions.Empty); + } + /** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * 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) {
+     *         final var myConnections = DbtcloudFunctions.getGlobalConnections();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalConnections(InvokeArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("dbtcloud:index/getGlobalConnections:getGlobalConnections", TypeShape.of(GetGlobalConnectionsResult.class), args, Utilities.withVersion(options)); + } + /** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.dbtcloud.DbtcloudFunctions;
+     * 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) {
+     *         final var myConnections = DbtcloudFunctions.getGlobalConnections();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getGlobalConnectionsPlain(InvokeArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("dbtcloud:index/getGlobalConnections:getGlobalConnections", TypeShape.of(GetGlobalConnectionsResult.class), args, Utilities.withVersion(options)); + } /** * Retrieve group details * @@ -1773,6 +2174,48 @@ public static Output getProject(GetProjectArgs args, InvokeOpt public static CompletableFuture getProjectPlain(GetProjectPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("dbtcloud:index/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + * + */ + public static Output getProjects() { + return getProjects(GetProjectsArgs.Empty, InvokeOptions.Empty); + } + /** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + * + */ + public static CompletableFuture getProjectsPlain() { + return getProjectsPlain(GetProjectsPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + * + */ + public static Output getProjects(GetProjectsArgs args) { + return getProjects(args, InvokeOptions.Empty); + } + /** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + * + */ + public static CompletableFuture getProjectsPlain(GetProjectsPlainArgs args) { + return getProjectsPlain(args, InvokeOptions.Empty); + } + /** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + * + */ + public static Output getProjects(GetProjectsArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("dbtcloud:index/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + * + */ + public static CompletableFuture getProjectsPlain(GetProjectsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("dbtcloud:index/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options)); + } public static Output getRepository(GetRepositoryArgs args) { return getRepository(args, InvokeOptions.Empty); } diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetGlobalConnectionArgs.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetGlobalConnectionArgs.java new file mode 100644 index 0000000..80ba3bc --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetGlobalConnectionArgs.java @@ -0,0 +1,85 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.util.Objects; + + +public final class GetGlobalConnectionArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetGlobalConnectionArgs Empty = new GetGlobalConnectionArgs(); + + /** + * Connection Identifier + * + */ + @Import(name="id", required=true) + private Output id; + + /** + * @return Connection Identifier + * + */ + public Output id() { + return this.id; + } + + private GetGlobalConnectionArgs() {} + + private GetGlobalConnectionArgs(GetGlobalConnectionArgs $) { + this.id = $.id; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetGlobalConnectionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetGlobalConnectionArgs $; + + public Builder() { + $ = new GetGlobalConnectionArgs(); + } + + public Builder(GetGlobalConnectionArgs defaults) { + $ = new GetGlobalConnectionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param id Connection Identifier + * + * @return builder + * + */ + public Builder id(Output id) { + $.id = id; + return this; + } + + /** + * @param id Connection Identifier + * + * @return builder + * + */ + public Builder id(Integer id) { + return id(Output.of(id)); + } + + public GetGlobalConnectionArgs build() { + if ($.id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionArgs", "id"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetGlobalConnectionPlainArgs.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetGlobalConnectionPlainArgs.java new file mode 100644 index 0000000..86631de --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetGlobalConnectionPlainArgs.java @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.util.Objects; + + +public final class GetGlobalConnectionPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetGlobalConnectionPlainArgs Empty = new GetGlobalConnectionPlainArgs(); + + /** + * Connection Identifier + * + */ + @Import(name="id", required=true) + private Integer id; + + /** + * @return Connection Identifier + * + */ + public Integer id() { + return this.id; + } + + private GetGlobalConnectionPlainArgs() {} + + private GetGlobalConnectionPlainArgs(GetGlobalConnectionPlainArgs $) { + this.id = $.id; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetGlobalConnectionPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetGlobalConnectionPlainArgs $; + + public Builder() { + $ = new GetGlobalConnectionPlainArgs(); + } + + public Builder(GetGlobalConnectionPlainArgs defaults) { + $ = new GetGlobalConnectionPlainArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param id Connection Identifier + * + * @return builder + * + */ + public Builder id(Integer id) { + $.id = id; + return this; + } + + public GetGlobalConnectionPlainArgs build() { + if ($.id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPlainArgs", "id"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetProjectsArgs.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetProjectsArgs.java new file mode 100644 index 0000000..deac8a4 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetProjectsArgs.java @@ -0,0 +1,83 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class GetProjectsArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetProjectsArgs Empty = new GetProjectsArgs(); + + /** + * Used to filter projects by name, Optional + * + */ + @Import(name="nameContains") + private @Nullable Output nameContains; + + /** + * @return Used to filter projects by name, Optional + * + */ + public Optional> nameContains() { + return Optional.ofNullable(this.nameContains); + } + + private GetProjectsArgs() {} + + private GetProjectsArgs(GetProjectsArgs $) { + this.nameContains = $.nameContains; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetProjectsArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetProjectsArgs $; + + public Builder() { + $ = new GetProjectsArgs(); + } + + public Builder(GetProjectsArgs defaults) { + $ = new GetProjectsArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param nameContains Used to filter projects by name, Optional + * + * @return builder + * + */ + public Builder nameContains(@Nullable Output nameContains) { + $.nameContains = nameContains; + return this; + } + + /** + * @param nameContains Used to filter projects by name, Optional + * + * @return builder + * + */ + public Builder nameContains(String nameContains) { + return nameContains(Output.of(nameContains)); + } + + public GetProjectsArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetProjectsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetProjectsPlainArgs.java new file mode 100644 index 0000000..1d66e6c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/inputs/GetProjectsPlainArgs.java @@ -0,0 +1,72 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.inputs; + +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class GetProjectsPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetProjectsPlainArgs Empty = new GetProjectsPlainArgs(); + + /** + * Used to filter projects by name, Optional + * + */ + @Import(name="nameContains") + private @Nullable String nameContains; + + /** + * @return Used to filter projects by name, Optional + * + */ + public Optional nameContains() { + return Optional.ofNullable(this.nameContains); + } + + private GetProjectsPlainArgs() {} + + private GetProjectsPlainArgs(GetProjectsPlainArgs $) { + this.nameContains = $.nameContains; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetProjectsPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetProjectsPlainArgs $; + + public Builder() { + $ = new GetProjectsPlainArgs(); + } + + public Builder(GetProjectsPlainArgs defaults) { + $ = new GetProjectsPlainArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param nameContains Used to filter projects by name, Optional + * + * @return builder + * + */ + public Builder nameContains(@Nullable String nameContains) { + $.nameContains = nameContains; + return this; + } + + public GetProjectsPlainArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionApacheSpark.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionApacheSpark.java new file mode 100644 index 0000000..fec7c55 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionApacheSpark.java @@ -0,0 +1,243 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionApacheSpark { + /** + * @return Auth + * + */ + private String auth; + /** + * @return Spark cluster for the connection + * + */ + private String cluster; + /** + * @return Connection retries. Default=0 + * + */ + private Integer connectRetries; + /** + * @return Connection time out in seconds. Default=10 + * + */ + private Integer connectTimeout; + /** + * @return Hostname of the connection + * + */ + private String host; + /** + * @return Authentication method for the connection (http or thrift). + * + */ + private String method; + /** + * @return Organization ID + * + */ + private String organization; + /** + * @return Port for the connection. Default=443 + * + */ + private Integer port; + /** + * @return User + * + */ + private String user; + + private GetGlobalConnectionApacheSpark() {} + /** + * @return Auth + * + */ + public String auth() { + return this.auth; + } + /** + * @return Spark cluster for the connection + * + */ + public String cluster() { + return this.cluster; + } + /** + * @return Connection retries. Default=0 + * + */ + public Integer connectRetries() { + return this.connectRetries; + } + /** + * @return Connection time out in seconds. Default=10 + * + */ + public Integer connectTimeout() { + return this.connectTimeout; + } + /** + * @return Hostname of the connection + * + */ + public String host() { + return this.host; + } + /** + * @return Authentication method for the connection (http or thrift). + * + */ + public String method() { + return this.method; + } + /** + * @return Organization ID + * + */ + public String organization() { + return this.organization; + } + /** + * @return Port for the connection. Default=443 + * + */ + public Integer port() { + return this.port; + } + /** + * @return User + * + */ + public String user() { + return this.user; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionApacheSpark defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String auth; + private String cluster; + private Integer connectRetries; + private Integer connectTimeout; + private String host; + private String method; + private String organization; + private Integer port; + private String user; + public Builder() {} + public Builder(GetGlobalConnectionApacheSpark defaults) { + Objects.requireNonNull(defaults); + this.auth = defaults.auth; + this.cluster = defaults.cluster; + this.connectRetries = defaults.connectRetries; + this.connectTimeout = defaults.connectTimeout; + this.host = defaults.host; + this.method = defaults.method; + this.organization = defaults.organization; + this.port = defaults.port; + this.user = defaults.user; + } + + @CustomType.Setter + public Builder auth(String auth) { + if (auth == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "auth"); + } + this.auth = auth; + return this; + } + @CustomType.Setter + public Builder cluster(String cluster) { + if (cluster == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "cluster"); + } + this.cluster = cluster; + return this; + } + @CustomType.Setter + public Builder connectRetries(Integer connectRetries) { + if (connectRetries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "connectRetries"); + } + this.connectRetries = connectRetries; + return this; + } + @CustomType.Setter + public Builder connectTimeout(Integer connectTimeout) { + if (connectTimeout == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "connectTimeout"); + } + this.connectTimeout = connectTimeout; + return this; + } + @CustomType.Setter + public Builder host(String host) { + if (host == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "host"); + } + this.host = host; + return this; + } + @CustomType.Setter + public Builder method(String method) { + if (method == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "method"); + } + this.method = method; + return this; + } + @CustomType.Setter + public Builder organization(String organization) { + if (organization == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "organization"); + } + this.organization = organization; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder user(String user) { + if (user == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionApacheSpark", "user"); + } + this.user = user; + return this; + } + public GetGlobalConnectionApacheSpark build() { + final var _resultValue = new GetGlobalConnectionApacheSpark(); + _resultValue.auth = auth; + _resultValue.cluster = cluster; + _resultValue.connectRetries = connectRetries; + _resultValue.connectTimeout = connectTimeout; + _resultValue.host = host; + _resultValue.method = method; + _resultValue.organization = organization; + _resultValue.port = port; + _resultValue.user = user; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionAthena.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionAthena.java new file mode 100644 index 0000000..54be8ff --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionAthena.java @@ -0,0 +1,312 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionAthena { + /** + * @return Specify the database (data catalog) to build models into (lowercase only). + * + */ + private String database; + /** + * @return Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + * + */ + private Integer numBoto3Retries; + /** + * @return Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + * + */ + private Integer numIcebergRetries; + /** + * @return Number of times to retry a failing query. + * + */ + private Integer numRetries; + /** + * @return Interval in seconds to use for polling the status of query results in Athena. + * + */ + private Integer pollInterval; + /** + * @return AWS region of your Athena instance. + * + */ + private String regionName; + /** + * @return Prefix for storing tables, if different from the connection's S3 staging directory. + * + */ + private String s3DataDir; + /** + * @return How to generate table paths in the S3 data directory. + * + */ + private String s3DataNaming; + /** + * @return S3 location to store Athena query results and metadata. + * + */ + private String s3StagingDir; + /** + * @return Prefix for storing temporary tables, if different from the connection's S3 data directory. + * + */ + private String s3TmpTableDir; + /** + * @return Identifier of Athena Spark workgroup for running Python models. + * + */ + private String sparkWorkGroup; + /** + * @return Identifier of Athena workgroup. + * + */ + private String workGroup; + + private GetGlobalConnectionAthena() {} + /** + * @return Specify the database (data catalog) to build models into (lowercase only). + * + */ + public String database() { + return this.database; + } + /** + * @return Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + * + */ + public Integer numBoto3Retries() { + return this.numBoto3Retries; + } + /** + * @return Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + * + */ + public Integer numIcebergRetries() { + return this.numIcebergRetries; + } + /** + * @return Number of times to retry a failing query. + * + */ + public Integer numRetries() { + return this.numRetries; + } + /** + * @return Interval in seconds to use for polling the status of query results in Athena. + * + */ + public Integer pollInterval() { + return this.pollInterval; + } + /** + * @return AWS region of your Athena instance. + * + */ + public String regionName() { + return this.regionName; + } + /** + * @return Prefix for storing tables, if different from the connection's S3 staging directory. + * + */ + public String s3DataDir() { + return this.s3DataDir; + } + /** + * @return How to generate table paths in the S3 data directory. + * + */ + public String s3DataNaming() { + return this.s3DataNaming; + } + /** + * @return S3 location to store Athena query results and metadata. + * + */ + public String s3StagingDir() { + return this.s3StagingDir; + } + /** + * @return Prefix for storing temporary tables, if different from the connection's S3 data directory. + * + */ + public String s3TmpTableDir() { + return this.s3TmpTableDir; + } + /** + * @return Identifier of Athena Spark workgroup for running Python models. + * + */ + public String sparkWorkGroup() { + return this.sparkWorkGroup; + } + /** + * @return Identifier of Athena workgroup. + * + */ + public String workGroup() { + return this.workGroup; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionAthena defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String database; + private Integer numBoto3Retries; + private Integer numIcebergRetries; + private Integer numRetries; + private Integer pollInterval; + private String regionName; + private String s3DataDir; + private String s3DataNaming; + private String s3StagingDir; + private String s3TmpTableDir; + private String sparkWorkGroup; + private String workGroup; + public Builder() {} + public Builder(GetGlobalConnectionAthena defaults) { + Objects.requireNonNull(defaults); + this.database = defaults.database; + this.numBoto3Retries = defaults.numBoto3Retries; + this.numIcebergRetries = defaults.numIcebergRetries; + this.numRetries = defaults.numRetries; + this.pollInterval = defaults.pollInterval; + this.regionName = defaults.regionName; + this.s3DataDir = defaults.s3DataDir; + this.s3DataNaming = defaults.s3DataNaming; + this.s3StagingDir = defaults.s3StagingDir; + this.s3TmpTableDir = defaults.s3TmpTableDir; + this.sparkWorkGroup = defaults.sparkWorkGroup; + this.workGroup = defaults.workGroup; + } + + @CustomType.Setter + public Builder database(String database) { + if (database == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "database"); + } + this.database = database; + return this; + } + @CustomType.Setter + public Builder numBoto3Retries(Integer numBoto3Retries) { + if (numBoto3Retries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "numBoto3Retries"); + } + this.numBoto3Retries = numBoto3Retries; + return this; + } + @CustomType.Setter + public Builder numIcebergRetries(Integer numIcebergRetries) { + if (numIcebergRetries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "numIcebergRetries"); + } + this.numIcebergRetries = numIcebergRetries; + return this; + } + @CustomType.Setter + public Builder numRetries(Integer numRetries) { + if (numRetries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "numRetries"); + } + this.numRetries = numRetries; + return this; + } + @CustomType.Setter + public Builder pollInterval(Integer pollInterval) { + if (pollInterval == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "pollInterval"); + } + this.pollInterval = pollInterval; + return this; + } + @CustomType.Setter + public Builder regionName(String regionName) { + if (regionName == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "regionName"); + } + this.regionName = regionName; + return this; + } + @CustomType.Setter + public Builder s3DataDir(String s3DataDir) { + if (s3DataDir == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "s3DataDir"); + } + this.s3DataDir = s3DataDir; + return this; + } + @CustomType.Setter + public Builder s3DataNaming(String s3DataNaming) { + if (s3DataNaming == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "s3DataNaming"); + } + this.s3DataNaming = s3DataNaming; + return this; + } + @CustomType.Setter + public Builder s3StagingDir(String s3StagingDir) { + if (s3StagingDir == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "s3StagingDir"); + } + this.s3StagingDir = s3StagingDir; + return this; + } + @CustomType.Setter + public Builder s3TmpTableDir(String s3TmpTableDir) { + if (s3TmpTableDir == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "s3TmpTableDir"); + } + this.s3TmpTableDir = s3TmpTableDir; + return this; + } + @CustomType.Setter + public Builder sparkWorkGroup(String sparkWorkGroup) { + if (sparkWorkGroup == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "sparkWorkGroup"); + } + this.sparkWorkGroup = sparkWorkGroup; + return this; + } + @CustomType.Setter + public Builder workGroup(String workGroup) { + if (workGroup == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionAthena", "workGroup"); + } + this.workGroup = workGroup; + return this; + } + public GetGlobalConnectionAthena build() { + final var _resultValue = new GetGlobalConnectionAthena(); + _resultValue.database = database; + _resultValue.numBoto3Retries = numBoto3Retries; + _resultValue.numIcebergRetries = numIcebergRetries; + _resultValue.numRetries = numRetries; + _resultValue.pollInterval = pollInterval; + _resultValue.regionName = regionName; + _resultValue.s3DataDir = s3DataDir; + _resultValue.s3DataNaming = s3DataNaming; + _resultValue.s3StagingDir = s3StagingDir; + _resultValue.s3TmpTableDir = s3TmpTableDir; + _resultValue.sparkWorkGroup = sparkWorkGroup; + _resultValue.workGroup = workGroup; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionBigquery.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionBigquery.java new file mode 100644 index 0000000..36b2a14 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionBigquery.java @@ -0,0 +1,592 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionBigquery { + /** + * @return OAuth Client ID + * + */ + private String applicationId; + /** + * @return OAuth Client Secret + * + */ + private String applicationSecret; + /** + * @return Auth Provider X509 Cert URL for the Service Account + * + */ + private String authProviderX509CertUrl; + /** + * @return Auth URI for the Service Account + * + */ + private String authUri; + /** + * @return Service Account email + * + */ + private String clientEmail; + /** + * @return Client ID of the Service Account + * + */ + private String clientId; + /** + * @return Client X509 Cert URL for the Service Account + * + */ + private String clientX509CertUrl; + /** + * @return Dataproc cluster name for PySpark workloads + * + */ + private String dataprocClusterName; + /** + * @return Google Cloud region for PySpark workloads on Dataproc + * + */ + private String dataprocRegion; + /** + * @return Project to bill for query execution + * + */ + private String executionProject; + /** + * @return The GCP project ID to use for the connection + * + */ + private String gcpProjectId; + /** + * @return URI for a Google Cloud Storage bucket to host Python code executed via Datapro + * + */ + private String gcsBucket; + /** + * @return Service Account to impersonate when running queries + * + */ + private String impersonateServiceAccount; + /** + * @return Maximum timeout for the job creation step + * + */ + private Integer jobCreationTimeoutSeconds; + /** + * @return Total number of seconds to wait while retrying the same query + * + */ + private Integer jobRetryDeadlineSeconds; + /** + * @return Location to create new Datasets in + * + */ + private String location; + /** + * @return Max number of bytes that can be billed for a given BigQuery query + * + */ + private Integer maximumBytesBilled; + /** + * @return The priority with which to execute BigQuery queries (batch or interactive) + * + */ + private String priority; + /** + * @return Private Key for the Service Account + * + */ + private String privateKey; + /** + * @return Private Key ID for the Service Account + * + */ + private String privateKeyId; + /** + * @return Number of retries for queries + * + */ + private Integer retries; + /** + * @return OAuth scopes for the BigQuery connection + * + */ + private List scopes; + /** + * @return Timeout in seconds for queries + * + */ + private Integer timeoutSeconds; + /** + * @return Token URI for the Service Account + * + */ + private String tokenUri; + + private GetGlobalConnectionBigquery() {} + /** + * @return OAuth Client ID + * + */ + public String applicationId() { + return this.applicationId; + } + /** + * @return OAuth Client Secret + * + */ + public String applicationSecret() { + return this.applicationSecret; + } + /** + * @return Auth Provider X509 Cert URL for the Service Account + * + */ + public String authProviderX509CertUrl() { + return this.authProviderX509CertUrl; + } + /** + * @return Auth URI for the Service Account + * + */ + public String authUri() { + return this.authUri; + } + /** + * @return Service Account email + * + */ + public String clientEmail() { + return this.clientEmail; + } + /** + * @return Client ID of the Service Account + * + */ + public String clientId() { + return this.clientId; + } + /** + * @return Client X509 Cert URL for the Service Account + * + */ + public String clientX509CertUrl() { + return this.clientX509CertUrl; + } + /** + * @return Dataproc cluster name for PySpark workloads + * + */ + public String dataprocClusterName() { + return this.dataprocClusterName; + } + /** + * @return Google Cloud region for PySpark workloads on Dataproc + * + */ + public String dataprocRegion() { + return this.dataprocRegion; + } + /** + * @return Project to bill for query execution + * + */ + public String executionProject() { + return this.executionProject; + } + /** + * @return The GCP project ID to use for the connection + * + */ + public String gcpProjectId() { + return this.gcpProjectId; + } + /** + * @return URI for a Google Cloud Storage bucket to host Python code executed via Datapro + * + */ + public String gcsBucket() { + return this.gcsBucket; + } + /** + * @return Service Account to impersonate when running queries + * + */ + public String impersonateServiceAccount() { + return this.impersonateServiceAccount; + } + /** + * @return Maximum timeout for the job creation step + * + */ + public Integer jobCreationTimeoutSeconds() { + return this.jobCreationTimeoutSeconds; + } + /** + * @return Total number of seconds to wait while retrying the same query + * + */ + public Integer jobRetryDeadlineSeconds() { + return this.jobRetryDeadlineSeconds; + } + /** + * @return Location to create new Datasets in + * + */ + public String location() { + return this.location; + } + /** + * @return Max number of bytes that can be billed for a given BigQuery query + * + */ + public Integer maximumBytesBilled() { + return this.maximumBytesBilled; + } + /** + * @return The priority with which to execute BigQuery queries (batch or interactive) + * + */ + public String priority() { + return this.priority; + } + /** + * @return Private Key for the Service Account + * + */ + public String privateKey() { + return this.privateKey; + } + /** + * @return Private Key ID for the Service Account + * + */ + public String privateKeyId() { + return this.privateKeyId; + } + /** + * @return Number of retries for queries + * + */ + public Integer retries() { + return this.retries; + } + /** + * @return OAuth scopes for the BigQuery connection + * + */ + public List scopes() { + return this.scopes; + } + /** + * @return Timeout in seconds for queries + * + */ + public Integer timeoutSeconds() { + return this.timeoutSeconds; + } + /** + * @return Token URI for the Service Account + * + */ + public String tokenUri() { + return this.tokenUri; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionBigquery defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String applicationId; + private String applicationSecret; + private String authProviderX509CertUrl; + private String authUri; + private String clientEmail; + private String clientId; + private String clientX509CertUrl; + private String dataprocClusterName; + private String dataprocRegion; + private String executionProject; + private String gcpProjectId; + private String gcsBucket; + private String impersonateServiceAccount; + private Integer jobCreationTimeoutSeconds; + private Integer jobRetryDeadlineSeconds; + private String location; + private Integer maximumBytesBilled; + private String priority; + private String privateKey; + private String privateKeyId; + private Integer retries; + private List scopes; + private Integer timeoutSeconds; + private String tokenUri; + public Builder() {} + public Builder(GetGlobalConnectionBigquery defaults) { + Objects.requireNonNull(defaults); + this.applicationId = defaults.applicationId; + this.applicationSecret = defaults.applicationSecret; + this.authProviderX509CertUrl = defaults.authProviderX509CertUrl; + this.authUri = defaults.authUri; + this.clientEmail = defaults.clientEmail; + this.clientId = defaults.clientId; + this.clientX509CertUrl = defaults.clientX509CertUrl; + this.dataprocClusterName = defaults.dataprocClusterName; + this.dataprocRegion = defaults.dataprocRegion; + this.executionProject = defaults.executionProject; + this.gcpProjectId = defaults.gcpProjectId; + this.gcsBucket = defaults.gcsBucket; + this.impersonateServiceAccount = defaults.impersonateServiceAccount; + this.jobCreationTimeoutSeconds = defaults.jobCreationTimeoutSeconds; + this.jobRetryDeadlineSeconds = defaults.jobRetryDeadlineSeconds; + this.location = defaults.location; + this.maximumBytesBilled = defaults.maximumBytesBilled; + this.priority = defaults.priority; + this.privateKey = defaults.privateKey; + this.privateKeyId = defaults.privateKeyId; + this.retries = defaults.retries; + this.scopes = defaults.scopes; + this.timeoutSeconds = defaults.timeoutSeconds; + this.tokenUri = defaults.tokenUri; + } + + @CustomType.Setter + public Builder applicationId(String applicationId) { + if (applicationId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "applicationId"); + } + this.applicationId = applicationId; + return this; + } + @CustomType.Setter + public Builder applicationSecret(String applicationSecret) { + if (applicationSecret == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "applicationSecret"); + } + this.applicationSecret = applicationSecret; + return this; + } + @CustomType.Setter + public Builder authProviderX509CertUrl(String authProviderX509CertUrl) { + if (authProviderX509CertUrl == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "authProviderX509CertUrl"); + } + this.authProviderX509CertUrl = authProviderX509CertUrl; + return this; + } + @CustomType.Setter + public Builder authUri(String authUri) { + if (authUri == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "authUri"); + } + this.authUri = authUri; + return this; + } + @CustomType.Setter + public Builder clientEmail(String clientEmail) { + if (clientEmail == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "clientEmail"); + } + this.clientEmail = clientEmail; + return this; + } + @CustomType.Setter + public Builder clientId(String clientId) { + if (clientId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "clientId"); + } + this.clientId = clientId; + return this; + } + @CustomType.Setter + public Builder clientX509CertUrl(String clientX509CertUrl) { + if (clientX509CertUrl == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "clientX509CertUrl"); + } + this.clientX509CertUrl = clientX509CertUrl; + return this; + } + @CustomType.Setter + public Builder dataprocClusterName(String dataprocClusterName) { + if (dataprocClusterName == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "dataprocClusterName"); + } + this.dataprocClusterName = dataprocClusterName; + return this; + } + @CustomType.Setter + public Builder dataprocRegion(String dataprocRegion) { + if (dataprocRegion == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "dataprocRegion"); + } + this.dataprocRegion = dataprocRegion; + return this; + } + @CustomType.Setter + public Builder executionProject(String executionProject) { + if (executionProject == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "executionProject"); + } + this.executionProject = executionProject; + return this; + } + @CustomType.Setter + public Builder gcpProjectId(String gcpProjectId) { + if (gcpProjectId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "gcpProjectId"); + } + this.gcpProjectId = gcpProjectId; + return this; + } + @CustomType.Setter + public Builder gcsBucket(String gcsBucket) { + if (gcsBucket == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "gcsBucket"); + } + this.gcsBucket = gcsBucket; + return this; + } + @CustomType.Setter + public Builder impersonateServiceAccount(String impersonateServiceAccount) { + if (impersonateServiceAccount == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "impersonateServiceAccount"); + } + this.impersonateServiceAccount = impersonateServiceAccount; + return this; + } + @CustomType.Setter + public Builder jobCreationTimeoutSeconds(Integer jobCreationTimeoutSeconds) { + if (jobCreationTimeoutSeconds == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "jobCreationTimeoutSeconds"); + } + this.jobCreationTimeoutSeconds = jobCreationTimeoutSeconds; + return this; + } + @CustomType.Setter + public Builder jobRetryDeadlineSeconds(Integer jobRetryDeadlineSeconds) { + if (jobRetryDeadlineSeconds == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "jobRetryDeadlineSeconds"); + } + this.jobRetryDeadlineSeconds = jobRetryDeadlineSeconds; + return this; + } + @CustomType.Setter + public Builder location(String location) { + if (location == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "location"); + } + this.location = location; + return this; + } + @CustomType.Setter + public Builder maximumBytesBilled(Integer maximumBytesBilled) { + if (maximumBytesBilled == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "maximumBytesBilled"); + } + this.maximumBytesBilled = maximumBytesBilled; + return this; + } + @CustomType.Setter + public Builder priority(String priority) { + if (priority == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "priority"); + } + this.priority = priority; + return this; + } + @CustomType.Setter + public Builder privateKey(String privateKey) { + if (privateKey == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "privateKey"); + } + this.privateKey = privateKey; + return this; + } + @CustomType.Setter + public Builder privateKeyId(String privateKeyId) { + if (privateKeyId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "privateKeyId"); + } + this.privateKeyId = privateKeyId; + return this; + } + @CustomType.Setter + public Builder retries(Integer retries) { + if (retries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "retries"); + } + this.retries = retries; + return this; + } + @CustomType.Setter + public Builder scopes(List scopes) { + if (scopes == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "scopes"); + } + this.scopes = scopes; + return this; + } + public Builder scopes(String... scopes) { + return scopes(List.of(scopes)); + } + @CustomType.Setter + public Builder timeoutSeconds(Integer timeoutSeconds) { + if (timeoutSeconds == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "timeoutSeconds"); + } + this.timeoutSeconds = timeoutSeconds; + return this; + } + @CustomType.Setter + public Builder tokenUri(String tokenUri) { + if (tokenUri == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionBigquery", "tokenUri"); + } + this.tokenUri = tokenUri; + return this; + } + public GetGlobalConnectionBigquery build() { + final var _resultValue = new GetGlobalConnectionBigquery(); + _resultValue.applicationId = applicationId; + _resultValue.applicationSecret = applicationSecret; + _resultValue.authProviderX509CertUrl = authProviderX509CertUrl; + _resultValue.authUri = authUri; + _resultValue.clientEmail = clientEmail; + _resultValue.clientId = clientId; + _resultValue.clientX509CertUrl = clientX509CertUrl; + _resultValue.dataprocClusterName = dataprocClusterName; + _resultValue.dataprocRegion = dataprocRegion; + _resultValue.executionProject = executionProject; + _resultValue.gcpProjectId = gcpProjectId; + _resultValue.gcsBucket = gcsBucket; + _resultValue.impersonateServiceAccount = impersonateServiceAccount; + _resultValue.jobCreationTimeoutSeconds = jobCreationTimeoutSeconds; + _resultValue.jobRetryDeadlineSeconds = jobRetryDeadlineSeconds; + _resultValue.location = location; + _resultValue.maximumBytesBilled = maximumBytesBilled; + _resultValue.priority = priority; + _resultValue.privateKey = privateKey; + _resultValue.privateKeyId = privateKeyId; + _resultValue.retries = retries; + _resultValue.scopes = scopes; + _resultValue.timeoutSeconds = timeoutSeconds; + _resultValue.tokenUri = tokenUri; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionDatabricks.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionDatabricks.java new file mode 100644 index 0000000..b2829a6 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionDatabricks.java @@ -0,0 +1,150 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionDatabricks { + /** + * @return Catalog name if Unity Catalog is enabled in your Databricks workspace. + * + */ + private String catalog; + /** + * @return Required to enable Databricks OAuth authentication for IDE developers. + * + */ + private String clientId; + /** + * @return Required to enable Databricks OAuth authentication for IDE developers. + * + */ + private String clientSecret; + /** + * @return The hostname of the Databricks cluster or SQL warehouse. + * + */ + private String host; + /** + * @return The HTTP path of the Databricks cluster or SQL warehouse. + * + */ + private String httpPath; + + private GetGlobalConnectionDatabricks() {} + /** + * @return Catalog name if Unity Catalog is enabled in your Databricks workspace. + * + */ + public String catalog() { + return this.catalog; + } + /** + * @return Required to enable Databricks OAuth authentication for IDE developers. + * + */ + public String clientId() { + return this.clientId; + } + /** + * @return Required to enable Databricks OAuth authentication for IDE developers. + * + */ + public String clientSecret() { + return this.clientSecret; + } + /** + * @return The hostname of the Databricks cluster or SQL warehouse. + * + */ + public String host() { + return this.host; + } + /** + * @return The HTTP path of the Databricks cluster or SQL warehouse. + * + */ + public String httpPath() { + return this.httpPath; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionDatabricks defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String catalog; + private String clientId; + private String clientSecret; + private String host; + private String httpPath; + public Builder() {} + public Builder(GetGlobalConnectionDatabricks defaults) { + Objects.requireNonNull(defaults); + this.catalog = defaults.catalog; + this.clientId = defaults.clientId; + this.clientSecret = defaults.clientSecret; + this.host = defaults.host; + this.httpPath = defaults.httpPath; + } + + @CustomType.Setter + public Builder catalog(String catalog) { + if (catalog == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionDatabricks", "catalog"); + } + this.catalog = catalog; + return this; + } + @CustomType.Setter + public Builder clientId(String clientId) { + if (clientId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionDatabricks", "clientId"); + } + this.clientId = clientId; + return this; + } + @CustomType.Setter + public Builder clientSecret(String clientSecret) { + if (clientSecret == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionDatabricks", "clientSecret"); + } + this.clientSecret = clientSecret; + return this; + } + @CustomType.Setter + public Builder host(String host) { + if (host == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionDatabricks", "host"); + } + this.host = host; + return this; + } + @CustomType.Setter + public Builder httpPath(String httpPath) { + if (httpPath == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionDatabricks", "httpPath"); + } + this.httpPath = httpPath; + return this; + } + public GetGlobalConnectionDatabricks build() { + final var _resultValue = new GetGlobalConnectionDatabricks(); + _resultValue.catalog = catalog; + _resultValue.clientId = clientId; + _resultValue.clientSecret = clientSecret; + _resultValue.host = host; + _resultValue.httpPath = httpPath; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionFabric.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionFabric.java new file mode 100644 index 0000000..10dcd46 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionFabric.java @@ -0,0 +1,174 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionFabric { + /** + * @return The database to connect to for this connection. + * + */ + private String database; + /** + * @return The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + private Integer loginTimeout; + /** + * @return The port to connect to for this connection. Default=1433 + * + */ + private Integer port; + /** + * @return The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + private Integer queryTimeout; + /** + * @return The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + * + */ + private Integer retries; + /** + * @return The server hostname. + * + */ + private String server; + + private GetGlobalConnectionFabric() {} + /** + * @return The database to connect to for this connection. + * + */ + public String database() { + return this.database; + } + /** + * @return The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + public Integer loginTimeout() { + return this.loginTimeout; + } + /** + * @return The port to connect to for this connection. Default=1433 + * + */ + public Integer port() { + return this.port; + } + /** + * @return The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + public Integer queryTimeout() { + return this.queryTimeout; + } + /** + * @return The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + * + */ + public Integer retries() { + return this.retries; + } + /** + * @return The server hostname. + * + */ + public String server() { + return this.server; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionFabric defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String database; + private Integer loginTimeout; + private Integer port; + private Integer queryTimeout; + private Integer retries; + private String server; + public Builder() {} + public Builder(GetGlobalConnectionFabric defaults) { + Objects.requireNonNull(defaults); + this.database = defaults.database; + this.loginTimeout = defaults.loginTimeout; + this.port = defaults.port; + this.queryTimeout = defaults.queryTimeout; + this.retries = defaults.retries; + this.server = defaults.server; + } + + @CustomType.Setter + public Builder database(String database) { + if (database == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionFabric", "database"); + } + this.database = database; + return this; + } + @CustomType.Setter + public Builder loginTimeout(Integer loginTimeout) { + if (loginTimeout == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionFabric", "loginTimeout"); + } + this.loginTimeout = loginTimeout; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionFabric", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder queryTimeout(Integer queryTimeout) { + if (queryTimeout == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionFabric", "queryTimeout"); + } + this.queryTimeout = queryTimeout; + return this; + } + @CustomType.Setter + public Builder retries(Integer retries) { + if (retries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionFabric", "retries"); + } + this.retries = retries; + return this; + } + @CustomType.Setter + public Builder server(String server) { + if (server == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionFabric", "server"); + } + this.server = server; + return this; + } + public GetGlobalConnectionFabric build() { + final var _resultValue = new GetGlobalConnectionFabric(); + _resultValue.database = database; + _resultValue.loginTimeout = loginTimeout; + _resultValue.port = port; + _resultValue.queryTimeout = queryTimeout; + _resultValue.retries = retries; + _resultValue.server = server; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionPostgres.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionPostgres.java new file mode 100644 index 0000000..baacece --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionPostgres.java @@ -0,0 +1,129 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionPostgresSshTunnel; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionPostgres { + /** + * @return The database name for this connection. + * + */ + private String dbname; + /** + * @return The hostname of the database. + * + */ + private String hostname; + /** + * @return The port to connect to for this connection. Default=5432 + * + */ + private Integer port; + /** + * @return PostgreSQL SSH Tunnel configuration + * + */ + private GetGlobalConnectionPostgresSshTunnel sshTunnel; + + private GetGlobalConnectionPostgres() {} + /** + * @return The database name for this connection. + * + */ + public String dbname() { + return this.dbname; + } + /** + * @return The hostname of the database. + * + */ + public String hostname() { + return this.hostname; + } + /** + * @return The port to connect to for this connection. Default=5432 + * + */ + public Integer port() { + return this.port; + } + /** + * @return PostgreSQL SSH Tunnel configuration + * + */ + public GetGlobalConnectionPostgresSshTunnel sshTunnel() { + return this.sshTunnel; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionPostgres defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String dbname; + private String hostname; + private Integer port; + private GetGlobalConnectionPostgresSshTunnel sshTunnel; + public Builder() {} + public Builder(GetGlobalConnectionPostgres defaults) { + Objects.requireNonNull(defaults); + this.dbname = defaults.dbname; + this.hostname = defaults.hostname; + this.port = defaults.port; + this.sshTunnel = defaults.sshTunnel; + } + + @CustomType.Setter + public Builder dbname(String dbname) { + if (dbname == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgres", "dbname"); + } + this.dbname = dbname; + return this; + } + @CustomType.Setter + public Builder hostname(String hostname) { + if (hostname == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgres", "hostname"); + } + this.hostname = hostname; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgres", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder sshTunnel(GetGlobalConnectionPostgresSshTunnel sshTunnel) { + if (sshTunnel == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgres", "sshTunnel"); + } + this.sshTunnel = sshTunnel; + return this; + } + public GetGlobalConnectionPostgres build() { + final var _resultValue = new GetGlobalConnectionPostgres(); + _resultValue.dbname = dbname; + _resultValue.hostname = hostname; + _resultValue.port = port; + _resultValue.sshTunnel = sshTunnel; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionPostgresSshTunnel.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionPostgresSshTunnel.java new file mode 100644 index 0000000..58e5c89 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionPostgresSshTunnel.java @@ -0,0 +1,151 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionPostgresSshTunnel { + /** + * @return The hostname for the SSH tunnel. + * + */ + private String hostname; + /** + * @return The ID of the SSH tunnel connection. + * + */ + private Integer id; + /** + * @return The HTTP port for the SSH tunnel. + * + */ + private Integer port; + /** + * @return The SSH public key generated to allow connecting via SSH tunnel. + * + */ + private String publicKey; + /** + * @return The username to use for the SSH tunnel. + * + */ + private String username; + + private GetGlobalConnectionPostgresSshTunnel() {} + /** + * @return The hostname for the SSH tunnel. + * + */ + public String hostname() { + return this.hostname; + } + /** + * @return The ID of the SSH tunnel connection. + * + */ + public Integer id() { + return this.id; + } + /** + * @return The HTTP port for the SSH tunnel. + * + */ + public Integer port() { + return this.port; + } + /** + * @return The SSH public key generated to allow connecting via SSH tunnel. + * + */ + public String publicKey() { + return this.publicKey; + } + /** + * @return The username to use for the SSH tunnel. + * + */ + public String username() { + return this.username; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionPostgresSshTunnel defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String hostname; + private Integer id; + private Integer port; + private String publicKey; + private String username; + public Builder() {} + public Builder(GetGlobalConnectionPostgresSshTunnel defaults) { + Objects.requireNonNull(defaults); + this.hostname = defaults.hostname; + this.id = defaults.id; + this.port = defaults.port; + this.publicKey = defaults.publicKey; + this.username = defaults.username; + } + + @CustomType.Setter + public Builder hostname(String hostname) { + if (hostname == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgresSshTunnel", "hostname"); + } + this.hostname = hostname; + return this; + } + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgresSshTunnel", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgresSshTunnel", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder publicKey(String publicKey) { + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgresSshTunnel", "publicKey"); + } + this.publicKey = publicKey; + return this; + } + @CustomType.Setter + public Builder username(String username) { + if (username == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionPostgresSshTunnel", "username"); + } + this.username = username; + return this; + } + public GetGlobalConnectionPostgresSshTunnel build() { + final var _resultValue = new GetGlobalConnectionPostgresSshTunnel(); + _resultValue.hostname = hostname; + _resultValue.id = id; + _resultValue.port = port; + _resultValue.publicKey = publicKey; + _resultValue.username = username; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionRedshift.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionRedshift.java new file mode 100644 index 0000000..8e01f31 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionRedshift.java @@ -0,0 +1,129 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionRedshiftSshTunnel; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionRedshift { + /** + * @return The database name for this connection. + * + */ + private String dbname; + /** + * @return The hostname of the data warehouse. + * + */ + private String hostname; + /** + * @return The port to connect to for this connection. Default=5432 + * + */ + private Integer port; + /** + * @return Redshift SSH Tunnel configuration + * + */ + private GetGlobalConnectionRedshiftSshTunnel sshTunnel; + + private GetGlobalConnectionRedshift() {} + /** + * @return The database name for this connection. + * + */ + public String dbname() { + return this.dbname; + } + /** + * @return The hostname of the data warehouse. + * + */ + public String hostname() { + return this.hostname; + } + /** + * @return The port to connect to for this connection. Default=5432 + * + */ + public Integer port() { + return this.port; + } + /** + * @return Redshift SSH Tunnel configuration + * + */ + public GetGlobalConnectionRedshiftSshTunnel sshTunnel() { + return this.sshTunnel; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionRedshift defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String dbname; + private String hostname; + private Integer port; + private GetGlobalConnectionRedshiftSshTunnel sshTunnel; + public Builder() {} + public Builder(GetGlobalConnectionRedshift defaults) { + Objects.requireNonNull(defaults); + this.dbname = defaults.dbname; + this.hostname = defaults.hostname; + this.port = defaults.port; + this.sshTunnel = defaults.sshTunnel; + } + + @CustomType.Setter + public Builder dbname(String dbname) { + if (dbname == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshift", "dbname"); + } + this.dbname = dbname; + return this; + } + @CustomType.Setter + public Builder hostname(String hostname) { + if (hostname == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshift", "hostname"); + } + this.hostname = hostname; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshift", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder sshTunnel(GetGlobalConnectionRedshiftSshTunnel sshTunnel) { + if (sshTunnel == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshift", "sshTunnel"); + } + this.sshTunnel = sshTunnel; + return this; + } + public GetGlobalConnectionRedshift build() { + final var _resultValue = new GetGlobalConnectionRedshift(); + _resultValue.dbname = dbname; + _resultValue.hostname = hostname; + _resultValue.port = port; + _resultValue.sshTunnel = sshTunnel; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionRedshiftSshTunnel.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionRedshiftSshTunnel.java new file mode 100644 index 0000000..d02d48e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionRedshiftSshTunnel.java @@ -0,0 +1,151 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionRedshiftSshTunnel { + /** + * @return The hostname for the SSH tunnel. + * + */ + private String hostname; + /** + * @return The ID of the SSH tunnel connection. + * + */ + private Integer id; + /** + * @return The HTTP port for the SSH tunnel. + * + */ + private Integer port; + /** + * @return The SSH public key generated to allow connecting via SSH tunnel. + * + */ + private String publicKey; + /** + * @return The username to use for the SSH tunnel. + * + */ + private String username; + + private GetGlobalConnectionRedshiftSshTunnel() {} + /** + * @return The hostname for the SSH tunnel. + * + */ + public String hostname() { + return this.hostname; + } + /** + * @return The ID of the SSH tunnel connection. + * + */ + public Integer id() { + return this.id; + } + /** + * @return The HTTP port for the SSH tunnel. + * + */ + public Integer port() { + return this.port; + } + /** + * @return The SSH public key generated to allow connecting via SSH tunnel. + * + */ + public String publicKey() { + return this.publicKey; + } + /** + * @return The username to use for the SSH tunnel. + * + */ + public String username() { + return this.username; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionRedshiftSshTunnel defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String hostname; + private Integer id; + private Integer port; + private String publicKey; + private String username; + public Builder() {} + public Builder(GetGlobalConnectionRedshiftSshTunnel defaults) { + Objects.requireNonNull(defaults); + this.hostname = defaults.hostname; + this.id = defaults.id; + this.port = defaults.port; + this.publicKey = defaults.publicKey; + this.username = defaults.username; + } + + @CustomType.Setter + public Builder hostname(String hostname) { + if (hostname == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshiftSshTunnel", "hostname"); + } + this.hostname = hostname; + return this; + } + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshiftSshTunnel", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshiftSshTunnel", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder publicKey(String publicKey) { + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshiftSshTunnel", "publicKey"); + } + this.publicKey = publicKey; + return this; + } + @CustomType.Setter + public Builder username(String username) { + if (username == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionRedshiftSshTunnel", "username"); + } + this.username = username; + return this; + } + public GetGlobalConnectionRedshiftSshTunnel build() { + final var _resultValue = new GetGlobalConnectionRedshiftSshTunnel(); + _resultValue.hostname = hostname; + _resultValue.id = id; + _resultValue.port = port; + _resultValue.publicKey = publicKey; + _resultValue.username = username; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionResult.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionResult.java new file mode 100644 index 0000000..295f053 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionResult.java @@ -0,0 +1,399 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionApacheSpark; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionAthena; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionBigquery; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionDatabricks; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionFabric; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionPostgres; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionRedshift; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionSnowflake; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionStarburst; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionSynapse; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionResult { + /** + * @return Version of the adapter + * + */ + private String adapterVersion; + /** + * @return Apache Spark connection configuration. + * + */ + private GetGlobalConnectionApacheSpark apacheSpark; + /** + * @return Athena connection configuration. + * + */ + private GetGlobalConnectionAthena athena; + private GetGlobalConnectionBigquery bigquery; + /** + * @return Databricks connection configuration + * + */ + private GetGlobalConnectionDatabricks databricks; + /** + * @return Microsoft Fabric connection configuration. + * + */ + private GetGlobalConnectionFabric fabric; + /** + * @return Connection Identifier + * + */ + private Integer id; + /** + * @return Whether the connection can use an SSH tunnel + * + */ + private Boolean isSshTunnelEnabled; + /** + * @return Connection name + * + */ + private String name; + private Integer oauthConfigurationId; + /** + * @return PostgreSQL connection configuration. + * + */ + private GetGlobalConnectionPostgres postgres; + /** + * @return Private Link Endpoint ID. This ID can be found using the `privatelink_endpoint` data source + * + */ + private String privateLinkEndpointId; + /** + * @return Redshift connection configuration + * + */ + private GetGlobalConnectionRedshift redshift; + /** + * @return Snowflake connection configuration + * + */ + private GetGlobalConnectionSnowflake snowflake; + /** + * @return Starburst/Trino connection configuration. + * + */ + private GetGlobalConnectionStarburst starburst; + /** + * @return Azure Synapse Analytics connection configuration. + * + */ + private GetGlobalConnectionSynapse synapse; + + private GetGlobalConnectionResult() {} + /** + * @return Version of the adapter + * + */ + public String adapterVersion() { + return this.adapterVersion; + } + /** + * @return Apache Spark connection configuration. + * + */ + public GetGlobalConnectionApacheSpark apacheSpark() { + return this.apacheSpark; + } + /** + * @return Athena connection configuration. + * + */ + public GetGlobalConnectionAthena athena() { + return this.athena; + } + public GetGlobalConnectionBigquery bigquery() { + return this.bigquery; + } + /** + * @return Databricks connection configuration + * + */ + public GetGlobalConnectionDatabricks databricks() { + return this.databricks; + } + /** + * @return Microsoft Fabric connection configuration. + * + */ + public GetGlobalConnectionFabric fabric() { + return this.fabric; + } + /** + * @return Connection Identifier + * + */ + public Integer id() { + return this.id; + } + /** + * @return Whether the connection can use an SSH tunnel + * + */ + public Boolean isSshTunnelEnabled() { + return this.isSshTunnelEnabled; + } + /** + * @return Connection name + * + */ + public String name() { + return this.name; + } + public Integer oauthConfigurationId() { + return this.oauthConfigurationId; + } + /** + * @return PostgreSQL connection configuration. + * + */ + public GetGlobalConnectionPostgres postgres() { + return this.postgres; + } + /** + * @return Private Link Endpoint ID. This ID can be found using the `privatelink_endpoint` data source + * + */ + public String privateLinkEndpointId() { + return this.privateLinkEndpointId; + } + /** + * @return Redshift connection configuration + * + */ + public GetGlobalConnectionRedshift redshift() { + return this.redshift; + } + /** + * @return Snowflake connection configuration + * + */ + public GetGlobalConnectionSnowflake snowflake() { + return this.snowflake; + } + /** + * @return Starburst/Trino connection configuration. + * + */ + public GetGlobalConnectionStarburst starburst() { + return this.starburst; + } + /** + * @return Azure Synapse Analytics connection configuration. + * + */ + public GetGlobalConnectionSynapse synapse() { + return this.synapse; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionResult defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String adapterVersion; + private GetGlobalConnectionApacheSpark apacheSpark; + private GetGlobalConnectionAthena athena; + private GetGlobalConnectionBigquery bigquery; + private GetGlobalConnectionDatabricks databricks; + private GetGlobalConnectionFabric fabric; + private Integer id; + private Boolean isSshTunnelEnabled; + private String name; + private Integer oauthConfigurationId; + private GetGlobalConnectionPostgres postgres; + private String privateLinkEndpointId; + private GetGlobalConnectionRedshift redshift; + private GetGlobalConnectionSnowflake snowflake; + private GetGlobalConnectionStarburst starburst; + private GetGlobalConnectionSynapse synapse; + public Builder() {} + public Builder(GetGlobalConnectionResult defaults) { + Objects.requireNonNull(defaults); + this.adapterVersion = defaults.adapterVersion; + this.apacheSpark = defaults.apacheSpark; + this.athena = defaults.athena; + this.bigquery = defaults.bigquery; + this.databricks = defaults.databricks; + this.fabric = defaults.fabric; + this.id = defaults.id; + this.isSshTunnelEnabled = defaults.isSshTunnelEnabled; + this.name = defaults.name; + this.oauthConfigurationId = defaults.oauthConfigurationId; + this.postgres = defaults.postgres; + this.privateLinkEndpointId = defaults.privateLinkEndpointId; + this.redshift = defaults.redshift; + this.snowflake = defaults.snowflake; + this.starburst = defaults.starburst; + this.synapse = defaults.synapse; + } + + @CustomType.Setter + public Builder adapterVersion(String adapterVersion) { + if (adapterVersion == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "adapterVersion"); + } + this.adapterVersion = adapterVersion; + return this; + } + @CustomType.Setter + public Builder apacheSpark(GetGlobalConnectionApacheSpark apacheSpark) { + if (apacheSpark == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "apacheSpark"); + } + this.apacheSpark = apacheSpark; + return this; + } + @CustomType.Setter + public Builder athena(GetGlobalConnectionAthena athena) { + if (athena == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "athena"); + } + this.athena = athena; + return this; + } + @CustomType.Setter + public Builder bigquery(GetGlobalConnectionBigquery bigquery) { + if (bigquery == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "bigquery"); + } + this.bigquery = bigquery; + return this; + } + @CustomType.Setter + public Builder databricks(GetGlobalConnectionDatabricks databricks) { + if (databricks == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "databricks"); + } + this.databricks = databricks; + return this; + } + @CustomType.Setter + public Builder fabric(GetGlobalConnectionFabric fabric) { + if (fabric == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "fabric"); + } + this.fabric = fabric; + return this; + } + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder isSshTunnelEnabled(Boolean isSshTunnelEnabled) { + if (isSshTunnelEnabled == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "isSshTunnelEnabled"); + } + this.isSshTunnelEnabled = isSshTunnelEnabled; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "name"); + } + this.name = name; + return this; + } + @CustomType.Setter + public Builder oauthConfigurationId(Integer oauthConfigurationId) { + if (oauthConfigurationId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "oauthConfigurationId"); + } + this.oauthConfigurationId = oauthConfigurationId; + return this; + } + @CustomType.Setter + public Builder postgres(GetGlobalConnectionPostgres postgres) { + if (postgres == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "postgres"); + } + this.postgres = postgres; + return this; + } + @CustomType.Setter + public Builder privateLinkEndpointId(String privateLinkEndpointId) { + if (privateLinkEndpointId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "privateLinkEndpointId"); + } + this.privateLinkEndpointId = privateLinkEndpointId; + return this; + } + @CustomType.Setter + public Builder redshift(GetGlobalConnectionRedshift redshift) { + if (redshift == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "redshift"); + } + this.redshift = redshift; + return this; + } + @CustomType.Setter + public Builder snowflake(GetGlobalConnectionSnowflake snowflake) { + if (snowflake == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "snowflake"); + } + this.snowflake = snowflake; + return this; + } + @CustomType.Setter + public Builder starburst(GetGlobalConnectionStarburst starburst) { + if (starburst == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "starburst"); + } + this.starburst = starburst; + return this; + } + @CustomType.Setter + public Builder synapse(GetGlobalConnectionSynapse synapse) { + if (synapse == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionResult", "synapse"); + } + this.synapse = synapse; + return this; + } + public GetGlobalConnectionResult build() { + final var _resultValue = new GetGlobalConnectionResult(); + _resultValue.adapterVersion = adapterVersion; + _resultValue.apacheSpark = apacheSpark; + _resultValue.athena = athena; + _resultValue.bigquery = bigquery; + _resultValue.databricks = databricks; + _resultValue.fabric = fabric; + _resultValue.id = id; + _resultValue.isSshTunnelEnabled = isSshTunnelEnabled; + _resultValue.name = name; + _resultValue.oauthConfigurationId = oauthConfigurationId; + _resultValue.postgres = postgres; + _resultValue.privateLinkEndpointId = privateLinkEndpointId; + _resultValue.redshift = redshift; + _resultValue.snowflake = snowflake; + _resultValue.starburst = starburst; + _resultValue.synapse = synapse; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionSnowflake.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionSnowflake.java new file mode 100644 index 0000000..9b10992 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionSnowflake.java @@ -0,0 +1,220 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionSnowflake { + /** + * @return The Snowflake account name + * + */ + private String account; + /** + * @return Whether to allow Snowflake OAuth for the connection. If true, the `oauth_client_id` and `oauth_client_secret` fields must be set + * + */ + private Boolean allowSso; + /** + * @return If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + * + */ + private Boolean clientSessionKeepAlive; + /** + * @return The default database for the connection + * + */ + private String database; + /** + * @return OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + * + */ + private String oauthClientId; + /** + * @return OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + * + */ + private String oauthClientSecret; + /** + * @return The Snowflake role to use when running queries on the connection + * + */ + private String role; + /** + * @return The default Snowflake Warehouse to use for the connection + * + */ + private String warehouse; + + private GetGlobalConnectionSnowflake() {} + /** + * @return The Snowflake account name + * + */ + public String account() { + return this.account; + } + /** + * @return Whether to allow Snowflake OAuth for the connection. If true, the `oauth_client_id` and `oauth_client_secret` fields must be set + * + */ + public Boolean allowSso() { + return this.allowSso; + } + /** + * @return If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + * + */ + public Boolean clientSessionKeepAlive() { + return this.clientSessionKeepAlive; + } + /** + * @return The default database for the connection + * + */ + public String database() { + return this.database; + } + /** + * @return OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + * + */ + public String oauthClientId() { + return this.oauthClientId; + } + /** + * @return OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + * + */ + public String oauthClientSecret() { + return this.oauthClientSecret; + } + /** + * @return The Snowflake role to use when running queries on the connection + * + */ + public String role() { + return this.role; + } + /** + * @return The default Snowflake Warehouse to use for the connection + * + */ + public String warehouse() { + return this.warehouse; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionSnowflake defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String account; + private Boolean allowSso; + private Boolean clientSessionKeepAlive; + private String database; + private String oauthClientId; + private String oauthClientSecret; + private String role; + private String warehouse; + public Builder() {} + public Builder(GetGlobalConnectionSnowflake defaults) { + Objects.requireNonNull(defaults); + this.account = defaults.account; + this.allowSso = defaults.allowSso; + this.clientSessionKeepAlive = defaults.clientSessionKeepAlive; + this.database = defaults.database; + this.oauthClientId = defaults.oauthClientId; + this.oauthClientSecret = defaults.oauthClientSecret; + this.role = defaults.role; + this.warehouse = defaults.warehouse; + } + + @CustomType.Setter + public Builder account(String account) { + if (account == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "account"); + } + this.account = account; + return this; + } + @CustomType.Setter + public Builder allowSso(Boolean allowSso) { + if (allowSso == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "allowSso"); + } + this.allowSso = allowSso; + return this; + } + @CustomType.Setter + public Builder clientSessionKeepAlive(Boolean clientSessionKeepAlive) { + if (clientSessionKeepAlive == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "clientSessionKeepAlive"); + } + this.clientSessionKeepAlive = clientSessionKeepAlive; + return this; + } + @CustomType.Setter + public Builder database(String database) { + if (database == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "database"); + } + this.database = database; + return this; + } + @CustomType.Setter + public Builder oauthClientId(String oauthClientId) { + if (oauthClientId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "oauthClientId"); + } + this.oauthClientId = oauthClientId; + return this; + } + @CustomType.Setter + public Builder oauthClientSecret(String oauthClientSecret) { + if (oauthClientSecret == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "oauthClientSecret"); + } + this.oauthClientSecret = oauthClientSecret; + return this; + } + @CustomType.Setter + public Builder role(String role) { + if (role == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "role"); + } + this.role = role; + return this; + } + @CustomType.Setter + public Builder warehouse(String warehouse) { + if (warehouse == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSnowflake", "warehouse"); + } + this.warehouse = warehouse; + return this; + } + public GetGlobalConnectionSnowflake build() { + final var _resultValue = new GetGlobalConnectionSnowflake(); + _resultValue.account = account; + _resultValue.allowSso = allowSso; + _resultValue.clientSessionKeepAlive = clientSessionKeepAlive; + _resultValue.database = database; + _resultValue.oauthClientId = oauthClientId; + _resultValue.oauthClientSecret = oauthClientSecret; + _resultValue.role = role; + _resultValue.warehouse = warehouse; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionStarburst.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionStarburst.java new file mode 100644 index 0000000..c60526a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionStarburst.java @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionStarburst { + /** + * @return The hostname of the account to connect to. + * + */ + private String host; + /** + * @return The authentication method. Only LDAP for now. + * + */ + private String method; + /** + * @return The port to connect to for this connection. Default=443 + * + */ + private Integer port; + + private GetGlobalConnectionStarburst() {} + /** + * @return The hostname of the account to connect to. + * + */ + public String host() { + return this.host; + } + /** + * @return The authentication method. Only LDAP for now. + * + */ + public String method() { + return this.method; + } + /** + * @return The port to connect to for this connection. Default=443 + * + */ + public Integer port() { + return this.port; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionStarburst defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String host; + private String method; + private Integer port; + public Builder() {} + public Builder(GetGlobalConnectionStarburst defaults) { + Objects.requireNonNull(defaults); + this.host = defaults.host; + this.method = defaults.method; + this.port = defaults.port; + } + + @CustomType.Setter + public Builder host(String host) { + if (host == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionStarburst", "host"); + } + this.host = host; + return this; + } + @CustomType.Setter + public Builder method(String method) { + if (method == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionStarburst", "method"); + } + this.method = method; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionStarburst", "port"); + } + this.port = port; + return this; + } + public GetGlobalConnectionStarburst build() { + final var _resultValue = new GetGlobalConnectionStarburst(); + _resultValue.host = host; + _resultValue.method = method; + _resultValue.port = port; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionSynapse.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionSynapse.java new file mode 100644 index 0000000..dbec3a8 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionSynapse.java @@ -0,0 +1,174 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionSynapse { + /** + * @return The database to connect to for this connection. + * + */ + private String database; + /** + * @return The server hostname. + * + */ + private String host; + /** + * @return The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + private Integer loginTimeout; + /** + * @return The port to connect to for this connection. Default=1433 + * + */ + private Integer port; + /** + * @return The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + private Integer queryTimeout; + /** + * @return The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + * + */ + private Integer retries; + + private GetGlobalConnectionSynapse() {} + /** + * @return The database to connect to for this connection. + * + */ + public String database() { + return this.database; + } + /** + * @return The server hostname. + * + */ + public String host() { + return this.host; + } + /** + * @return The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + public Integer loginTimeout() { + return this.loginTimeout; + } + /** + * @return The port to connect to for this connection. Default=1433 + * + */ + public Integer port() { + return this.port; + } + /** + * @return The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + * + */ + public Integer queryTimeout() { + return this.queryTimeout; + } + /** + * @return The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + * + */ + public Integer retries() { + return this.retries; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionSynapse defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String database; + private String host; + private Integer loginTimeout; + private Integer port; + private Integer queryTimeout; + private Integer retries; + public Builder() {} + public Builder(GetGlobalConnectionSynapse defaults) { + Objects.requireNonNull(defaults); + this.database = defaults.database; + this.host = defaults.host; + this.loginTimeout = defaults.loginTimeout; + this.port = defaults.port; + this.queryTimeout = defaults.queryTimeout; + this.retries = defaults.retries; + } + + @CustomType.Setter + public Builder database(String database) { + if (database == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSynapse", "database"); + } + this.database = database; + return this; + } + @CustomType.Setter + public Builder host(String host) { + if (host == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSynapse", "host"); + } + this.host = host; + return this; + } + @CustomType.Setter + public Builder loginTimeout(Integer loginTimeout) { + if (loginTimeout == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSynapse", "loginTimeout"); + } + this.loginTimeout = loginTimeout; + return this; + } + @CustomType.Setter + public Builder port(Integer port) { + if (port == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSynapse", "port"); + } + this.port = port; + return this; + } + @CustomType.Setter + public Builder queryTimeout(Integer queryTimeout) { + if (queryTimeout == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSynapse", "queryTimeout"); + } + this.queryTimeout = queryTimeout; + return this; + } + @CustomType.Setter + public Builder retries(Integer retries) { + if (retries == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionSynapse", "retries"); + } + this.retries = retries; + return this; + } + public GetGlobalConnectionSynapse build() { + final var _resultValue = new GetGlobalConnectionSynapse(); + _resultValue.database = database; + _resultValue.host = host; + _resultValue.loginTimeout = loginTimeout; + _resultValue.port = port; + _resultValue.queryTimeout = queryTimeout; + _resultValue.retries = retries; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionsConnection.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionsConnection.java new file mode 100644 index 0000000..830be47 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionsConnection.java @@ -0,0 +1,228 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionsConnection { + /** + * @return Type of adapter used for the connection + * + */ + private String adapterVersion; + /** + * @return When the connection was created + * + */ + private String createdAt; + /** + * @return Number of environments using this connection + * + */ + private Integer environmentCount; + /** + * @return Connection Identifier + * + */ + private Integer id; + private Boolean isSshTunnelEnabled; + /** + * @return Connection name + * + */ + private String name; + private Integer oauthConfigurationId; + /** + * @return Private Link Endpoint ID. + * + */ + private Integer privateLinkEndpointId; + /** + * @return When the connection was updated + * + */ + private String updatedAt; + + private GetGlobalConnectionsConnection() {} + /** + * @return Type of adapter used for the connection + * + */ + public String adapterVersion() { + return this.adapterVersion; + } + /** + * @return When the connection was created + * + */ + public String createdAt() { + return this.createdAt; + } + /** + * @return Number of environments using this connection + * + */ + public Integer environmentCount() { + return this.environmentCount; + } + /** + * @return Connection Identifier + * + */ + public Integer id() { + return this.id; + } + public Boolean isSshTunnelEnabled() { + return this.isSshTunnelEnabled; + } + /** + * @return Connection name + * + */ + public String name() { + return this.name; + } + public Integer oauthConfigurationId() { + return this.oauthConfigurationId; + } + /** + * @return Private Link Endpoint ID. + * + */ + public Integer privateLinkEndpointId() { + return this.privateLinkEndpointId; + } + /** + * @return When the connection was updated + * + */ + public String updatedAt() { + return this.updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionsConnection defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String adapterVersion; + private String createdAt; + private Integer environmentCount; + private Integer id; + private Boolean isSshTunnelEnabled; + private String name; + private Integer oauthConfigurationId; + private Integer privateLinkEndpointId; + private String updatedAt; + public Builder() {} + public Builder(GetGlobalConnectionsConnection defaults) { + Objects.requireNonNull(defaults); + this.adapterVersion = defaults.adapterVersion; + this.createdAt = defaults.createdAt; + this.environmentCount = defaults.environmentCount; + this.id = defaults.id; + this.isSshTunnelEnabled = defaults.isSshTunnelEnabled; + this.name = defaults.name; + this.oauthConfigurationId = defaults.oauthConfigurationId; + this.privateLinkEndpointId = defaults.privateLinkEndpointId; + this.updatedAt = defaults.updatedAt; + } + + @CustomType.Setter + public Builder adapterVersion(String adapterVersion) { + if (adapterVersion == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "adapterVersion"); + } + this.adapterVersion = adapterVersion; + return this; + } + @CustomType.Setter + public Builder createdAt(String createdAt) { + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "createdAt"); + } + this.createdAt = createdAt; + return this; + } + @CustomType.Setter + public Builder environmentCount(Integer environmentCount) { + if (environmentCount == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "environmentCount"); + } + this.environmentCount = environmentCount; + return this; + } + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder isSshTunnelEnabled(Boolean isSshTunnelEnabled) { + if (isSshTunnelEnabled == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "isSshTunnelEnabled"); + } + this.isSshTunnelEnabled = isSshTunnelEnabled; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "name"); + } + this.name = name; + return this; + } + @CustomType.Setter + public Builder oauthConfigurationId(Integer oauthConfigurationId) { + if (oauthConfigurationId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "oauthConfigurationId"); + } + this.oauthConfigurationId = oauthConfigurationId; + return this; + } + @CustomType.Setter + public Builder privateLinkEndpointId(Integer privateLinkEndpointId) { + if (privateLinkEndpointId == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "privateLinkEndpointId"); + } + this.privateLinkEndpointId = privateLinkEndpointId; + return this; + } + @CustomType.Setter + public Builder updatedAt(String updatedAt) { + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsConnection", "updatedAt"); + } + this.updatedAt = updatedAt; + return this; + } + public GetGlobalConnectionsConnection build() { + final var _resultValue = new GetGlobalConnectionsConnection(); + _resultValue.adapterVersion = adapterVersion; + _resultValue.createdAt = createdAt; + _resultValue.environmentCount = environmentCount; + _resultValue.id = id; + _resultValue.isSshTunnelEnabled = isSshTunnelEnabled; + _resultValue.name = name; + _resultValue.oauthConfigurationId = oauthConfigurationId; + _resultValue.privateLinkEndpointId = privateLinkEndpointId; + _resultValue.updatedAt = updatedAt; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionsResult.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionsResult.java new file mode 100644 index 0000000..c944e53 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetGlobalConnectionsResult.java @@ -0,0 +1,86 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.dbtcloud.outputs.GetGlobalConnectionsConnection; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class GetGlobalConnectionsResult { + /** + * @return A set of all the connections + * + */ + private List connections; + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + private String id; + + private GetGlobalConnectionsResult() {} + /** + * @return A set of all the connections + * + */ + public List connections() { + return this.connections; + } + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + public String id() { + return this.id; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetGlobalConnectionsResult defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private List connections; + private String id; + public Builder() {} + public Builder(GetGlobalConnectionsResult defaults) { + Objects.requireNonNull(defaults); + this.connections = defaults.connections; + this.id = defaults.id; + } + + @CustomType.Setter + public Builder connections(List connections) { + if (connections == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsResult", "connections"); + } + this.connections = connections; + return this; + } + public Builder connections(GetGlobalConnectionsConnection... connections) { + return connections(List.of(connections)); + } + @CustomType.Setter + public Builder id(String id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalConnectionsResult", "id"); + } + this.id = id; + return this; + } + public GetGlobalConnectionsResult build() { + final var _resultValue = new GetGlobalConnectionsResult(); + _resultValue.connections = connections; + _resultValue.id = id; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProject.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProject.java new file mode 100644 index 0000000..a1a26e3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProject.java @@ -0,0 +1,245 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.dbtcloud.outputs.GetProjectsProjectConnection; +import com.pulumi.dbtcloud.outputs.GetProjectsProjectRepository; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetProjectsProject { + /** + * @return Details for the connection linked to the project + * + */ + private GetProjectsProjectConnection connection; + /** + * @return When the project was created + * + */ + private String createdAt; + /** + * @return Subdirectory for the dbt project inside the git repo + * + */ + private String dbtProjectSubdirectory; + /** + * @return Project description + * + */ + private String description; + /** + * @return Project ID + * + */ + private Integer id; + /** + * @return Project name + * + */ + private String name; + /** + * @return Details for the repository linked to the project + * + */ + private GetProjectsProjectRepository repository; + /** + * @return Semantic layer config ID + * + */ + private Integer semanticLayerConfigId; + /** + * @return When the project was last updated + * + */ + private String updatedAt; + + private GetProjectsProject() {} + /** + * @return Details for the connection linked to the project + * + */ + public GetProjectsProjectConnection connection() { + return this.connection; + } + /** + * @return When the project was created + * + */ + public String createdAt() { + return this.createdAt; + } + /** + * @return Subdirectory for the dbt project inside the git repo + * + */ + public String dbtProjectSubdirectory() { + return this.dbtProjectSubdirectory; + } + /** + * @return Project description + * + */ + public String description() { + return this.description; + } + /** + * @return Project ID + * + */ + public Integer id() { + return this.id; + } + /** + * @return Project name + * + */ + public String name() { + return this.name; + } + /** + * @return Details for the repository linked to the project + * + */ + public GetProjectsProjectRepository repository() { + return this.repository; + } + /** + * @return Semantic layer config ID + * + */ + public Integer semanticLayerConfigId() { + return this.semanticLayerConfigId; + } + /** + * @return When the project was last updated + * + */ + public String updatedAt() { + return this.updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetProjectsProject defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private GetProjectsProjectConnection connection; + private String createdAt; + private String dbtProjectSubdirectory; + private String description; + private Integer id; + private String name; + private GetProjectsProjectRepository repository; + private Integer semanticLayerConfigId; + private String updatedAt; + public Builder() {} + public Builder(GetProjectsProject defaults) { + Objects.requireNonNull(defaults); + this.connection = defaults.connection; + this.createdAt = defaults.createdAt; + this.dbtProjectSubdirectory = defaults.dbtProjectSubdirectory; + this.description = defaults.description; + this.id = defaults.id; + this.name = defaults.name; + this.repository = defaults.repository; + this.semanticLayerConfigId = defaults.semanticLayerConfigId; + this.updatedAt = defaults.updatedAt; + } + + @CustomType.Setter + public Builder connection(GetProjectsProjectConnection connection) { + if (connection == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "connection"); + } + this.connection = connection; + return this; + } + @CustomType.Setter + public Builder createdAt(String createdAt) { + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "createdAt"); + } + this.createdAt = createdAt; + return this; + } + @CustomType.Setter + public Builder dbtProjectSubdirectory(String dbtProjectSubdirectory) { + if (dbtProjectSubdirectory == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "dbtProjectSubdirectory"); + } + this.dbtProjectSubdirectory = dbtProjectSubdirectory; + return this; + } + @CustomType.Setter + public Builder description(String description) { + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "description"); + } + this.description = description; + return this; + } + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "name"); + } + this.name = name; + return this; + } + @CustomType.Setter + public Builder repository(GetProjectsProjectRepository repository) { + if (repository == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "repository"); + } + this.repository = repository; + return this; + } + @CustomType.Setter + public Builder semanticLayerConfigId(Integer semanticLayerConfigId) { + if (semanticLayerConfigId == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "semanticLayerConfigId"); + } + this.semanticLayerConfigId = semanticLayerConfigId; + return this; + } + @CustomType.Setter + public Builder updatedAt(String updatedAt) { + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "updatedAt"); + } + this.updatedAt = updatedAt; + return this; + } + public GetProjectsProject build() { + final var _resultValue = new GetProjectsProject(); + _resultValue.connection = connection; + _resultValue.createdAt = createdAt; + _resultValue.dbtProjectSubdirectory = dbtProjectSubdirectory; + _resultValue.description = description; + _resultValue.id = id; + _resultValue.name = name; + _resultValue.repository = repository; + _resultValue.semanticLayerConfigId = semanticLayerConfigId; + _resultValue.updatedAt = updatedAt; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProjectConnection.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProjectConnection.java new file mode 100644 index 0000000..72eb4e4 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProjectConnection.java @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetProjectsProjectConnection { + /** + * @return Version of the adapter for the connection. Will tell what connection type it is + * + */ + private String adapterVersion; + /** + * @return Connection ID + * + */ + private Integer id; + /** + * @return Connection name + * + */ + private String name; + + private GetProjectsProjectConnection() {} + /** + * @return Version of the adapter for the connection. Will tell what connection type it is + * + */ + public String adapterVersion() { + return this.adapterVersion; + } + /** + * @return Connection ID + * + */ + public Integer id() { + return this.id; + } + /** + * @return Connection name + * + */ + public String name() { + return this.name; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetProjectsProjectConnection defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String adapterVersion; + private Integer id; + private String name; + public Builder() {} + public Builder(GetProjectsProjectConnection defaults) { + Objects.requireNonNull(defaults); + this.adapterVersion = defaults.adapterVersion; + this.id = defaults.id; + this.name = defaults.name; + } + + @CustomType.Setter + public Builder adapterVersion(String adapterVersion) { + if (adapterVersion == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectConnection", "adapterVersion"); + } + this.adapterVersion = adapterVersion; + return this; + } + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectConnection", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectConnection", "name"); + } + this.name = name; + return this; + } + public GetProjectsProjectConnection build() { + final var _resultValue = new GetProjectsProjectConnection(); + _resultValue.adapterVersion = adapterVersion; + _resultValue.id = id; + _resultValue.name = name; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProjectRepository.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProjectRepository.java new file mode 100644 index 0000000..ff58d81 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsProjectRepository.java @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetProjectsProjectRepository { + /** + * @return Repository ID + * + */ + private Integer id; + /** + * @return URL template for PRs + * + */ + private String pullRequestUrlTemplate; + /** + * @return URL of the git repo remote + * + */ + private String remoteUrl; + + private GetProjectsProjectRepository() {} + /** + * @return Repository ID + * + */ + public Integer id() { + return this.id; + } + /** + * @return URL template for PRs + * + */ + public String pullRequestUrlTemplate() { + return this.pullRequestUrlTemplate; + } + /** + * @return URL of the git repo remote + * + */ + public String remoteUrl() { + return this.remoteUrl; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetProjectsProjectRepository defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private Integer id; + private String pullRequestUrlTemplate; + private String remoteUrl; + public Builder() {} + public Builder(GetProjectsProjectRepository defaults) { + Objects.requireNonNull(defaults); + this.id = defaults.id; + this.pullRequestUrlTemplate = defaults.pullRequestUrlTemplate; + this.remoteUrl = defaults.remoteUrl; + } + + @CustomType.Setter + public Builder id(Integer id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectRepository", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder pullRequestUrlTemplate(String pullRequestUrlTemplate) { + if (pullRequestUrlTemplate == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectRepository", "pullRequestUrlTemplate"); + } + this.pullRequestUrlTemplate = pullRequestUrlTemplate; + return this; + } + @CustomType.Setter + public Builder remoteUrl(String remoteUrl) { + if (remoteUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectRepository", "remoteUrl"); + } + this.remoteUrl = remoteUrl; + return this; + } + public GetProjectsProjectRepository build() { + final var _resultValue = new GetProjectsProjectRepository(); + _resultValue.id = id; + _resultValue.pullRequestUrlTemplate = pullRequestUrlTemplate; + _resultValue.remoteUrl = remoteUrl; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsResult.java b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsResult.java new file mode 100644 index 0000000..869fc53 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/dbtcloud/outputs/GetProjectsResult.java @@ -0,0 +1,109 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.dbtcloud.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.dbtcloud.outputs.GetProjectsProject; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.List; +import java.util.Objects; + +@CustomType +public final class GetProjectsResult { + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + private String id; + /** + * @return Used to filter projects by name, Optional + * + */ + private String nameContains; + /** + * @return Set of projects with their details + * + */ + private List projects; + + private GetProjectsResult() {} + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + public String id() { + return this.id; + } + /** + * @return Used to filter projects by name, Optional + * + */ + public String nameContains() { + return this.nameContains; + } + /** + * @return Set of projects with their details + * + */ + public List projects() { + return this.projects; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetProjectsResult defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String id; + private String nameContains; + private List projects; + public Builder() {} + public Builder(GetProjectsResult defaults) { + Objects.requireNonNull(defaults); + this.id = defaults.id; + this.nameContains = defaults.nameContains; + this.projects = defaults.projects; + } + + @CustomType.Setter + public Builder id(String id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder nameContains(String nameContains) { + if (nameContains == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "nameContains"); + } + this.nameContains = nameContains; + return this; + } + @CustomType.Setter + public Builder projects(List projects) { + if (projects == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "projects"); + } + this.projects = projects; + return this; + } + public Builder projects(GetProjectsProject... projects) { + return projects(List.of(projects)); + } + public GetProjectsResult build() { + final var _resultValue = new GetProjectsResult(); + _resultValue.id = id; + _resultValue.nameContains = nameContains; + _resultValue.projects = projects; + return _resultValue; + } + } +} diff --git a/sdk/nodejs/getGlobalConnection.ts b/sdk/nodejs/getGlobalConnection.ts new file mode 100644 index 0000000..2256a95 --- /dev/null +++ b/sdk/nodejs/getGlobalConnection.ts @@ -0,0 +1,126 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as dbtcloud from "@pulumi/dbtcloud"; + * + * const myConnection = dbtcloud.getGlobalConnection({ + * id: 1234, + * }); + * ``` + */ +export function getGlobalConnection(args: GetGlobalConnectionArgs, opts?: pulumi.InvokeOptions): Promise { + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("dbtcloud:index/getGlobalConnection:getGlobalConnection", { + "id": args.id, + }, opts); +} + +/** + * A collection of arguments for invoking getGlobalConnection. + */ +export interface GetGlobalConnectionArgs { + /** + * Connection Identifier + */ + id: number; +} + +/** + * A collection of values returned by getGlobalConnection. + */ +export interface GetGlobalConnectionResult { + /** + * Version of the adapter + */ + readonly adapterVersion: string; + /** + * Apache Spark connection configuration. + */ + readonly apacheSpark: outputs.GetGlobalConnectionApacheSpark; + /** + * Athena connection configuration. + */ + readonly athena: outputs.GetGlobalConnectionAthena; + readonly bigquery: outputs.GetGlobalConnectionBigquery; + /** + * Databricks connection configuration + */ + readonly databricks: outputs.GetGlobalConnectionDatabricks; + /** + * Microsoft Fabric connection configuration. + */ + readonly fabric: outputs.GetGlobalConnectionFabric; + /** + * Connection Identifier + */ + readonly id: number; + /** + * Whether the connection can use an SSH tunnel + */ + readonly isSshTunnelEnabled: boolean; + /** + * Connection name + */ + readonly name: string; + readonly oauthConfigurationId: number; + /** + * PostgreSQL connection configuration. + */ + readonly postgres: outputs.GetGlobalConnectionPostgres; + /** + * Private Link Endpoint ID. This ID can be found using the `privatelinkEndpoint` data source + */ + readonly privateLinkEndpointId: string; + /** + * Redshift connection configuration + */ + readonly redshift: outputs.GetGlobalConnectionRedshift; + /** + * Snowflake connection configuration + */ + readonly snowflake: outputs.GetGlobalConnectionSnowflake; + /** + * Starburst/Trino connection configuration. + */ + readonly starburst: outputs.GetGlobalConnectionStarburst; + /** + * Azure Synapse Analytics connection configuration. + */ + readonly synapse: outputs.GetGlobalConnectionSynapse; +} +/** + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as dbtcloud from "@pulumi/dbtcloud"; + * + * const myConnection = dbtcloud.getGlobalConnection({ + * id: 1234, + * }); + * ``` + */ +export function getGlobalConnectionOutput(args: GetGlobalConnectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getGlobalConnection(a, opts)) +} + +/** + * A collection of arguments for invoking getGlobalConnection. + */ +export interface GetGlobalConnectionOutputArgs { + /** + * Connection Identifier + */ + id: pulumi.Input; +} diff --git a/sdk/nodejs/getGlobalConnections.ts b/sdk/nodejs/getGlobalConnections.ts new file mode 100644 index 0000000..15c8c0d --- /dev/null +++ b/sdk/nodejs/getGlobalConnections.ts @@ -0,0 +1,55 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as dbtcloud from "@pulumi/dbtcloud"; + * + * const myConnections = dbtcloud.getGlobalConnections({}); + * ``` + */ +export function getGlobalConnections(opts?: pulumi.InvokeOptions): Promise { + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("dbtcloud:index/getGlobalConnections:getGlobalConnections", { + }, opts); +} + +/** + * A collection of values returned by getGlobalConnections. + */ +export interface GetGlobalConnectionsResult { + /** + * A set of all the connections + */ + readonly connections: outputs.GetGlobalConnectionsConnection[]; + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; +} +/** + * All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as dbtcloud from "@pulumi/dbtcloud"; + * + * const myConnections = dbtcloud.getGlobalConnections({}); + * ``` + */ +export function getGlobalConnectionsOutput(opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(getGlobalConnections(opts)) +} diff --git a/sdk/nodejs/getProjects.ts b/sdk/nodejs/getProjects.ts new file mode 100644 index 0000000..7072b92 --- /dev/null +++ b/sdk/nodejs/getProjects.ts @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + */ +export function getProjects(args?: GetProjectsArgs, opts?: pulumi.InvokeOptions): Promise { + args = args || {}; + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("dbtcloud:index/getProjects:getProjects", { + "nameContains": args.nameContains, + }, opts); +} + +/** + * A collection of arguments for invoking getProjects. + */ +export interface GetProjectsArgs { + /** + * Used to filter projects by name, Optional + */ + nameContains?: string; +} + +/** + * A collection of values returned by getProjects. + */ +export interface GetProjectsResult { + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + /** + * Used to filter projects by name, Optional + */ + readonly nameContains: string; + /** + * Set of projects with their details + */ + readonly projects: outputs.GetProjectsProject[]; +} +/** + * Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + */ +export function getProjectsOutput(args?: GetProjectsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getProjects(a, opts)) +} + +/** + * A collection of arguments for invoking getProjects. + */ +export interface GetProjectsOutputArgs { + /** + * Used to filter projects by name, Optional + */ + nameContains?: pulumi.Input; +} diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index bdd1d06..928e31e 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -105,6 +105,16 @@ export const getExtendedAttributes: typeof import("./getExtendedAttributes").get export const getExtendedAttributesOutput: typeof import("./getExtendedAttributes").getExtendedAttributesOutput = null as any; utilities.lazyLoad(exports, ["getExtendedAttributes","getExtendedAttributesOutput"], () => require("./getExtendedAttributes")); +export { GetGlobalConnectionArgs, GetGlobalConnectionResult, GetGlobalConnectionOutputArgs } from "./getGlobalConnection"; +export const getGlobalConnection: typeof import("./getGlobalConnection").getGlobalConnection = null as any; +export const getGlobalConnectionOutput: typeof import("./getGlobalConnection").getGlobalConnectionOutput = null as any; +utilities.lazyLoad(exports, ["getGlobalConnection","getGlobalConnectionOutput"], () => require("./getGlobalConnection")); + +export { GetGlobalConnectionsResult } from "./getGlobalConnections"; +export const getGlobalConnections: typeof import("./getGlobalConnections").getGlobalConnections = null as any; +export const getGlobalConnectionsOutput: typeof import("./getGlobalConnections").getGlobalConnectionsOutput = null as any; +utilities.lazyLoad(exports, ["getGlobalConnections","getGlobalConnectionsOutput"], () => require("./getGlobalConnections")); + export { GetGroupArgs, GetGroupResult, GetGroupOutputArgs } from "./getGroup"; export const getGroup: typeof import("./getGroup").getGroup = null as any; export const getGroupOutput: typeof import("./getGroup").getGroupOutput = null as any; @@ -145,6 +155,11 @@ export const getProject: typeof import("./getProject").getProject = null as any; export const getProjectOutput: typeof import("./getProject").getProjectOutput = null as any; utilities.lazyLoad(exports, ["getProject","getProjectOutput"], () => require("./getProject")); +export { GetProjectsArgs, GetProjectsResult, GetProjectsOutputArgs } from "./getProjects"; +export const getProjects: typeof import("./getProjects").getProjects = null as any; +export const getProjectsOutput: typeof import("./getProjects").getProjectsOutput = null as any; +utilities.lazyLoad(exports, ["getProjects","getProjectsOutput"], () => require("./getProjects")); + export { GetRepositoryArgs, GetRepositoryResult, GetRepositoryOutputArgs } from "./getRepository"; export const getRepository: typeof import("./getRepository").getRepository = null as any; export const getRepositoryOutput: typeof import("./getRepository").getRepositoryOutput = null as any; diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index bf15b6b..4280978 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -35,6 +35,8 @@ "getEnvironmentVariable.ts", "getEnvironments.ts", "getExtendedAttributes.ts", + "getGlobalConnection.ts", + "getGlobalConnections.ts", "getGroup.ts", "getGroupUsers.ts", "getJob.ts", @@ -43,6 +45,7 @@ "getPostgresCredential.ts", "getPrivatelinkEndpoint.ts", "getProject.ts", + "getProjects.ts", "getRepository.ts", "getServiceToken.ts", "getSnowflakeCredential.ts", diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 9da801c..6a30cbc 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -52,6 +52,439 @@ export interface GetEnvironmentsEnvironment { useCustomBranch: boolean; } +export interface GetGlobalConnectionApacheSpark { + /** + * Auth + */ + auth: string; + /** + * Spark cluster for the connection + */ + cluster: string; + /** + * Connection retries. Default=0 + */ + connectRetries: number; + /** + * Connection time out in seconds. Default=10 + */ + connectTimeout: number; + /** + * Hostname of the connection + */ + host: string; + /** + * Authentication method for the connection (http or thrift). + */ + method: string; + /** + * Organization ID + */ + organization: string; + /** + * Port for the connection. Default=443 + */ + port: number; + /** + * User + */ + user: string; +} + +export interface GetGlobalConnectionAthena { + /** + * Specify the database (data catalog) to build models into (lowercase only). + */ + database: string; + /** + * Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + */ + numBoto3Retries: number; + /** + * Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + */ + numIcebergRetries: number; + /** + * Number of times to retry a failing query. + */ + numRetries: number; + /** + * Interval in seconds to use for polling the status of query results in Athena. + */ + pollInterval: number; + /** + * AWS region of your Athena instance. + */ + regionName: string; + /** + * Prefix for storing tables, if different from the connection's S3 staging directory. + */ + s3DataDir: string; + /** + * How to generate table paths in the S3 data directory. + */ + s3DataNaming: string; + /** + * S3 location to store Athena query results and metadata. + */ + s3StagingDir: string; + /** + * Prefix for storing temporary tables, if different from the connection's S3 data directory. + */ + s3TmpTableDir: string; + /** + * Identifier of Athena Spark workgroup for running Python models. + */ + sparkWorkGroup: string; + /** + * Identifier of Athena workgroup. + */ + workGroup: string; +} + +export interface GetGlobalConnectionBigquery { + /** + * OAuth Client ID + */ + applicationId: string; + /** + * OAuth Client Secret + */ + applicationSecret: string; + /** + * Auth Provider X509 Cert URL for the Service Account + */ + authProviderX509CertUrl: string; + /** + * Auth URI for the Service Account + */ + authUri: string; + /** + * Service Account email + */ + clientEmail: string; + /** + * Client ID of the Service Account + */ + clientId: string; + /** + * Client X509 Cert URL for the Service Account + */ + clientX509CertUrl: string; + /** + * Dataproc cluster name for PySpark workloads + */ + dataprocClusterName: string; + /** + * Google Cloud region for PySpark workloads on Dataproc + */ + dataprocRegion: string; + /** + * Project to bill for query execution + */ + executionProject: string; + /** + * The GCP project ID to use for the connection + */ + gcpProjectId: string; + /** + * URI for a Google Cloud Storage bucket to host Python code executed via Datapro + */ + gcsBucket: string; + /** + * Service Account to impersonate when running queries + */ + impersonateServiceAccount: string; + /** + * Maximum timeout for the job creation step + */ + jobCreationTimeoutSeconds: number; + /** + * Total number of seconds to wait while retrying the same query + */ + jobRetryDeadlineSeconds: number; + /** + * Location to create new Datasets in + */ + location: string; + /** + * Max number of bytes that can be billed for a given BigQuery query + */ + maximumBytesBilled: number; + /** + * The priority with which to execute BigQuery queries (batch or interactive) + */ + priority: string; + /** + * Private Key for the Service Account + */ + privateKey: string; + /** + * Private Key ID for the Service Account + */ + privateKeyId: string; + /** + * Number of retries for queries + */ + retries: number; + /** + * OAuth scopes for the BigQuery connection + */ + scopes: string[]; + /** + * Timeout in seconds for queries + */ + timeoutSeconds: number; + /** + * Token URI for the Service Account + */ + tokenUri: string; +} + +export interface GetGlobalConnectionDatabricks { + /** + * Catalog name if Unity Catalog is enabled in your Databricks workspace. + */ + catalog: string; + /** + * Required to enable Databricks OAuth authentication for IDE developers. + */ + clientId: string; + /** + * Required to enable Databricks OAuth authentication for IDE developers. + */ + clientSecret: string; + /** + * The hostname of the Databricks cluster or SQL warehouse. + */ + host: string; + /** + * The HTTP path of the Databricks cluster or SQL warehouse. + */ + httpPath: string; +} + +export interface GetGlobalConnectionFabric { + /** + * The database to connect to for this connection. + */ + database: string; + /** + * The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + */ + loginTimeout: number; + /** + * The port to connect to for this connection. Default=1433 + */ + port: number; + /** + * The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + */ + queryTimeout: number; + /** + * The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + */ + retries: number; + /** + * The server hostname. + */ + server: string; +} + +export interface GetGlobalConnectionPostgres { + /** + * The database name for this connection. + */ + dbname: string; + /** + * The hostname of the database. + */ + hostname: string; + /** + * The port to connect to for this connection. Default=5432 + */ + port: number; + /** + * PostgreSQL SSH Tunnel configuration + */ + sshTunnel: outputs.GetGlobalConnectionPostgresSshTunnel; +} + +export interface GetGlobalConnectionPostgresSshTunnel { + /** + * The hostname for the SSH tunnel. + */ + hostname: string; + /** + * The ID of the SSH tunnel connection. + */ + id: number; + /** + * The HTTP port for the SSH tunnel. + */ + port: number; + /** + * The SSH public key generated to allow connecting via SSH tunnel. + */ + publicKey: string; + /** + * The username to use for the SSH tunnel. + */ + username: string; +} + +export interface GetGlobalConnectionRedshift { + /** + * The database name for this connection. + */ + dbname: string; + /** + * The hostname of the data warehouse. + */ + hostname: string; + /** + * The port to connect to for this connection. Default=5432 + */ + port: number; + /** + * Redshift SSH Tunnel configuration + */ + sshTunnel: outputs.GetGlobalConnectionRedshiftSshTunnel; +} + +export interface GetGlobalConnectionRedshiftSshTunnel { + /** + * The hostname for the SSH tunnel. + */ + hostname: string; + /** + * The ID of the SSH tunnel connection. + */ + id: number; + /** + * The HTTP port for the SSH tunnel. + */ + port: number; + /** + * The SSH public key generated to allow connecting via SSH tunnel. + */ + publicKey: string; + /** + * The username to use for the SSH tunnel. + */ + username: string; +} + +export interface GetGlobalConnectionSnowflake { + /** + * The Snowflake account name + */ + account: string; + /** + * Whether to allow Snowflake OAuth for the connection. If true, the `oauthClientId` and `oauthClientSecret` fields must be set + */ + allowSso: boolean; + /** + * If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + */ + clientSessionKeepAlive: boolean; + /** + * The default database for the connection + */ + database: string; + /** + * OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + */ + oauthClientId: string; + /** + * OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + */ + oauthClientSecret: string; + /** + * The Snowflake role to use when running queries on the connection + */ + role: string; + /** + * The default Snowflake Warehouse to use for the connection + */ + warehouse: string; +} + +export interface GetGlobalConnectionStarburst { + /** + * The hostname of the account to connect to. + */ + host: string; + /** + * The authentication method. Only LDAP for now. + */ + method: string; + /** + * The port to connect to for this connection. Default=443 + */ + port: number; +} + +export interface GetGlobalConnectionSynapse { + /** + * The database to connect to for this connection. + */ + database: string; + /** + * The server hostname. + */ + host: string; + /** + * The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + */ + loginTimeout: number; + /** + * The port to connect to for this connection. Default=1433 + */ + port: number; + /** + * The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + */ + queryTimeout: number; + /** + * The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + */ + retries: number; +} + +export interface GetGlobalConnectionsConnection { + /** + * Type of adapter used for the connection + */ + adapterVersion: string; + /** + * When the connection was created + */ + createdAt: string; + /** + * Number of environments using this connection + */ + environmentCount: number; + /** + * Connection Identifier + */ + id: number; + isSshTunnelEnabled: boolean; + /** + * Connection name + */ + name: string; + oauthConfigurationId: number; + /** + * Private Link Endpoint ID. + */ + privateLinkEndpointId: number; + /** + * When the connection was updated + */ + updatedAt: string; +} + export interface GetGroupGroupPermission { /** * Whether access should be provided for all projects or not. @@ -232,6 +665,75 @@ export interface GetJobsJobTriggers { schedule: boolean; } +export interface GetProjectsProject { + /** + * Details for the connection linked to the project + */ + connection: outputs.GetProjectsProjectConnection; + /** + * When the project was created + */ + createdAt: string; + /** + * Subdirectory for the dbt project inside the git repo + */ + dbtProjectSubdirectory: string; + /** + * Project description + */ + description: string; + /** + * Project ID + */ + id: number; + /** + * Project name + */ + name: string; + /** + * Details for the repository linked to the project + */ + repository: outputs.GetProjectsProjectRepository; + /** + * Semantic layer config ID + */ + semanticLayerConfigId: number; + /** + * When the project was last updated + */ + updatedAt: string; +} + +export interface GetProjectsProjectConnection { + /** + * Version of the adapter for the connection. Will tell what connection type it is + */ + adapterVersion: string; + /** + * Connection ID + */ + id: number; + /** + * Connection name + */ + name: string; +} + +export interface GetProjectsProjectRepository { + /** + * Repository ID + */ + id: number; + /** + * URL template for PRs + */ + pullRequestUrlTemplate: string; + /** + * URL of the git repo remote + */ + remoteUrl: string; +} + export interface GetServiceTokenServiceTokenPermission { /** * Whether or not to apply this permission to all projects for this service token diff --git a/sdk/python/pulumi_dbtcloud/__init__.py b/sdk/python/pulumi_dbtcloud/__init__.py index 47bbaa6..7def1f4 100644 --- a/sdk/python/pulumi_dbtcloud/__init__.py +++ b/sdk/python/pulumi_dbtcloud/__init__.py @@ -25,6 +25,8 @@ from .get_environment_variable import * from .get_environments import * from .get_extended_attributes import * +from .get_global_connection import * +from .get_global_connections import * from .get_group import * from .get_group_users import * from .get_job import * @@ -33,6 +35,7 @@ from .get_postgres_credential import * from .get_privatelink_endpoint import * from .get_project import * +from .get_projects import * from .get_repository import * from .get_service_token import * from .get_snowflake_credential import * diff --git a/sdk/python/pulumi_dbtcloud/get_global_connection.py b/sdk/python/pulumi_dbtcloud/get_global_connection.py new file mode 100644 index 0000000..de760ba --- /dev/null +++ b/sdk/python/pulumi_dbtcloud/get_global_connection.py @@ -0,0 +1,277 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities +from . import outputs + +__all__ = [ + 'GetGlobalConnectionResult', + 'AwaitableGetGlobalConnectionResult', + 'get_global_connection', + 'get_global_connection_output', +] + +@pulumi.output_type +class GetGlobalConnectionResult: + """ + A collection of values returned by getGlobalConnection. + """ + def __init__(__self__, adapter_version=None, apache_spark=None, athena=None, bigquery=None, databricks=None, fabric=None, id=None, is_ssh_tunnel_enabled=None, name=None, oauth_configuration_id=None, postgres=None, private_link_endpoint_id=None, redshift=None, snowflake=None, starburst=None, synapse=None): + if adapter_version and not isinstance(adapter_version, str): + raise TypeError("Expected argument 'adapter_version' to be a str") + pulumi.set(__self__, "adapter_version", adapter_version) + if apache_spark and not isinstance(apache_spark, dict): + raise TypeError("Expected argument 'apache_spark' to be a dict") + pulumi.set(__self__, "apache_spark", apache_spark) + if athena and not isinstance(athena, dict): + raise TypeError("Expected argument 'athena' to be a dict") + pulumi.set(__self__, "athena", athena) + if bigquery and not isinstance(bigquery, dict): + raise TypeError("Expected argument 'bigquery' to be a dict") + pulumi.set(__self__, "bigquery", bigquery) + if databricks and not isinstance(databricks, dict): + raise TypeError("Expected argument 'databricks' to be a dict") + pulumi.set(__self__, "databricks", databricks) + if fabric and not isinstance(fabric, dict): + raise TypeError("Expected argument 'fabric' to be a dict") + pulumi.set(__self__, "fabric", fabric) + if id and not isinstance(id, int): + raise TypeError("Expected argument 'id' to be a int") + pulumi.set(__self__, "id", id) + if is_ssh_tunnel_enabled and not isinstance(is_ssh_tunnel_enabled, bool): + raise TypeError("Expected argument 'is_ssh_tunnel_enabled' to be a bool") + pulumi.set(__self__, "is_ssh_tunnel_enabled", is_ssh_tunnel_enabled) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if oauth_configuration_id and not isinstance(oauth_configuration_id, int): + raise TypeError("Expected argument 'oauth_configuration_id' to be a int") + pulumi.set(__self__, "oauth_configuration_id", oauth_configuration_id) + if postgres and not isinstance(postgres, dict): + raise TypeError("Expected argument 'postgres' to be a dict") + pulumi.set(__self__, "postgres", postgres) + if private_link_endpoint_id and not isinstance(private_link_endpoint_id, str): + raise TypeError("Expected argument 'private_link_endpoint_id' to be a str") + pulumi.set(__self__, "private_link_endpoint_id", private_link_endpoint_id) + if redshift and not isinstance(redshift, dict): + raise TypeError("Expected argument 'redshift' to be a dict") + pulumi.set(__self__, "redshift", redshift) + if snowflake and not isinstance(snowflake, dict): + raise TypeError("Expected argument 'snowflake' to be a dict") + pulumi.set(__self__, "snowflake", snowflake) + if starburst and not isinstance(starburst, dict): + raise TypeError("Expected argument 'starburst' to be a dict") + pulumi.set(__self__, "starburst", starburst) + if synapse and not isinstance(synapse, dict): + raise TypeError("Expected argument 'synapse' to be a dict") + pulumi.set(__self__, "synapse", synapse) + + @property + @pulumi.getter(name="adapterVersion") + def adapter_version(self) -> str: + """ + Version of the adapter + """ + return pulumi.get(self, "adapter_version") + + @property + @pulumi.getter(name="apacheSpark") + def apache_spark(self) -> 'outputs.GetGlobalConnectionApacheSparkResult': + """ + Apache Spark connection configuration. + """ + return pulumi.get(self, "apache_spark") + + @property + @pulumi.getter + def athena(self) -> 'outputs.GetGlobalConnectionAthenaResult': + """ + Athena connection configuration. + """ + return pulumi.get(self, "athena") + + @property + @pulumi.getter + def bigquery(self) -> 'outputs.GetGlobalConnectionBigqueryResult': + return pulumi.get(self, "bigquery") + + @property + @pulumi.getter + def databricks(self) -> 'outputs.GetGlobalConnectionDatabricksResult': + """ + Databricks connection configuration + """ + return pulumi.get(self, "databricks") + + @property + @pulumi.getter + def fabric(self) -> 'outputs.GetGlobalConnectionFabricResult': + """ + Microsoft Fabric connection configuration. + """ + return pulumi.get(self, "fabric") + + @property + @pulumi.getter + def id(self) -> int: + """ + Connection Identifier + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="isSshTunnelEnabled") + def is_ssh_tunnel_enabled(self) -> bool: + """ + Whether the connection can use an SSH tunnel + """ + return pulumi.get(self, "is_ssh_tunnel_enabled") + + @property + @pulumi.getter + def name(self) -> str: + """ + Connection name + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="oauthConfigurationId") + def oauth_configuration_id(self) -> int: + return pulumi.get(self, "oauth_configuration_id") + + @property + @pulumi.getter + def postgres(self) -> 'outputs.GetGlobalConnectionPostgresResult': + """ + PostgreSQL connection configuration. + """ + return pulumi.get(self, "postgres") + + @property + @pulumi.getter(name="privateLinkEndpointId") + def private_link_endpoint_id(self) -> str: + """ + Private Link Endpoint ID. This ID can be found using the `privatelink_endpoint` data source + """ + return pulumi.get(self, "private_link_endpoint_id") + + @property + @pulumi.getter + def redshift(self) -> 'outputs.GetGlobalConnectionRedshiftResult': + """ + Redshift connection configuration + """ + return pulumi.get(self, "redshift") + + @property + @pulumi.getter + def snowflake(self) -> 'outputs.GetGlobalConnectionSnowflakeResult': + """ + Snowflake connection configuration + """ + return pulumi.get(self, "snowflake") + + @property + @pulumi.getter + def starburst(self) -> 'outputs.GetGlobalConnectionStarburstResult': + """ + Starburst/Trino connection configuration. + """ + return pulumi.get(self, "starburst") + + @property + @pulumi.getter + def synapse(self) -> 'outputs.GetGlobalConnectionSynapseResult': + """ + Azure Synapse Analytics connection configuration. + """ + return pulumi.get(self, "synapse") + + +class AwaitableGetGlobalConnectionResult(GetGlobalConnectionResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetGlobalConnectionResult( + adapter_version=self.adapter_version, + apache_spark=self.apache_spark, + athena=self.athena, + bigquery=self.bigquery, + databricks=self.databricks, + fabric=self.fabric, + id=self.id, + is_ssh_tunnel_enabled=self.is_ssh_tunnel_enabled, + name=self.name, + oauth_configuration_id=self.oauth_configuration_id, + postgres=self.postgres, + private_link_endpoint_id=self.private_link_endpoint_id, + redshift=self.redshift, + snowflake=self.snowflake, + starburst=self.starburst, + synapse=self.synapse) + + +def get_global_connection(id: Optional[int] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGlobalConnectionResult: + """ + ## Example Usage + + ```python + import pulumi + import pulumi_dbtcloud as dbtcloud + + my_connection = dbtcloud.get_global_connection(id=1234) + ``` + + + :param int id: Connection Identifier + """ + __args__ = dict() + __args__['id'] = id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('dbtcloud:index/getGlobalConnection:getGlobalConnection', __args__, opts=opts, typ=GetGlobalConnectionResult).value + + return AwaitableGetGlobalConnectionResult( + adapter_version=pulumi.get(__ret__, 'adapter_version'), + apache_spark=pulumi.get(__ret__, 'apache_spark'), + athena=pulumi.get(__ret__, 'athena'), + bigquery=pulumi.get(__ret__, 'bigquery'), + databricks=pulumi.get(__ret__, 'databricks'), + fabric=pulumi.get(__ret__, 'fabric'), + id=pulumi.get(__ret__, 'id'), + is_ssh_tunnel_enabled=pulumi.get(__ret__, 'is_ssh_tunnel_enabled'), + name=pulumi.get(__ret__, 'name'), + oauth_configuration_id=pulumi.get(__ret__, 'oauth_configuration_id'), + postgres=pulumi.get(__ret__, 'postgres'), + private_link_endpoint_id=pulumi.get(__ret__, 'private_link_endpoint_id'), + redshift=pulumi.get(__ret__, 'redshift'), + snowflake=pulumi.get(__ret__, 'snowflake'), + starburst=pulumi.get(__ret__, 'starburst'), + synapse=pulumi.get(__ret__, 'synapse')) + + +@_utilities.lift_output_func(get_global_connection) +def get_global_connection_output(id: Optional[pulumi.Input[int]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGlobalConnectionResult]: + """ + ## Example Usage + + ```python + import pulumi + import pulumi_dbtcloud as dbtcloud + + my_connection = dbtcloud.get_global_connection(id=1234) + ``` + + + :param int id: Connection Identifier + """ + ... diff --git a/sdk/python/pulumi_dbtcloud/get_global_connections.py b/sdk/python/pulumi_dbtcloud/get_global_connections.py new file mode 100644 index 0000000..4f968c4 --- /dev/null +++ b/sdk/python/pulumi_dbtcloud/get_global_connections.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities +from . import outputs + +__all__ = [ + 'GetGlobalConnectionsResult', + 'AwaitableGetGlobalConnectionsResult', + 'get_global_connections', + 'get_global_connections_output', +] + +@pulumi.output_type +class GetGlobalConnectionsResult: + """ + A collection of values returned by getGlobalConnections. + """ + def __init__(__self__, connections=None, id=None): + if connections and not isinstance(connections, list): + raise TypeError("Expected argument 'connections' to be a list") + pulumi.set(__self__, "connections", connections) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + + @property + @pulumi.getter + def connections(self) -> Sequence['outputs.GetGlobalConnectionsConnectionResult']: + """ + A set of all the connections + """ + return pulumi.get(self, "connections") + + @property + @pulumi.getter + def id(self) -> str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + +class AwaitableGetGlobalConnectionsResult(GetGlobalConnectionsResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetGlobalConnectionsResult( + connections=self.connections, + id=self.id) + + +def get_global_connections(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGlobalConnectionsResult: + """ + All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + + ## Example Usage + + ```python + import pulumi + import pulumi_dbtcloud as dbtcloud + + my_connections = dbtcloud.get_global_connections() + ``` + """ + __args__ = dict() + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('dbtcloud:index/getGlobalConnections:getGlobalConnections', __args__, opts=opts, typ=GetGlobalConnectionsResult).value + + return AwaitableGetGlobalConnectionsResult( + connections=pulumi.get(__ret__, 'connections'), + id=pulumi.get(__ret__, 'id')) + + +@_utilities.lift_output_func(get_global_connections) +def get_global_connections_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGlobalConnectionsResult]: + """ + All the connections created on the account with some summary information, like their name, type, when they were created/updated and the number of environments using them. + + ## Example Usage + + ```python + import pulumi + import pulumi_dbtcloud as dbtcloud + + my_connections = dbtcloud.get_global_connections() + ``` + """ + ... diff --git a/sdk/python/pulumi_dbtcloud/get_projects.py b/sdk/python/pulumi_dbtcloud/get_projects.py new file mode 100644 index 0000000..26c3177 --- /dev/null +++ b/sdk/python/pulumi_dbtcloud/get_projects.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from . import _utilities +from . import outputs + +__all__ = [ + 'GetProjectsResult', + 'AwaitableGetProjectsResult', + 'get_projects', + 'get_projects_output', +] + +@pulumi.output_type +class GetProjectsResult: + """ + A collection of values returned by getProjects. + """ + def __init__(__self__, id=None, name_contains=None, projects=None): + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if name_contains and not isinstance(name_contains, str): + raise TypeError("Expected argument 'name_contains' to be a str") + pulumi.set(__self__, "name_contains", name_contains) + if projects and not isinstance(projects, list): + raise TypeError("Expected argument 'projects' to be a list") + pulumi.set(__self__, "projects", projects) + + @property + @pulumi.getter + def id(self) -> str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="nameContains") + def name_contains(self) -> str: + """ + Used to filter projects by name, Optional + """ + return pulumi.get(self, "name_contains") + + @property + @pulumi.getter + def projects(self) -> Sequence['outputs.GetProjectsProjectResult']: + """ + Set of projects with their details + """ + return pulumi.get(self, "projects") + + +class AwaitableGetProjectsResult(GetProjectsResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetProjectsResult( + id=self.id, + name_contains=self.name_contains, + projects=self.projects) + + +def get_projects(name_contains: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProjectsResult: + """ + Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + + + :param str name_contains: Used to filter projects by name, Optional + """ + __args__ = dict() + __args__['nameContains'] = name_contains + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('dbtcloud:index/getProjects:getProjects', __args__, opts=opts, typ=GetProjectsResult).value + + return AwaitableGetProjectsResult( + id=pulumi.get(__ret__, 'id'), + name_contains=pulumi.get(__ret__, 'name_contains'), + projects=pulumi.get(__ret__, 'projects')) + + +@_utilities.lift_output_func(get_projects) +def get_projects_output(name_contains: Optional[pulumi.Input[Optional[str]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProjectsResult]: + """ + Retrieve all the projects created in dbt Cloud with an optional filter on parts of the project name. + + + :param str name_contains: Used to filter projects by name, Optional + """ + ... diff --git a/sdk/python/pulumi_dbtcloud/outputs.py b/sdk/python/pulumi_dbtcloud/outputs.py index 441e353..d3085dc 100644 --- a/sdk/python/pulumi_dbtcloud/outputs.py +++ b/sdk/python/pulumi_dbtcloud/outputs.py @@ -28,6 +28,19 @@ 'JobJobCompletionTriggerCondition', 'ServiceTokenServiceTokenPermission', 'GetEnvironmentsEnvironmentResult', + 'GetGlobalConnectionApacheSparkResult', + 'GetGlobalConnectionAthenaResult', + 'GetGlobalConnectionBigqueryResult', + 'GetGlobalConnectionDatabricksResult', + 'GetGlobalConnectionFabricResult', + 'GetGlobalConnectionPostgresResult', + 'GetGlobalConnectionPostgresSshTunnelResult', + 'GetGlobalConnectionRedshiftResult', + 'GetGlobalConnectionRedshiftSshTunnelResult', + 'GetGlobalConnectionSnowflakeResult', + 'GetGlobalConnectionStarburstResult', + 'GetGlobalConnectionSynapseResult', + 'GetGlobalConnectionsConnectionResult', 'GetGroupGroupPermissionResult', 'GetGroupUsersUserResult', 'GetJobJobCompletionTriggerConditionResult', @@ -39,6 +52,9 @@ 'GetJobsJobScheduleResult', 'GetJobsJobSettingsResult', 'GetJobsJobTriggersResult', + 'GetProjectsProjectResult', + 'GetProjectsProjectConnectionResult', + 'GetProjectsProjectRepositoryResult', 'GetServiceTokenServiceTokenPermissionResult', 'GetUsersUserResult', ] @@ -1886,6 +1902,1189 @@ def use_custom_branch(self) -> bool: return pulumi.get(self, "use_custom_branch") +@pulumi.output_type +class GetGlobalConnectionApacheSparkResult(dict): + def __init__(__self__, *, + auth: str, + cluster: str, + connect_retries: int, + connect_timeout: int, + host: str, + method: str, + organization: str, + port: int, + user: str): + """ + :param str auth: Auth + :param str cluster: Spark cluster for the connection + :param int connect_retries: Connection retries. Default=0 + :param int connect_timeout: Connection time out in seconds. Default=10 + :param str host: Hostname of the connection + :param str method: Authentication method for the connection (http or thrift). + :param str organization: Organization ID + :param int port: Port for the connection. Default=443 + :param str user: User + """ + pulumi.set(__self__, "auth", auth) + pulumi.set(__self__, "cluster", cluster) + pulumi.set(__self__, "connect_retries", connect_retries) + pulumi.set(__self__, "connect_timeout", connect_timeout) + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "method", method) + pulumi.set(__self__, "organization", organization) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "user", user) + + @property + @pulumi.getter + def auth(self) -> str: + """ + Auth + """ + return pulumi.get(self, "auth") + + @property + @pulumi.getter + def cluster(self) -> str: + """ + Spark cluster for the connection + """ + return pulumi.get(self, "cluster") + + @property + @pulumi.getter(name="connectRetries") + def connect_retries(self) -> int: + """ + Connection retries. Default=0 + """ + return pulumi.get(self, "connect_retries") + + @property + @pulumi.getter(name="connectTimeout") + def connect_timeout(self) -> int: + """ + Connection time out in seconds. Default=10 + """ + return pulumi.get(self, "connect_timeout") + + @property + @pulumi.getter + def host(self) -> str: + """ + Hostname of the connection + """ + return pulumi.get(self, "host") + + @property + @pulumi.getter + def method(self) -> str: + """ + Authentication method for the connection (http or thrift). + """ + return pulumi.get(self, "method") + + @property + @pulumi.getter + def organization(self) -> str: + """ + Organization ID + """ + return pulumi.get(self, "organization") + + @property + @pulumi.getter + def port(self) -> int: + """ + Port for the connection. Default=443 + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter + def user(self) -> str: + """ + User + """ + return pulumi.get(self, "user") + + +@pulumi.output_type +class GetGlobalConnectionAthenaResult(dict): + def __init__(__self__, *, + database: str, + num_boto3_retries: int, + num_iceberg_retries: int, + num_retries: int, + poll_interval: int, + region_name: str, + s3_data_dir: str, + s3_data_naming: str, + s3_staging_dir: str, + s3_tmp_table_dir: str, + spark_work_group: str, + work_group: str): + """ + :param str database: Specify the database (data catalog) to build models into (lowercase only). + :param int num_boto3_retries: Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + :param int num_iceberg_retries: Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + :param int num_retries: Number of times to retry a failing query. + :param int poll_interval: Interval in seconds to use for polling the status of query results in Athena. + :param str region_name: AWS region of your Athena instance. + :param str s3_data_dir: Prefix for storing tables, if different from the connection's S3 staging directory. + :param str s3_data_naming: How to generate table paths in the S3 data directory. + :param str s3_staging_dir: S3 location to store Athena query results and metadata. + :param str s3_tmp_table_dir: Prefix for storing temporary tables, if different from the connection's S3 data directory. + :param str spark_work_group: Identifier of Athena Spark workgroup for running Python models. + :param str work_group: Identifier of Athena workgroup. + """ + pulumi.set(__self__, "database", database) + pulumi.set(__self__, "num_boto3_retries", num_boto3_retries) + pulumi.set(__self__, "num_iceberg_retries", num_iceberg_retries) + pulumi.set(__self__, "num_retries", num_retries) + pulumi.set(__self__, "poll_interval", poll_interval) + pulumi.set(__self__, "region_name", region_name) + pulumi.set(__self__, "s3_data_dir", s3_data_dir) + pulumi.set(__self__, "s3_data_naming", s3_data_naming) + pulumi.set(__self__, "s3_staging_dir", s3_staging_dir) + pulumi.set(__self__, "s3_tmp_table_dir", s3_tmp_table_dir) + pulumi.set(__self__, "spark_work_group", spark_work_group) + pulumi.set(__self__, "work_group", work_group) + + @property + @pulumi.getter + def database(self) -> str: + """ + Specify the database (data catalog) to build models into (lowercase only). + """ + return pulumi.get(self, "database") + + @property + @pulumi.getter(name="numBoto3Retries") + def num_boto3_retries(self) -> int: + """ + Number of times to retry boto3 requests (e.g. deleting S3 files for materialized tables). + """ + return pulumi.get(self, "num_boto3_retries") + + @property + @pulumi.getter(name="numIcebergRetries") + def num_iceberg_retries(self) -> int: + """ + Number of times to retry iceberg commit queries to fix ICEBERG*COMMIT*ERROR. + """ + return pulumi.get(self, "num_iceberg_retries") + + @property + @pulumi.getter(name="numRetries") + def num_retries(self) -> int: + """ + Number of times to retry a failing query. + """ + return pulumi.get(self, "num_retries") + + @property + @pulumi.getter(name="pollInterval") + def poll_interval(self) -> int: + """ + Interval in seconds to use for polling the status of query results in Athena. + """ + return pulumi.get(self, "poll_interval") + + @property + @pulumi.getter(name="regionName") + def region_name(self) -> str: + """ + AWS region of your Athena instance. + """ + return pulumi.get(self, "region_name") + + @property + @pulumi.getter(name="s3DataDir") + def s3_data_dir(self) -> str: + """ + Prefix for storing tables, if different from the connection's S3 staging directory. + """ + return pulumi.get(self, "s3_data_dir") + + @property + @pulumi.getter(name="s3DataNaming") + def s3_data_naming(self) -> str: + """ + How to generate table paths in the S3 data directory. + """ + return pulumi.get(self, "s3_data_naming") + + @property + @pulumi.getter(name="s3StagingDir") + def s3_staging_dir(self) -> str: + """ + S3 location to store Athena query results and metadata. + """ + return pulumi.get(self, "s3_staging_dir") + + @property + @pulumi.getter(name="s3TmpTableDir") + def s3_tmp_table_dir(self) -> str: + """ + Prefix for storing temporary tables, if different from the connection's S3 data directory. + """ + return pulumi.get(self, "s3_tmp_table_dir") + + @property + @pulumi.getter(name="sparkWorkGroup") + def spark_work_group(self) -> str: + """ + Identifier of Athena Spark workgroup for running Python models. + """ + return pulumi.get(self, "spark_work_group") + + @property + @pulumi.getter(name="workGroup") + def work_group(self) -> str: + """ + Identifier of Athena workgroup. + """ + return pulumi.get(self, "work_group") + + +@pulumi.output_type +class GetGlobalConnectionBigqueryResult(dict): + def __init__(__self__, *, + application_id: str, + application_secret: str, + auth_provider_x509_cert_url: str, + auth_uri: str, + client_email: str, + client_id: str, + client_x509_cert_url: str, + dataproc_cluster_name: str, + dataproc_region: str, + execution_project: str, + gcp_project_id: str, + gcs_bucket: str, + impersonate_service_account: str, + job_creation_timeout_seconds: int, + job_retry_deadline_seconds: int, + location: str, + maximum_bytes_billed: int, + priority: str, + private_key: str, + private_key_id: str, + retries: int, + scopes: Sequence[str], + timeout_seconds: int, + token_uri: str): + """ + :param str application_id: OAuth Client ID + :param str application_secret: OAuth Client Secret + :param str auth_provider_x509_cert_url: Auth Provider X509 Cert URL for the Service Account + :param str auth_uri: Auth URI for the Service Account + :param str client_email: Service Account email + :param str client_id: Client ID of the Service Account + :param str client_x509_cert_url: Client X509 Cert URL for the Service Account + :param str dataproc_cluster_name: Dataproc cluster name for PySpark workloads + :param str dataproc_region: Google Cloud region for PySpark workloads on Dataproc + :param str execution_project: Project to bill for query execution + :param str gcp_project_id: The GCP project ID to use for the connection + :param str gcs_bucket: URI for a Google Cloud Storage bucket to host Python code executed via Datapro + :param str impersonate_service_account: Service Account to impersonate when running queries + :param int job_creation_timeout_seconds: Maximum timeout for the job creation step + :param int job_retry_deadline_seconds: Total number of seconds to wait while retrying the same query + :param str location: Location to create new Datasets in + :param int maximum_bytes_billed: Max number of bytes that can be billed for a given BigQuery query + :param str priority: The priority with which to execute BigQuery queries (batch or interactive) + :param str private_key: Private Key for the Service Account + :param str private_key_id: Private Key ID for the Service Account + :param int retries: Number of retries for queries + :param Sequence[str] scopes: OAuth scopes for the BigQuery connection + :param int timeout_seconds: Timeout in seconds for queries + :param str token_uri: Token URI for the Service Account + """ + pulumi.set(__self__, "application_id", application_id) + pulumi.set(__self__, "application_secret", application_secret) + pulumi.set(__self__, "auth_provider_x509_cert_url", auth_provider_x509_cert_url) + pulumi.set(__self__, "auth_uri", auth_uri) + pulumi.set(__self__, "client_email", client_email) + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "client_x509_cert_url", client_x509_cert_url) + pulumi.set(__self__, "dataproc_cluster_name", dataproc_cluster_name) + pulumi.set(__self__, "dataproc_region", dataproc_region) + pulumi.set(__self__, "execution_project", execution_project) + pulumi.set(__self__, "gcp_project_id", gcp_project_id) + pulumi.set(__self__, "gcs_bucket", gcs_bucket) + pulumi.set(__self__, "impersonate_service_account", impersonate_service_account) + pulumi.set(__self__, "job_creation_timeout_seconds", job_creation_timeout_seconds) + pulumi.set(__self__, "job_retry_deadline_seconds", job_retry_deadline_seconds) + pulumi.set(__self__, "location", location) + pulumi.set(__self__, "maximum_bytes_billed", maximum_bytes_billed) + pulumi.set(__self__, "priority", priority) + pulumi.set(__self__, "private_key", private_key) + pulumi.set(__self__, "private_key_id", private_key_id) + pulumi.set(__self__, "retries", retries) + pulumi.set(__self__, "scopes", scopes) + pulumi.set(__self__, "timeout_seconds", timeout_seconds) + pulumi.set(__self__, "token_uri", token_uri) + + @property + @pulumi.getter(name="applicationId") + def application_id(self) -> str: + """ + OAuth Client ID + """ + return pulumi.get(self, "application_id") + + @property + @pulumi.getter(name="applicationSecret") + def application_secret(self) -> str: + """ + OAuth Client Secret + """ + return pulumi.get(self, "application_secret") + + @property + @pulumi.getter(name="authProviderX509CertUrl") + def auth_provider_x509_cert_url(self) -> str: + """ + Auth Provider X509 Cert URL for the Service Account + """ + return pulumi.get(self, "auth_provider_x509_cert_url") + + @property + @pulumi.getter(name="authUri") + def auth_uri(self) -> str: + """ + Auth URI for the Service Account + """ + return pulumi.get(self, "auth_uri") + + @property + @pulumi.getter(name="clientEmail") + def client_email(self) -> str: + """ + Service Account email + """ + return pulumi.get(self, "client_email") + + @property + @pulumi.getter(name="clientId") + def client_id(self) -> str: + """ + Client ID of the Service Account + """ + return pulumi.get(self, "client_id") + + @property + @pulumi.getter(name="clientX509CertUrl") + def client_x509_cert_url(self) -> str: + """ + Client X509 Cert URL for the Service Account + """ + return pulumi.get(self, "client_x509_cert_url") + + @property + @pulumi.getter(name="dataprocClusterName") + def dataproc_cluster_name(self) -> str: + """ + Dataproc cluster name for PySpark workloads + """ + return pulumi.get(self, "dataproc_cluster_name") + + @property + @pulumi.getter(name="dataprocRegion") + def dataproc_region(self) -> str: + """ + Google Cloud region for PySpark workloads on Dataproc + """ + return pulumi.get(self, "dataproc_region") + + @property + @pulumi.getter(name="executionProject") + def execution_project(self) -> str: + """ + Project to bill for query execution + """ + return pulumi.get(self, "execution_project") + + @property + @pulumi.getter(name="gcpProjectId") + def gcp_project_id(self) -> str: + """ + The GCP project ID to use for the connection + """ + return pulumi.get(self, "gcp_project_id") + + @property + @pulumi.getter(name="gcsBucket") + def gcs_bucket(self) -> str: + """ + URI for a Google Cloud Storage bucket to host Python code executed via Datapro + """ + return pulumi.get(self, "gcs_bucket") + + @property + @pulumi.getter(name="impersonateServiceAccount") + def impersonate_service_account(self) -> str: + """ + Service Account to impersonate when running queries + """ + return pulumi.get(self, "impersonate_service_account") + + @property + @pulumi.getter(name="jobCreationTimeoutSeconds") + def job_creation_timeout_seconds(self) -> int: + """ + Maximum timeout for the job creation step + """ + return pulumi.get(self, "job_creation_timeout_seconds") + + @property + @pulumi.getter(name="jobRetryDeadlineSeconds") + def job_retry_deadline_seconds(self) -> int: + """ + Total number of seconds to wait while retrying the same query + """ + return pulumi.get(self, "job_retry_deadline_seconds") + + @property + @pulumi.getter + def location(self) -> str: + """ + Location to create new Datasets in + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter(name="maximumBytesBilled") + def maximum_bytes_billed(self) -> int: + """ + Max number of bytes that can be billed for a given BigQuery query + """ + return pulumi.get(self, "maximum_bytes_billed") + + @property + @pulumi.getter + def priority(self) -> str: + """ + The priority with which to execute BigQuery queries (batch or interactive) + """ + return pulumi.get(self, "priority") + + @property + @pulumi.getter(name="privateKey") + def private_key(self) -> str: + """ + Private Key for the Service Account + """ + return pulumi.get(self, "private_key") + + @property + @pulumi.getter(name="privateKeyId") + def private_key_id(self) -> str: + """ + Private Key ID for the Service Account + """ + return pulumi.get(self, "private_key_id") + + @property + @pulumi.getter + def retries(self) -> int: + """ + Number of retries for queries + """ + return pulumi.get(self, "retries") + + @property + @pulumi.getter + def scopes(self) -> Sequence[str]: + """ + OAuth scopes for the BigQuery connection + """ + return pulumi.get(self, "scopes") + + @property + @pulumi.getter(name="timeoutSeconds") + def timeout_seconds(self) -> int: + """ + Timeout in seconds for queries + """ + return pulumi.get(self, "timeout_seconds") + + @property + @pulumi.getter(name="tokenUri") + def token_uri(self) -> str: + """ + Token URI for the Service Account + """ + return pulumi.get(self, "token_uri") + + +@pulumi.output_type +class GetGlobalConnectionDatabricksResult(dict): + def __init__(__self__, *, + catalog: str, + client_id: str, + client_secret: str, + host: str, + http_path: str): + """ + :param str catalog: Catalog name if Unity Catalog is enabled in your Databricks workspace. + :param str client_id: Required to enable Databricks OAuth authentication for IDE developers. + :param str client_secret: Required to enable Databricks OAuth authentication for IDE developers. + :param str host: The hostname of the Databricks cluster or SQL warehouse. + :param str http_path: The HTTP path of the Databricks cluster or SQL warehouse. + """ + pulumi.set(__self__, "catalog", catalog) + pulumi.set(__self__, "client_id", client_id) + pulumi.set(__self__, "client_secret", client_secret) + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "http_path", http_path) + + @property + @pulumi.getter + def catalog(self) -> str: + """ + Catalog name if Unity Catalog is enabled in your Databricks workspace. + """ + return pulumi.get(self, "catalog") + + @property + @pulumi.getter(name="clientId") + def client_id(self) -> str: + """ + Required to enable Databricks OAuth authentication for IDE developers. + """ + return pulumi.get(self, "client_id") + + @property + @pulumi.getter(name="clientSecret") + def client_secret(self) -> str: + """ + Required to enable Databricks OAuth authentication for IDE developers. + """ + return pulumi.get(self, "client_secret") + + @property + @pulumi.getter + def host(self) -> str: + """ + The hostname of the Databricks cluster or SQL warehouse. + """ + return pulumi.get(self, "host") + + @property + @pulumi.getter(name="httpPath") + def http_path(self) -> str: + """ + The HTTP path of the Databricks cluster or SQL warehouse. + """ + return pulumi.get(self, "http_path") + + +@pulumi.output_type +class GetGlobalConnectionFabricResult(dict): + def __init__(__self__, *, + database: str, + login_timeout: int, + port: int, + query_timeout: int, + retries: int, + server: str): + """ + :param str database: The database to connect to for this connection. + :param int login_timeout: The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + :param int port: The port to connect to for this connection. Default=1433 + :param int query_timeout: The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + :param int retries: The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + :param str server: The server hostname. + """ + pulumi.set(__self__, "database", database) + pulumi.set(__self__, "login_timeout", login_timeout) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "query_timeout", query_timeout) + pulumi.set(__self__, "retries", retries) + pulumi.set(__self__, "server", server) + + @property + @pulumi.getter + def database(self) -> str: + """ + The database to connect to for this connection. + """ + return pulumi.get(self, "database") + + @property + @pulumi.getter(name="loginTimeout") + def login_timeout(self) -> int: + """ + The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + """ + return pulumi.get(self, "login_timeout") + + @property + @pulumi.getter + def port(self) -> int: + """ + The port to connect to for this connection. Default=1433 + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter(name="queryTimeout") + def query_timeout(self) -> int: + """ + The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + """ + return pulumi.get(self, "query_timeout") + + @property + @pulumi.getter + def retries(self) -> int: + """ + The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + """ + return pulumi.get(self, "retries") + + @property + @pulumi.getter + def server(self) -> str: + """ + The server hostname. + """ + return pulumi.get(self, "server") + + +@pulumi.output_type +class GetGlobalConnectionPostgresResult(dict): + def __init__(__self__, *, + dbname: str, + hostname: str, + port: int, + ssh_tunnel: 'outputs.GetGlobalConnectionPostgresSshTunnelResult'): + """ + :param str dbname: The database name for this connection. + :param str hostname: The hostname of the database. + :param int port: The port to connect to for this connection. Default=5432 + :param 'GetGlobalConnectionPostgresSshTunnelArgs' ssh_tunnel: PostgreSQL SSH Tunnel configuration + """ + pulumi.set(__self__, "dbname", dbname) + pulumi.set(__self__, "hostname", hostname) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "ssh_tunnel", ssh_tunnel) + + @property + @pulumi.getter + def dbname(self) -> str: + """ + The database name for this connection. + """ + return pulumi.get(self, "dbname") + + @property + @pulumi.getter + def hostname(self) -> str: + """ + The hostname of the database. + """ + return pulumi.get(self, "hostname") + + @property + @pulumi.getter + def port(self) -> int: + """ + The port to connect to for this connection. Default=5432 + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter(name="sshTunnel") + def ssh_tunnel(self) -> 'outputs.GetGlobalConnectionPostgresSshTunnelResult': + """ + PostgreSQL SSH Tunnel configuration + """ + return pulumi.get(self, "ssh_tunnel") + + +@pulumi.output_type +class GetGlobalConnectionPostgresSshTunnelResult(dict): + def __init__(__self__, *, + hostname: str, + id: int, + port: int, + public_key: str, + username: str): + """ + :param str hostname: The hostname for the SSH tunnel. + :param int id: The ID of the SSH tunnel connection. + :param int port: The HTTP port for the SSH tunnel. + :param str public_key: The SSH public key generated to allow connecting via SSH tunnel. + :param str username: The username to use for the SSH tunnel. + """ + pulumi.set(__self__, "hostname", hostname) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "public_key", public_key) + pulumi.set(__self__, "username", username) + + @property + @pulumi.getter + def hostname(self) -> str: + """ + The hostname for the SSH tunnel. + """ + return pulumi.get(self, "hostname") + + @property + @pulumi.getter + def id(self) -> int: + """ + The ID of the SSH tunnel connection. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def port(self) -> int: + """ + The HTTP port for the SSH tunnel. + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter(name="publicKey") + def public_key(self) -> str: + """ + The SSH public key generated to allow connecting via SSH tunnel. + """ + return pulumi.get(self, "public_key") + + @property + @pulumi.getter + def username(self) -> str: + """ + The username to use for the SSH tunnel. + """ + return pulumi.get(self, "username") + + +@pulumi.output_type +class GetGlobalConnectionRedshiftResult(dict): + def __init__(__self__, *, + dbname: str, + hostname: str, + port: int, + ssh_tunnel: 'outputs.GetGlobalConnectionRedshiftSshTunnelResult'): + """ + :param str dbname: The database name for this connection. + :param str hostname: The hostname of the data warehouse. + :param int port: The port to connect to for this connection. Default=5432 + :param 'GetGlobalConnectionRedshiftSshTunnelArgs' ssh_tunnel: Redshift SSH Tunnel configuration + """ + pulumi.set(__self__, "dbname", dbname) + pulumi.set(__self__, "hostname", hostname) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "ssh_tunnel", ssh_tunnel) + + @property + @pulumi.getter + def dbname(self) -> str: + """ + The database name for this connection. + """ + return pulumi.get(self, "dbname") + + @property + @pulumi.getter + def hostname(self) -> str: + """ + The hostname of the data warehouse. + """ + return pulumi.get(self, "hostname") + + @property + @pulumi.getter + def port(self) -> int: + """ + The port to connect to for this connection. Default=5432 + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter(name="sshTunnel") + def ssh_tunnel(self) -> 'outputs.GetGlobalConnectionRedshiftSshTunnelResult': + """ + Redshift SSH Tunnel configuration + """ + return pulumi.get(self, "ssh_tunnel") + + +@pulumi.output_type +class GetGlobalConnectionRedshiftSshTunnelResult(dict): + def __init__(__self__, *, + hostname: str, + id: int, + port: int, + public_key: str, + username: str): + """ + :param str hostname: The hostname for the SSH tunnel. + :param int id: The ID of the SSH tunnel connection. + :param int port: The HTTP port for the SSH tunnel. + :param str public_key: The SSH public key generated to allow connecting via SSH tunnel. + :param str username: The username to use for the SSH tunnel. + """ + pulumi.set(__self__, "hostname", hostname) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "public_key", public_key) + pulumi.set(__self__, "username", username) + + @property + @pulumi.getter + def hostname(self) -> str: + """ + The hostname for the SSH tunnel. + """ + return pulumi.get(self, "hostname") + + @property + @pulumi.getter + def id(self) -> int: + """ + The ID of the SSH tunnel connection. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def port(self) -> int: + """ + The HTTP port for the SSH tunnel. + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter(name="publicKey") + def public_key(self) -> str: + """ + The SSH public key generated to allow connecting via SSH tunnel. + """ + return pulumi.get(self, "public_key") + + @property + @pulumi.getter + def username(self) -> str: + """ + The username to use for the SSH tunnel. + """ + return pulumi.get(self, "username") + + +@pulumi.output_type +class GetGlobalConnectionSnowflakeResult(dict): + def __init__(__self__, *, + account: str, + allow_sso: bool, + client_session_keep_alive: bool, + database: str, + oauth_client_id: str, + oauth_client_secret: str, + role: str, + warehouse: str): + """ + :param str account: The Snowflake account name + :param bool allow_sso: Whether to allow Snowflake OAuth for the connection. If true, the `oauth_client_id` and `oauth_client_secret` fields must be set + :param bool client_session_keep_alive: If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + :param str database: The default database for the connection + :param str oauth_client_id: OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + :param str oauth_client_secret: OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + :param str role: The Snowflake role to use when running queries on the connection + :param str warehouse: The default Snowflake Warehouse to use for the connection + """ + pulumi.set(__self__, "account", account) + pulumi.set(__self__, "allow_sso", allow_sso) + pulumi.set(__self__, "client_session_keep_alive", client_session_keep_alive) + pulumi.set(__self__, "database", database) + pulumi.set(__self__, "oauth_client_id", oauth_client_id) + pulumi.set(__self__, "oauth_client_secret", oauth_client_secret) + pulumi.set(__self__, "role", role) + pulumi.set(__self__, "warehouse", warehouse) + + @property + @pulumi.getter + def account(self) -> str: + """ + The Snowflake account name + """ + return pulumi.get(self, "account") + + @property + @pulumi.getter(name="allowSso") + def allow_sso(self) -> bool: + """ + Whether to allow Snowflake OAuth for the connection. If true, the `oauth_client_id` and `oauth_client_secret` fields must be set + """ + return pulumi.get(self, "allow_sso") + + @property + @pulumi.getter(name="clientSessionKeepAlive") + def client_session_keep_alive(self) -> bool: + """ + If true, the snowflake client will keep connections for longer than the default 4 hours. This is helpful when particularly long-running queries are executing (> 4 hours) + """ + return pulumi.get(self, "client_session_keep_alive") + + @property + @pulumi.getter + def database(self) -> str: + """ + The default database for the connection + """ + return pulumi.get(self, "database") + + @property + @pulumi.getter(name="oauthClientId") + def oauth_client_id(self) -> str: + """ + OAuth Client ID. Required to allow OAuth between dbt Cloud and Snowflake + """ + return pulumi.get(self, "oauth_client_id") + + @property + @pulumi.getter(name="oauthClientSecret") + def oauth_client_secret(self) -> str: + """ + OAuth Client Secret. Required to allow OAuth between dbt Cloud and Snowflake + """ + return pulumi.get(self, "oauth_client_secret") + + @property + @pulumi.getter + def role(self) -> str: + """ + The Snowflake role to use when running queries on the connection + """ + return pulumi.get(self, "role") + + @property + @pulumi.getter + def warehouse(self) -> str: + """ + The default Snowflake Warehouse to use for the connection + """ + return pulumi.get(self, "warehouse") + + +@pulumi.output_type +class GetGlobalConnectionStarburstResult(dict): + def __init__(__self__, *, + host: str, + method: str, + port: int): + """ + :param str host: The hostname of the account to connect to. + :param str method: The authentication method. Only LDAP for now. + :param int port: The port to connect to for this connection. Default=443 + """ + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "method", method) + pulumi.set(__self__, "port", port) + + @property + @pulumi.getter + def host(self) -> str: + """ + The hostname of the account to connect to. + """ + return pulumi.get(self, "host") + + @property + @pulumi.getter + def method(self) -> str: + """ + The authentication method. Only LDAP for now. + """ + return pulumi.get(self, "method") + + @property + @pulumi.getter + def port(self) -> int: + """ + The port to connect to for this connection. Default=443 + """ + return pulumi.get(self, "port") + + +@pulumi.output_type +class GetGlobalConnectionSynapseResult(dict): + def __init__(__self__, *, + database: str, + host: str, + login_timeout: int, + port: int, + query_timeout: int, + retries: int): + """ + :param str database: The database to connect to for this connection. + :param str host: The server hostname. + :param int login_timeout: The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + :param int port: The port to connect to for this connection. Default=1433 + :param int query_timeout: The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + :param int retries: The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + """ + pulumi.set(__self__, "database", database) + pulumi.set(__self__, "host", host) + pulumi.set(__self__, "login_timeout", login_timeout) + pulumi.set(__self__, "port", port) + pulumi.set(__self__, "query_timeout", query_timeout) + pulumi.set(__self__, "retries", retries) + + @property + @pulumi.getter + def database(self) -> str: + """ + The database to connect to for this connection. + """ + return pulumi.get(self, "database") + + @property + @pulumi.getter + def host(self) -> str: + """ + The server hostname. + """ + return pulumi.get(self, "host") + + @property + @pulumi.getter(name="loginTimeout") + def login_timeout(self) -> int: + """ + The number of seconds used to establish a connection before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + """ + return pulumi.get(self, "login_timeout") + + @property + @pulumi.getter + def port(self) -> int: + """ + The port to connect to for this connection. Default=1433 + """ + return pulumi.get(self, "port") + + @property + @pulumi.getter(name="queryTimeout") + def query_timeout(self) -> int: + """ + The number of seconds used to wait for a query before failing. Defaults to 0, which means that the timeout is disabled or uses the default system settings. + """ + return pulumi.get(self, "query_timeout") + + @property + @pulumi.getter + def retries(self) -> int: + """ + The number of automatic times to retry a query before failing. Defaults to 1. Queries with syntax errors will not be retried. This setting can be used to overcome intermittent network issues. + """ + return pulumi.get(self, "retries") + + +@pulumi.output_type +class GetGlobalConnectionsConnectionResult(dict): + def __init__(__self__, *, + adapter_version: str, + created_at: str, + environment_count: int, + id: int, + is_ssh_tunnel_enabled: bool, + name: str, + oauth_configuration_id: int, + private_link_endpoint_id: int, + updated_at: str): + """ + :param str adapter_version: Type of adapter used for the connection + :param str created_at: When the connection was created + :param int environment_count: Number of environments using this connection + :param int id: Connection Identifier + :param str name: Connection name + :param int private_link_endpoint_id: Private Link Endpoint ID. + :param str updated_at: When the connection was updated + """ + pulumi.set(__self__, "adapter_version", adapter_version) + pulumi.set(__self__, "created_at", created_at) + pulumi.set(__self__, "environment_count", environment_count) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "is_ssh_tunnel_enabled", is_ssh_tunnel_enabled) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "oauth_configuration_id", oauth_configuration_id) + pulumi.set(__self__, "private_link_endpoint_id", private_link_endpoint_id) + pulumi.set(__self__, "updated_at", updated_at) + + @property + @pulumi.getter(name="adapterVersion") + def adapter_version(self) -> str: + """ + Type of adapter used for the connection + """ + return pulumi.get(self, "adapter_version") + + @property + @pulumi.getter(name="createdAt") + def created_at(self) -> str: + """ + When the connection was created + """ + return pulumi.get(self, "created_at") + + @property + @pulumi.getter(name="environmentCount") + def environment_count(self) -> int: + """ + Number of environments using this connection + """ + return pulumi.get(self, "environment_count") + + @property + @pulumi.getter + def id(self) -> int: + """ + Connection Identifier + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="isSshTunnelEnabled") + def is_ssh_tunnel_enabled(self) -> bool: + return pulumi.get(self, "is_ssh_tunnel_enabled") + + @property + @pulumi.getter + def name(self) -> str: + """ + Connection name + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="oauthConfigurationId") + def oauth_configuration_id(self) -> int: + return pulumi.get(self, "oauth_configuration_id") + + @property + @pulumi.getter(name="privateLinkEndpointId") + def private_link_endpoint_id(self) -> int: + """ + Private Link Endpoint ID. + """ + return pulumi.get(self, "private_link_endpoint_id") + + @property + @pulumi.getter(name="updatedAt") + def updated_at(self) -> str: + """ + When the connection was updated + """ + return pulumi.get(self, "updated_at") + + @pulumi.output_type class GetGroupGroupPermissionResult(dict): def __init__(__self__, *, @@ -2408,6 +3607,192 @@ def schedule(self) -> bool: return pulumi.get(self, "schedule") +@pulumi.output_type +class GetProjectsProjectResult(dict): + def __init__(__self__, *, + connection: 'outputs.GetProjectsProjectConnectionResult', + created_at: str, + dbt_project_subdirectory: str, + description: str, + id: int, + name: str, + repository: 'outputs.GetProjectsProjectRepositoryResult', + semantic_layer_config_id: int, + updated_at: str): + """ + :param 'GetProjectsProjectConnectionArgs' connection: Details for the connection linked to the project + :param str created_at: When the project was created + :param str dbt_project_subdirectory: Subdirectory for the dbt project inside the git repo + :param str description: Project description + :param int id: Project ID + :param str name: Project name + :param 'GetProjectsProjectRepositoryArgs' repository: Details for the repository linked to the project + :param int semantic_layer_config_id: Semantic layer config ID + :param str updated_at: When the project was last updated + """ + pulumi.set(__self__, "connection", connection) + pulumi.set(__self__, "created_at", created_at) + pulumi.set(__self__, "dbt_project_subdirectory", dbt_project_subdirectory) + pulumi.set(__self__, "description", description) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "repository", repository) + pulumi.set(__self__, "semantic_layer_config_id", semantic_layer_config_id) + pulumi.set(__self__, "updated_at", updated_at) + + @property + @pulumi.getter + def connection(self) -> 'outputs.GetProjectsProjectConnectionResult': + """ + Details for the connection linked to the project + """ + return pulumi.get(self, "connection") + + @property + @pulumi.getter(name="createdAt") + def created_at(self) -> str: + """ + When the project was created + """ + return pulumi.get(self, "created_at") + + @property + @pulumi.getter(name="dbtProjectSubdirectory") + def dbt_project_subdirectory(self) -> str: + """ + Subdirectory for the dbt project inside the git repo + """ + return pulumi.get(self, "dbt_project_subdirectory") + + @property + @pulumi.getter + def description(self) -> str: + """ + Project description + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter + def id(self) -> int: + """ + Project ID + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def name(self) -> str: + """ + Project name + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def repository(self) -> 'outputs.GetProjectsProjectRepositoryResult': + """ + Details for the repository linked to the project + """ + return pulumi.get(self, "repository") + + @property + @pulumi.getter(name="semanticLayerConfigId") + def semantic_layer_config_id(self) -> int: + """ + Semantic layer config ID + """ + return pulumi.get(self, "semantic_layer_config_id") + + @property + @pulumi.getter(name="updatedAt") + def updated_at(self) -> str: + """ + When the project was last updated + """ + return pulumi.get(self, "updated_at") + + +@pulumi.output_type +class GetProjectsProjectConnectionResult(dict): + def __init__(__self__, *, + adapter_version: str, + id: int, + name: str): + """ + :param str adapter_version: Version of the adapter for the connection. Will tell what connection type it is + :param int id: Connection ID + :param str name: Connection name + """ + pulumi.set(__self__, "adapter_version", adapter_version) + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter(name="adapterVersion") + def adapter_version(self) -> str: + """ + Version of the adapter for the connection. Will tell what connection type it is + """ + return pulumi.get(self, "adapter_version") + + @property + @pulumi.getter + def id(self) -> int: + """ + Connection ID + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def name(self) -> str: + """ + Connection name + """ + return pulumi.get(self, "name") + + +@pulumi.output_type +class GetProjectsProjectRepositoryResult(dict): + def __init__(__self__, *, + id: int, + pull_request_url_template: str, + remote_url: str): + """ + :param int id: Repository ID + :param str pull_request_url_template: URL template for PRs + :param str remote_url: URL of the git repo remote + """ + pulumi.set(__self__, "id", id) + pulumi.set(__self__, "pull_request_url_template", pull_request_url_template) + pulumi.set(__self__, "remote_url", remote_url) + + @property + @pulumi.getter + def id(self) -> int: + """ + Repository ID + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="pullRequestUrlTemplate") + def pull_request_url_template(self) -> str: + """ + URL template for PRs + """ + return pulumi.get(self, "pull_request_url_template") + + @property + @pulumi.getter(name="remoteUrl") + def remote_url(self) -> str: + """ + URL of the git repo remote + """ + return pulumi.get(self, "remote_url") + + @pulumi.output_type class GetServiceTokenServiceTokenPermissionResult(dict): def __init__(__self__, *,