@ryan-pip/pulumi_astronomer 0.2.8 → 1.2.3-alpha.4
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/agentToken.d.ts +96 -0
- package/agentToken.d.ts.map +1 -0
- package/agentToken.js +88 -0
- package/agentToken.js.map +1 -0
- package/alert.d.ts +190 -0
- package/alert.d.ts.map +1 -0
- package/alert.js +121 -0
- package/alert.js.map +1 -0
- package/apiToken.d.ts +7 -0
- package/apiToken.d.ts.map +1 -0
- package/apiToken.js +50 -27
- package/apiToken.js.map +1 -1
- package/cluster.d.ts +76 -50
- package/cluster.d.ts.map +1 -0
- package/cluster.js +76 -88
- package/cluster.js.map +1 -1
- package/config/index.d.ts +1 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +1 -0
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +28 -6
- package/config/vars.js.map +1 -1
- package/customRole.d.ts +162 -0
- package/customRole.d.ts.map +1 -0
- package/customRole.js +125 -0
- package/customRole.js.map +1 -0
- package/deployment.d.ts +50 -16
- package/deployment.d.ts.map +1 -0
- package/deployment.js +114 -87
- package/deployment.js.map +1 -1
- package/getAlert.d.ts +118 -0
- package/getAlert.d.ts.map +1 -0
- package/getAlert.js +75 -0
- package/getAlert.js.map +1 -0
- package/getAlerts.d.ts +102 -0
- package/getAlerts.d.ts.map +1 -0
- package/getAlerts.js +117 -0
- package/getAlerts.js.map +1 -0
- package/getApiToken.d.ts +3 -2
- package/getApiToken.d.ts.map +1 -0
- package/getApiToken.js +28 -5
- package/getApiToken.js.map +1 -1
- package/getApiTokens.d.ts +3 -2
- package/getApiTokens.d.ts.map +1 -0
- package/getApiTokens.js +28 -5
- package/getApiTokens.js.map +1 -1
- package/getCluster.d.ts +28 -3
- package/getCluster.d.ts.map +1 -0
- package/getCluster.js +28 -5
- package/getCluster.js.map +1 -1
- package/getClusterOptions.d.ts +12 -2
- package/getClusterOptions.d.ts.map +1 -0
- package/getClusterOptions.js +28 -5
- package/getClusterOptions.js.map +1 -1
- package/getClusters.d.ts +12 -2
- package/getClusters.d.ts.map +1 -0
- package/getClusters.js +28 -5
- package/getClusters.js.map +1 -1
- package/getCustomRole.d.ts +98 -0
- package/getCustomRole.d.ts.map +1 -0
- package/getCustomRole.js +75 -0
- package/getCustomRole.js.map +1 -0
- package/getDeployment.d.ts +10 -5
- package/getDeployment.d.ts.map +1 -0
- package/getDeployment.js +28 -5
- package/getDeployment.js.map +1 -1
- package/getDeploymentOptions.d.ts +6 -5
- package/getDeploymentOptions.d.ts.map +1 -0
- package/getDeploymentOptions.js +28 -5
- package/getDeploymentOptions.js.map +1 -1
- package/getDeployments.d.ts +3 -2
- package/getDeployments.d.ts.map +1 -0
- package/getDeployments.js +28 -5
- package/getDeployments.js.map +1 -1
- package/getNotificationChannel.d.ts +114 -0
- package/getNotificationChannel.d.ts.map +1 -0
- package/getNotificationChannel.js +75 -0
- package/getNotificationChannel.js.map +1 -0
- package/getNotificationChannels.d.ts +50 -0
- package/getNotificationChannels.d.ts.map +1 -0
- package/getNotificationChannels.js +65 -0
- package/getNotificationChannels.js.map +1 -0
- package/getOrganization.d.ts +3 -2
- package/getOrganization.d.ts.map +1 -0
- package/getOrganization.js +28 -5
- package/getOrganization.js.map +1 -1
- package/getTeam.d.ts +11 -2
- package/getTeam.d.ts.map +1 -0
- package/getTeam.js +28 -5
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +27 -18
- package/getTeams.d.ts.map +1 -0
- package/getTeams.js +52 -21
- package/getTeams.js.map +1 -1
- package/getUser.d.ts +7 -2
- package/getUser.d.ts.map +1 -0
- package/getUser.js +28 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +27 -18
- package/getUsers.d.ts.map +1 -0
- package/getUsers.js +52 -21
- package/getUsers.js.map +1 -1
- package/getWorkspace.d.ts +3 -2
- package/getWorkspace.d.ts.map +1 -0
- package/getWorkspace.js +28 -5
- package/getWorkspace.js.map +1 -1
- package/getWorkspaces.d.ts +39 -30
- package/getWorkspaces.d.ts.map +1 -0
- package/getWorkspaces.js +64 -33
- package/getWorkspaces.js.map +1 -1
- package/hybridClusterWorkspaceAuthorization.d.ts +1 -19
- package/hybridClusterWorkspaceAuthorization.d.ts.map +1 -0
- package/hybridClusterWorkspaceAuthorization.js +34 -30
- package/hybridClusterWorkspaceAuthorization.js.map +1 -1
- package/index.d.ts +32 -3
- package/index.d.ts.map +1 -0
- package/index.js +76 -9
- package/index.js.map +1 -1
- package/notificationChannel.d.ts +170 -0
- package/notificationChannel.d.ts.map +1 -0
- package/notificationChannel.js +111 -0
- package/notificationChannel.js.map +1 -0
- package/package.json +4 -3
- package/provider.d.ts +18 -3
- package/provider.d.ts.map +1 -0
- package/provider.js +39 -12
- package/provider.js.map +1 -1
- package/team.d.ts +20 -7
- package/team.d.ts.map +1 -0
- package/team.js +51 -26
- package/team.js.map +1 -1
- package/teamMembership.d.ts +66 -0
- package/teamMembership.d.ts.map +1 -0
- package/teamMembership.js +85 -0
- package/teamMembership.js.map +1 -0
- package/teamRoles.d.ts +20 -7
- package/teamRoles.d.ts.map +1 -0
- package/teamRoles.js +42 -17
- package/teamRoles.js.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +26 -3
- package/types/index.js.map +1 -1
- package/types/input.d.ts +316 -3
- package/types/input.d.ts.map +1 -0
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +944 -11
- package/types/output.d.ts.map +1 -0
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/userInvite.d.ts +2 -1
- package/userInvite.d.ts.map +1 -0
- package/userInvite.js +41 -18
- package/userInvite.js.map +1 -1
- package/userRoles.d.ts +20 -7
- package/userRoles.d.ts.map +1 -0
- package/userRoles.js +42 -17
- package/userRoles.js.map +1 -1
- package/utilities.d.ts +1 -4
- package/utilities.d.ts.map +1 -0
- package/utilities.js +43 -30
- package/utilities.js.map +1 -1
- package/workspace.d.ts +1 -16
- package/workspace.d.ts.map +1 -0
- package/workspace.js +41 -34
- package/workspace.js.map +1 -1
- package/package.json.bak +0 -29
package/apiToken.js
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.ApiToken = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
9
32
|
* API Token resource
|
|
10
33
|
*/
|
|
@@ -19,8 +42,10 @@ class ApiToken extends pulumi.CustomResource {
|
|
|
19
42
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
43
|
*/
|
|
21
44
|
static get(name, id, state, opts) {
|
|
22
|
-
return new ApiToken(name, state,
|
|
45
|
+
return new ApiToken(name, state, { ...opts, id: id });
|
|
23
46
|
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
static __pulumiType = 'astronomer:index/apiToken:ApiToken';
|
|
24
49
|
/**
|
|
25
50
|
* Returns true if the given object is an instance of ApiToken. This is designed to work even
|
|
26
51
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -36,34 +61,34 @@ class ApiToken extends pulumi.CustomResource {
|
|
|
36
61
|
opts = opts || {};
|
|
37
62
|
if (opts.id) {
|
|
38
63
|
const state = argsOrState;
|
|
39
|
-
resourceInputs["createdAt"] = state
|
|
40
|
-
resourceInputs["createdBy"] = state
|
|
41
|
-
resourceInputs["description"] = state
|
|
42
|
-
resourceInputs["endAt"] = state
|
|
43
|
-
resourceInputs["expiryPeriodInDays"] = state
|
|
44
|
-
resourceInputs["lastUsedAt"] = state
|
|
45
|
-
resourceInputs["name"] = state
|
|
46
|
-
resourceInputs["roles"] = state
|
|
47
|
-
resourceInputs["shortToken"] = state
|
|
48
|
-
resourceInputs["startAt"] = state
|
|
49
|
-
resourceInputs["token"] = state
|
|
50
|
-
resourceInputs["type"] = state
|
|
51
|
-
resourceInputs["updatedAt"] = state
|
|
52
|
-
resourceInputs["updatedBy"] = state
|
|
64
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
65
|
+
resourceInputs["createdBy"] = state?.createdBy;
|
|
66
|
+
resourceInputs["description"] = state?.description;
|
|
67
|
+
resourceInputs["endAt"] = state?.endAt;
|
|
68
|
+
resourceInputs["expiryPeriodInDays"] = state?.expiryPeriodInDays;
|
|
69
|
+
resourceInputs["lastUsedAt"] = state?.lastUsedAt;
|
|
70
|
+
resourceInputs["name"] = state?.name;
|
|
71
|
+
resourceInputs["roles"] = state?.roles;
|
|
72
|
+
resourceInputs["shortToken"] = state?.shortToken;
|
|
73
|
+
resourceInputs["startAt"] = state?.startAt;
|
|
74
|
+
resourceInputs["token"] = state?.token;
|
|
75
|
+
resourceInputs["type"] = state?.type;
|
|
76
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
77
|
+
resourceInputs["updatedBy"] = state?.updatedBy;
|
|
53
78
|
}
|
|
54
79
|
else {
|
|
55
80
|
const args = argsOrState;
|
|
56
|
-
if (
|
|
81
|
+
if (args?.roles === undefined && !opts.urn) {
|
|
57
82
|
throw new Error("Missing required property 'roles'");
|
|
58
83
|
}
|
|
59
|
-
if (
|
|
84
|
+
if (args?.type === undefined && !opts.urn) {
|
|
60
85
|
throw new Error("Missing required property 'type'");
|
|
61
86
|
}
|
|
62
|
-
resourceInputs["description"] = args
|
|
63
|
-
resourceInputs["expiryPeriodInDays"] = args
|
|
64
|
-
resourceInputs["name"] = args
|
|
65
|
-
resourceInputs["roles"] = args
|
|
66
|
-
resourceInputs["type"] = args
|
|
87
|
+
resourceInputs["description"] = args?.description;
|
|
88
|
+
resourceInputs["expiryPeriodInDays"] = args?.expiryPeriodInDays;
|
|
89
|
+
resourceInputs["name"] = args?.name;
|
|
90
|
+
resourceInputs["roles"] = args?.roles;
|
|
91
|
+
resourceInputs["type"] = args?.type;
|
|
67
92
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
68
93
|
resourceInputs["createdBy"] = undefined /*out*/;
|
|
69
94
|
resourceInputs["endAt"] = undefined /*out*/;
|
|
@@ -81,6 +106,4 @@ class ApiToken extends pulumi.CustomResource {
|
|
|
81
106
|
}
|
|
82
107
|
}
|
|
83
108
|
exports.ApiToken = ApiToken;
|
|
84
|
-
/** @internal */
|
|
85
|
-
ApiToken.__pulumiType = 'astronomer:index/apiToken:ApiToken';
|
|
86
109
|
//# sourceMappingURL=apiToken.js.map
|
package/apiToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiToken.js","sourceRoot":"","sources":["../apiToken.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"apiToken.js","sourceRoot":"","sources":["../apiToken.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oCAAoC,CAAC;IAE3E;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAmED,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,WAA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AM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA3IL,4BA4IC"}
|
package/cluster.d.ts
CHANGED
|
@@ -3,53 +3,6 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* Cluster resource. If creating multiple clusters, add a delay between each cluster creation to avoid cluster creation limiting errors.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
12
|
-
*
|
|
13
|
-
* const awsExample = new astronomer.Cluster("awsExample", {
|
|
14
|
-
* type: "DEDICATED",
|
|
15
|
-
* region: "us-east-1",
|
|
16
|
-
* cloudProvider: "AWS",
|
|
17
|
-
* vpcSubnetRange: "172.20.0.0/20",
|
|
18
|
-
* workspaceIds: [],
|
|
19
|
-
* timeouts: {
|
|
20
|
-
* create: "3h",
|
|
21
|
-
* update: "2h",
|
|
22
|
-
* "delete": "1h",
|
|
23
|
-
* },
|
|
24
|
-
* });
|
|
25
|
-
* const azureExample = new astronomer.Cluster("azureExample", {
|
|
26
|
-
* type: "DEDICATED",
|
|
27
|
-
* region: "westus2",
|
|
28
|
-
* cloudProvider: "AZURE",
|
|
29
|
-
* vpcSubnetRange: "172.20.0.0/19",
|
|
30
|
-
* workspaceIds: ["clv4wcf6f003u01m3zp7gsvzg"],
|
|
31
|
-
* });
|
|
32
|
-
* const gcpExample = new astronomer.Cluster("gcpExample", {
|
|
33
|
-
* type: "DEDICATED",
|
|
34
|
-
* region: "us-central1",
|
|
35
|
-
* cloudProvider: "GCP",
|
|
36
|
-
* podSubnetRange: "172.21.0.0/19",
|
|
37
|
-
* servicePeeringRange: "172.23.0.0/20",
|
|
38
|
-
* serviceSubnetRange: "172.22.0.0/22",
|
|
39
|
-
* vpcSubnetRange: "172.20.0.0/22",
|
|
40
|
-
* workspaceIds: [],
|
|
41
|
-
* });
|
|
42
|
-
* const importedCluster = new astronomer.Cluster("importedCluster", {
|
|
43
|
-
* type: "DEDICATED",
|
|
44
|
-
* region: "us-central1",
|
|
45
|
-
* cloudProvider: "GCP",
|
|
46
|
-
* podSubnetRange: "172.21.0.0/19",
|
|
47
|
-
* servicePeeringRange: "172.23.0.0/20",
|
|
48
|
-
* serviceSubnetRange: "172.22.0.0/22",
|
|
49
|
-
* vpcSubnetRange: "172.20.0.0/22",
|
|
50
|
-
* workspaceIds: [],
|
|
51
|
-
* });
|
|
52
|
-
* ```
|
|
53
6
|
*/
|
|
54
7
|
export declare class Cluster extends pulumi.CustomResource {
|
|
55
8
|
/**
|
|
@@ -68,7 +21,7 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
68
21
|
*/
|
|
69
22
|
static isInstance(obj: any): obj is Cluster;
|
|
70
23
|
/**
|
|
71
|
-
* Cluster cloud provider - if changed, the cluster will be recreated.
|
|
24
|
+
* Cluster cloud provider - if changed, the cluster will be recreated. Allowed values: `AWS`, `GCP`, `AZURE`.
|
|
72
25
|
*/
|
|
73
26
|
readonly cloudProvider: pulumi.Output<string>;
|
|
74
27
|
/**
|
|
@@ -79,10 +32,34 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
79
32
|
* Cluster database instance type
|
|
80
33
|
*/
|
|
81
34
|
readonly dbInstanceType: pulumi.Output<string>;
|
|
35
|
+
/**
|
|
36
|
+
* The secondary region for Disaster Recovery. Required when `isDrEnabled` is true. Cannot be changed once set.
|
|
37
|
+
*/
|
|
38
|
+
readonly drRegion: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Secondary CIDR for pod networking in the DR region (AWS only). Cannot be changed once set.
|
|
41
|
+
*/
|
|
42
|
+
readonly drSecondaryVpcCidr: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The VPC subnet range for the Disaster Recovery region. Only valid when `isDrEnabled` is true. Cannot be changed once set.
|
|
45
|
+
*/
|
|
46
|
+
readonly drVpcSubnetRange: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to enable S3 Replication Time Control for Disaster Recovery. Only valid when `isDrEnabled` is true (AWS only).
|
|
49
|
+
*/
|
|
50
|
+
readonly enableReplicationTimeControl: pulumi.Output<boolean>;
|
|
82
51
|
/**
|
|
83
52
|
* Cluster health status
|
|
84
53
|
*/
|
|
85
54
|
readonly healthStatus: pulumi.Output<outputs.ClusterHealthStatus>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether Disaster Recovery is enabled on the cluster. Only supported for AWS clusters. Can only be enabled at cluster creation time. Can be set to `false` to disable DR on an existing cluster.
|
|
57
|
+
*/
|
|
58
|
+
readonly isDrEnabled: pulumi.Output<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the cluster is currently failed over to the DR region. Set to `true` to trigger failover; set to `false` to fail back.
|
|
61
|
+
*/
|
|
62
|
+
readonly isFailedOver: pulumi.Output<boolean>;
|
|
86
63
|
/**
|
|
87
64
|
* Whether the cluster is limited
|
|
88
65
|
*/
|
|
@@ -158,7 +135,7 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
158
135
|
*/
|
|
159
136
|
export interface ClusterState {
|
|
160
137
|
/**
|
|
161
|
-
* Cluster cloud provider - if changed, the cluster will be recreated.
|
|
138
|
+
* Cluster cloud provider - if changed, the cluster will be recreated. Allowed values: `AWS`, `GCP`, `AZURE`.
|
|
162
139
|
*/
|
|
163
140
|
cloudProvider?: pulumi.Input<string>;
|
|
164
141
|
/**
|
|
@@ -169,10 +146,34 @@ export interface ClusterState {
|
|
|
169
146
|
* Cluster database instance type
|
|
170
147
|
*/
|
|
171
148
|
dbInstanceType?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The secondary region for Disaster Recovery. Required when `isDrEnabled` is true. Cannot be changed once set.
|
|
151
|
+
*/
|
|
152
|
+
drRegion?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Secondary CIDR for pod networking in the DR region (AWS only). Cannot be changed once set.
|
|
155
|
+
*/
|
|
156
|
+
drSecondaryVpcCidr?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The VPC subnet range for the Disaster Recovery region. Only valid when `isDrEnabled` is true. Cannot be changed once set.
|
|
159
|
+
*/
|
|
160
|
+
drVpcSubnetRange?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Whether to enable S3 Replication Time Control for Disaster Recovery. Only valid when `isDrEnabled` is true (AWS only).
|
|
163
|
+
*/
|
|
164
|
+
enableReplicationTimeControl?: pulumi.Input<boolean>;
|
|
172
165
|
/**
|
|
173
166
|
* Cluster health status
|
|
174
167
|
*/
|
|
175
168
|
healthStatus?: pulumi.Input<inputs.ClusterHealthStatus>;
|
|
169
|
+
/**
|
|
170
|
+
* Whether Disaster Recovery is enabled on the cluster. Only supported for AWS clusters. Can only be enabled at cluster creation time. Can be set to `false` to disable DR on an existing cluster.
|
|
171
|
+
*/
|
|
172
|
+
isDrEnabled?: pulumi.Input<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the cluster is currently failed over to the DR region. Set to `true` to trigger failover; set to `false` to fail back.
|
|
175
|
+
*/
|
|
176
|
+
isFailedOver?: pulumi.Input<boolean>;
|
|
176
177
|
/**
|
|
177
178
|
* Whether the cluster is limited
|
|
178
179
|
*/
|
|
@@ -240,9 +241,33 @@ export interface ClusterState {
|
|
|
240
241
|
*/
|
|
241
242
|
export interface ClusterArgs {
|
|
242
243
|
/**
|
|
243
|
-
* Cluster cloud provider - if changed, the cluster will be recreated.
|
|
244
|
+
* Cluster cloud provider - if changed, the cluster will be recreated. Allowed values: `AWS`, `GCP`, `AZURE`.
|
|
244
245
|
*/
|
|
245
246
|
cloudProvider: pulumi.Input<string>;
|
|
247
|
+
/**
|
|
248
|
+
* The secondary region for Disaster Recovery. Required when `isDrEnabled` is true. Cannot be changed once set.
|
|
249
|
+
*/
|
|
250
|
+
drRegion?: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Secondary CIDR for pod networking in the DR region (AWS only). Cannot be changed once set.
|
|
253
|
+
*/
|
|
254
|
+
drSecondaryVpcCidr?: pulumi.Input<string>;
|
|
255
|
+
/**
|
|
256
|
+
* The VPC subnet range for the Disaster Recovery region. Only valid when `isDrEnabled` is true. Cannot be changed once set.
|
|
257
|
+
*/
|
|
258
|
+
drVpcSubnetRange?: pulumi.Input<string>;
|
|
259
|
+
/**
|
|
260
|
+
* Whether to enable S3 Replication Time Control for Disaster Recovery. Only valid when `isDrEnabled` is true (AWS only).
|
|
261
|
+
*/
|
|
262
|
+
enableReplicationTimeControl?: pulumi.Input<boolean>;
|
|
263
|
+
/**
|
|
264
|
+
* Whether Disaster Recovery is enabled on the cluster. Only supported for AWS clusters. Can only be enabled at cluster creation time. Can be set to `false` to disable DR on an existing cluster.
|
|
265
|
+
*/
|
|
266
|
+
isDrEnabled?: pulumi.Input<boolean>;
|
|
267
|
+
/**
|
|
268
|
+
* Whether the cluster is currently failed over to the DR region. Set to `true` to trigger failover; set to `false` to fail back.
|
|
269
|
+
*/
|
|
270
|
+
isFailedOver?: pulumi.Input<boolean>;
|
|
246
271
|
/**
|
|
247
272
|
* Cluster name
|
|
248
273
|
*/
|
|
@@ -277,3 +302,4 @@ export interface ClusterArgs {
|
|
|
277
302
|
*/
|
|
278
303
|
workspaceIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
279
304
|
}
|
|
305
|
+
//# sourceMappingURL=cluster.d.ts.map
|
package/cluster.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../cluster.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;GAEG;AACH,qBAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAA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AAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAChD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CACtD"}
|
package/cluster.js
CHANGED
|
@@ -1,59 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.Cluster = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
9
32
|
* Cluster resource. If creating multiple clusters, add a delay between each cluster creation to avoid cluster creation limiting errors.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
16
|
-
*
|
|
17
|
-
* const awsExample = new astronomer.Cluster("awsExample", {
|
|
18
|
-
* type: "DEDICATED",
|
|
19
|
-
* region: "us-east-1",
|
|
20
|
-
* cloudProvider: "AWS",
|
|
21
|
-
* vpcSubnetRange: "172.20.0.0/20",
|
|
22
|
-
* workspaceIds: [],
|
|
23
|
-
* timeouts: {
|
|
24
|
-
* create: "3h",
|
|
25
|
-
* update: "2h",
|
|
26
|
-
* "delete": "1h",
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
* const azureExample = new astronomer.Cluster("azureExample", {
|
|
30
|
-
* type: "DEDICATED",
|
|
31
|
-
* region: "westus2",
|
|
32
|
-
* cloudProvider: "AZURE",
|
|
33
|
-
* vpcSubnetRange: "172.20.0.0/19",
|
|
34
|
-
* workspaceIds: ["clv4wcf6f003u01m3zp7gsvzg"],
|
|
35
|
-
* });
|
|
36
|
-
* const gcpExample = new astronomer.Cluster("gcpExample", {
|
|
37
|
-
* type: "DEDICATED",
|
|
38
|
-
* region: "us-central1",
|
|
39
|
-
* cloudProvider: "GCP",
|
|
40
|
-
* podSubnetRange: "172.21.0.0/19",
|
|
41
|
-
* servicePeeringRange: "172.23.0.0/20",
|
|
42
|
-
* serviceSubnetRange: "172.22.0.0/22",
|
|
43
|
-
* vpcSubnetRange: "172.20.0.0/22",
|
|
44
|
-
* workspaceIds: [],
|
|
45
|
-
* });
|
|
46
|
-
* const importedCluster = new astronomer.Cluster("importedCluster", {
|
|
47
|
-
* type: "DEDICATED",
|
|
48
|
-
* region: "us-central1",
|
|
49
|
-
* cloudProvider: "GCP",
|
|
50
|
-
* podSubnetRange: "172.21.0.0/19",
|
|
51
|
-
* servicePeeringRange: "172.23.0.0/20",
|
|
52
|
-
* serviceSubnetRange: "172.22.0.0/22",
|
|
53
|
-
* vpcSubnetRange: "172.20.0.0/22",
|
|
54
|
-
* workspaceIds: [],
|
|
55
|
-
* });
|
|
56
|
-
* ```
|
|
57
33
|
*/
|
|
58
34
|
class Cluster extends pulumi.CustomResource {
|
|
59
35
|
/**
|
|
@@ -66,8 +42,10 @@ class Cluster extends pulumi.CustomResource {
|
|
|
66
42
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
43
|
*/
|
|
68
44
|
static get(name, id, state, opts) {
|
|
69
|
-
return new Cluster(name, state,
|
|
45
|
+
return new Cluster(name, state, { ...opts, id: id });
|
|
70
46
|
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
static __pulumiType = 'astronomer:index/cluster:Cluster';
|
|
71
49
|
/**
|
|
72
50
|
* Returns true if the given object is an instance of Cluster. This is designed to work even
|
|
73
51
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -83,54 +61,66 @@ class Cluster extends pulumi.CustomResource {
|
|
|
83
61
|
opts = opts || {};
|
|
84
62
|
if (opts.id) {
|
|
85
63
|
const state = argsOrState;
|
|
86
|
-
resourceInputs["cloudProvider"] = state
|
|
87
|
-
resourceInputs["createdAt"] = state
|
|
88
|
-
resourceInputs["dbInstanceType"] = state
|
|
89
|
-
resourceInputs["
|
|
90
|
-
resourceInputs["
|
|
91
|
-
resourceInputs["
|
|
92
|
-
resourceInputs["
|
|
93
|
-
resourceInputs["
|
|
94
|
-
resourceInputs["
|
|
95
|
-
resourceInputs["
|
|
96
|
-
resourceInputs["
|
|
97
|
-
resourceInputs["
|
|
98
|
-
resourceInputs["
|
|
99
|
-
resourceInputs["
|
|
100
|
-
resourceInputs["
|
|
101
|
-
resourceInputs["
|
|
102
|
-
resourceInputs["
|
|
103
|
-
resourceInputs["
|
|
104
|
-
resourceInputs["
|
|
105
|
-
resourceInputs["
|
|
64
|
+
resourceInputs["cloudProvider"] = state?.cloudProvider;
|
|
65
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
66
|
+
resourceInputs["dbInstanceType"] = state?.dbInstanceType;
|
|
67
|
+
resourceInputs["drRegion"] = state?.drRegion;
|
|
68
|
+
resourceInputs["drSecondaryVpcCidr"] = state?.drSecondaryVpcCidr;
|
|
69
|
+
resourceInputs["drVpcSubnetRange"] = state?.drVpcSubnetRange;
|
|
70
|
+
resourceInputs["enableReplicationTimeControl"] = state?.enableReplicationTimeControl;
|
|
71
|
+
resourceInputs["healthStatus"] = state?.healthStatus;
|
|
72
|
+
resourceInputs["isDrEnabled"] = state?.isDrEnabled;
|
|
73
|
+
resourceInputs["isFailedOver"] = state?.isFailedOver;
|
|
74
|
+
resourceInputs["isLimited"] = state?.isLimited;
|
|
75
|
+
resourceInputs["metadata"] = state?.metadata;
|
|
76
|
+
resourceInputs["name"] = state?.name;
|
|
77
|
+
resourceInputs["nodePools"] = state?.nodePools;
|
|
78
|
+
resourceInputs["podSubnetRange"] = state?.podSubnetRange;
|
|
79
|
+
resourceInputs["providerAccount"] = state?.providerAccount;
|
|
80
|
+
resourceInputs["region"] = state?.region;
|
|
81
|
+
resourceInputs["servicePeeringRange"] = state?.servicePeeringRange;
|
|
82
|
+
resourceInputs["serviceSubnetRange"] = state?.serviceSubnetRange;
|
|
83
|
+
resourceInputs["status"] = state?.status;
|
|
84
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
85
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
86
|
+
resourceInputs["type"] = state?.type;
|
|
87
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
88
|
+
resourceInputs["vpcSubnetRange"] = state?.vpcSubnetRange;
|
|
89
|
+
resourceInputs["workspaceIds"] = state?.workspaceIds;
|
|
106
90
|
}
|
|
107
91
|
else {
|
|
108
92
|
const args = argsOrState;
|
|
109
|
-
if (
|
|
93
|
+
if (args?.cloudProvider === undefined && !opts.urn) {
|
|
110
94
|
throw new Error("Missing required property 'cloudProvider'");
|
|
111
95
|
}
|
|
112
|
-
if (
|
|
96
|
+
if (args?.region === undefined && !opts.urn) {
|
|
113
97
|
throw new Error("Missing required property 'region'");
|
|
114
98
|
}
|
|
115
|
-
if (
|
|
99
|
+
if (args?.type === undefined && !opts.urn) {
|
|
116
100
|
throw new Error("Missing required property 'type'");
|
|
117
101
|
}
|
|
118
|
-
if (
|
|
102
|
+
if (args?.vpcSubnetRange === undefined && !opts.urn) {
|
|
119
103
|
throw new Error("Missing required property 'vpcSubnetRange'");
|
|
120
104
|
}
|
|
121
|
-
if (
|
|
105
|
+
if (args?.workspaceIds === undefined && !opts.urn) {
|
|
122
106
|
throw new Error("Missing required property 'workspaceIds'");
|
|
123
107
|
}
|
|
124
|
-
resourceInputs["cloudProvider"] = args
|
|
125
|
-
resourceInputs["
|
|
126
|
-
resourceInputs["
|
|
127
|
-
resourceInputs["
|
|
128
|
-
resourceInputs["
|
|
129
|
-
resourceInputs["
|
|
130
|
-
resourceInputs["
|
|
131
|
-
resourceInputs["
|
|
132
|
-
resourceInputs["
|
|
133
|
-
resourceInputs["
|
|
108
|
+
resourceInputs["cloudProvider"] = args?.cloudProvider;
|
|
109
|
+
resourceInputs["drRegion"] = args?.drRegion;
|
|
110
|
+
resourceInputs["drSecondaryVpcCidr"] = args?.drSecondaryVpcCidr;
|
|
111
|
+
resourceInputs["drVpcSubnetRange"] = args?.drVpcSubnetRange;
|
|
112
|
+
resourceInputs["enableReplicationTimeControl"] = args?.enableReplicationTimeControl;
|
|
113
|
+
resourceInputs["isDrEnabled"] = args?.isDrEnabled;
|
|
114
|
+
resourceInputs["isFailedOver"] = args?.isFailedOver;
|
|
115
|
+
resourceInputs["name"] = args?.name;
|
|
116
|
+
resourceInputs["podSubnetRange"] = args?.podSubnetRange;
|
|
117
|
+
resourceInputs["region"] = args?.region;
|
|
118
|
+
resourceInputs["servicePeeringRange"] = args?.servicePeeringRange;
|
|
119
|
+
resourceInputs["serviceSubnetRange"] = args?.serviceSubnetRange;
|
|
120
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
121
|
+
resourceInputs["type"] = args?.type;
|
|
122
|
+
resourceInputs["vpcSubnetRange"] = args?.vpcSubnetRange;
|
|
123
|
+
resourceInputs["workspaceIds"] = args?.workspaceIds;
|
|
134
124
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
135
125
|
resourceInputs["dbInstanceType"] = undefined /*out*/;
|
|
136
126
|
resourceInputs["healthStatus"] = undefined /*out*/;
|
|
@@ -147,6 +137,4 @@ class Cluster extends pulumi.CustomResource {
|
|
|
147
137
|
}
|
|
148
138
|
}
|
|
149
139
|
exports.Cluster = Cluster;
|
|
150
|
-
/** @internal */
|
|
151
|
-
Cluster.__pulumiType = 'astronomer:index/cluster:Cluster';
|
|
152
140
|
//# sourceMappingURL=cluster.js.map
|
package/cluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../cluster.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../cluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;GAEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kCAAkC,CAAC;IAEzE;;;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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAgHD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,E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OAAO,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAvNL,0BAwNC"}
|
package/config/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
|
package/config/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
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
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
package/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;AAQ9C;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;AAQxD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC"}
|