@tag1consulting/pulumi-lagoon 0.2.5
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 +201 -0
- package/README.md +1 -0
- package/bin/config/index.d.ts +1 -0
- package/bin/config/index.js +21 -0
- package/bin/config/index.js.map +1 -0
- package/bin/config/vars.d.ts +20 -0
- package/bin/config/vars.js +38 -0
- package/bin/config/vars.js.map +1 -0
- package/bin/index.d.ts +7 -0
- package/bin/index.js +26 -0
- package/bin/index.js.map +1 -0
- package/bin/lagoon/deployTarget.d.ts +107 -0
- package/bin/lagoon/deployTarget.js +82 -0
- package/bin/lagoon/deployTarget.js.map +1 -0
- package/bin/lagoon/deployTargetConfig.d.ts +82 -0
- package/bin/lagoon/deployTargetConfig.js +74 -0
- package/bin/lagoon/deployTargetConfig.js.map +1 -0
- package/bin/lagoon/environment.d.ts +121 -0
- package/bin/lagoon/environment.js +92 -0
- package/bin/lagoon/environment.js.map +1 -0
- package/bin/lagoon/group.d.ts +53 -0
- package/bin/lagoon/group.js +63 -0
- package/bin/lagoon/group.js.map +1 -0
- package/bin/lagoon/index.d.ts +36 -0
- package/bin/lagoon/index.js +66 -0
- package/bin/lagoon/index.js.map +1 -0
- package/bin/lagoon/notificationEmail.d.ts +50 -0
- package/bin/lagoon/notificationEmail.js +66 -0
- package/bin/lagoon/notificationEmail.js.map +1 -0
- package/bin/lagoon/notificationMicrosoftTeams.d.ts +50 -0
- package/bin/lagoon/notificationMicrosoftTeams.js +68 -0
- package/bin/lagoon/notificationMicrosoftTeams.js.map +1 -0
- package/bin/lagoon/notificationRocketChat.d.ts +58 -0
- package/bin/lagoon/notificationRocketChat.js +73 -0
- package/bin/lagoon/notificationRocketChat.js.map +1 -0
- package/bin/lagoon/notificationSlack.d.ts +58 -0
- package/bin/lagoon/notificationSlack.js +73 -0
- package/bin/lagoon/notificationSlack.js.map +1 -0
- package/bin/lagoon/project.d.ts +113 -0
- package/bin/lagoon/project.js +85 -0
- package/bin/lagoon/project.js.map +1 -0
- package/bin/lagoon/projectNotification.d.ts +61 -0
- package/bin/lagoon/projectNotification.js +71 -0
- package/bin/lagoon/projectNotification.js.map +1 -0
- package/bin/lagoon/task.d.ts +141 -0
- package/bin/lagoon/task.js +93 -0
- package/bin/lagoon/task.js.map +1 -0
- package/bin/lagoon/variable.d.ts +77 -0
- package/bin/lagoon/variable.js +80 -0
- package/bin/lagoon/variable.js.map +1 -0
- package/bin/provider.d.ts +57 -0
- package/bin/provider.js +45 -0
- package/bin/provider.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +8 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +7 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +4 -0
- package/bin/utilities.js +91 -0
- package/bin/utilities.js.map +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,74 @@
|
|
|
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.DeployTargetConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a deploy target configuration to route branches/PRs to specific clusters.
|
|
10
|
+
*/
|
|
11
|
+
class DeployTargetConfig extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing DeployTargetConfig resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new DeployTargetConfig(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of DeployTargetConfig. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === DeployTargetConfig.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a DeployTargetConfig resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if (args?.deployTargetId === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'deployTargetId'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'projectId'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["branches"] = args?.branches;
|
|
51
|
+
resourceInputs["deployTargetId"] = args?.deployTargetId;
|
|
52
|
+
resourceInputs["deployTargetProjectPattern"] = args?.deployTargetProjectPattern;
|
|
53
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
54
|
+
resourceInputs["pullrequests"] = args?.pullrequests;
|
|
55
|
+
resourceInputs["weight"] = args?.weight;
|
|
56
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
resourceInputs["branches"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["deployTargetId"] = undefined /*out*/;
|
|
61
|
+
resourceInputs["deployTargetProjectPattern"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
63
|
+
resourceInputs["projectId"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["pullrequests"] = undefined /*out*/;
|
|
65
|
+
resourceInputs["weight"] = undefined /*out*/;
|
|
66
|
+
}
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
68
|
+
super(DeployTargetConfig.__pulumiType, name, resourceInputs, opts);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.DeployTargetConfig = DeployTargetConfig;
|
|
72
|
+
/** @internal */
|
|
73
|
+
DeployTargetConfig.__pulumiType = 'lagoon:lagoon:DeployTargetConfig';
|
|
74
|
+
//# sourceMappingURL=deployTargetConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployTargetConfig.js","sourceRoot":"","sources":["../../lagoon/deployTargetConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,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,kBAAkB,CAAC,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AChD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAxFL,gDAyFC;AA5EG,gBAAgB;AACO,+BAAY,GAAG,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a Lagoon environment (branch/PR deployment).
|
|
4
|
+
*/
|
|
5
|
+
export declare class Environment extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Environment resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Environment;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Environment. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Environment;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to auto-idle this environment (1=yes, 0=no).
|
|
22
|
+
*/
|
|
23
|
+
readonly autoIdle: pulumi.Output<number | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The creation timestamp.
|
|
26
|
+
*/
|
|
27
|
+
readonly created: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The base ref for the deployment.
|
|
30
|
+
*/
|
|
31
|
+
readonly deployBaseRef: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* The head ref for pull request deployments.
|
|
34
|
+
*/
|
|
35
|
+
readonly deployHeadRef: pulumi.Output<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Title for pull request deployments.
|
|
38
|
+
*/
|
|
39
|
+
readonly deployTitle: pulumi.Output<string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Deployment type: 'branch' or 'pullrequest'.
|
|
42
|
+
*/
|
|
43
|
+
readonly deployType: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Environment type: 'production' or 'development'.
|
|
46
|
+
*/
|
|
47
|
+
readonly environmentType: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The Lagoon-assigned numeric ID of the environment.
|
|
50
|
+
*/
|
|
51
|
+
readonly lagoonId: pulumi.Output<number>;
|
|
52
|
+
/**
|
|
53
|
+
* The environment name (typically the branch name).
|
|
54
|
+
*/
|
|
55
|
+
readonly name: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Override namespace name on the cluster.
|
|
58
|
+
*/
|
|
59
|
+
readonly openshiftProjectName: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The parent project ID.
|
|
62
|
+
*/
|
|
63
|
+
readonly projectId: pulumi.Output<number>;
|
|
64
|
+
/**
|
|
65
|
+
* The primary route URL for this environment.
|
|
66
|
+
*/
|
|
67
|
+
readonly route: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* All route URLs for this environment.
|
|
70
|
+
*/
|
|
71
|
+
readonly routes: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a Environment resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The set of arguments for constructing a Environment resource.
|
|
83
|
+
*/
|
|
84
|
+
export interface EnvironmentArgs {
|
|
85
|
+
/**
|
|
86
|
+
* Whether to auto-idle this environment (1=yes, 0=no).
|
|
87
|
+
*/
|
|
88
|
+
autoIdle?: pulumi.Input<number>;
|
|
89
|
+
/**
|
|
90
|
+
* The base ref for the deployment.
|
|
91
|
+
*/
|
|
92
|
+
deployBaseRef?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The head ref for pull request deployments.
|
|
95
|
+
*/
|
|
96
|
+
deployHeadRef?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Title for pull request deployments.
|
|
99
|
+
*/
|
|
100
|
+
deployTitle?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Deployment type: 'branch' or 'pullrequest'.
|
|
103
|
+
*/
|
|
104
|
+
deployType: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Environment type: 'production' or 'development'.
|
|
107
|
+
*/
|
|
108
|
+
environmentType: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The environment name (typically the branch name).
|
|
111
|
+
*/
|
|
112
|
+
name: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Override namespace name on the cluster.
|
|
115
|
+
*/
|
|
116
|
+
openshiftProjectName?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The parent project ID.
|
|
119
|
+
*/
|
|
120
|
+
projectId: pulumi.Input<number>;
|
|
121
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.Environment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Lagoon environment (branch/PR deployment).
|
|
10
|
+
*/
|
|
11
|
+
class Environment extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Environment resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new Environment(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Environment. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Environment.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a Environment resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if (args?.deployType === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'deployType'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.environmentType === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'environmentType'");
|
|
49
|
+
}
|
|
50
|
+
if (args?.name === undefined && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'name'");
|
|
52
|
+
}
|
|
53
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
54
|
+
throw new Error("Missing required property 'projectId'");
|
|
55
|
+
}
|
|
56
|
+
resourceInputs["autoIdle"] = args?.autoIdle;
|
|
57
|
+
resourceInputs["deployBaseRef"] = args?.deployBaseRef;
|
|
58
|
+
resourceInputs["deployHeadRef"] = args?.deployHeadRef;
|
|
59
|
+
resourceInputs["deployTitle"] = args?.deployTitle;
|
|
60
|
+
resourceInputs["deployType"] = args?.deployType;
|
|
61
|
+
resourceInputs["environmentType"] = args?.environmentType;
|
|
62
|
+
resourceInputs["name"] = args?.name;
|
|
63
|
+
resourceInputs["openshiftProjectName"] = args?.openshiftProjectName;
|
|
64
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
65
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["route"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["routes"] = undefined /*out*/;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
resourceInputs["autoIdle"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["deployBaseRef"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["deployHeadRef"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["deployTitle"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["deployType"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["environmentType"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["openshiftProjectName"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["projectId"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["route"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["routes"] = undefined /*out*/;
|
|
84
|
+
}
|
|
85
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
|
+
super(Environment.__pulumiType, name, resourceInputs, opts);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.Environment = Environment;
|
|
90
|
+
/** @internal */
|
|
91
|
+
Environment.__pulumiType = 'lagoon:lagoon:Environment';
|
|
92
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../lagoon/environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,WAAW,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAuDD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAAmC;QAChF,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAA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oon group for organizing projects and users.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Group extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Group;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is Group;
|
|
20
|
+
/**
|
|
21
|
+
* The Lagoon internal ID of the group.
|
|
22
|
+
*/
|
|
23
|
+
readonly lagoonId: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The group name.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the parent group, for creating subgroups.
|
|
30
|
+
*/
|
|
31
|
+
readonly parentGroupName: pulumi.Output<string | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a Group resource with the given unique name, arguments, and options.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resource.
|
|
36
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
37
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
38
|
+
*/
|
|
39
|
+
constructor(name: string, args: GroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The set of arguments for constructing a Group resource.
|
|
43
|
+
*/
|
|
44
|
+
export interface GroupArgs {
|
|
45
|
+
/**
|
|
46
|
+
* The group name.
|
|
47
|
+
*/
|
|
48
|
+
name: pulumi.Input<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the parent group, for creating subgroups.
|
|
51
|
+
*/
|
|
52
|
+
parentGroupName?: pulumi.Input<string>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Lagoon group for organizing projects and users.
|
|
10
|
+
*/
|
|
11
|
+
class Group extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new Group(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Group.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a Group resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if (args?.name === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'name'");
|
|
46
|
+
}
|
|
47
|
+
resourceInputs["name"] = args?.name;
|
|
48
|
+
resourceInputs["parentGroupName"] = args?.parentGroupName;
|
|
49
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
53
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
54
|
+
resourceInputs["parentGroupName"] = undefined /*out*/;
|
|
55
|
+
}
|
|
56
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
+
super(Group.__pulumiType, name, resourceInputs, opts);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.Group = Group;
|
|
61
|
+
/** @internal */
|
|
62
|
+
Group.__pulumiType = 'lagoon:lagoon:Group';
|
|
63
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../lagoon/group.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAA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Target;
|
|
3
|
+
export declare const DeployTarget: typeof import("./deployTarget").DeployTarget;
|
|
4
|
+
export { DeployTargetConfigArgs } from "./deployTargetConfig";
|
|
5
|
+
export type DeployTargetConfig = import("./deployTargetConfig").DeployTargetConfig;
|
|
6
|
+
export declare const DeployTargetConfig: typeof import("./deployTargetConfig").DeployTargetConfig;
|
|
7
|
+
export { EnvironmentArgs } from "./environment";
|
|
8
|
+
export type Environment = import("./environment").Environment;
|
|
9
|
+
export declare const Environment: typeof import("./environment").Environment;
|
|
10
|
+
export { GroupArgs } from "./group";
|
|
11
|
+
export type Group = import("./group").Group;
|
|
12
|
+
export declare const Group: typeof import("./group").Group;
|
|
13
|
+
export { NotificationEmailArgs } from "./notificationEmail";
|
|
14
|
+
export type NotificationEmail = import("./notificationEmail").NotificationEmail;
|
|
15
|
+
export declare const NotificationEmail: typeof import("./notificationEmail").NotificationEmail;
|
|
16
|
+
export { NotificationMicrosoftTeamsArgs } from "./notificationMicrosoftTeams";
|
|
17
|
+
export type NotificationMicrosoftTeams = import("./notificationMicrosoftTeams").NotificationMicrosoftTeams;
|
|
18
|
+
export declare const NotificationMicrosoftTeams: typeof import("./notificationMicrosoftTeams").NotificationMicrosoftTeams;
|
|
19
|
+
export { NotificationRocketChatArgs } from "./notificationRocketChat";
|
|
20
|
+
export type NotificationRocketChat = import("./notificationRocketChat").NotificationRocketChat;
|
|
21
|
+
export declare const NotificationRocketChat: typeof import("./notificationRocketChat").NotificationRocketChat;
|
|
22
|
+
export { NotificationSlackArgs } from "./notificationSlack";
|
|
23
|
+
export type NotificationSlack = import("./notificationSlack").NotificationSlack;
|
|
24
|
+
export declare const NotificationSlack: typeof import("./notificationSlack").NotificationSlack;
|
|
25
|
+
export { ProjectArgs } from "./project";
|
|
26
|
+
export type Project = import("./project").Project;
|
|
27
|
+
export declare const Project: typeof import("./project").Project;
|
|
28
|
+
export { ProjectNotificationArgs } from "./projectNotification";
|
|
29
|
+
export type ProjectNotification = import("./projectNotification").ProjectNotification;
|
|
30
|
+
export declare const ProjectNotification: typeof import("./projectNotification").ProjectNotification;
|
|
31
|
+
export { TaskArgs } from "./task";
|
|
32
|
+
export type Task = import("./task").Task;
|
|
33
|
+
export declare const Task: typeof import("./task").Task;
|
|
34
|
+
export { VariableArgs } from "./variable";
|
|
35
|
+
export type Variable = import("./variable").Variable;
|
|
36
|
+
export declare const Variable: typeof import("./variable").Variable;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.Variable = exports.Task = exports.ProjectNotification = exports.Project = exports.NotificationSlack = exports.NotificationRocketChat = exports.NotificationMicrosoftTeams = exports.NotificationEmail = exports.Group = exports.Environment = exports.DeployTargetConfig = exports.DeployTarget = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.DeployTarget = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["DeployTarget"], () => require("./deployTarget"));
|
|
10
|
+
exports.DeployTargetConfig = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["DeployTargetConfig"], () => require("./deployTargetConfig"));
|
|
12
|
+
exports.Environment = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["Environment"], () => require("./environment"));
|
|
14
|
+
exports.Group = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["Group"], () => require("./group"));
|
|
16
|
+
exports.NotificationEmail = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["NotificationEmail"], () => require("./notificationEmail"));
|
|
18
|
+
exports.NotificationMicrosoftTeams = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["NotificationMicrosoftTeams"], () => require("./notificationMicrosoftTeams"));
|
|
20
|
+
exports.NotificationRocketChat = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["NotificationRocketChat"], () => require("./notificationRocketChat"));
|
|
22
|
+
exports.NotificationSlack = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["NotificationSlack"], () => require("./notificationSlack"));
|
|
24
|
+
exports.Project = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["Project"], () => require("./project"));
|
|
26
|
+
exports.ProjectNotification = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["ProjectNotification"], () => require("./projectNotification"));
|
|
28
|
+
exports.Task = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["Task"], () => require("./task"));
|
|
30
|
+
exports.Variable = null;
|
|
31
|
+
utilities.lazyLoad(exports, ["Variable"], () => require("./variable"));
|
|
32
|
+
const _module = {
|
|
33
|
+
version: utilities.getVersion(),
|
|
34
|
+
construct: (name, type, urn) => {
|
|
35
|
+
switch (type) {
|
|
36
|
+
case "lagoon:lagoon:DeployTarget":
|
|
37
|
+
return new exports.DeployTarget(name, undefined, { urn });
|
|
38
|
+
case "lagoon:lagoon:DeployTargetConfig":
|
|
39
|
+
return new exports.DeployTargetConfig(name, undefined, { urn });
|
|
40
|
+
case "lagoon:lagoon:Environment":
|
|
41
|
+
return new exports.Environment(name, undefined, { urn });
|
|
42
|
+
case "lagoon:lagoon:Group":
|
|
43
|
+
return new exports.Group(name, undefined, { urn });
|
|
44
|
+
case "lagoon:lagoon:NotificationEmail":
|
|
45
|
+
return new exports.NotificationEmail(name, undefined, { urn });
|
|
46
|
+
case "lagoon:lagoon:NotificationMicrosoftTeams":
|
|
47
|
+
return new exports.NotificationMicrosoftTeams(name, undefined, { urn });
|
|
48
|
+
case "lagoon:lagoon:NotificationRocketChat":
|
|
49
|
+
return new exports.NotificationRocketChat(name, undefined, { urn });
|
|
50
|
+
case "lagoon:lagoon:NotificationSlack":
|
|
51
|
+
return new exports.NotificationSlack(name, undefined, { urn });
|
|
52
|
+
case "lagoon:lagoon:Project":
|
|
53
|
+
return new exports.Project(name, undefined, { urn });
|
|
54
|
+
case "lagoon:lagoon:ProjectNotification":
|
|
55
|
+
return new exports.ProjectNotification(name, undefined, { urn });
|
|
56
|
+
case "lagoon:lagoon:Task":
|
|
57
|
+
return new exports.Task(name, undefined, { urn });
|
|
58
|
+
case "lagoon:lagoon:Variable":
|
|
59
|
+
return new exports.Variable(name, undefined, { urn });
|
|
60
|
+
default:
|
|
61
|
+
throw new Error(`unknown resource type ${type}`);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
pulumi.runtime.registerResourceModule("lagoon", "lagoon", _module);
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lagoon/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAIlE,QAAA,kBAAkB,GAA6D,IAAW,CAAC;AACxG,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAI9E,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAIpD,QAAA,iBAAiB,GAA2D,IAAW,CAAC;AACrG,SA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I,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE,KAAK,oBAAoB;gBACrB,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD,KAAK,wBAAwB;gBACzB,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a Lagoon Email notification configuration.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NotificationEmail extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing NotificationEmail resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): NotificationEmail;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of NotificationEmail. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is NotificationEmail;
|
|
20
|
+
/**
|
|
21
|
+
* The email address to send notifications to.
|
|
22
|
+
*/
|
|
23
|
+
readonly emailAddress: pulumi.Output<string>;
|
|
24
|
+
readonly lagoonId: pulumi.Output<number>;
|
|
25
|
+
/**
|
|
26
|
+
* The notification name.
|
|
27
|
+
*/
|
|
28
|
+
readonly name: pulumi.Output<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a NotificationEmail resource with the given unique name, arguments, and options.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resource.
|
|
33
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
34
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
35
|
+
*/
|
|
36
|
+
constructor(name: string, args: NotificationEmailArgs, opts?: pulumi.CustomResourceOptions);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The set of arguments for constructing a NotificationEmail resource.
|
|
40
|
+
*/
|
|
41
|
+
export interface NotificationEmailArgs {
|
|
42
|
+
/**
|
|
43
|
+
* The email address to send notifications to.
|
|
44
|
+
*/
|
|
45
|
+
emailAddress: pulumi.Input<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The notification name.
|
|
48
|
+
*/
|
|
49
|
+
name: pulumi.Input<string>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.NotificationEmail = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Lagoon Email notification configuration.
|
|
10
|
+
*/
|
|
11
|
+
class NotificationEmail extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing NotificationEmail resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
19
|
+
*/
|
|
20
|
+
static get(name, id, opts) {
|
|
21
|
+
return new NotificationEmail(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of NotificationEmail. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === NotificationEmail.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a NotificationEmail resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name, args, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (!opts.id) {
|
|
44
|
+
if (args?.emailAddress === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'emailAddress'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.name === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'name'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["emailAddress"] = args?.emailAddress;
|
|
51
|
+
resourceInputs["name"] = args?.name;
|
|
52
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
resourceInputs["emailAddress"] = undefined /*out*/;
|
|
56
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
57
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
58
|
+
}
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(NotificationEmail.__pulumiType, name, resourceInputs, opts);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.NotificationEmail = NotificationEmail;
|
|
64
|
+
/** @internal */
|
|
65
|
+
NotificationEmail.__pulumiType = 'lagoon:lagoon:NotificationEmail';
|
|
66
|
+
//# sourceMappingURL=notificationEmail.js.map
|