@ryan-pip/pulumi_astronomer 0.0.6
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 +202 -0
- package/README.md +49 -0
- package/cluster.d.ts +254 -0
- package/cluster.js +120 -0
- package/cluster.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +8 -0
- package/config/vars.js +19 -0
- package/config/vars.js.map +1 -0
- package/deployment.d.ts +289 -0
- package/deployment.js +125 -0
- package/deployment.js.map +1 -0
- package/getCluster.d.ts +127 -0
- package/getCluster.js +47 -0
- package/getCluster.js.map +1 -0
- package/getDeployment.d.ts +64 -0
- package/getDeployment.js +25 -0
- package/getDeployment.js.map +1 -0
- package/getOrganization.d.ts +105 -0
- package/getOrganization.js +48 -0
- package/getOrganization.js.map +1 -0
- package/getWorkspace.d.ts +70 -0
- package/getWorkspace.js +47 -0
- package/getWorkspace.js.map +1 -0
- package/index.d.ts +27 -0
- package/index.js +60 -0
- package/index.js.map +1 -0
- package/package.json +29 -0
- package/package.json.bak +29 -0
- package/provider.d.ts +43 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +56 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +95 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
- package/workspace.d.ts +87 -0
- package/workspace.js +68 -0
- package/workspace.js.map +1 -0
package/types/input.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export interface ClusterK8sTag {
|
|
3
|
+
/**
|
|
4
|
+
* The tag's key.
|
|
5
|
+
*/
|
|
6
|
+
key: pulumi.Input<string>;
|
|
7
|
+
/**
|
|
8
|
+
* The tag's value.
|
|
9
|
+
*/
|
|
10
|
+
value: pulumi.Input<string>;
|
|
11
|
+
}
|
|
12
|
+
export interface ClusterMetadata {
|
|
13
|
+
externalIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
14
|
+
oidcIssuerUrl?: pulumi.Input<string>;
|
|
15
|
+
}
|
|
16
|
+
export interface ClusterNodePool {
|
|
17
|
+
/**
|
|
18
|
+
* Whether the node pool is the default node pool of the cluster.
|
|
19
|
+
*/
|
|
20
|
+
isDefault?: pulumi.Input<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* The maximum number of nodes that can be created in the node pool.
|
|
23
|
+
*/
|
|
24
|
+
maxNodeCount: pulumi.Input<number>;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the node pool.
|
|
27
|
+
*/
|
|
28
|
+
name: pulumi.Input<string>;
|
|
29
|
+
/**
|
|
30
|
+
* The type of node instance that is used for the node pool.
|
|
31
|
+
*/
|
|
32
|
+
nodeInstanceType: pulumi.Input<string>;
|
|
33
|
+
}
|
|
34
|
+
export interface DeploymentEnvironmentVariable {
|
|
35
|
+
/**
|
|
36
|
+
* Whether the environment variable is a secret.
|
|
37
|
+
*/
|
|
38
|
+
isSecret: pulumi.Input<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* The environment variable key, used to call the value in code.
|
|
41
|
+
*/
|
|
42
|
+
key: pulumi.Input<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The environment variable value.
|
|
45
|
+
*/
|
|
46
|
+
value?: pulumi.Input<string>;
|
|
47
|
+
}
|
|
48
|
+
export interface DeploymentWorkerQueue {
|
|
49
|
+
astroMachine: pulumi.Input<string>;
|
|
50
|
+
id?: pulumi.Input<string>;
|
|
51
|
+
isDefault: pulumi.Input<boolean>;
|
|
52
|
+
maxWorkerCount: pulumi.Input<number>;
|
|
53
|
+
minWorkerCount: pulumi.Input<number>;
|
|
54
|
+
name: pulumi.Input<string>;
|
|
55
|
+
workerConcurrency: pulumi.Input<number>;
|
|
56
|
+
}
|
package/types/input.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export interface ClusterK8sTag {
|
|
2
|
+
/**
|
|
3
|
+
* The tag's key.
|
|
4
|
+
*/
|
|
5
|
+
key: string;
|
|
6
|
+
/**
|
|
7
|
+
* The tag's value.
|
|
8
|
+
*/
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ClusterMetadata {
|
|
12
|
+
externalIps?: string[];
|
|
13
|
+
oidcIssuerUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ClusterNodePool {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the node pool is the default node pool of the cluster.
|
|
18
|
+
*/
|
|
19
|
+
isDefault?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The maximum number of nodes that can be created in the node pool.
|
|
22
|
+
*/
|
|
23
|
+
maxNodeCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the node pool.
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The type of node instance that is used for the node pool.
|
|
30
|
+
*/
|
|
31
|
+
nodeInstanceType: string;
|
|
32
|
+
}
|
|
33
|
+
export interface DeploymentEnvironmentVariable {
|
|
34
|
+
/**
|
|
35
|
+
* Whether the environment variable is a secret.
|
|
36
|
+
*/
|
|
37
|
+
isSecret: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The environment variable key, used to call the value in code.
|
|
40
|
+
*/
|
|
41
|
+
key: string;
|
|
42
|
+
/**
|
|
43
|
+
* The environment variable value.
|
|
44
|
+
*/
|
|
45
|
+
value?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface DeploymentWorkerQueue {
|
|
48
|
+
astroMachine: string;
|
|
49
|
+
id: string;
|
|
50
|
+
isDefault: boolean;
|
|
51
|
+
maxWorkerCount: number;
|
|
52
|
+
minWorkerCount: number;
|
|
53
|
+
name: string;
|
|
54
|
+
workerConcurrency: number;
|
|
55
|
+
}
|
|
56
|
+
export interface GetClusterK8sTag {
|
|
57
|
+
/**
|
|
58
|
+
* The tag's key.
|
|
59
|
+
*/
|
|
60
|
+
key: string;
|
|
61
|
+
/**
|
|
62
|
+
* The tag's value.
|
|
63
|
+
*/
|
|
64
|
+
value: string;
|
|
65
|
+
}
|
|
66
|
+
export interface GetClusterMetadata {
|
|
67
|
+
externalIps?: string[];
|
|
68
|
+
oidcIssuerUrl?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface GetClusterNodePool {
|
|
71
|
+
/**
|
|
72
|
+
* Whether the node pool is the default node pool of the cluster.
|
|
73
|
+
*/
|
|
74
|
+
isDefault?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The maximum number of nodes that can be created in the node pool.
|
|
77
|
+
*/
|
|
78
|
+
maxNodeCount: number;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the node pool.
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* The type of node instance that is used for the node pool.
|
|
85
|
+
*/
|
|
86
|
+
nodeInstanceType: string;
|
|
87
|
+
}
|
|
88
|
+
export interface GetOrganizationManagedDomain {
|
|
89
|
+
createdAt: string;
|
|
90
|
+
enforcedLogins: string[];
|
|
91
|
+
id: boolean;
|
|
92
|
+
name: string;
|
|
93
|
+
status: string;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
}
|
package/types/output.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/ryan.pip/pulumi-astronomer" };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,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,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G,MAAM,CAAC,CAAC,OAAO,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC;QAClC,MAAM,OAAO,GACT,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB;YAC7B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB;gBAC7B,CAAC,CAAC,SAAS,CAAC;QAChB,sGAAsG;QACtG,IAAI,OAAO,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,0BAA0B,OAAO,IAAI;gBAC9E,iFAAiF,CAAC,CAAC;SAC1F;QACD,0CAA0C;QAC1C,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACvB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AAxBD,8BAwBC"}
|
package/workspace.d.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Astronomer Workspace Resource
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as astronomer from "@ryan-pip/pulumi_astronomer";
|
|
10
|
+
*
|
|
11
|
+
* const completeSetup = new astronomer.Workspace("completeSetup", {
|
|
12
|
+
* cicdEnforcedDefault: true,
|
|
13
|
+
* description: "Testing Workspace",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class Workspace extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Workspace resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkspaceState, opts?: pulumi.CustomResourceOptions): Workspace;
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of Workspace. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
static isInstance(obj: any): obj is Workspace;
|
|
33
|
+
/**
|
|
34
|
+
* Whether new Deployments enforce CI/CD deploys by default.
|
|
35
|
+
*/
|
|
36
|
+
readonly cicdEnforcedDefault: pulumi.Output<boolean | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* The Workspace's description.
|
|
39
|
+
*/
|
|
40
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The Workspace's name.
|
|
43
|
+
*/
|
|
44
|
+
readonly name: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a Workspace resource with the given unique name, arguments, and options.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resource.
|
|
49
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
50
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
51
|
+
*/
|
|
52
|
+
constructor(name: string, args?: WorkspaceArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Input properties used for looking up and filtering Workspace resources.
|
|
56
|
+
*/
|
|
57
|
+
export interface WorkspaceState {
|
|
58
|
+
/**
|
|
59
|
+
* Whether new Deployments enforce CI/CD deploys by default.
|
|
60
|
+
*/
|
|
61
|
+
cicdEnforcedDefault?: pulumi.Input<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* The Workspace's description.
|
|
64
|
+
*/
|
|
65
|
+
description?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The Workspace's name.
|
|
68
|
+
*/
|
|
69
|
+
name?: pulumi.Input<string>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The set of arguments for constructing a Workspace resource.
|
|
73
|
+
*/
|
|
74
|
+
export interface WorkspaceArgs {
|
|
75
|
+
/**
|
|
76
|
+
* Whether new Deployments enforce CI/CD deploys by default.
|
|
77
|
+
*/
|
|
78
|
+
cicdEnforcedDefault?: pulumi.Input<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* The Workspace's description.
|
|
81
|
+
*/
|
|
82
|
+
description?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The Workspace's name.
|
|
85
|
+
*/
|
|
86
|
+
name?: pulumi.Input<string>;
|
|
87
|
+
}
|
package/workspace.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Workspace = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Astronomer Workspace Resource
|
|
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 completeSetup = new astronomer.Workspace("completeSetup", {
|
|
18
|
+
* cicdEnforcedDefault: true,
|
|
19
|
+
* description: "Testing Workspace",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
class Workspace extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing Workspace resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name, id, state, opts) {
|
|
34
|
+
return new Workspace(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of Workspace. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj) {
|
|
41
|
+
if (obj === undefined || obj === null) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return obj['__pulumiType'] === Workspace.__pulumiType;
|
|
45
|
+
}
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["cicdEnforcedDefault"] = state ? state.cicdEnforcedDefault : undefined;
|
|
52
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
53
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
resourceInputs["cicdEnforcedDefault"] = args ? args.cicdEnforcedDefault : undefined;
|
|
58
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
59
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
60
|
+
}
|
|
61
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
|
+
super(Workspace.__pulumiType, name, resourceInputs, opts);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.Workspace = Workspace;
|
|
66
|
+
/** @internal */
|
|
67
|
+
Workspace.__pulumiType = 'astronomer:index/workspace:Workspace';
|
|
68
|
+
//# sourceMappingURL=workspace.js.map
|
package/workspace.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../workspace.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAA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