@pulumi/dbtcloud 0.2.0-alpha.1748929446 → 1.0.0-alpha.1749642638

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.
Files changed (148) hide show
  1. package/accountFeatures.d.ts +24 -0
  2. package/accountFeatures.js +4 -0
  3. package/accountFeatures.js.map +1 -1
  4. package/bigQueryCredential.d.ts +5 -3
  5. package/bigQueryCredential.js +2 -0
  6. package/bigQueryCredential.js.map +1 -1
  7. package/bigquerySemanticLayerCredential.d.ts +161 -0
  8. package/bigquerySemanticLayerCredential.js +102 -0
  9. package/bigquerySemanticLayerCredential.js.map +1 -0
  10. package/databricksCredential.d.ts +16 -14
  11. package/databricksCredential.js +14 -2
  12. package/databricksCredential.js.map +1 -1
  13. package/environment.d.ts +37 -45
  14. package/environment.js +1 -6
  15. package/environment.js.map +1 -1
  16. package/environmentVariable.d.ts +3 -3
  17. package/environmentVariableJobOverride.d.ts +15 -5
  18. package/environmentVariableJobOverride.js +4 -0
  19. package/environmentVariableJobOverride.js.map +1 -1
  20. package/extendedAttributes.d.ts +7 -13
  21. package/extendedAttributes.js +1 -1
  22. package/extendedAttributes.js.map +1 -1
  23. package/fabricCredential.d.ts +16 -16
  24. package/fabricCredential.js +6 -6
  25. package/fabricCredential.js.map +1 -1
  26. package/getBigQueryCredential.d.ts +7 -1
  27. package/getBigQueryCredential.js +6 -0
  28. package/getBigQueryCredential.js.map +1 -1
  29. package/getDatabricksCredential.d.ts +10 -4
  30. package/getDatabricksCredential.js +6 -0
  31. package/getDatabricksCredential.js.map +1 -1
  32. package/getEnvironment.d.ts +4 -7
  33. package/getEnvironment.js.map +1 -1
  34. package/getEnvironmentVariable.d.ts +38 -8
  35. package/getEnvironmentVariable.js +30 -0
  36. package/getEnvironmentVariable.js.map +1 -1
  37. package/getExtendedAttributes.d.ts +12 -8
  38. package/getExtendedAttributes.js +4 -0
  39. package/getExtendedAttributes.js.map +1 -1
  40. package/getGlobalConnection.d.ts +4 -0
  41. package/getGlobalConnection.js.map +1 -1
  42. package/getGroupUsers.d.ts +3 -3
  43. package/getGroupUsers.js +2 -2
  44. package/getJob.d.ts +59 -26
  45. package/getJob.js +8 -2
  46. package/getJob.js.map +1 -1
  47. package/getPostgresCredential.d.ts +7 -1
  48. package/getPostgresCredential.js +6 -0
  49. package/getPostgresCredential.js.map +1 -1
  50. package/getPrivatelinkEndpoint.d.ts +16 -10
  51. package/getPrivatelinkEndpoint.js +6 -0
  52. package/getPrivatelinkEndpoint.js.map +1 -1
  53. package/getProject.d.ts +81 -44
  54. package/getProject.js +50 -22
  55. package/getProject.js.map +1 -1
  56. package/getRedshiftCredential.d.ts +72 -0
  57. package/getRedshiftCredential.js +32 -0
  58. package/getRedshiftCredential.js.map +1 -0
  59. package/getRepository.d.ts +25 -3
  60. package/getRepository.js +6 -0
  61. package/getRepository.js.map +1 -1
  62. package/getRuns.d.ts +46 -0
  63. package/getRuns.js +30 -0
  64. package/getRuns.js.map +1 -0
  65. package/getSnowflakeCredential.d.ts +8 -2
  66. package/getSnowflakeCredential.js +6 -0
  67. package/getSnowflakeCredential.js.map +1 -1
  68. package/getSynapseCredential.d.ts +80 -0
  69. package/getSynapseCredential.js +30 -0
  70. package/getSynapseCredential.js.map +1 -0
  71. package/getTeradataCredential.d.ts +68 -0
  72. package/getTeradataCredential.js +30 -0
  73. package/getTeradataCredential.js.map +1 -0
  74. package/getUserGroups.d.ts +9 -5
  75. package/getUserGroups.js +4 -0
  76. package/getUserGroups.js.map +1 -1
  77. package/getWebhook.d.ts +16 -4
  78. package/getWebhook.js +6 -0
  79. package/getWebhook.js.map +1 -1
  80. package/globalConnection.d.ts +12 -2
  81. package/globalConnection.js +2 -2
  82. package/globalConnection.js.map +1 -1
  83. package/index.d.ts +36 -18
  84. package/index.js +55 -28
  85. package/index.js.map +1 -1
  86. package/job.d.ts +41 -144
  87. package/job.js +4 -113
  88. package/job.js.map +1 -1
  89. package/package.json +2 -2
  90. package/partialEnvironmentVariable.d.ts +83 -0
  91. package/partialEnvironmentVariable.js +64 -0
  92. package/partialEnvironmentVariable.js.map +1 -0
  93. package/postgresCredential.d.ts +13 -11
  94. package/postgresCredential.js +2 -0
  95. package/postgresCredential.js.map +1 -1
  96. package/project.d.ts +20 -6
  97. package/project.js +5 -1
  98. package/project.js.map +1 -1
  99. package/projectRepository.d.ts +1 -1
  100. package/projectRepository.js +1 -1
  101. package/redshiftCredential.d.ts +165 -0
  102. package/redshiftCredential.js +121 -0
  103. package/redshiftCredential.js.map +1 -0
  104. package/redshiftSemanticLayerCredential.d.ts +65 -0
  105. package/redshiftSemanticLayerCredential.js +60 -0
  106. package/redshiftSemanticLayerCredential.js.map +1 -0
  107. package/repository.d.ts +6 -6
  108. package/semanticLayerConfiguration.d.ts +106 -0
  109. package/semanticLayerConfiguration.js +103 -0
  110. package/semanticLayerConfiguration.js.map +1 -0
  111. package/snowflakeCredential.d.ts +46 -32
  112. package/snowflakeCredential.js +4 -6
  113. package/snowflakeCredential.js.map +1 -1
  114. package/snowflakeSemanticLayerCredential.d.ts +95 -0
  115. package/snowflakeSemanticLayerCredential.js +90 -0
  116. package/snowflakeSemanticLayerCredential.js.map +1 -0
  117. package/synapseCredential.d.ts +233 -0
  118. package/synapseCredential.js +152 -0
  119. package/synapseCredential.js.map +1 -0
  120. package/teradataCredential.d.ts +107 -0
  121. package/teradataCredential.js +76 -0
  122. package/teradataCredential.js.map +1 -0
  123. package/types/input.d.ts +300 -0
  124. package/types/output.d.ts +409 -6
  125. package/userGroups.d.ts +4 -5
  126. package/userGroups.js +1 -2
  127. package/userGroups.js.map +1 -1
  128. package/webhook.d.ts +13 -7
  129. package/webhook.js +2 -0
  130. package/webhook.js.map +1 -1
  131. package/bigQueryConnection.d.ts +0 -420
  132. package/bigQueryConnection.js +0 -217
  133. package/bigQueryConnection.js.map +0 -1
  134. package/connection.d.ts +0 -342
  135. package/connection.js +0 -170
  136. package/connection.js.map +0 -1
  137. package/fabricConnection.d.ts +0 -199
  138. package/fabricConnection.js +0 -130
  139. package/fabricConnection.js.map +0 -1
  140. package/getBigQueryConnection.d.ts +0 -134
  141. package/getBigQueryConnection.js +0 -24
  142. package/getBigQueryConnection.js.map +0 -1
  143. package/getConnection.d.ts +0 -86
  144. package/getConnection.js +0 -24
  145. package/getConnection.js.map +0 -1
  146. package/projectConnection.d.ts +0 -105
  147. package/projectConnection.js +0 -102
  148. package/projectConnection.js.map +0 -1
@@ -0,0 +1,95 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Snowflake credential resource. This resource is composed of a Snowflake credential and a Semantic Layer configuration. It is used to create a Snowflake credential for the Semantic Layer.
6
+ *
7
+ * ## Import
8
+ *
9
+ * using import blocks (requires Terraform >= 1.5)
10
+ *
11
+ * import {
12
+ *
13
+ * to = dbtcloud_snowflake_semantic_layer_credential.example
14
+ *
15
+ * id = "credential_id"
16
+ *
17
+ * }
18
+ *
19
+ * import {
20
+ *
21
+ * to = dbtcloud_snowflake_semantic_layer_credential.example
22
+ *
23
+ * id = "12345"
24
+ *
25
+ * }
26
+ *
27
+ * using the older import command
28
+ *
29
+ * ```sh
30
+ * $ pulumi import dbtcloud:index/snowflakeSemanticLayerCredential:SnowflakeSemanticLayerCredential example "credential_id"
31
+ * ```
32
+ *
33
+ * ```sh
34
+ * $ pulumi import dbtcloud:index/snowflakeSemanticLayerCredential:SnowflakeSemanticLayerCredential example 12345
35
+ * ```
36
+ */
37
+ export declare class SnowflakeSemanticLayerCredential extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing SnowflakeSemanticLayerCredential resource's state with the given name, ID, and optional extra
40
+ * properties used to qualify the lookup.
41
+ *
42
+ * @param name The _unique_ name of the resulting resource.
43
+ * @param id The _unique_ provider ID of the resource to lookup.
44
+ * @param state Any extra arguments used during the lookup.
45
+ * @param opts Optional settings to control the behavior of the CustomResource.
46
+ */
47
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnowflakeSemanticLayerCredentialState, opts?: pulumi.CustomResourceOptions): SnowflakeSemanticLayerCredential;
48
+ /**
49
+ * Returns true if the given object is an instance of SnowflakeSemanticLayerCredential. 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: any): obj is SnowflakeSemanticLayerCredential;
53
+ /**
54
+ * Semantic Layer credenttial configuration details.
55
+ */
56
+ readonly configuration: pulumi.Output<outputs.SnowflakeSemanticLayerCredentialConfiguration>;
57
+ /**
58
+ * Snowflake credential details, but used in the context of the Semantic Layer.
59
+ */
60
+ readonly credential: pulumi.Output<outputs.SnowflakeSemanticLayerCredentialCredential>;
61
+ /**
62
+ * Create a SnowflakeSemanticLayerCredential resource with the given unique name, arguments, and options.
63
+ *
64
+ * @param name The _unique_ name of the resource.
65
+ * @param args The arguments to use to populate this resource's properties.
66
+ * @param opts A bag of options that control this resource's behavior.
67
+ */
68
+ constructor(name: string, args: SnowflakeSemanticLayerCredentialArgs, opts?: pulumi.CustomResourceOptions);
69
+ }
70
+ /**
71
+ * Input properties used for looking up and filtering SnowflakeSemanticLayerCredential resources.
72
+ */
73
+ export interface SnowflakeSemanticLayerCredentialState {
74
+ /**
75
+ * Semantic Layer credenttial configuration details.
76
+ */
77
+ configuration?: pulumi.Input<inputs.SnowflakeSemanticLayerCredentialConfiguration>;
78
+ /**
79
+ * Snowflake credential details, but used in the context of the Semantic Layer.
80
+ */
81
+ credential?: pulumi.Input<inputs.SnowflakeSemanticLayerCredentialCredential>;
82
+ }
83
+ /**
84
+ * The set of arguments for constructing a SnowflakeSemanticLayerCredential resource.
85
+ */
86
+ export interface SnowflakeSemanticLayerCredentialArgs {
87
+ /**
88
+ * Semantic Layer credenttial configuration details.
89
+ */
90
+ configuration: pulumi.Input<inputs.SnowflakeSemanticLayerCredentialConfiguration>;
91
+ /**
92
+ * Snowflake credential details, but used in the context of the Semantic Layer.
93
+ */
94
+ credential: pulumi.Input<inputs.SnowflakeSemanticLayerCredentialCredential>;
95
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.SnowflakeSemanticLayerCredential = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Snowflake credential resource. This resource is composed of a Snowflake credential and a Semantic Layer configuration. It is used to create a Snowflake credential for the Semantic Layer.
10
+ *
11
+ * ## Import
12
+ *
13
+ * using import blocks (requires Terraform >= 1.5)
14
+ *
15
+ * import {
16
+ *
17
+ * to = dbtcloud_snowflake_semantic_layer_credential.example
18
+ *
19
+ * id = "credential_id"
20
+ *
21
+ * }
22
+ *
23
+ * import {
24
+ *
25
+ * to = dbtcloud_snowflake_semantic_layer_credential.example
26
+ *
27
+ * id = "12345"
28
+ *
29
+ * }
30
+ *
31
+ * using the older import command
32
+ *
33
+ * ```sh
34
+ * $ pulumi import dbtcloud:index/snowflakeSemanticLayerCredential:SnowflakeSemanticLayerCredential example "credential_id"
35
+ * ```
36
+ *
37
+ * ```sh
38
+ * $ pulumi import dbtcloud:index/snowflakeSemanticLayerCredential:SnowflakeSemanticLayerCredential example 12345
39
+ * ```
40
+ */
41
+ class SnowflakeSemanticLayerCredential extends pulumi.CustomResource {
42
+ /**
43
+ * Get an existing SnowflakeSemanticLayerCredential resource's state with the given name, ID, and optional extra
44
+ * properties used to qualify the lookup.
45
+ *
46
+ * @param name The _unique_ name of the resulting resource.
47
+ * @param id The _unique_ provider ID of the resource to lookup.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static get(name, id, state, opts) {
52
+ return new SnowflakeSemanticLayerCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
53
+ }
54
+ /**
55
+ * Returns true if the given object is an instance of SnowflakeSemanticLayerCredential. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj) {
59
+ if (obj === undefined || obj === null) {
60
+ return false;
61
+ }
62
+ return obj['__pulumiType'] === SnowflakeSemanticLayerCredential.__pulumiType;
63
+ }
64
+ constructor(name, argsOrState, opts) {
65
+ let resourceInputs = {};
66
+ opts = opts || {};
67
+ if (opts.id) {
68
+ const state = argsOrState;
69
+ resourceInputs["configuration"] = state ? state.configuration : undefined;
70
+ resourceInputs["credential"] = state ? state.credential : undefined;
71
+ }
72
+ else {
73
+ const args = argsOrState;
74
+ if ((!args || args.configuration === undefined) && !opts.urn) {
75
+ throw new Error("Missing required property 'configuration'");
76
+ }
77
+ if ((!args || args.credential === undefined) && !opts.urn) {
78
+ throw new Error("Missing required property 'credential'");
79
+ }
80
+ resourceInputs["configuration"] = args ? args.configuration : undefined;
81
+ resourceInputs["credential"] = args ? args.credential : undefined;
82
+ }
83
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
+ super(SnowflakeSemanticLayerCredential.__pulumiType, name, resourceInputs, opts);
85
+ }
86
+ }
87
+ exports.SnowflakeSemanticLayerCredential = SnowflakeSemanticLayerCredential;
88
+ /** @internal */
89
+ SnowflakeSemanticLayerCredential.__pulumiType = 'dbtcloud:index/snowflakeSemanticLayerCredential:SnowflakeSemanticLayerCredential';
90
+ //# sourceMappingURL=snowflakeSemanticLayerCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snowflakeSemanticLayerCredential.js","sourceRoot":"","sources":["../snowflakeSemanticLayerCredential.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAA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AC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AAjEL,4EAkEC;AApDG,gBAAgB;AACO,6CAAY,GAAG,kFAAkF,CAAC"}
@@ -0,0 +1,233 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Synapse credential resource
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as dbtcloud from "@pulumi/dbtcloud";
10
+ *
11
+ * // when using sql authentication
12
+ * const mySynapseCredSql = new dbtcloud.SynapseCredential("my_synapse_cred_sql", {
13
+ * projectId: dbtProject.id,
14
+ * authentication: "sql",
15
+ * schema: "my_schema",
16
+ * user: "my_user",
17
+ * password: "my_password",
18
+ * schemaAuthorization: "abcd",
19
+ * });
20
+ * // when using AD authentication
21
+ * const mySynapseCredAd = new dbtcloud.SynapseCredential("my_synapse_cred_ad", {
22
+ * projectId: dbtProject.id,
23
+ * authentication: "ActiveDirectoryPassword",
24
+ * schema: "my_schema",
25
+ * user: "my_user",
26
+ * password: "my_password",
27
+ * schemaAuthorization: "abcd",
28
+ * });
29
+ * // when using service principal authentication
30
+ * const mySynapseCredServPrinc = new dbtcloud.SynapseCredential("my_synapse_cred_serv_princ", {
31
+ * projectId: dbtProject.id,
32
+ * authentication: "ServicePrincipal",
33
+ * schema: "my_schema",
34
+ * clientId: "my_client_id",
35
+ * tenantId: "my_tenant_id",
36
+ * clientSecret: "my_secret",
37
+ * schemaAuthorization: "abcd",
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * using import blocks (requires Terraform >= 1.5)
44
+ *
45
+ * import {
46
+ *
47
+ * to = dbtcloud_synapse_credential.my_synapse_credential
48
+ *
49
+ * id = "project_id:credential_id"
50
+ *
51
+ * }
52
+ *
53
+ * import {
54
+ *
55
+ * to = dbtcloud_synapse_credential.my_synapse_credential
56
+ *
57
+ * id = "12345:6789"
58
+ *
59
+ * }
60
+ *
61
+ * using the older import command
62
+ *
63
+ * ```sh
64
+ * $ pulumi import dbtcloud:index/synapseCredential:SynapseCredential my_synapse_credential "project_id:credential_id"
65
+ * ```
66
+ *
67
+ * ```sh
68
+ * $ pulumi import dbtcloud:index/synapseCredential:SynapseCredential my_synapse_credential 12345:6789
69
+ * ```
70
+ */
71
+ export declare class SynapseCredential extends pulumi.CustomResource {
72
+ /**
73
+ * Get an existing SynapseCredential resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SynapseCredentialState, opts?: pulumi.CustomResourceOptions): SynapseCredential;
82
+ /**
83
+ * Returns true if the given object is an instance of SynapseCredential. This is designed to work even
84
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
85
+ */
86
+ static isInstance(obj: any): obj is SynapseCredential;
87
+ /**
88
+ * The type of the adapter (synapse)
89
+ */
90
+ readonly adapterType: pulumi.Output<string>;
91
+ /**
92
+ * Authentication type (SQL, ActiveDirectoryPassword, ServicePrincipal)
93
+ */
94
+ readonly authentication: pulumi.Output<string>;
95
+ /**
96
+ * The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
97
+ */
98
+ readonly clientId: pulumi.Output<string>;
99
+ /**
100
+ * The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
101
+ */
102
+ readonly clientSecret: pulumi.Output<string>;
103
+ /**
104
+ * The internal credential ID
105
+ */
106
+ readonly credentialId: pulumi.Output<number>;
107
+ /**
108
+ * The password for the account to connect to. Only used when connection with AD user/pass
109
+ */
110
+ readonly password: pulumi.Output<string>;
111
+ /**
112
+ * Project ID to create the Synapse credential in
113
+ */
114
+ readonly projectId: pulumi.Output<number>;
115
+ /**
116
+ * The schema where to create the dbt models
117
+ */
118
+ readonly schema: pulumi.Output<string>;
119
+ /**
120
+ * Optionally set this to the principal who should own the schemas created by dbt
121
+ */
122
+ readonly schemaAuthorization: pulumi.Output<string>;
123
+ /**
124
+ * The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
125
+ */
126
+ readonly tenantId: pulumi.Output<string>;
127
+ /**
128
+ * The username of the Synapse account to connect to. Only used when connection with AD user/pass
129
+ */
130
+ readonly user: pulumi.Output<string>;
131
+ /**
132
+ * Create a SynapseCredential resource with the given unique name, arguments, and options.
133
+ *
134
+ * @param name The _unique_ name of the resource.
135
+ * @param args The arguments to use to populate this resource's properties.
136
+ * @param opts A bag of options that control this resource's behavior.
137
+ */
138
+ constructor(name: string, args: SynapseCredentialArgs, opts?: pulumi.CustomResourceOptions);
139
+ }
140
+ /**
141
+ * Input properties used for looking up and filtering SynapseCredential resources.
142
+ */
143
+ export interface SynapseCredentialState {
144
+ /**
145
+ * The type of the adapter (synapse)
146
+ */
147
+ adapterType?: pulumi.Input<string>;
148
+ /**
149
+ * Authentication type (SQL, ActiveDirectoryPassword, ServicePrincipal)
150
+ */
151
+ authentication?: pulumi.Input<string>;
152
+ /**
153
+ * The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
154
+ */
155
+ clientId?: pulumi.Input<string>;
156
+ /**
157
+ * The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
158
+ */
159
+ clientSecret?: pulumi.Input<string>;
160
+ /**
161
+ * The internal credential ID
162
+ */
163
+ credentialId?: pulumi.Input<number>;
164
+ /**
165
+ * The password for the account to connect to. Only used when connection with AD user/pass
166
+ */
167
+ password?: pulumi.Input<string>;
168
+ /**
169
+ * Project ID to create the Synapse credential in
170
+ */
171
+ projectId?: pulumi.Input<number>;
172
+ /**
173
+ * The schema where to create the dbt models
174
+ */
175
+ schema?: pulumi.Input<string>;
176
+ /**
177
+ * Optionally set this to the principal who should own the schemas created by dbt
178
+ */
179
+ schemaAuthorization?: pulumi.Input<string>;
180
+ /**
181
+ * The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
182
+ */
183
+ tenantId?: pulumi.Input<string>;
184
+ /**
185
+ * The username of the Synapse account to connect to. Only used when connection with AD user/pass
186
+ */
187
+ user?: pulumi.Input<string>;
188
+ }
189
+ /**
190
+ * The set of arguments for constructing a SynapseCredential resource.
191
+ */
192
+ export interface SynapseCredentialArgs {
193
+ /**
194
+ * The type of the adapter (synapse)
195
+ */
196
+ adapterType: pulumi.Input<string>;
197
+ /**
198
+ * Authentication type (SQL, ActiveDirectoryPassword, ServicePrincipal)
199
+ */
200
+ authentication: pulumi.Input<string>;
201
+ /**
202
+ * The client ID of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
203
+ */
204
+ clientId?: pulumi.Input<string>;
205
+ /**
206
+ * The client secret of the Azure Active Directory service principal. This is only used when connecting to Azure SQL with an AAD service principal.
207
+ */
208
+ clientSecret?: pulumi.Input<string>;
209
+ /**
210
+ * The password for the account to connect to. Only used when connection with AD user/pass
211
+ */
212
+ password?: pulumi.Input<string>;
213
+ /**
214
+ * Project ID to create the Synapse credential in
215
+ */
216
+ projectId: pulumi.Input<number>;
217
+ /**
218
+ * The schema where to create the dbt models
219
+ */
220
+ schema: pulumi.Input<string>;
221
+ /**
222
+ * Optionally set this to the principal who should own the schemas created by dbt
223
+ */
224
+ schemaAuthorization?: pulumi.Input<string>;
225
+ /**
226
+ * The tenant ID of the Azure Active Directory instance. This is only used when connecting to Azure SQL with a service principal.
227
+ */
228
+ tenantId?: pulumi.Input<string>;
229
+ /**
230
+ * The username of the Synapse account to connect to. Only used when connection with AD user/pass
231
+ */
232
+ user?: pulumi.Input<string>;
233
+ }
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.SynapseCredential = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Synapse credential resource
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as dbtcloud from "@pulumi/dbtcloud";
16
+ *
17
+ * // when using sql authentication
18
+ * const mySynapseCredSql = new dbtcloud.SynapseCredential("my_synapse_cred_sql", {
19
+ * projectId: dbtProject.id,
20
+ * authentication: "sql",
21
+ * schema: "my_schema",
22
+ * user: "my_user",
23
+ * password: "my_password",
24
+ * schemaAuthorization: "abcd",
25
+ * });
26
+ * // when using AD authentication
27
+ * const mySynapseCredAd = new dbtcloud.SynapseCredential("my_synapse_cred_ad", {
28
+ * projectId: dbtProject.id,
29
+ * authentication: "ActiveDirectoryPassword",
30
+ * schema: "my_schema",
31
+ * user: "my_user",
32
+ * password: "my_password",
33
+ * schemaAuthorization: "abcd",
34
+ * });
35
+ * // when using service principal authentication
36
+ * const mySynapseCredServPrinc = new dbtcloud.SynapseCredential("my_synapse_cred_serv_princ", {
37
+ * projectId: dbtProject.id,
38
+ * authentication: "ServicePrincipal",
39
+ * schema: "my_schema",
40
+ * clientId: "my_client_id",
41
+ * tenantId: "my_tenant_id",
42
+ * clientSecret: "my_secret",
43
+ * schemaAuthorization: "abcd",
44
+ * });
45
+ * ```
46
+ *
47
+ * ## Import
48
+ *
49
+ * using import blocks (requires Terraform >= 1.5)
50
+ *
51
+ * import {
52
+ *
53
+ * to = dbtcloud_synapse_credential.my_synapse_credential
54
+ *
55
+ * id = "project_id:credential_id"
56
+ *
57
+ * }
58
+ *
59
+ * import {
60
+ *
61
+ * to = dbtcloud_synapse_credential.my_synapse_credential
62
+ *
63
+ * id = "12345:6789"
64
+ *
65
+ * }
66
+ *
67
+ * using the older import command
68
+ *
69
+ * ```sh
70
+ * $ pulumi import dbtcloud:index/synapseCredential:SynapseCredential my_synapse_credential "project_id:credential_id"
71
+ * ```
72
+ *
73
+ * ```sh
74
+ * $ pulumi import dbtcloud:index/synapseCredential:SynapseCredential my_synapse_credential 12345:6789
75
+ * ```
76
+ */
77
+ class SynapseCredential extends pulumi.CustomResource {
78
+ /**
79
+ * Get an existing SynapseCredential resource's state with the given name, ID, and optional extra
80
+ * properties used to qualify the lookup.
81
+ *
82
+ * @param name The _unique_ name of the resulting resource.
83
+ * @param id The _unique_ provider ID of the resource to lookup.
84
+ * @param state Any extra arguments used during the lookup.
85
+ * @param opts Optional settings to control the behavior of the CustomResource.
86
+ */
87
+ static get(name, id, state, opts) {
88
+ return new SynapseCredential(name, state, Object.assign(Object.assign({}, opts), { id: id }));
89
+ }
90
+ /**
91
+ * Returns true if the given object is an instance of SynapseCredential. This is designed to work even
92
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
93
+ */
94
+ static isInstance(obj) {
95
+ if (obj === undefined || obj === null) {
96
+ return false;
97
+ }
98
+ return obj['__pulumiType'] === SynapseCredential.__pulumiType;
99
+ }
100
+ constructor(name, argsOrState, opts) {
101
+ let resourceInputs = {};
102
+ opts = opts || {};
103
+ if (opts.id) {
104
+ const state = argsOrState;
105
+ resourceInputs["adapterType"] = state ? state.adapterType : undefined;
106
+ resourceInputs["authentication"] = state ? state.authentication : undefined;
107
+ resourceInputs["clientId"] = state ? state.clientId : undefined;
108
+ resourceInputs["clientSecret"] = state ? state.clientSecret : undefined;
109
+ resourceInputs["credentialId"] = state ? state.credentialId : undefined;
110
+ resourceInputs["password"] = state ? state.password : undefined;
111
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
112
+ resourceInputs["schema"] = state ? state.schema : undefined;
113
+ resourceInputs["schemaAuthorization"] = state ? state.schemaAuthorization : undefined;
114
+ resourceInputs["tenantId"] = state ? state.tenantId : undefined;
115
+ resourceInputs["user"] = state ? state.user : undefined;
116
+ }
117
+ else {
118
+ const args = argsOrState;
119
+ if ((!args || args.adapterType === undefined) && !opts.urn) {
120
+ throw new Error("Missing required property 'adapterType'");
121
+ }
122
+ if ((!args || args.authentication === undefined) && !opts.urn) {
123
+ throw new Error("Missing required property 'authentication'");
124
+ }
125
+ if ((!args || args.projectId === undefined) && !opts.urn) {
126
+ throw new Error("Missing required property 'projectId'");
127
+ }
128
+ if ((!args || args.schema === undefined) && !opts.urn) {
129
+ throw new Error("Missing required property 'schema'");
130
+ }
131
+ resourceInputs["adapterType"] = args ? args.adapterType : undefined;
132
+ resourceInputs["authentication"] = args ? args.authentication : undefined;
133
+ resourceInputs["clientId"] = args ? args.clientId : undefined;
134
+ resourceInputs["clientSecret"] = (args === null || args === void 0 ? void 0 : args.clientSecret) ? pulumi.secret(args.clientSecret) : undefined;
135
+ resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
136
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
137
+ resourceInputs["schema"] = args ? args.schema : undefined;
138
+ resourceInputs["schemaAuthorization"] = args ? args.schemaAuthorization : undefined;
139
+ resourceInputs["tenantId"] = args ? args.tenantId : undefined;
140
+ resourceInputs["user"] = args ? args.user : undefined;
141
+ resourceInputs["credentialId"] = undefined /*out*/;
142
+ }
143
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
144
+ const secretOpts = { additionalSecretOutputs: ["clientSecret", "password"] };
145
+ opts = pulumi.mergeOptions(opts, secretOpts);
146
+ super(SynapseCredential.__pulumiType, name, resourceInputs, opts);
147
+ }
148
+ }
149
+ exports.SynapseCredential = SynapseCredential;
150
+ /** @internal */
151
+ SynapseCredential.__pulumiType = 'dbtcloud:index/synapseCredential:SynapseCredential';
152
+ //# sourceMappingURL=synapseCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"synapseCredential.js","sourceRoot":"","sources":["../synapseCredential.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAuDD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,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