@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
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
8
|
+
*
|
|
9
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
10
|
+
* const postgresProdCredential = new dbtcloud.PostgresCredential("postgres_prod_credential", {
|
|
11
|
+
* isActive: true,
|
|
12
|
+
* projectId: dbtProject.id,
|
|
13
|
+
* type: "postgres",
|
|
14
|
+
* defaultSchema: "my_schema",
|
|
15
|
+
* username: "my_username",
|
|
16
|
+
* password: "my_password",
|
|
17
|
+
* numThreads: 16,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* Import using a project ID and credential ID found in the URL or via the API.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import dbtcloud:index/postgresCredential:PostgresCredential my_credential "project_id:credential_id"
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import dbtcloud:index/postgresCredential:PostgresCredential my_credential 12345:6789
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class PostgresCredential extends pulumi.CustomResource {
|
|
34
|
+
/**
|
|
35
|
+
* Get an existing PostgresCredential resource's state with the given name, ID, and optional extra
|
|
36
|
+
* properties used to qualify the lookup.
|
|
37
|
+
*
|
|
38
|
+
* @param name The _unique_ name of the resulting resource.
|
|
39
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
+
* @param state Any extra arguments used during the lookup.
|
|
41
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
+
*/
|
|
43
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PostgresCredentialState, opts?: pulumi.CustomResourceOptions): PostgresCredential;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the given object is an instance of PostgresCredential. This is designed to work even
|
|
46
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
+
*/
|
|
48
|
+
static isInstance(obj: any): obj is PostgresCredential;
|
|
49
|
+
/**
|
|
50
|
+
* The system Postgres/Redshift/AlloyDB credential ID
|
|
51
|
+
*/
|
|
52
|
+
readonly credentialId: pulumi.Output<number>;
|
|
53
|
+
/**
|
|
54
|
+
* Default schema name
|
|
55
|
+
*/
|
|
56
|
+
readonly defaultSchema: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the Postgres/Redshift/AlloyDB credential is active
|
|
59
|
+
*/
|
|
60
|
+
readonly isActive: pulumi.Output<boolean | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Number of threads to use
|
|
63
|
+
*/
|
|
64
|
+
readonly numThreads: pulumi.Output<number | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* Password for Postgres/Redshift/AlloyDB
|
|
67
|
+
*/
|
|
68
|
+
readonly password: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* Project ID to create the Postgres/Redshift/AlloyDB credential in
|
|
71
|
+
*/
|
|
72
|
+
readonly projectId: pulumi.Output<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Default schema name
|
|
75
|
+
*/
|
|
76
|
+
readonly targetName: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Type of connection. One of (postgres/redshift). Use postgres for alloydb connections
|
|
79
|
+
*/
|
|
80
|
+
readonly type: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Username for Postgres/Redshift/AlloyDB
|
|
83
|
+
*/
|
|
84
|
+
readonly username: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Create a PostgresCredential resource with the given unique name, arguments, and options.
|
|
87
|
+
*
|
|
88
|
+
* @param name The _unique_ name of the resource.
|
|
89
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
90
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
91
|
+
*/
|
|
92
|
+
constructor(name: string, args: PostgresCredentialArgs, opts?: pulumi.CustomResourceOptions);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Input properties used for looking up and filtering PostgresCredential resources.
|
|
96
|
+
*/
|
|
97
|
+
export interface PostgresCredentialState {
|
|
98
|
+
/**
|
|
99
|
+
* The system Postgres/Redshift/AlloyDB credential ID
|
|
100
|
+
*/
|
|
101
|
+
credentialId?: pulumi.Input<number>;
|
|
102
|
+
/**
|
|
103
|
+
* Default schema name
|
|
104
|
+
*/
|
|
105
|
+
defaultSchema?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the Postgres/Redshift/AlloyDB credential is active
|
|
108
|
+
*/
|
|
109
|
+
isActive?: pulumi.Input<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* Number of threads to use
|
|
112
|
+
*/
|
|
113
|
+
numThreads?: pulumi.Input<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Password for Postgres/Redshift/AlloyDB
|
|
116
|
+
*/
|
|
117
|
+
password?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Project ID to create the Postgres/Redshift/AlloyDB credential in
|
|
120
|
+
*/
|
|
121
|
+
projectId?: pulumi.Input<number>;
|
|
122
|
+
/**
|
|
123
|
+
* Default schema name
|
|
124
|
+
*/
|
|
125
|
+
targetName?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* Type of connection. One of (postgres/redshift). Use postgres for alloydb connections
|
|
128
|
+
*/
|
|
129
|
+
type?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Username for Postgres/Redshift/AlloyDB
|
|
132
|
+
*/
|
|
133
|
+
username?: pulumi.Input<string>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The set of arguments for constructing a PostgresCredential resource.
|
|
137
|
+
*/
|
|
138
|
+
export interface PostgresCredentialArgs {
|
|
139
|
+
/**
|
|
140
|
+
* Default schema name
|
|
141
|
+
*/
|
|
142
|
+
defaultSchema: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Whether the Postgres/Redshift/AlloyDB credential is active
|
|
145
|
+
*/
|
|
146
|
+
isActive?: pulumi.Input<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* Number of threads to use
|
|
149
|
+
*/
|
|
150
|
+
numThreads?: pulumi.Input<number>;
|
|
151
|
+
/**
|
|
152
|
+
* Password for Postgres/Redshift/AlloyDB
|
|
153
|
+
*/
|
|
154
|
+
password?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Project ID to create the Postgres/Redshift/AlloyDB credential in
|
|
157
|
+
*/
|
|
158
|
+
projectId: pulumi.Input<number>;
|
|
159
|
+
/**
|
|
160
|
+
* Default schema name
|
|
161
|
+
*/
|
|
162
|
+
targetName?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Type of connection. One of (postgres/redshift). Use postgres for alloydb connections
|
|
165
|
+
*/
|
|
166
|
+
type: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* Username for Postgres/Redshift/AlloyDB
|
|
169
|
+
*/
|
|
170
|
+
username: pulumi.Input<string>;
|
|
171
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PostgresCredential = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
14
|
+
*
|
|
15
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
16
|
+
* const postgresProdCredential = new dbtcloud.PostgresCredential("postgres_prod_credential", {
|
|
17
|
+
* isActive: true,
|
|
18
|
+
* projectId: dbtProject.id,
|
|
19
|
+
* type: "postgres",
|
|
20
|
+
* defaultSchema: "my_schema",
|
|
21
|
+
* username: "my_username",
|
|
22
|
+
* password: "my_password",
|
|
23
|
+
* numThreads: 16,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* Import using a project ID and credential ID found in the URL or via the API.
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import dbtcloud:index/postgresCredential:PostgresCredential my_credential "project_id:credential_id"
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import dbtcloud:index/postgresCredential:PostgresCredential my_credential 12345:6789
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class PostgresCredential extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing PostgresCredential resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name, id, state, opts) {
|
|
50
|
+
return new PostgresCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of PostgresCredential. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj) {
|
|
57
|
+
if (obj === undefined || obj === null) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return obj['__pulumiType'] === PostgresCredential.__pulumiType;
|
|
61
|
+
}
|
|
62
|
+
constructor(name, argsOrState, opts) {
|
|
63
|
+
let resourceInputs = {};
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
if (opts.id) {
|
|
66
|
+
const state = argsOrState;
|
|
67
|
+
resourceInputs["credentialId"] = state ? state.credentialId : undefined;
|
|
68
|
+
resourceInputs["defaultSchema"] = state ? state.defaultSchema : undefined;
|
|
69
|
+
resourceInputs["isActive"] = state ? state.isActive : undefined;
|
|
70
|
+
resourceInputs["numThreads"] = state ? state.numThreads : undefined;
|
|
71
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
72
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
73
|
+
resourceInputs["targetName"] = state ? state.targetName : undefined;
|
|
74
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
75
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const args = argsOrState;
|
|
79
|
+
if ((!args || args.defaultSchema === undefined) && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'defaultSchema'");
|
|
81
|
+
}
|
|
82
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'projectId'");
|
|
84
|
+
}
|
|
85
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'type'");
|
|
87
|
+
}
|
|
88
|
+
if ((!args || args.username === undefined) && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'username'");
|
|
90
|
+
}
|
|
91
|
+
resourceInputs["defaultSchema"] = args ? args.defaultSchema : undefined;
|
|
92
|
+
resourceInputs["isActive"] = args ? args.isActive : undefined;
|
|
93
|
+
resourceInputs["numThreads"] = args ? args.numThreads : undefined;
|
|
94
|
+
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
|
|
95
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
96
|
+
resourceInputs["targetName"] = args ? args.targetName : undefined;
|
|
97
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
98
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
99
|
+
resourceInputs["credentialId"] = undefined /*out*/;
|
|
100
|
+
}
|
|
101
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
102
|
+
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
103
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
104
|
+
super(PostgresCredential.__pulumiType, name, resourceInputs, opts);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.PostgresCredential = PostgresCredential;
|
|
108
|
+
/** @internal */
|
|
109
|
+
PostgresCredential.__pulumiType = 'dbtcloud:index/postgresCredential:PostgresCredential';
|
|
110
|
+
//# sourceMappingURL=postgresCredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresCredential.js","sourceRoot":"","sources":["../postgresCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG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from "@pulumi/pulumi";
|
|
7
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
8
|
+
*
|
|
9
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
10
|
+
* const dbtProject = new dbtcloud.Project("dbt_project", {name: "Analytics"});
|
|
11
|
+
* const dbtProjectWithSubdir = new dbtcloud.Project("dbt_project_with_subdir", {
|
|
12
|
+
* name: "Analytics in Subdir",
|
|
13
|
+
* dbtProjectSubdirectory: "/path",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* Import using a project ID found in the URL or via the API.
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import dbtcloud:index/project:Project test_project "project_id"
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import dbtcloud:index/project:Project test_project 12345
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class Project extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing Project resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of Project. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is Project;
|
|
45
|
+
/**
|
|
46
|
+
* dbt project subdirectory path
|
|
47
|
+
*/
|
|
48
|
+
readonly dbtProjectSubdirectory: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Project name
|
|
51
|
+
*/
|
|
52
|
+
readonly name: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a Project resource with the given unique name, arguments, and options.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resource.
|
|
57
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
58
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
59
|
+
*/
|
|
60
|
+
constructor(name: string, args?: ProjectArgs, opts?: pulumi.CustomResourceOptions);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Input properties used for looking up and filtering Project resources.
|
|
64
|
+
*/
|
|
65
|
+
export interface ProjectState {
|
|
66
|
+
/**
|
|
67
|
+
* dbt project subdirectory path
|
|
68
|
+
*/
|
|
69
|
+
dbtProjectSubdirectory?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Project name
|
|
72
|
+
*/
|
|
73
|
+
name?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The set of arguments for constructing a Project resource.
|
|
77
|
+
*/
|
|
78
|
+
export interface ProjectArgs {
|
|
79
|
+
/**
|
|
80
|
+
* dbt project subdirectory path
|
|
81
|
+
*/
|
|
82
|
+
dbtProjectSubdirectory?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Project name
|
|
85
|
+
*/
|
|
86
|
+
name?: pulumi.Input<string>;
|
|
87
|
+
}
|
package/project.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Project = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
14
|
+
*
|
|
15
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
16
|
+
* const dbtProject = new dbtcloud.Project("dbt_project", {name: "Analytics"});
|
|
17
|
+
* const dbtProjectWithSubdir = new dbtcloud.Project("dbt_project_with_subdir", {
|
|
18
|
+
* name: "Analytics in Subdir",
|
|
19
|
+
* dbtProjectSubdirectory: "/path",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* Import using a project ID found in the URL or via the API.
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import dbtcloud:index/project:Project test_project "project_id"
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import dbtcloud:index/project:Project test_project 12345
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class Project extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing Project resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new Project(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Project. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === Project.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["dbtProjectSubdirectory"] = state ? state.dbtProjectSubdirectory : undefined;
|
|
64
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const args = argsOrState;
|
|
68
|
+
resourceInputs["dbtProjectSubdirectory"] = args ? args.dbtProjectSubdirectory : undefined;
|
|
69
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(Project.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.Project = Project;
|
|
76
|
+
/** @internal */
|
|
77
|
+
Project.__pulumiType = 'dbtcloud:index/project:Project';
|
|
78
|
+
//# sourceMappingURL=project.js.map
|
package/project.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK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C"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
8
|
+
*
|
|
9
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
10
|
+
* const myProjectArtefacts = new dbtcloud.ProjectArtefacts("my_project_artefacts", {
|
|
11
|
+
* projectId: dbtProject.id,
|
|
12
|
+
* docsJobId: prodJob.id,
|
|
13
|
+
* freshnessJobId: prodJob.id,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* Import using a project ID found in the URL or via the API.
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import dbtcloud:index/projectArtefacts:ProjectArtefacts my_artefacts "project_id"
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import dbtcloud:index/projectArtefacts:ProjectArtefacts my_artefacts 12345
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class ProjectArtefacts extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing ProjectArtefacts resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectArtefactsState, opts?: pulumi.CustomResourceOptions): ProjectArtefacts;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of ProjectArtefacts. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is ProjectArtefacts;
|
|
45
|
+
/**
|
|
46
|
+
* Docs Job ID
|
|
47
|
+
*/
|
|
48
|
+
readonly docsJobId: pulumi.Output<number | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Freshness Job ID
|
|
51
|
+
*/
|
|
52
|
+
readonly freshnessJobId: pulumi.Output<number | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Project ID
|
|
55
|
+
*/
|
|
56
|
+
readonly projectId: pulumi.Output<number>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a ProjectArtefacts resource with the given unique name, arguments, and options.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resource.
|
|
61
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
62
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
63
|
+
*/
|
|
64
|
+
constructor(name: string, args: ProjectArtefactsArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Input properties used for looking up and filtering ProjectArtefacts resources.
|
|
68
|
+
*/
|
|
69
|
+
export interface ProjectArtefactsState {
|
|
70
|
+
/**
|
|
71
|
+
* Docs Job ID
|
|
72
|
+
*/
|
|
73
|
+
docsJobId?: pulumi.Input<number>;
|
|
74
|
+
/**
|
|
75
|
+
* Freshness Job ID
|
|
76
|
+
*/
|
|
77
|
+
freshnessJobId?: pulumi.Input<number>;
|
|
78
|
+
/**
|
|
79
|
+
* Project ID
|
|
80
|
+
*/
|
|
81
|
+
projectId?: pulumi.Input<number>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The set of arguments for constructing a ProjectArtefacts resource.
|
|
85
|
+
*/
|
|
86
|
+
export interface ProjectArtefactsArgs {
|
|
87
|
+
/**
|
|
88
|
+
* Docs Job ID
|
|
89
|
+
*/
|
|
90
|
+
docsJobId?: pulumi.Input<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Freshness Job ID
|
|
93
|
+
*/
|
|
94
|
+
freshnessJobId?: pulumi.Input<number>;
|
|
95
|
+
/**
|
|
96
|
+
* Project ID
|
|
97
|
+
*/
|
|
98
|
+
projectId: pulumi.Input<number>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProjectArtefacts = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
14
|
+
*
|
|
15
|
+
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
16
|
+
* const myProjectArtefacts = new dbtcloud.ProjectArtefacts("my_project_artefacts", {
|
|
17
|
+
* projectId: dbtProject.id,
|
|
18
|
+
* docsJobId: prodJob.id,
|
|
19
|
+
* freshnessJobId: prodJob.id,
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* Import using a project ID found in the URL or via the API.
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import dbtcloud:index/projectArtefacts:ProjectArtefacts my_artefacts "project_id"
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import dbtcloud:index/projectArtefacts:ProjectArtefacts my_artefacts 12345
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class ProjectArtefacts extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing ProjectArtefacts resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new ProjectArtefacts(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of ProjectArtefacts. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === ProjectArtefacts.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["docsJobId"] = state ? state.docsJobId : undefined;
|
|
64
|
+
resourceInputs["freshnessJobId"] = state ? state.freshnessJobId : undefined;
|
|
65
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const args = argsOrState;
|
|
69
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'projectId'");
|
|
71
|
+
}
|
|
72
|
+
resourceInputs["docsJobId"] = args ? args.docsJobId : undefined;
|
|
73
|
+
resourceInputs["freshnessJobId"] = args ? args.freshnessJobId : undefined;
|
|
74
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
75
|
+
}
|
|
76
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
|
+
super(ProjectArtefacts.__pulumiType, name, resourceInputs, opts);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ProjectArtefacts = ProjectArtefacts;
|
|
81
|
+
/** @internal */
|
|
82
|
+
ProjectArtefacts.__pulumiType = 'dbtcloud:index/projectArtefacts:ProjectArtefacts';
|
|
83
|
+
//# sourceMappingURL=projectArtefacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectArtefacts.js","sourceRoot":"","sources":["../projectArtefacts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAA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