@tag1consulting/pulumi-lagoon 0.2.7 → 0.2.9
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/bin/lagoon/environmentAutogeneratedRouteConfig.d.ts +107 -0
- package/bin/lagoon/environmentAutogeneratedRouteConfig.js +78 -0
- package/bin/lagoon/environmentAutogeneratedRouteConfig.js.map +1 -0
- package/bin/lagoon/index.d.ts +9 -0
- package/bin/lagoon/index.js +13 -1
- package/bin/lagoon/index.js.map +1 -1
- package/bin/lagoon/projectAutogeneratedRouteConfig.d.ts +99 -0
- package/bin/lagoon/projectAutogeneratedRouteConfig.js +73 -0
- package/bin/lagoon/projectAutogeneratedRouteConfig.js.map +1 -0
- package/bin/lagoon/route.d.ts +187 -0
- package/bin/lagoon/route.js +102 -0
- package/bin/lagoon/route.js.map +1 -0
- package/bin/types/input.d.ts +13 -0
- package/bin/types/output.d.ts +13 -0
- package/bin/utilities.js +1 -1
- package/bin/utilities.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages the autogenerated route configuration for a specific Lagoon environment, overriding the project-level config for that environment.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EnvironmentAutogeneratedRouteConfig extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing EnvironmentAutogeneratedRouteConfig resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
15
|
+
*/
|
|
16
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): EnvironmentAutogeneratedRouteConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of EnvironmentAutogeneratedRouteConfig. This is designed to work even
|
|
19
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
|
+
*/
|
|
21
|
+
static isInstance(obj: any): obj is EnvironmentAutogeneratedRouteConfig;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to generate routes for pull request environments.
|
|
24
|
+
*/
|
|
25
|
+
readonly allowPullRequests: pulumi.Output<boolean | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to disable request verification on autogenerated routes.
|
|
28
|
+
*/
|
|
29
|
+
readonly disableRequestVerification: pulumi.Output<boolean | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Whether autogenerated routes are enabled for this environment.
|
|
32
|
+
*/
|
|
33
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The Lagoon environment name. Changing this forces replacement.
|
|
36
|
+
*/
|
|
37
|
+
readonly environmentName: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* How to handle insecure (HTTP) traffic: Allow, Redirect, or None.
|
|
40
|
+
*/
|
|
41
|
+
readonly insecure: pulumi.Output<string | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Path-based routing rules for autogenerated routes.
|
|
44
|
+
*/
|
|
45
|
+
readonly pathRoutes: pulumi.Output<outputs.resources.AutogeneratedPathRouteInput[] | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Custom prefixes for autogenerated route domains.
|
|
48
|
+
*/
|
|
49
|
+
readonly prefixes: pulumi.Output<string[] | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* The Lagoon project name. Changing this forces replacement.
|
|
52
|
+
*/
|
|
53
|
+
readonly projectName: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Whether to use Let's Encrypt for autogenerated route TLS.
|
|
56
|
+
*/
|
|
57
|
+
readonly tlsAcme: pulumi.Output<boolean | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a EnvironmentAutogeneratedRouteConfig resource with the given unique name, arguments, and options.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resource.
|
|
62
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
63
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
64
|
+
*/
|
|
65
|
+
constructor(name: string, args: EnvironmentAutogeneratedRouteConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The set of arguments for constructing a EnvironmentAutogeneratedRouteConfig resource.
|
|
69
|
+
*/
|
|
70
|
+
export interface EnvironmentAutogeneratedRouteConfigArgs {
|
|
71
|
+
/**
|
|
72
|
+
* Whether to generate routes for pull request environments.
|
|
73
|
+
*/
|
|
74
|
+
allowPullRequests?: pulumi.Input<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to disable request verification on autogenerated routes.
|
|
77
|
+
*/
|
|
78
|
+
disableRequestVerification?: pulumi.Input<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether autogenerated routes are enabled for this environment.
|
|
81
|
+
*/
|
|
82
|
+
enabled?: pulumi.Input<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* The Lagoon environment name. Changing this forces replacement.
|
|
85
|
+
*/
|
|
86
|
+
environmentName: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* How to handle insecure (HTTP) traffic: Allow, Redirect, or None.
|
|
89
|
+
*/
|
|
90
|
+
insecure?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Path-based routing rules for autogenerated routes.
|
|
93
|
+
*/
|
|
94
|
+
pathRoutes?: pulumi.Input<pulumi.Input<inputs.resources.AutogeneratedPathRouteInputArgs>[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Custom prefixes for autogenerated route domains.
|
|
97
|
+
*/
|
|
98
|
+
prefixes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
99
|
+
/**
|
|
100
|
+
* The Lagoon project name. Changing this forces replacement.
|
|
101
|
+
*/
|
|
102
|
+
projectName: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Whether to use Let's Encrypt for autogenerated route TLS.
|
|
105
|
+
*/
|
|
106
|
+
tlsAcme?: pulumi.Input<boolean>;
|
|
107
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.EnvironmentAutogeneratedRouteConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages the autogenerated route configuration for a specific Lagoon environment, overriding the project-level config for that environment.
|
|
10
|
+
*/
|
|
11
|
+
class EnvironmentAutogeneratedRouteConfig extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing EnvironmentAutogeneratedRouteConfig 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 EnvironmentAutogeneratedRouteConfig(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of EnvironmentAutogeneratedRouteConfig. 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'] === EnvironmentAutogeneratedRouteConfig.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a EnvironmentAutogeneratedRouteConfig 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?.environmentName === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'environmentName'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.projectName === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'projectName'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["allowPullRequests"] = args?.allowPullRequests;
|
|
51
|
+
resourceInputs["disableRequestVerification"] = args?.disableRequestVerification;
|
|
52
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
53
|
+
resourceInputs["environmentName"] = args?.environmentName;
|
|
54
|
+
resourceInputs["insecure"] = args?.insecure;
|
|
55
|
+
resourceInputs["pathRoutes"] = args?.pathRoutes;
|
|
56
|
+
resourceInputs["prefixes"] = args?.prefixes;
|
|
57
|
+
resourceInputs["projectName"] = args?.projectName;
|
|
58
|
+
resourceInputs["tlsAcme"] = args?.tlsAcme;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
resourceInputs["allowPullRequests"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["disableRequestVerification"] = undefined /*out*/;
|
|
63
|
+
resourceInputs["enabled"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["environmentName"] = undefined /*out*/;
|
|
65
|
+
resourceInputs["insecure"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["pathRoutes"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["prefixes"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["projectName"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["tlsAcme"] = undefined /*out*/;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(EnvironmentAutogeneratedRouteConfig.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.EnvironmentAutogeneratedRouteConfig = EnvironmentAutogeneratedRouteConfig;
|
|
76
|
+
/** @internal */
|
|
77
|
+
EnvironmentAutogeneratedRouteConfig.__pulumiType = 'lagoon:lagoon:EnvironmentAutogeneratedRouteConfig';
|
|
78
|
+
//# sourceMappingURL=environmentAutogeneratedRouteConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environmentAutogeneratedRouteConfig.js","sourceRoot":"","sources":["../../lagoon/environmentAutogeneratedRouteConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,mCAAoC,SAAQ,MAAM,CAAC,cAAc;IAC1E;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,mCAAmC,CAAC,IAAI,EAAE,SAAgB,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChG,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,mCAAmC,CAAC,YAAY,CAAC;IACpF,CAAC;IAuCD;;;;;;OAMG;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G,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mCAAmC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxF,CAAC;;AAvGL,kFAwGC;AA3FG,gBAAgB;AACO,gDAAY,GAAG,mDAAmD,CAAC"}
|
package/bin/lagoon/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare const DeployTargetConfig: typeof import("./deployTargetConfig").D
|
|
|
7
7
|
export { EnvironmentArgs } from "./environment";
|
|
8
8
|
export type Environment = import("./environment").Environment;
|
|
9
9
|
export declare const Environment: typeof import("./environment").Environment;
|
|
10
|
+
export { EnvironmentAutogeneratedRouteConfigArgs } from "./environmentAutogeneratedRouteConfig";
|
|
11
|
+
export type EnvironmentAutogeneratedRouteConfig = import("./environmentAutogeneratedRouteConfig").EnvironmentAutogeneratedRouteConfig;
|
|
12
|
+
export declare const EnvironmentAutogeneratedRouteConfig: typeof import("./environmentAutogeneratedRouteConfig").EnvironmentAutogeneratedRouteConfig;
|
|
10
13
|
export { GroupArgs } from "./group";
|
|
11
14
|
export type Group = import("./group").Group;
|
|
12
15
|
export declare const Group: typeof import("./group").Group;
|
|
@@ -25,9 +28,15 @@ export declare const NotificationSlack: typeof import("./notificationSlack").Not
|
|
|
25
28
|
export { ProjectArgs } from "./project";
|
|
26
29
|
export type Project = import("./project").Project;
|
|
27
30
|
export declare const Project: typeof import("./project").Project;
|
|
31
|
+
export { ProjectAutogeneratedRouteConfigArgs } from "./projectAutogeneratedRouteConfig";
|
|
32
|
+
export type ProjectAutogeneratedRouteConfig = import("./projectAutogeneratedRouteConfig").ProjectAutogeneratedRouteConfig;
|
|
33
|
+
export declare const ProjectAutogeneratedRouteConfig: typeof import("./projectAutogeneratedRouteConfig").ProjectAutogeneratedRouteConfig;
|
|
28
34
|
export { ProjectNotificationArgs } from "./projectNotification";
|
|
29
35
|
export type ProjectNotification = import("./projectNotification").ProjectNotification;
|
|
30
36
|
export declare const ProjectNotification: typeof import("./projectNotification").ProjectNotification;
|
|
37
|
+
export { RouteArgs } from "./route";
|
|
38
|
+
export type Route = import("./route").Route;
|
|
39
|
+
export declare const Route: typeof import("./route").Route;
|
|
31
40
|
export { TaskArgs } from "./task";
|
|
32
41
|
export type Task = import("./task").Task;
|
|
33
42
|
export declare const Task: typeof import("./task").Task;
|
package/bin/lagoon/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
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;
|
|
5
|
+
exports.Variable = exports.Task = exports.Route = exports.ProjectNotification = exports.ProjectAutogeneratedRouteConfig = exports.Project = exports.NotificationSlack = exports.NotificationRocketChat = exports.NotificationMicrosoftTeams = exports.NotificationEmail = exports.Group = exports.EnvironmentAutogeneratedRouteConfig = exports.Environment = exports.DeployTargetConfig = exports.DeployTarget = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.DeployTarget = null;
|
|
@@ -11,6 +11,8 @@ exports.DeployTargetConfig = null;
|
|
|
11
11
|
utilities.lazyLoad(exports, ["DeployTargetConfig"], () => require("./deployTargetConfig"));
|
|
12
12
|
exports.Environment = null;
|
|
13
13
|
utilities.lazyLoad(exports, ["Environment"], () => require("./environment"));
|
|
14
|
+
exports.EnvironmentAutogeneratedRouteConfig = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["EnvironmentAutogeneratedRouteConfig"], () => require("./environmentAutogeneratedRouteConfig"));
|
|
14
16
|
exports.Group = null;
|
|
15
17
|
utilities.lazyLoad(exports, ["Group"], () => require("./group"));
|
|
16
18
|
exports.NotificationEmail = null;
|
|
@@ -23,8 +25,12 @@ exports.NotificationSlack = null;
|
|
|
23
25
|
utilities.lazyLoad(exports, ["NotificationSlack"], () => require("./notificationSlack"));
|
|
24
26
|
exports.Project = null;
|
|
25
27
|
utilities.lazyLoad(exports, ["Project"], () => require("./project"));
|
|
28
|
+
exports.ProjectAutogeneratedRouteConfig = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["ProjectAutogeneratedRouteConfig"], () => require("./projectAutogeneratedRouteConfig"));
|
|
26
30
|
exports.ProjectNotification = null;
|
|
27
31
|
utilities.lazyLoad(exports, ["ProjectNotification"], () => require("./projectNotification"));
|
|
32
|
+
exports.Route = null;
|
|
33
|
+
utilities.lazyLoad(exports, ["Route"], () => require("./route"));
|
|
28
34
|
exports.Task = null;
|
|
29
35
|
utilities.lazyLoad(exports, ["Task"], () => require("./task"));
|
|
30
36
|
exports.Variable = null;
|
|
@@ -39,6 +45,8 @@ const _module = {
|
|
|
39
45
|
return new exports.DeployTargetConfig(name, undefined, { urn });
|
|
40
46
|
case "lagoon:lagoon:Environment":
|
|
41
47
|
return new exports.Environment(name, undefined, { urn });
|
|
48
|
+
case "lagoon:lagoon:EnvironmentAutogeneratedRouteConfig":
|
|
49
|
+
return new exports.EnvironmentAutogeneratedRouteConfig(name, undefined, { urn });
|
|
42
50
|
case "lagoon:lagoon:Group":
|
|
43
51
|
return new exports.Group(name, undefined, { urn });
|
|
44
52
|
case "lagoon:lagoon:NotificationEmail":
|
|
@@ -51,8 +59,12 @@ const _module = {
|
|
|
51
59
|
return new exports.NotificationSlack(name, undefined, { urn });
|
|
52
60
|
case "lagoon:lagoon:Project":
|
|
53
61
|
return new exports.Project(name, undefined, { urn });
|
|
62
|
+
case "lagoon:lagoon:ProjectAutogeneratedRouteConfig":
|
|
63
|
+
return new exports.ProjectAutogeneratedRouteConfig(name, undefined, { urn });
|
|
54
64
|
case "lagoon:lagoon:ProjectNotification":
|
|
55
65
|
return new exports.ProjectNotification(name, undefined, { urn });
|
|
66
|
+
case "lagoon:lagoon:Route":
|
|
67
|
+
return new exports.Route(name, undefined, { urn });
|
|
56
68
|
case "lagoon:lagoon:Task":
|
|
57
69
|
return new exports.Task(name, undefined, { urn });
|
|
58
70
|
case "lagoon:lagoon:Variable":
|
package/bin/lagoon/index.js.map
CHANGED
|
@@ -1 +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,EA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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,99 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages the autogenerated route configuration for a Lagoon project. Once set via the API, overrides .lagoon.yml autogenerated route config entirely.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectAutogeneratedRouteConfig extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing ProjectAutogeneratedRouteConfig resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
15
|
+
*/
|
|
16
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ProjectAutogeneratedRouteConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of ProjectAutogeneratedRouteConfig. This is designed to work even
|
|
19
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
|
+
*/
|
|
21
|
+
static isInstance(obj: any): obj is ProjectAutogeneratedRouteConfig;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to generate routes for pull request environments.
|
|
24
|
+
*/
|
|
25
|
+
readonly allowPullRequests: pulumi.Output<boolean | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to disable request verification on autogenerated routes.
|
|
28
|
+
*/
|
|
29
|
+
readonly disableRequestVerification: pulumi.Output<boolean | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Whether autogenerated routes are enabled for this project.
|
|
32
|
+
*/
|
|
33
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* How to handle insecure (HTTP) traffic: Allow, Redirect, or None.
|
|
36
|
+
*/
|
|
37
|
+
readonly insecure: pulumi.Output<string | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* Path-based routing rules for autogenerated routes.
|
|
40
|
+
*/
|
|
41
|
+
readonly pathRoutes: pulumi.Output<outputs.resources.AutogeneratedPathRouteInput[] | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Custom prefixes for autogenerated route domains.
|
|
44
|
+
*/
|
|
45
|
+
readonly prefixes: pulumi.Output<string[] | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* The Lagoon project name. Changing this forces replacement.
|
|
48
|
+
*/
|
|
49
|
+
readonly projectName: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to use Let's Encrypt for autogenerated route TLS.
|
|
52
|
+
*/
|
|
53
|
+
readonly tlsAcme: pulumi.Output<boolean | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Create a ProjectAutogeneratedRouteConfig resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args: ProjectAutogeneratedRouteConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The set of arguments for constructing a ProjectAutogeneratedRouteConfig resource.
|
|
65
|
+
*/
|
|
66
|
+
export interface ProjectAutogeneratedRouteConfigArgs {
|
|
67
|
+
/**
|
|
68
|
+
* Whether to generate routes for pull request environments.
|
|
69
|
+
*/
|
|
70
|
+
allowPullRequests?: pulumi.Input<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Whether to disable request verification on autogenerated routes.
|
|
73
|
+
*/
|
|
74
|
+
disableRequestVerification?: pulumi.Input<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Whether autogenerated routes are enabled for this project.
|
|
77
|
+
*/
|
|
78
|
+
enabled?: pulumi.Input<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* How to handle insecure (HTTP) traffic: Allow, Redirect, or None.
|
|
81
|
+
*/
|
|
82
|
+
insecure?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Path-based routing rules for autogenerated routes.
|
|
85
|
+
*/
|
|
86
|
+
pathRoutes?: pulumi.Input<pulumi.Input<inputs.resources.AutogeneratedPathRouteInputArgs>[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Custom prefixes for autogenerated route domains.
|
|
89
|
+
*/
|
|
90
|
+
prefixes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
91
|
+
/**
|
|
92
|
+
* The Lagoon project name. Changing this forces replacement.
|
|
93
|
+
*/
|
|
94
|
+
projectName: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether to use Let's Encrypt for autogenerated route TLS.
|
|
97
|
+
*/
|
|
98
|
+
tlsAcme?: pulumi.Input<boolean>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.ProjectAutogeneratedRouteConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages the autogenerated route configuration for a Lagoon project. Once set via the API, overrides .lagoon.yml autogenerated route config entirely.
|
|
10
|
+
*/
|
|
11
|
+
class ProjectAutogeneratedRouteConfig extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing ProjectAutogeneratedRouteConfig 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 ProjectAutogeneratedRouteConfig(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of ProjectAutogeneratedRouteConfig. 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'] === ProjectAutogeneratedRouteConfig.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a ProjectAutogeneratedRouteConfig 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?.projectName === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'projectName'");
|
|
46
|
+
}
|
|
47
|
+
resourceInputs["allowPullRequests"] = args?.allowPullRequests;
|
|
48
|
+
resourceInputs["disableRequestVerification"] = args?.disableRequestVerification;
|
|
49
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
50
|
+
resourceInputs["insecure"] = args?.insecure;
|
|
51
|
+
resourceInputs["pathRoutes"] = args?.pathRoutes;
|
|
52
|
+
resourceInputs["prefixes"] = args?.prefixes;
|
|
53
|
+
resourceInputs["projectName"] = args?.projectName;
|
|
54
|
+
resourceInputs["tlsAcme"] = args?.tlsAcme;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
resourceInputs["allowPullRequests"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["disableRequestVerification"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["enabled"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["insecure"] = undefined /*out*/;
|
|
61
|
+
resourceInputs["pathRoutes"] = undefined /*out*/;
|
|
62
|
+
resourceInputs["prefixes"] = undefined /*out*/;
|
|
63
|
+
resourceInputs["projectName"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["tlsAcme"] = undefined /*out*/;
|
|
65
|
+
}
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(ProjectAutogeneratedRouteConfig.__pulumiType, name, resourceInputs, opts);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ProjectAutogeneratedRouteConfig = ProjectAutogeneratedRouteConfig;
|
|
71
|
+
/** @internal */
|
|
72
|
+
ProjectAutogeneratedRouteConfig.__pulumiType = 'lagoon:lagoon:ProjectAutogeneratedRouteConfig';
|
|
73
|
+
//# sourceMappingURL=projectAutogeneratedRouteConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectAutogeneratedRouteConfig.js","sourceRoot":"","sources":["../../lagoon/projectAutogeneratedRouteConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,y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aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;aAAM;YACH,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACxD,cAAc,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;;AA9FL,0EA+FC;AAlFG,gBAAgB;AACO,4CAAY,GAAG,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages a Lagoon API-defined route on a project (requires Lagoon v2.29.0+).
|
|
6
|
+
*/
|
|
7
|
+
export declare class Route extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing Route resource's state with the given name, ID, and optional extra
|
|
10
|
+
* properties used to qualify the lookup.
|
|
11
|
+
*
|
|
12
|
+
* @param name The _unique_ name of the resulting resource.
|
|
13
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
14
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
15
|
+
*/
|
|
16
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Route;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given object is an instance of Route. This is designed to work even
|
|
19
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
20
|
+
*/
|
|
21
|
+
static isInstance(obj: any): obj is Route;
|
|
22
|
+
/**
|
|
23
|
+
* Additional SAN domains for the TLS certificate (max 25).
|
|
24
|
+
*/
|
|
25
|
+
readonly alternativeNames: pulumi.Output<string[] | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Ingress annotations (key/value pairs, max 10).
|
|
28
|
+
*/
|
|
29
|
+
readonly annotations: pulumi.Output<outputs.resources.RouteAnnotationInput[] | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Timestamp when the route was created.
|
|
32
|
+
*/
|
|
33
|
+
readonly created: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to disable request verification.
|
|
36
|
+
*/
|
|
37
|
+
readonly disableRequestVerification: pulumi.Output<boolean | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* The primary domain for the route (e.g., 'example.com'). Changing this forces replacement.
|
|
40
|
+
*/
|
|
41
|
+
readonly domain: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The environment to attach this route to.
|
|
44
|
+
*/
|
|
45
|
+
readonly environment: pulumi.Output<string | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to enable HTTP Strict Transport Security.
|
|
48
|
+
*/
|
|
49
|
+
readonly hstsEnabled: pulumi.Output<boolean | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to include subdomains in HSTS.
|
|
52
|
+
*/
|
|
53
|
+
readonly hstsIncludeSubdomains: pulumi.Output<boolean | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* HSTS max-age in seconds.
|
|
56
|
+
*/
|
|
57
|
+
readonly hstsMaxAge: pulumi.Output<number | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to include the preload directive in HSTS.
|
|
60
|
+
*/
|
|
61
|
+
readonly hstsPreload: pulumi.Output<boolean | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* How to handle insecure (HTTP) traffic: Allow, Redirect, or None. Defaults to Redirect.
|
|
64
|
+
*/
|
|
65
|
+
readonly insecure: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* The Lagoon-assigned numeric route ID.
|
|
68
|
+
*/
|
|
69
|
+
readonly lagoonId: pulumi.Output<number>;
|
|
70
|
+
/**
|
|
71
|
+
* Path to use for uptime monitoring.
|
|
72
|
+
*/
|
|
73
|
+
readonly monitoringPath: pulumi.Output<string | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Path-based routing rules (max 10).
|
|
76
|
+
*/
|
|
77
|
+
readonly pathRoutes: pulumi.Output<outputs.resources.RoutePathRouteInput[] | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Whether this is the primary route.
|
|
80
|
+
*/
|
|
81
|
+
readonly primary: pulumi.Output<boolean | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* The Lagoon project name this route belongs to.
|
|
84
|
+
*/
|
|
85
|
+
readonly projectName: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Route type for active/standby: STANDARD, ACTIVE, or STANDBY.
|
|
88
|
+
*/
|
|
89
|
+
readonly routeType: pulumi.Output<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* The service to route traffic to (e.g., 'nginx').
|
|
92
|
+
*/
|
|
93
|
+
readonly service: pulumi.Output<string | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* The source of this route: API, YAML, or AUTOGENERATED.
|
|
96
|
+
*/
|
|
97
|
+
readonly source: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Whether to use Let's Encrypt for TLS. Defaults to true.
|
|
100
|
+
*/
|
|
101
|
+
readonly tlsAcme: pulumi.Output<boolean | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Timestamp when the route was last updated.
|
|
104
|
+
*/
|
|
105
|
+
readonly updated: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Create a Route resource with the given unique name, arguments, and options.
|
|
108
|
+
*
|
|
109
|
+
* @param name The _unique_ name of the resource.
|
|
110
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
111
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
112
|
+
*/
|
|
113
|
+
constructor(name: string, args: RouteArgs, opts?: pulumi.CustomResourceOptions);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The set of arguments for constructing a Route resource.
|
|
117
|
+
*/
|
|
118
|
+
export interface RouteArgs {
|
|
119
|
+
/**
|
|
120
|
+
* Additional SAN domains for the TLS certificate (max 25).
|
|
121
|
+
*/
|
|
122
|
+
alternativeNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Ingress annotations (key/value pairs, max 10).
|
|
125
|
+
*/
|
|
126
|
+
annotations?: pulumi.Input<pulumi.Input<inputs.resources.RouteAnnotationInputArgs>[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Whether to disable request verification.
|
|
129
|
+
*/
|
|
130
|
+
disableRequestVerification?: pulumi.Input<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* The primary domain for the route (e.g., 'example.com'). Changing this forces replacement.
|
|
133
|
+
*/
|
|
134
|
+
domain: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The environment to attach this route to.
|
|
137
|
+
*/
|
|
138
|
+
environment?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Whether to enable HTTP Strict Transport Security.
|
|
141
|
+
*/
|
|
142
|
+
hstsEnabled?: pulumi.Input<boolean>;
|
|
143
|
+
/**
|
|
144
|
+
* Whether to include subdomains in HSTS.
|
|
145
|
+
*/
|
|
146
|
+
hstsIncludeSubdomains?: pulumi.Input<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* HSTS max-age in seconds.
|
|
149
|
+
*/
|
|
150
|
+
hstsMaxAge?: pulumi.Input<number>;
|
|
151
|
+
/**
|
|
152
|
+
* Whether to include the preload directive in HSTS.
|
|
153
|
+
*/
|
|
154
|
+
hstsPreload?: pulumi.Input<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* How to handle insecure (HTTP) traffic: Allow, Redirect, or None. Defaults to Redirect.
|
|
157
|
+
*/
|
|
158
|
+
insecure?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Path to use for uptime monitoring.
|
|
161
|
+
*/
|
|
162
|
+
monitoringPath?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Path-based routing rules (max 10).
|
|
165
|
+
*/
|
|
166
|
+
pathRoutes?: pulumi.Input<pulumi.Input<inputs.resources.RoutePathRouteInputArgs>[]>;
|
|
167
|
+
/**
|
|
168
|
+
* Whether this is the primary route.
|
|
169
|
+
*/
|
|
170
|
+
primary?: pulumi.Input<boolean>;
|
|
171
|
+
/**
|
|
172
|
+
* The Lagoon project name this route belongs to.
|
|
173
|
+
*/
|
|
174
|
+
projectName: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Route type for active/standby: STANDARD, ACTIVE, or STANDBY.
|
|
177
|
+
*/
|
|
178
|
+
routeType?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* The service to route traffic to (e.g., 'nginx').
|
|
181
|
+
*/
|
|
182
|
+
service?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* Whether to use Let's Encrypt for TLS. Defaults to true.
|
|
185
|
+
*/
|
|
186
|
+
tlsAcme?: pulumi.Input<boolean>;
|
|
187
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.Route = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Lagoon API-defined route on a project (requires Lagoon v2.29.0+).
|
|
10
|
+
*/
|
|
11
|
+
class Route extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing Route 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 Route(name, undefined, { ...opts, id: id });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Route. 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'] === Route.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a Route 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?.domain === undefined && !opts.urn) {
|
|
45
|
+
throw new Error("Missing required property 'domain'");
|
|
46
|
+
}
|
|
47
|
+
if (args?.projectName === undefined && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'projectName'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["alternativeNames"] = args?.alternativeNames;
|
|
51
|
+
resourceInputs["annotations"] = args?.annotations;
|
|
52
|
+
resourceInputs["disableRequestVerification"] = args?.disableRequestVerification;
|
|
53
|
+
resourceInputs["domain"] = args?.domain;
|
|
54
|
+
resourceInputs["environment"] = args?.environment;
|
|
55
|
+
resourceInputs["hstsEnabled"] = args?.hstsEnabled;
|
|
56
|
+
resourceInputs["hstsIncludeSubdomains"] = args?.hstsIncludeSubdomains;
|
|
57
|
+
resourceInputs["hstsMaxAge"] = args?.hstsMaxAge;
|
|
58
|
+
resourceInputs["hstsPreload"] = args?.hstsPreload;
|
|
59
|
+
resourceInputs["insecure"] = args?.insecure;
|
|
60
|
+
resourceInputs["monitoringPath"] = args?.monitoringPath;
|
|
61
|
+
resourceInputs["pathRoutes"] = args?.pathRoutes;
|
|
62
|
+
resourceInputs["primary"] = args?.primary;
|
|
63
|
+
resourceInputs["projectName"] = args?.projectName;
|
|
64
|
+
resourceInputs["routeType"] = args?.routeType;
|
|
65
|
+
resourceInputs["service"] = args?.service;
|
|
66
|
+
resourceInputs["tlsAcme"] = args?.tlsAcme;
|
|
67
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["source"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["updated"] = undefined /*out*/;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
resourceInputs["alternativeNames"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["annotations"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["created"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["disableRequestVerification"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["domain"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["environment"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["hstsEnabled"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["hstsIncludeSubdomains"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["hstsMaxAge"] = undefined /*out*/;
|
|
82
|
+
resourceInputs["hstsPreload"] = undefined /*out*/;
|
|
83
|
+
resourceInputs["insecure"] = undefined /*out*/;
|
|
84
|
+
resourceInputs["lagoonId"] = undefined /*out*/;
|
|
85
|
+
resourceInputs["monitoringPath"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["pathRoutes"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["primary"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["projectName"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["routeType"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["service"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["source"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["tlsAcme"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["updated"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(Route.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.Route = Route;
|
|
100
|
+
/** @internal */
|
|
101
|
+
Route.__pulumiType = 'lagoon:lagoon:Route';
|
|
102
|
+
//# sourceMappingURL=route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../lagoon/route.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAA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5 +1,18 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
export declare namespace resources {
|
|
3
|
+
interface AutogeneratedPathRouteInputArgs {
|
|
4
|
+
fromService: pulumi.Input<string>;
|
|
5
|
+
path: pulumi.Input<string>;
|
|
6
|
+
toService: pulumi.Input<string>;
|
|
7
|
+
}
|
|
8
|
+
interface RouteAnnotationInputArgs {
|
|
9
|
+
key: pulumi.Input<string>;
|
|
10
|
+
value: pulumi.Input<string>;
|
|
11
|
+
}
|
|
12
|
+
interface RoutePathRouteInputArgs {
|
|
13
|
+
path: pulumi.Input<string>;
|
|
14
|
+
toService: pulumi.Input<string>;
|
|
15
|
+
}
|
|
3
16
|
interface TaskArgumentInputArgs {
|
|
4
17
|
displayName: pulumi.Input<string>;
|
|
5
18
|
name: pulumi.Input<string>;
|
package/bin/types/output.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
export declare namespace resources {
|
|
2
|
+
interface AutogeneratedPathRouteInput {
|
|
3
|
+
fromService: string;
|
|
4
|
+
path: string;
|
|
5
|
+
toService: string;
|
|
6
|
+
}
|
|
7
|
+
interface RouteAnnotationInput {
|
|
8
|
+
key: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
interface RoutePathRouteInput {
|
|
12
|
+
path: string;
|
|
13
|
+
toService: string;
|
|
14
|
+
}
|
|
2
15
|
interface TaskArgumentInput {
|
|
3
16
|
displayName: string;
|
|
4
17
|
name: string;
|
package/bin/utilities.js
CHANGED
|
@@ -52,7 +52,7 @@ function getVersion() {
|
|
|
52
52
|
exports.getVersion = getVersion;
|
|
53
53
|
/** @internal */
|
|
54
54
|
function resourceOptsDefaults() {
|
|
55
|
-
return { version: getVersion(), pluginDownloadURL: "
|
|
55
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/tag1consulting/pulumi-lagoon-provider" };
|
|
56
56
|
}
|
|
57
57
|
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
58
58
|
/** @internal */
|
package/bin/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC1E,OAAO,IAAI,CAAC;SACf;QACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,SAAS,EAAE;YAC7E,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAbD,sCAaC;AAED,SAAgB,YAAY,CAAC,GAAG,IAAc;IAC1C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE;QACjB,MAAM,CAAC,GAAG,UAAU,CAAC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27
|
"pulumi": {
|
|
28
28
|
"resource": true,
|
|
29
29
|
"name": "lagoon",
|
|
30
|
-
"version": "0.2.
|
|
31
|
-
"server": "
|
|
30
|
+
"version": "0.2.9",
|
|
31
|
+
"server": "github://api.github.com/tag1consulting/pulumi-lagoon-provider"
|
|
32
32
|
}
|
|
33
33
|
}
|