@pulumi/dbtcloud 0.1.0-alpha.1715944408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +177 -0
- package/README.md +70 -0
- package/bigQueryConnection.d.ts +399 -0
- package/bigQueryConnection.js +196 -0
- package/bigQueryConnection.js.map +1 -0
- package/bigQueryCredential.d.ts +117 -0
- package/bigQueryCredential.js +91 -0
- package/bigQueryCredential.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +14 -0
- package/config/vars.js +29 -0
- package/config/vars.js.map +1 -0
- package/connection.d.ts +321 -0
- package/connection.js +149 -0
- package/connection.js.map +1 -0
- package/databricksCredential.d.ts +168 -0
- package/databricksCredential.js +120 -0
- package/databricksCredential.js.map +1 -0
- package/environment.d.ts +209 -0
- package/environment.js +123 -0
- package/environment.js.map +1 -0
- package/environmentVariable.d.ts +120 -0
- package/environmentVariable.js +101 -0
- package/environmentVariable.js.map +1 -0
- package/environmentVariableJobOverride.d.ts +119 -0
- package/environmentVariableJobOverride.js +93 -0
- package/environmentVariableJobOverride.js.map +1 -0
- package/extendedAttributes.d.ts +135 -0
- package/extendedAttributes.js +107 -0
- package/extendedAttributes.js.map +1 -0
- package/fabricConnection.d.ts +177 -0
- package/fabricConnection.js +108 -0
- package/fabricConnection.js.map +1 -0
- package/fabricCredential.d.ts +167 -0
- package/fabricCredential.js +93 -0
- package/fabricCredential.js.map +1 -0
- package/getAzureDevOpsProject.d.ts +72 -0
- package/getAzureDevOpsProject.js +53 -0
- package/getAzureDevOpsProject.js.map +1 -0
- package/getAzureDevOpsRepository.d.ts +98 -0
- package/getAzureDevOpsRepository.js +56 -0
- package/getAzureDevOpsRepository.js.map +1 -0
- package/getBigQueryConnection.d.ts +134 -0
- package/getBigQueryConnection.js +20 -0
- package/getBigQueryConnection.js.map +1 -0
- package/getBigQueryCredential.d.ts +58 -0
- package/getBigQueryCredential.js +20 -0
- package/getBigQueryCredential.js.map +1 -0
- package/getConnection.d.ts +86 -0
- package/getConnection.js +20 -0
- package/getConnection.js.map +1 -0
- package/getDatabricksCredential.d.ts +66 -0
- package/getDatabricksCredential.js +20 -0
- package/getDatabricksCredential.js.map +1 -0
- package/getEnvironment.d.ts +82 -0
- package/getEnvironment.js +20 -0
- package/getEnvironment.js.map +1 -0
- package/getEnvironmentVariable.d.ts +52 -0
- package/getEnvironmentVariable.js +20 -0
- package/getEnvironmentVariable.js.map +1 -0
- package/getExtendedAttributes.d.ts +80 -0
- package/getExtendedAttributes.js +46 -0
- package/getExtendedAttributes.js.map +1 -0
- package/getGroup.d.ts +50 -0
- package/getGroup.js +19 -0
- package/getGroup.js.map +1 -0
- package/getGroupUsers.d.ts +67 -0
- package/getGroupUsers.js +47 -0
- package/getGroupUsers.js.map +1 -0
- package/getJob.d.ts +89 -0
- package/getJob.js +20 -0
- package/getJob.js.map +1 -0
- package/getNotification.d.ts +82 -0
- package/getNotification.js +43 -0
- package/getNotification.js.map +1 -0
- package/getPostgresCredential.d.ts +62 -0
- package/getPostgresCredential.js +20 -0
- package/getPostgresCredential.js.map +1 -0
- package/getPrivatelinkEndpoint.d.ts +98 -0
- package/getPrivatelinkEndpoint.js +61 -0
- package/getPrivatelinkEndpoint.js.map +1 -0
- package/getProject.d.ts +102 -0
- package/getProject.js +57 -0
- package/getProject.js.map +1 -0
- package/getRepository.d.ts +86 -0
- package/getRepository.js +21 -0
- package/getRepository.js.map +1 -0
- package/getServiceToken.d.ts +47 -0
- package/getServiceToken.js +19 -0
- package/getServiceToken.js.map +1 -0
- package/getSnowflakeCredential.d.ts +66 -0
- package/getSnowflakeCredential.js +20 -0
- package/getSnowflakeCredential.js.map +1 -0
- package/getUser.d.ts +58 -0
- package/getUser.js +43 -0
- package/getUser.js.map +1 -0
- package/getUserGroups.d.ts +62 -0
- package/getUserGroups.js +43 -0
- package/getUserGroups.js.map +1 -0
- package/getWebhook.d.ts +66 -0
- package/getWebhook.js +19 -0
- package/getWebhook.js.map +1 -0
- package/group.d.ts +127 -0
- package/group.js +95 -0
- package/group.js.map +1 -0
- package/index.d.ts +144 -0
- package/index.js +220 -0
- package/index.js.map +1 -0
- package/job.d.ts +443 -0
- package/job.js +228 -0
- package/job.js.map +1 -0
- package/licenseMap.d.ts +96 -0
- package/licenseMap.js +90 -0
- package/licenseMap.js.map +1 -0
- package/notification.d.ts +202 -0
- package/notification.js +126 -0
- package/notification.js.map +1 -0
- package/package.json +31 -0
- package/package.json.bak +31 -0
- package/postgresCredential.d.ts +171 -0
- package/postgresCredential.js +110 -0
- package/postgresCredential.js.map +1 -0
- package/project.d.ts +87 -0
- package/project.js +78 -0
- package/project.js.map +1 -0
- package/projectArtefacts.d.ts +99 -0
- package/projectArtefacts.js +83 -0
- package/projectArtefacts.js.map +1 -0
- package/projectConnection.d.ts +86 -0
- package/projectConnection.js +83 -0
- package/projectConnection.js.map +1 -0
- package/projectRepository.d.ts +86 -0
- package/projectRepository.js +83 -0
- package/projectRepository.js.map +1 -0
- package/provider.d.ts +50 -0
- package/provider.js +48 -0
- package/provider.js.map +1 -0
- package/repository.d.ts +204 -0
- package/repository.js +103 -0
- package/repository.js.map +1 -0
- package/serviceToken.d.ts +126 -0
- package/serviceToken.js +95 -0
- package/serviceToken.js.map +1 -0
- package/snowflakeCredential.d.ts +218 -0
- package/snowflakeCredential.js +120 -0
- package/snowflakeCredential.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +43 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +74 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/userGroups.d.ts +105 -0
- package/userGroups.js +102 -0
- package/userGroups.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
- package/webhook.d.ts +175 -0
- package/webhook.js +110 -0
- package/webhook.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# dbt Cloud Resource Provider
|
|
2
|
+
|
|
3
|
+
The dbt Cloud Resource Provider lets you manage dbt Cloud resources.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
This package is available for several languages/platforms:
|
|
8
|
+
|
|
9
|
+
- JavaScript/TypeScript: [`@pulumi/dbtcloud`](https://www.npmjs.com/package/@pulumi/dbtcloud)
|
|
10
|
+
- Python: [`pulumi-dbtcloud`](https://pypi.org/project/pulumi-dbtcloud/)
|
|
11
|
+
- Go: [`github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud`](https://pkg.go.dev/github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud)
|
|
12
|
+
- .NET: [`Pulumi.Dbtcloud`](https://www.nuget.org/packages/Pulumi.DbtCloud)
|
|
13
|
+
|
|
14
|
+
## Provider Binary
|
|
15
|
+
|
|
16
|
+
The dbt Cloud provider binary is a third party binary. It can be installed using the pulumi plugin command.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pulumi plugin install resource dbtcloud <version> --server github://api.github.com/pulumi/pulumi-dbtcloud
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Replace `<version>` with your desired version.
|
|
23
|
+
|
|
24
|
+
### Node.js (JavaScript/TypeScript)
|
|
25
|
+
|
|
26
|
+
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install @pulumi/dbtcloud
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
or `yarn`:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
yarn add @pulumi/dbtcloud
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Python
|
|
39
|
+
|
|
40
|
+
To use from Python, install using `pip`:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install pulumi-dbtcloud
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Go
|
|
47
|
+
|
|
48
|
+
To use from Go, use `go get` to grab the latest version of the library:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
go get github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### .NET
|
|
55
|
+
|
|
56
|
+
To use from .NET, install using `dotnet add package`:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
dotnet add package Pulumi.DbtCloud
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Configuration Options
|
|
63
|
+
|
|
64
|
+
Use `pulumi config set dbtcloud:<option> (--secret)`.
|
|
65
|
+
|
|
66
|
+
| Option | Environment Variable | Required/Optional | Default | Description |
|
|
67
|
+
|------------|------------------------|-------------------|--------------------------------------------------------------|-----------------------------------------|
|
|
68
|
+
| `token` | `DBT_CLOUD_TOKEN` | Required | | The API token for your dbt Cloud user |
|
|
69
|
+
| `accountId`| `DBT_CLOUD_ACCOUNT_ID` | Required | | The ID for your dbt Cloud account |
|
|
70
|
+
| `hostUrl` | `DBT_CLOUD_HOST_URL` | Optional | [https://cloud.getdbt.com/api](https://cloud.getdbt.com/api) | The host URL for your dbt Cloud account |
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Resource to create BigQuery connections in dbt Cloud. Can be set to use OAuth for developers.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
10
|
+
*
|
|
11
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
12
|
+
* const myConnection = new dbtcloud.BigQueryConnection("my_connection", {
|
|
13
|
+
* projectId: dbtProject.id,
|
|
14
|
+
* name: "Project Name",
|
|
15
|
+
* type: "bigquery",
|
|
16
|
+
* isActive: true,
|
|
17
|
+
* gcpProjectId: "my-gcp-project-id",
|
|
18
|
+
* timeoutSeconds: 100,
|
|
19
|
+
* privateKeyId: "my-private-key-id",
|
|
20
|
+
* privateKey: "ABCDEFGHIJKL",
|
|
21
|
+
* clientEmail: "my_client_email",
|
|
22
|
+
* clientId: "my_client_di",
|
|
23
|
+
* authUri: "my_auth_uri",
|
|
24
|
+
* tokenUri: "my_token_uri",
|
|
25
|
+
* authProviderX509CertUrl: "my_auth_provider_x509_cert_url",
|
|
26
|
+
* clientX509CertUrl: "my_client_x509_cert_url",
|
|
27
|
+
* retries: 3,
|
|
28
|
+
* });
|
|
29
|
+
* // it is also possible to set the connection to use OAuth by filling in `application_id` and `application_secret`
|
|
30
|
+
* const myConnectionWithOauth = new dbtcloud.BigQueryConnection("my_connection_with_oauth", {
|
|
31
|
+
* projectId: dbtProject.id,
|
|
32
|
+
* name: "Project Name",
|
|
33
|
+
* type: "bigquery",
|
|
34
|
+
* isActive: true,
|
|
35
|
+
* gcpProjectId: "my-gcp-project-id",
|
|
36
|
+
* timeoutSeconds: 100,
|
|
37
|
+
* privateKeyId: "my-private-key-id",
|
|
38
|
+
* privateKey: "ABCDEFGHIJKL",
|
|
39
|
+
* clientEmail: "my_client_email",
|
|
40
|
+
* clientId: "my_client_di",
|
|
41
|
+
* authUri: "my_auth_uri",
|
|
42
|
+
* tokenUri: "my_token_uri",
|
|
43
|
+
* authProviderX509CertUrl: "my_auth_provider_x509_cert_url",
|
|
44
|
+
* clientX509CertUrl: "my_client_x509_cert_url",
|
|
45
|
+
* retries: 3,
|
|
46
|
+
* applicationId: "oauth_application_id",
|
|
47
|
+
* applicationSecret: "oauth_secret_id",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Import
|
|
52
|
+
*
|
|
53
|
+
* ```sh
|
|
54
|
+
* $ pulumi import dbtcloud:index/bigQueryConnection:BigQueryConnection my_connection "project_id:connection_id"
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ```sh
|
|
58
|
+
* $ pulumi import dbtcloud:index/bigQueryConnection:BigQueryConnection my_connection 12345:6789
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare class BigQueryConnection extends pulumi.CustomResource {
|
|
62
|
+
/**
|
|
63
|
+
* Get an existing BigQueryConnection resource's state with the given name, ID, and optional extra
|
|
64
|
+
* properties used to qualify the lookup.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resulting resource.
|
|
67
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
68
|
+
* @param state Any extra arguments used during the lookup.
|
|
69
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
70
|
+
*/
|
|
71
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BigQueryConnectionState, opts?: pulumi.CustomResourceOptions): BigQueryConnection;
|
|
72
|
+
/**
|
|
73
|
+
* Returns true if the given object is an instance of BigQueryConnection. This is designed to work even
|
|
74
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
75
|
+
*/
|
|
76
|
+
static isInstance(obj: any): obj is BigQueryConnection;
|
|
77
|
+
/**
|
|
78
|
+
* The Application ID for BQ OAuth
|
|
79
|
+
*/
|
|
80
|
+
readonly applicationId: pulumi.Output<string | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* The Application Secret for BQ OAuth
|
|
83
|
+
*/
|
|
84
|
+
readonly applicationSecret: pulumi.Output<string | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* Auth Provider X509 Cert URL for the Service Account
|
|
87
|
+
*/
|
|
88
|
+
readonly authProviderX509CertUrl: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Auth URI for the Service Account
|
|
91
|
+
*/
|
|
92
|
+
readonly authUri: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Service Account email
|
|
95
|
+
*/
|
|
96
|
+
readonly clientEmail: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Client ID of the Service Account
|
|
99
|
+
*/
|
|
100
|
+
readonly clientId: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Client X509 Cert URL for the Service Account
|
|
103
|
+
*/
|
|
104
|
+
readonly clientX509CertUrl: pulumi.Output<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Connection Identifier
|
|
107
|
+
*/
|
|
108
|
+
readonly connectionId: pulumi.Output<number>;
|
|
109
|
+
/**
|
|
110
|
+
* Dataproc cluster name for PySpark workloads
|
|
111
|
+
*/
|
|
112
|
+
readonly dataprocClusterName: pulumi.Output<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* Google Cloud region for PySpark workloads on Dataproc
|
|
115
|
+
*/
|
|
116
|
+
readonly dataprocRegion: pulumi.Output<string | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* Project to bill for query execution
|
|
119
|
+
*/
|
|
120
|
+
readonly executionProject: pulumi.Output<string | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* GCP project ID
|
|
123
|
+
*/
|
|
124
|
+
readonly gcpProjectId: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* URI for a Google Cloud Storage bucket to host Python code executed via Datapro
|
|
127
|
+
*/
|
|
128
|
+
readonly gcsBucket: pulumi.Output<string | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the connection is active
|
|
131
|
+
*/
|
|
132
|
+
readonly isActive: pulumi.Output<boolean | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* Whether the connection is configured for OAuth or not
|
|
135
|
+
*/
|
|
136
|
+
readonly isConfiguredForOauth: pulumi.Output<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Location to create new Datasets in
|
|
139
|
+
*/
|
|
140
|
+
readonly location: pulumi.Output<string | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* Max number of bytes that can be billed for a given BigQuery query
|
|
143
|
+
*/
|
|
144
|
+
readonly maximumBytesBilled: pulumi.Output<number | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Connection name
|
|
147
|
+
*/
|
|
148
|
+
readonly name: pulumi.Output<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The priority with which to execute BigQuery queries (batch or interactive)
|
|
151
|
+
*/
|
|
152
|
+
readonly priority: pulumi.Output<string | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* Private key of the Service Account
|
|
155
|
+
*/
|
|
156
|
+
readonly privateKey: pulumi.Output<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Private key ID of the Service Account
|
|
159
|
+
*/
|
|
160
|
+
readonly privateKeyId: pulumi.Output<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Project ID to create the connection in
|
|
163
|
+
*/
|
|
164
|
+
readonly projectId: pulumi.Output<number>;
|
|
165
|
+
/**
|
|
166
|
+
* Number of retries for queries
|
|
167
|
+
*/
|
|
168
|
+
readonly retries: pulumi.Output<number | undefined>;
|
|
169
|
+
/**
|
|
170
|
+
* Timeout in seconds for queries
|
|
171
|
+
*/
|
|
172
|
+
readonly timeoutSeconds: pulumi.Output<number>;
|
|
173
|
+
/**
|
|
174
|
+
* Token URI for the Service Account
|
|
175
|
+
*/
|
|
176
|
+
readonly tokenUri: pulumi.Output<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The type of connection
|
|
179
|
+
*/
|
|
180
|
+
readonly type: pulumi.Output<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Create a BigQueryConnection resource with the given unique name, arguments, and options.
|
|
183
|
+
*
|
|
184
|
+
* @param name The _unique_ name of the resource.
|
|
185
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
186
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
187
|
+
*/
|
|
188
|
+
constructor(name: string, args: BigQueryConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Input properties used for looking up and filtering BigQueryConnection resources.
|
|
192
|
+
*/
|
|
193
|
+
export interface BigQueryConnectionState {
|
|
194
|
+
/**
|
|
195
|
+
* The Application ID for BQ OAuth
|
|
196
|
+
*/
|
|
197
|
+
applicationId?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* The Application Secret for BQ OAuth
|
|
200
|
+
*/
|
|
201
|
+
applicationSecret?: pulumi.Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* Auth Provider X509 Cert URL for the Service Account
|
|
204
|
+
*/
|
|
205
|
+
authProviderX509CertUrl?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Auth URI for the Service Account
|
|
208
|
+
*/
|
|
209
|
+
authUri?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Service Account email
|
|
212
|
+
*/
|
|
213
|
+
clientEmail?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* Client ID of the Service Account
|
|
216
|
+
*/
|
|
217
|
+
clientId?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* Client X509 Cert URL for the Service Account
|
|
220
|
+
*/
|
|
221
|
+
clientX509CertUrl?: pulumi.Input<string>;
|
|
222
|
+
/**
|
|
223
|
+
* Connection Identifier
|
|
224
|
+
*/
|
|
225
|
+
connectionId?: pulumi.Input<number>;
|
|
226
|
+
/**
|
|
227
|
+
* Dataproc cluster name for PySpark workloads
|
|
228
|
+
*/
|
|
229
|
+
dataprocClusterName?: pulumi.Input<string>;
|
|
230
|
+
/**
|
|
231
|
+
* Google Cloud region for PySpark workloads on Dataproc
|
|
232
|
+
*/
|
|
233
|
+
dataprocRegion?: pulumi.Input<string>;
|
|
234
|
+
/**
|
|
235
|
+
* Project to bill for query execution
|
|
236
|
+
*/
|
|
237
|
+
executionProject?: pulumi.Input<string>;
|
|
238
|
+
/**
|
|
239
|
+
* GCP project ID
|
|
240
|
+
*/
|
|
241
|
+
gcpProjectId?: pulumi.Input<string>;
|
|
242
|
+
/**
|
|
243
|
+
* URI for a Google Cloud Storage bucket to host Python code executed via Datapro
|
|
244
|
+
*/
|
|
245
|
+
gcsBucket?: pulumi.Input<string>;
|
|
246
|
+
/**
|
|
247
|
+
* Whether the connection is active
|
|
248
|
+
*/
|
|
249
|
+
isActive?: pulumi.Input<boolean>;
|
|
250
|
+
/**
|
|
251
|
+
* Whether the connection is configured for OAuth or not
|
|
252
|
+
*/
|
|
253
|
+
isConfiguredForOauth?: pulumi.Input<boolean>;
|
|
254
|
+
/**
|
|
255
|
+
* Location to create new Datasets in
|
|
256
|
+
*/
|
|
257
|
+
location?: pulumi.Input<string>;
|
|
258
|
+
/**
|
|
259
|
+
* Max number of bytes that can be billed for a given BigQuery query
|
|
260
|
+
*/
|
|
261
|
+
maximumBytesBilled?: pulumi.Input<number>;
|
|
262
|
+
/**
|
|
263
|
+
* Connection name
|
|
264
|
+
*/
|
|
265
|
+
name?: pulumi.Input<string>;
|
|
266
|
+
/**
|
|
267
|
+
* The priority with which to execute BigQuery queries (batch or interactive)
|
|
268
|
+
*/
|
|
269
|
+
priority?: pulumi.Input<string>;
|
|
270
|
+
/**
|
|
271
|
+
* Private key of the Service Account
|
|
272
|
+
*/
|
|
273
|
+
privateKey?: pulumi.Input<string>;
|
|
274
|
+
/**
|
|
275
|
+
* Private key ID of the Service Account
|
|
276
|
+
*/
|
|
277
|
+
privateKeyId?: pulumi.Input<string>;
|
|
278
|
+
/**
|
|
279
|
+
* Project ID to create the connection in
|
|
280
|
+
*/
|
|
281
|
+
projectId?: pulumi.Input<number>;
|
|
282
|
+
/**
|
|
283
|
+
* Number of retries for queries
|
|
284
|
+
*/
|
|
285
|
+
retries?: pulumi.Input<number>;
|
|
286
|
+
/**
|
|
287
|
+
* Timeout in seconds for queries
|
|
288
|
+
*/
|
|
289
|
+
timeoutSeconds?: pulumi.Input<number>;
|
|
290
|
+
/**
|
|
291
|
+
* Token URI for the Service Account
|
|
292
|
+
*/
|
|
293
|
+
tokenUri?: pulumi.Input<string>;
|
|
294
|
+
/**
|
|
295
|
+
* The type of connection
|
|
296
|
+
*/
|
|
297
|
+
type?: pulumi.Input<string>;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* The set of arguments for constructing a BigQueryConnection resource.
|
|
301
|
+
*/
|
|
302
|
+
export interface BigQueryConnectionArgs {
|
|
303
|
+
/**
|
|
304
|
+
* The Application ID for BQ OAuth
|
|
305
|
+
*/
|
|
306
|
+
applicationId?: pulumi.Input<string>;
|
|
307
|
+
/**
|
|
308
|
+
* The Application Secret for BQ OAuth
|
|
309
|
+
*/
|
|
310
|
+
applicationSecret?: pulumi.Input<string>;
|
|
311
|
+
/**
|
|
312
|
+
* Auth Provider X509 Cert URL for the Service Account
|
|
313
|
+
*/
|
|
314
|
+
authProviderX509CertUrl: pulumi.Input<string>;
|
|
315
|
+
/**
|
|
316
|
+
* Auth URI for the Service Account
|
|
317
|
+
*/
|
|
318
|
+
authUri: pulumi.Input<string>;
|
|
319
|
+
/**
|
|
320
|
+
* Service Account email
|
|
321
|
+
*/
|
|
322
|
+
clientEmail: pulumi.Input<string>;
|
|
323
|
+
/**
|
|
324
|
+
* Client ID of the Service Account
|
|
325
|
+
*/
|
|
326
|
+
clientId: pulumi.Input<string>;
|
|
327
|
+
/**
|
|
328
|
+
* Client X509 Cert URL for the Service Account
|
|
329
|
+
*/
|
|
330
|
+
clientX509CertUrl: pulumi.Input<string>;
|
|
331
|
+
/**
|
|
332
|
+
* Dataproc cluster name for PySpark workloads
|
|
333
|
+
*/
|
|
334
|
+
dataprocClusterName?: pulumi.Input<string>;
|
|
335
|
+
/**
|
|
336
|
+
* Google Cloud region for PySpark workloads on Dataproc
|
|
337
|
+
*/
|
|
338
|
+
dataprocRegion?: pulumi.Input<string>;
|
|
339
|
+
/**
|
|
340
|
+
* Project to bill for query execution
|
|
341
|
+
*/
|
|
342
|
+
executionProject?: pulumi.Input<string>;
|
|
343
|
+
/**
|
|
344
|
+
* GCP project ID
|
|
345
|
+
*/
|
|
346
|
+
gcpProjectId: pulumi.Input<string>;
|
|
347
|
+
/**
|
|
348
|
+
* URI for a Google Cloud Storage bucket to host Python code executed via Datapro
|
|
349
|
+
*/
|
|
350
|
+
gcsBucket?: pulumi.Input<string>;
|
|
351
|
+
/**
|
|
352
|
+
* Whether the connection is active
|
|
353
|
+
*/
|
|
354
|
+
isActive?: pulumi.Input<boolean>;
|
|
355
|
+
/**
|
|
356
|
+
* Location to create new Datasets in
|
|
357
|
+
*/
|
|
358
|
+
location?: pulumi.Input<string>;
|
|
359
|
+
/**
|
|
360
|
+
* Max number of bytes that can be billed for a given BigQuery query
|
|
361
|
+
*/
|
|
362
|
+
maximumBytesBilled?: pulumi.Input<number>;
|
|
363
|
+
/**
|
|
364
|
+
* Connection name
|
|
365
|
+
*/
|
|
366
|
+
name?: pulumi.Input<string>;
|
|
367
|
+
/**
|
|
368
|
+
* The priority with which to execute BigQuery queries (batch or interactive)
|
|
369
|
+
*/
|
|
370
|
+
priority?: pulumi.Input<string>;
|
|
371
|
+
/**
|
|
372
|
+
* Private key of the Service Account
|
|
373
|
+
*/
|
|
374
|
+
privateKey: pulumi.Input<string>;
|
|
375
|
+
/**
|
|
376
|
+
* Private key ID of the Service Account
|
|
377
|
+
*/
|
|
378
|
+
privateKeyId: pulumi.Input<string>;
|
|
379
|
+
/**
|
|
380
|
+
* Project ID to create the connection in
|
|
381
|
+
*/
|
|
382
|
+
projectId: pulumi.Input<number>;
|
|
383
|
+
/**
|
|
384
|
+
* Number of retries for queries
|
|
385
|
+
*/
|
|
386
|
+
retries?: pulumi.Input<number>;
|
|
387
|
+
/**
|
|
388
|
+
* Timeout in seconds for queries
|
|
389
|
+
*/
|
|
390
|
+
timeoutSeconds: pulumi.Input<number>;
|
|
391
|
+
/**
|
|
392
|
+
* Token URI for the Service Account
|
|
393
|
+
*/
|
|
394
|
+
tokenUri: pulumi.Input<string>;
|
|
395
|
+
/**
|
|
396
|
+
* The type of connection
|
|
397
|
+
*/
|
|
398
|
+
type: pulumi.Input<string>;
|
|
399
|
+
}
|