@pulumi/dbtcloud 0.1.0 → 0.1.2
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/bigQueryConnection.d.ts +20 -1
- package/bigQueryConnection.js +20 -1
- package/bigQueryConnection.js.map +1 -1
- package/bigQueryCredential.d.ts +20 -1
- package/bigQueryCredential.js +20 -1
- package/bigQueryCredential.js.map +1 -1
- package/connection.d.ts +53 -31
- package/connection.js +24 -2
- package/connection.js.map +1 -1
- package/databricksCredential.d.ts +19 -2
- package/databricksCredential.js +19 -2
- package/databricksCredential.js.map +1 -1
- package/environment.d.ts +22 -5
- package/environment.js +19 -2
- package/environment.js.map +1 -1
- package/environmentVariable.d.ts +19 -2
- package/environmentVariable.js +19 -2
- package/environmentVariable.js.map +1 -1
- package/environmentVariableJobOverride.d.ts +19 -1
- package/environmentVariableJobOverride.js +19 -1
- package/environmentVariableJobOverride.js.map +1 -1
- package/extendedAttributes.d.ts +20 -20
- package/extendedAttributes.js +20 -2
- package/extendedAttributes.js.map +1 -1
- package/fabricConnection.d.ts +20 -0
- package/fabricConnection.js +20 -0
- package/fabricConnection.js.map +1 -1
- package/fabricCredential.d.ts +44 -1
- package/fabricCredential.js +44 -1
- package/fabricCredential.js.map +1 -1
- package/getEnvironment.d.ts +18 -16
- package/getEnvironment.js +6 -0
- package/getEnvironment.js.map +1 -1
- package/getEnvironments.d.ts +45 -0
- package/getEnvironments.js +26 -0
- package/getEnvironments.js.map +1 -0
- package/getJob.d.ts +1 -1
- package/getNotification.d.ts +20 -4
- package/getNotification.js +4 -0
- package/getNotification.js.map +1 -1
- package/getRepository.d.ts +6 -0
- package/getRepository.js.map +1 -1
- package/getUser.d.ts +4 -0
- package/getUser.js +4 -0
- package/getUser.js.map +1 -1
- package/group.d.ts +21 -6
- package/group.js +21 -6
- package/group.js.map +1 -1
- package/groupPartialPermissions.d.ts +89 -0
- package/groupPartialPermissions.js +58 -0
- package/groupPartialPermissions.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +20 -2
- package/index.js.map +1 -1
- package/job.d.ts +33 -16
- package/job.js +27 -10
- package/job.js.map +1 -1
- package/licenseMap.d.ts +21 -3
- package/licenseMap.js +21 -3
- package/licenseMap.js.map +1 -1
- package/notification.d.ts +27 -6
- package/notification.js +22 -1
- package/notification.js.map +1 -1
- package/package.json +3 -2
- package/partialLicenseMap.d.ts +84 -0
- package/partialLicenseMap.js +81 -0
- package/partialLicenseMap.js.map +1 -0
- package/partialNotification.d.ts +183 -0
- package/partialNotification.js +107 -0
- package/partialNotification.js.map +1 -0
- package/postgresCredential.d.ts +19 -2
- package/postgresCredential.js +19 -2
- package/postgresCredential.js.map +1 -1
- package/project.d.ts +21 -4
- package/project.js +21 -4
- package/project.js.map +1 -1
- package/projectArtefacts.d.ts +21 -2
- package/projectArtefacts.js +21 -2
- package/projectArtefacts.js.map +1 -1
- package/projectConnection.d.ts +19 -2
- package/projectConnection.js +19 -2
- package/projectConnection.js.map +1 -1
- package/projectRepository.d.ts +21 -2
- package/projectRepository.js +21 -2
- package/projectRepository.js.map +1 -1
- package/provider.js +3 -1
- package/provider.js.map +1 -1
- package/repository.d.ts +67 -8
- package/repository.js +61 -8
- package/repository.js.map +1 -1
- package/serviceToken.d.ts +21 -4
- package/serviceToken.js +21 -4
- package/serviceToken.js.map +1 -1
- package/snowflakeCredential.d.ts +19 -2
- package/snowflakeCredential.js +19 -2
- package/snowflakeCredential.js.map +1 -1
- package/types/input.d.ts +14 -0
- package/types/output.d.ts +56 -0
- package/userGroups.d.ts +19 -1
- package/userGroups.js +19 -1
- package/userGroups.js.map +1 -1
- package/webhook.d.ts +21 -4
- package/webhook.js +21 -4
- package/webhook.js.map +1 -1
- package/package.json.bak +0 -31
package/notification.js
CHANGED
|
@@ -6,6 +6,8 @@ exports.Notification = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Setup notifications on jobs success/failure to internal users, external email addresses or Slack channels
|
|
10
|
+
*
|
|
9
11
|
* ## Example Usage
|
|
10
12
|
*
|
|
11
13
|
* ```typescript
|
|
@@ -13,6 +15,7 @@ const utilities = require("./utilities");
|
|
|
13
15
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
14
16
|
*
|
|
15
17
|
* // dbt Cloud allows us to create internal and external notifications
|
|
18
|
+
* //
|
|
16
19
|
* // an internal notification will send emails to the user mentioned in `user_id`
|
|
17
20
|
* //
|
|
18
21
|
* // NOTE: If internal notification settings already exist for a user, currently you MUST import
|
|
@@ -53,7 +56,25 @@ const utilities = require("./utilities");
|
|
|
53
56
|
*
|
|
54
57
|
* ## Import
|
|
55
58
|
*
|
|
56
|
-
*
|
|
59
|
+
* using import blocks (requires Terraform >= 1.5)
|
|
60
|
+
*
|
|
61
|
+
* import {
|
|
62
|
+
*
|
|
63
|
+
* to = dbtcloud_notification.my_notification
|
|
64
|
+
*
|
|
65
|
+
* id = "notification_id"
|
|
66
|
+
*
|
|
67
|
+
* }
|
|
68
|
+
*
|
|
69
|
+
* import {
|
|
70
|
+
*
|
|
71
|
+
* to = dbtcloud_notification.my_notification
|
|
72
|
+
*
|
|
73
|
+
* id = "12345"
|
|
74
|
+
*
|
|
75
|
+
* }
|
|
76
|
+
*
|
|
77
|
+
* using the older import command
|
|
57
78
|
*
|
|
58
79
|
* ```sh
|
|
59
80
|
* $ pulumi import dbtcloud:index/notification:Notification my_notification "notification_id"
|
package/notification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../notification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../notification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCA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,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAxGL,oCAyGC;AA3FG,gBAAgB;AACO,yBAAY,GAAG,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/dbtcloud",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing dbt Cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"cloud",
|
|
10
10
|
"category/cloud"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://pulumi.com",
|
|
13
13
|
"repository": "https://github.com/pulumi/pulumi-dbtcloud",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"scripts": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"pulumi": {
|
|
27
27
|
"resource": true,
|
|
28
28
|
"name": "dbtcloud",
|
|
29
|
+
"version": "0.1.2",
|
|
29
30
|
"server": "github://api.github.com/pulumi/pulumi-dbtcloud"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* // Developer license group mapping
|
|
10
|
+
* const devLicenseMap = new dbtcloud.PartialLicenseMap("dev_license_map", {
|
|
11
|
+
* licenseType: "developer",
|
|
12
|
+
* ssoLicenseMappingGroups: ["DEV-SSO-GROUP"],
|
|
13
|
+
* });
|
|
14
|
+
* // Read-only license mapping
|
|
15
|
+
* const readOnlyLicenseMap = new dbtcloud.PartialLicenseMap("read_only_license_map", {
|
|
16
|
+
* licenseType: "read_only",
|
|
17
|
+
* ssoLicenseMappingGroups: ["READ-ONLY-SSO-GROUP"],
|
|
18
|
+
* });
|
|
19
|
+
* // IT license mapping
|
|
20
|
+
* const itLicenseMap = new dbtcloud.PartialLicenseMap("it_license_map", {
|
|
21
|
+
* licenseType: "it",
|
|
22
|
+
* ssoLicenseMappingGroups: ["IT-SSO-GROUP"],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class PartialLicenseMap extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing PartialLicenseMap resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PartialLicenseMapState, opts?: pulumi.CustomResourceOptions): PartialLicenseMap;
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of PartialLicenseMap. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj: any): obj is PartialLicenseMap;
|
|
42
|
+
/**
|
|
43
|
+
* The license type to update
|
|
44
|
+
*/
|
|
45
|
+
readonly licenseType: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* List of SSO groups to map to the license type.
|
|
48
|
+
*/
|
|
49
|
+
readonly ssoLicenseMappingGroups: pulumi.Output<string[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Create a PartialLicenseMap resource with the given unique name, arguments, and options.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resource.
|
|
54
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
55
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
56
|
+
*/
|
|
57
|
+
constructor(name: string, args: PartialLicenseMapArgs, opts?: pulumi.CustomResourceOptions);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Input properties used for looking up and filtering PartialLicenseMap resources.
|
|
61
|
+
*/
|
|
62
|
+
export interface PartialLicenseMapState {
|
|
63
|
+
/**
|
|
64
|
+
* The license type to update
|
|
65
|
+
*/
|
|
66
|
+
licenseType?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* List of SSO groups to map to the license type.
|
|
69
|
+
*/
|
|
70
|
+
ssoLicenseMappingGroups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a PartialLicenseMap resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface PartialLicenseMapArgs {
|
|
76
|
+
/**
|
|
77
|
+
* The license type to update
|
|
78
|
+
*/
|
|
79
|
+
licenseType: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* List of SSO groups to map to the license type.
|
|
82
|
+
*/
|
|
83
|
+
ssoLicenseMappingGroups: pulumi.Input<pulumi.Input<string>[]>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.PartialLicenseMap = 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
|
+
* // Developer license group mapping
|
|
16
|
+
* const devLicenseMap = new dbtcloud.PartialLicenseMap("dev_license_map", {
|
|
17
|
+
* licenseType: "developer",
|
|
18
|
+
* ssoLicenseMappingGroups: ["DEV-SSO-GROUP"],
|
|
19
|
+
* });
|
|
20
|
+
* // Read-only license mapping
|
|
21
|
+
* const readOnlyLicenseMap = new dbtcloud.PartialLicenseMap("read_only_license_map", {
|
|
22
|
+
* licenseType: "read_only",
|
|
23
|
+
* ssoLicenseMappingGroups: ["READ-ONLY-SSO-GROUP"],
|
|
24
|
+
* });
|
|
25
|
+
* // IT license mapping
|
|
26
|
+
* const itLicenseMap = new dbtcloud.PartialLicenseMap("it_license_map", {
|
|
27
|
+
* licenseType: "it",
|
|
28
|
+
* ssoLicenseMappingGroups: ["IT-SSO-GROUP"],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
class PartialLicenseMap extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing PartialLicenseMap resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new PartialLicenseMap(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of PartialLicenseMap. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === PartialLicenseMap.__pulumiType;
|
|
54
|
+
}
|
|
55
|
+
constructor(name, argsOrState, opts) {
|
|
56
|
+
let resourceInputs = {};
|
|
57
|
+
opts = opts || {};
|
|
58
|
+
if (opts.id) {
|
|
59
|
+
const state = argsOrState;
|
|
60
|
+
resourceInputs["licenseType"] = state ? state.licenseType : undefined;
|
|
61
|
+
resourceInputs["ssoLicenseMappingGroups"] = state ? state.ssoLicenseMappingGroups : undefined;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if ((!args || args.licenseType === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'licenseType'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.ssoLicenseMappingGroups === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'ssoLicenseMappingGroups'");
|
|
70
|
+
}
|
|
71
|
+
resourceInputs["licenseType"] = args ? args.licenseType : undefined;
|
|
72
|
+
resourceInputs["ssoLicenseMappingGroups"] = args ? args.ssoLicenseMappingGroups : undefined;
|
|
73
|
+
}
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
+
super(PartialLicenseMap.__pulumiType, name, resourceInputs, opts);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.PartialLicenseMap = PartialLicenseMap;
|
|
79
|
+
/** @internal */
|
|
80
|
+
PartialLicenseMap.__pulumiType = 'dbtcloud:index/partialLicenseMap:PartialLicenseMap';
|
|
81
|
+
//# sourceMappingURL=partialLicenseMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partialLicenseMap.js","sourceRoot":"","sources":["../partialLicenseMap.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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;IAmBD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,I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umi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
8
|
+
*
|
|
9
|
+
* // the config is the same as for `dbtcloud_notification`
|
|
10
|
+
* const prodJobInternalNotification = new dbtcloud.PartialNotification("prod_job_internal_notification", {
|
|
11
|
+
* userId: 100,
|
|
12
|
+
* onSuccesses: [prodJob.id],
|
|
13
|
+
* onFailures: [12345],
|
|
14
|
+
* notificationType: 1,
|
|
15
|
+
* });
|
|
16
|
+
* // we can also send "external" email notifications to emails to related to dbt Cloud users
|
|
17
|
+
* const prodJobExternalNotification = new dbtcloud.PartialNotification("prod_job_external_notification", {
|
|
18
|
+
* userId: 100,
|
|
19
|
+
* onFailures: [
|
|
20
|
+
* 23456,
|
|
21
|
+
* 56788,
|
|
22
|
+
* ],
|
|
23
|
+
* onCancels: [prodJob.id],
|
|
24
|
+
* notificationType: 4,
|
|
25
|
+
* externalEmail: "my_email@mail.com",
|
|
26
|
+
* });
|
|
27
|
+
* // and finally, we can set up Slack notifications
|
|
28
|
+
* const prodJobSlackNotifications = new dbtcloud.PartialNotification("prod_job_slack_notifications", {
|
|
29
|
+
* userId: 100,
|
|
30
|
+
* onFailures: [
|
|
31
|
+
* 23456,
|
|
32
|
+
* 56788,
|
|
33
|
+
* ],
|
|
34
|
+
* onCancels: [prodJob.id],
|
|
35
|
+
* notificationType: 2,
|
|
36
|
+
* slackChannelId: "C12345ABCDE",
|
|
37
|
+
* slackChannelName: "#my-awesome-channel",
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class PartialNotification extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing PartialNotification 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: string, id: pulumi.Input<pulumi.ID>, state?: PartialNotificationState, opts?: pulumi.CustomResourceOptions): PartialNotification;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of PartialNotification. 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: any): obj is PartialNotification;
|
|
57
|
+
/**
|
|
58
|
+
* The external email to receive the notification [global, used as identifier]
|
|
59
|
+
*/
|
|
60
|
+
readonly externalEmail: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Type of notification (1 = dbt Cloud user email (default): does not require an externalEmail ; 2 = Slack channel: requires `slackChannelId` and `slackChannelName` ; 4 = external email: requires setting an `externalEmail`) [global, used as identifier]
|
|
63
|
+
*/
|
|
64
|
+
readonly notificationType: pulumi.Output<number>;
|
|
65
|
+
/**
|
|
66
|
+
* List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
|
|
67
|
+
*/
|
|
68
|
+
readonly onCancels: pulumi.Output<number[]>;
|
|
69
|
+
/**
|
|
70
|
+
* List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
|
|
71
|
+
*/
|
|
72
|
+
readonly onFailures: pulumi.Output<number[]>;
|
|
73
|
+
/**
|
|
74
|
+
* List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
|
|
75
|
+
*/
|
|
76
|
+
readonly onSuccesses: pulumi.Output<number[]>;
|
|
77
|
+
/**
|
|
78
|
+
* The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
|
|
79
|
+
*/
|
|
80
|
+
readonly slackChannelId: pulumi.Output<string | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* The name of the slack channel [global, used as identifier]
|
|
83
|
+
*/
|
|
84
|
+
readonly slackChannelName: pulumi.Output<string | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* State of the notification (1 = active (default), 2 = inactive) [global]
|
|
87
|
+
*/
|
|
88
|
+
readonly state: pulumi.Output<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Internal dbt Cloud User ID. Must be the userId for an existing user even if the notification is an external one [global]
|
|
91
|
+
*/
|
|
92
|
+
readonly userId: pulumi.Output<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a PartialNotification resource with the given unique name, arguments, and options.
|
|
95
|
+
*
|
|
96
|
+
* @param name The _unique_ name of the resource.
|
|
97
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
98
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
99
|
+
*/
|
|
100
|
+
constructor(name: string, args: PartialNotificationArgs, opts?: pulumi.CustomResourceOptions);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Input properties used for looking up and filtering PartialNotification resources.
|
|
104
|
+
*/
|
|
105
|
+
export interface PartialNotificationState {
|
|
106
|
+
/**
|
|
107
|
+
* The external email to receive the notification [global, used as identifier]
|
|
108
|
+
*/
|
|
109
|
+
externalEmail?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Type of notification (1 = dbt Cloud user email (default): does not require an externalEmail ; 2 = Slack channel: requires `slackChannelId` and `slackChannelName` ; 4 = external email: requires setting an `externalEmail`) [global, used as identifier]
|
|
112
|
+
*/
|
|
113
|
+
notificationType?: pulumi.Input<number>;
|
|
114
|
+
/**
|
|
115
|
+
* List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
|
|
116
|
+
*/
|
|
117
|
+
onCancels?: pulumi.Input<pulumi.Input<number>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
|
|
120
|
+
*/
|
|
121
|
+
onFailures?: pulumi.Input<pulumi.Input<number>[]>;
|
|
122
|
+
/**
|
|
123
|
+
* List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
|
|
124
|
+
*/
|
|
125
|
+
onSuccesses?: pulumi.Input<pulumi.Input<number>[]>;
|
|
126
|
+
/**
|
|
127
|
+
* The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
|
|
128
|
+
*/
|
|
129
|
+
slackChannelId?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the slack channel [global, used as identifier]
|
|
132
|
+
*/
|
|
133
|
+
slackChannelName?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* State of the notification (1 = active (default), 2 = inactive) [global]
|
|
136
|
+
*/
|
|
137
|
+
state?: pulumi.Input<number>;
|
|
138
|
+
/**
|
|
139
|
+
* Internal dbt Cloud User ID. Must be the userId for an existing user even if the notification is an external one [global]
|
|
140
|
+
*/
|
|
141
|
+
userId?: pulumi.Input<number>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The set of arguments for constructing a PartialNotification resource.
|
|
145
|
+
*/
|
|
146
|
+
export interface PartialNotificationArgs {
|
|
147
|
+
/**
|
|
148
|
+
* The external email to receive the notification [global, used as identifier]
|
|
149
|
+
*/
|
|
150
|
+
externalEmail?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Type of notification (1 = dbt Cloud user email (default): does not require an externalEmail ; 2 = Slack channel: requires `slackChannelId` and `slackChannelName` ; 4 = external email: requires setting an `externalEmail`) [global, used as identifier]
|
|
153
|
+
*/
|
|
154
|
+
notificationType?: pulumi.Input<number>;
|
|
155
|
+
/**
|
|
156
|
+
* List of job IDs to trigger the webhook on cancel. Those will be added/removed when config is added/removed.
|
|
157
|
+
*/
|
|
158
|
+
onCancels?: pulumi.Input<pulumi.Input<number>[]>;
|
|
159
|
+
/**
|
|
160
|
+
* List of job IDs to trigger the webhook on failure Those will be added/removed when config is added/removed.
|
|
161
|
+
*/
|
|
162
|
+
onFailures?: pulumi.Input<pulumi.Input<number>[]>;
|
|
163
|
+
/**
|
|
164
|
+
* List of job IDs to trigger the webhook on success Those will be added/removed when config is added/removed.
|
|
165
|
+
*/
|
|
166
|
+
onSuccesses?: pulumi.Input<pulumi.Input<number>[]>;
|
|
167
|
+
/**
|
|
168
|
+
* The ID of the Slack channel to receive the notification. It can be found at the bottom of the Slack channel settings [global, used as identifier]
|
|
169
|
+
*/
|
|
170
|
+
slackChannelId?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* The name of the slack channel [global, used as identifier]
|
|
173
|
+
*/
|
|
174
|
+
slackChannelName?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* State of the notification (1 = active (default), 2 = inactive) [global]
|
|
177
|
+
*/
|
|
178
|
+
state?: pulumi.Input<number>;
|
|
179
|
+
/**
|
|
180
|
+
* Internal dbt Cloud User ID. Must be the userId for an existing user even if the notification is an external one [global]
|
|
181
|
+
*/
|
|
182
|
+
userId: pulumi.Input<number>;
|
|
183
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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.PartialNotification = 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
|
+
* // the config is the same as for `dbtcloud_notification`
|
|
16
|
+
* const prodJobInternalNotification = new dbtcloud.PartialNotification("prod_job_internal_notification", {
|
|
17
|
+
* userId: 100,
|
|
18
|
+
* onSuccesses: [prodJob.id],
|
|
19
|
+
* onFailures: [12345],
|
|
20
|
+
* notificationType: 1,
|
|
21
|
+
* });
|
|
22
|
+
* // we can also send "external" email notifications to emails to related to dbt Cloud users
|
|
23
|
+
* const prodJobExternalNotification = new dbtcloud.PartialNotification("prod_job_external_notification", {
|
|
24
|
+
* userId: 100,
|
|
25
|
+
* onFailures: [
|
|
26
|
+
* 23456,
|
|
27
|
+
* 56788,
|
|
28
|
+
* ],
|
|
29
|
+
* onCancels: [prodJob.id],
|
|
30
|
+
* notificationType: 4,
|
|
31
|
+
* externalEmail: "my_email@mail.com",
|
|
32
|
+
* });
|
|
33
|
+
* // and finally, we can set up Slack notifications
|
|
34
|
+
* const prodJobSlackNotifications = new dbtcloud.PartialNotification("prod_job_slack_notifications", {
|
|
35
|
+
* userId: 100,
|
|
36
|
+
* onFailures: [
|
|
37
|
+
* 23456,
|
|
38
|
+
* 56788,
|
|
39
|
+
* ],
|
|
40
|
+
* onCancels: [prodJob.id],
|
|
41
|
+
* notificationType: 2,
|
|
42
|
+
* slackChannelId: "C12345ABCDE",
|
|
43
|
+
* slackChannelName: "#my-awesome-channel",
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
class PartialNotification extends pulumi.CustomResource {
|
|
48
|
+
/**
|
|
49
|
+
* Get an existing PartialNotification resource's state with the given name, ID, and optional extra
|
|
50
|
+
* properties used to qualify the lookup.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resulting resource.
|
|
53
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
54
|
+
* @param state Any extra arguments used during the lookup.
|
|
55
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
+
*/
|
|
57
|
+
static get(name, id, state, opts) {
|
|
58
|
+
return new PartialNotification(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of PartialNotification. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj) {
|
|
65
|
+
if (obj === undefined || obj === null) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return obj['__pulumiType'] === PartialNotification.__pulumiType;
|
|
69
|
+
}
|
|
70
|
+
constructor(name, argsOrState, opts) {
|
|
71
|
+
let resourceInputs = {};
|
|
72
|
+
opts = opts || {};
|
|
73
|
+
if (opts.id) {
|
|
74
|
+
const state = argsOrState;
|
|
75
|
+
resourceInputs["externalEmail"] = state ? state.externalEmail : undefined;
|
|
76
|
+
resourceInputs["notificationType"] = state ? state.notificationType : undefined;
|
|
77
|
+
resourceInputs["onCancels"] = state ? state.onCancels : undefined;
|
|
78
|
+
resourceInputs["onFailures"] = state ? state.onFailures : undefined;
|
|
79
|
+
resourceInputs["onSuccesses"] = state ? state.onSuccesses : undefined;
|
|
80
|
+
resourceInputs["slackChannelId"] = state ? state.slackChannelId : undefined;
|
|
81
|
+
resourceInputs["slackChannelName"] = state ? state.slackChannelName : undefined;
|
|
82
|
+
resourceInputs["state"] = state ? state.state : undefined;
|
|
83
|
+
resourceInputs["userId"] = state ? state.userId : undefined;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
const args = argsOrState;
|
|
87
|
+
if ((!args || args.userId === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'userId'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["externalEmail"] = args ? args.externalEmail : undefined;
|
|
91
|
+
resourceInputs["notificationType"] = args ? args.notificationType : undefined;
|
|
92
|
+
resourceInputs["onCancels"] = args ? args.onCancels : undefined;
|
|
93
|
+
resourceInputs["onFailures"] = args ? args.onFailures : undefined;
|
|
94
|
+
resourceInputs["onSuccesses"] = args ? args.onSuccesses : undefined;
|
|
95
|
+
resourceInputs["slackChannelId"] = args ? args.slackChannelId : undefined;
|
|
96
|
+
resourceInputs["slackChannelName"] = args ? args.slackChannelName : undefined;
|
|
97
|
+
resourceInputs["state"] = args ? args.state : undefined;
|
|
98
|
+
resourceInputs["userId"] = args ? args.userId : undefined;
|
|
99
|
+
}
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(PartialNotification.__pulumiType, name, resourceInputs, opts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.PartialNotification = PartialNotification;
|
|
105
|
+
/** @internal */
|
|
106
|
+
PartialNotification.__pulumiType = 'dbtcloud:index/partialNotification:PartialNotification';
|
|
107
|
+
//# sourceMappingURL=partialNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partialNotification.js","sourceRoot":"","sources":["../partialNotification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;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E,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAxGL,kDAyGC;AA3FG,gBAAgB;AACO,gCAAY,GAAG,wDAAwD,CAAC"}
|
package/postgresCredential.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
7
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
8
8
|
*
|
|
9
|
-
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
10
9
|
* const postgresProdCredential = new dbtcloud.PostgresCredential("postgres_prod_credential", {
|
|
11
10
|
* isActive: true,
|
|
12
11
|
* projectId: dbtProject.id,
|
|
@@ -20,7 +19,25 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
19
|
*
|
|
21
20
|
* ## Import
|
|
22
21
|
*
|
|
23
|
-
*
|
|
22
|
+
* using import blocks (requires Terraform >= 1.5)
|
|
23
|
+
*
|
|
24
|
+
* import {
|
|
25
|
+
*
|
|
26
|
+
* to = dbtcloud_postgres_credential.my_credential
|
|
27
|
+
*
|
|
28
|
+
* id = "project_id:credential_id"
|
|
29
|
+
*
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* import {
|
|
33
|
+
*
|
|
34
|
+
* to = dbtcloud_postgres_credential.my_credential
|
|
35
|
+
*
|
|
36
|
+
* id = "12345:6789"
|
|
37
|
+
*
|
|
38
|
+
* }
|
|
39
|
+
*
|
|
40
|
+
* using the older import command
|
|
24
41
|
*
|
|
25
42
|
* ```sh
|
|
26
43
|
* $ pulumi import dbtcloud:index/postgresCredential:PostgresCredential my_credential "project_id:credential_id"
|
package/postgresCredential.js
CHANGED
|
@@ -12,7 +12,6 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
13
|
* import * as dbtcloud from "@pulumi/dbtcloud";
|
|
14
14
|
*
|
|
15
|
-
* // NOTE for customers using the LEGACY dbt_cloud provider:
|
|
16
15
|
* const postgresProdCredential = new dbtcloud.PostgresCredential("postgres_prod_credential", {
|
|
17
16
|
* isActive: true,
|
|
18
17
|
* projectId: dbtProject.id,
|
|
@@ -26,7 +25,25 @@ const utilities = require("./utilities");
|
|
|
26
25
|
*
|
|
27
26
|
* ## Import
|
|
28
27
|
*
|
|
29
|
-
*
|
|
28
|
+
* using import blocks (requires Terraform >= 1.5)
|
|
29
|
+
*
|
|
30
|
+
* import {
|
|
31
|
+
*
|
|
32
|
+
* to = dbtcloud_postgres_credential.my_credential
|
|
33
|
+
*
|
|
34
|
+
* id = "project_id:credential_id"
|
|
35
|
+
*
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* import {
|
|
39
|
+
*
|
|
40
|
+
* to = dbtcloud_postgres_credential.my_credential
|
|
41
|
+
*
|
|
42
|
+
* id = "12345:6789"
|
|
43
|
+
*
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* using the older import command
|
|
30
47
|
*
|
|
31
48
|
* ```sh
|
|
32
49
|
* $ pulumi import dbtcloud:index/postgresCredential:PostgresCredential my_credential "project_id:credential_id"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgresCredential.js","sourceRoot":"","sources":["../postgresCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"postgresCredential.js","sourceRoot":"","sources":["../postgresCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,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