@quantcdn/pulumi-quant 0.1.0

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/cronJob.ts ADDED
@@ -0,0 +1,215 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "./utilities";
6
+
7
+ export class CronJob extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing CronJob 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 state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CronJobState, opts?: pulumi.CustomResourceOptions): CronJob {
18
+ return new CronJob(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'quant:index:CronJob';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of CronJob. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ public static isInstance(obj: any): obj is CronJob {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === CronJob.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * Application name
37
+ */
38
+ declare public readonly application: pulumi.Output<string>;
39
+ /**
40
+ * Command to execute as a JSON array of strings
41
+ */
42
+ declare public readonly command: pulumi.Output<string>;
43
+ /**
44
+ * Cron job description
45
+ */
46
+ declare public readonly description: pulumi.Output<string>;
47
+ /**
48
+ * Environment name
49
+ */
50
+ declare public readonly environment: pulumi.Output<string>;
51
+ /**
52
+ * Whether the cron job is enabled
53
+ */
54
+ declare public readonly isEnabled: pulumi.Output<boolean>;
55
+ /**
56
+ * Cron job name
57
+ */
58
+ declare public readonly name: pulumi.Output<string>;
59
+ /**
60
+ * Organization machine name (defaults to provider organization)
61
+ */
62
+ declare public readonly organization: pulumi.Output<string>;
63
+ /**
64
+ * Resolved cron schedule
65
+ */
66
+ declare public /*out*/ readonly schedule: pulumi.Output<string>;
67
+ /**
68
+ * Cron schedule expression
69
+ */
70
+ declare public readonly scheduleExpression: pulumi.Output<string>;
71
+ /**
72
+ * Target container name
73
+ */
74
+ declare public readonly targetContainerName: pulumi.Output<string>;
75
+
76
+ /**
77
+ * Create a CronJob resource with the given unique name, arguments, and options.
78
+ *
79
+ * @param name The _unique_ name of the resource.
80
+ * @param args The arguments to use to populate this resource's properties.
81
+ * @param opts A bag of options that control this resource's behavior.
82
+ */
83
+ constructor(name: string, args: CronJobArgs, opts?: pulumi.CustomResourceOptions)
84
+ constructor(name: string, argsOrState?: CronJobArgs | CronJobState, opts?: pulumi.CustomResourceOptions) {
85
+ let resourceInputs: pulumi.Inputs = {};
86
+ opts = opts || {};
87
+ if (opts.id) {
88
+ const state = argsOrState as CronJobState | undefined;
89
+ resourceInputs["application"] = state?.application;
90
+ resourceInputs["command"] = state?.command;
91
+ resourceInputs["description"] = state?.description;
92
+ resourceInputs["environment"] = state?.environment;
93
+ resourceInputs["isEnabled"] = state?.isEnabled;
94
+ resourceInputs["name"] = state?.name;
95
+ resourceInputs["organization"] = state?.organization;
96
+ resourceInputs["schedule"] = state?.schedule;
97
+ resourceInputs["scheduleExpression"] = state?.scheduleExpression;
98
+ resourceInputs["targetContainerName"] = state?.targetContainerName;
99
+ } else {
100
+ const args = argsOrState as CronJobArgs | undefined;
101
+ if (args?.application === undefined && !opts.urn) {
102
+ throw new Error("Missing required property 'application'");
103
+ }
104
+ if (args?.command === undefined && !opts.urn) {
105
+ throw new Error("Missing required property 'command'");
106
+ }
107
+ if (args?.environment === undefined && !opts.urn) {
108
+ throw new Error("Missing required property 'environment'");
109
+ }
110
+ if (args?.scheduleExpression === undefined && !opts.urn) {
111
+ throw new Error("Missing required property 'scheduleExpression'");
112
+ }
113
+ resourceInputs["application"] = args?.application;
114
+ resourceInputs["command"] = args?.command;
115
+ resourceInputs["description"] = args?.description;
116
+ resourceInputs["environment"] = args?.environment;
117
+ resourceInputs["isEnabled"] = args?.isEnabled;
118
+ resourceInputs["name"] = args?.name;
119
+ resourceInputs["organization"] = args?.organization;
120
+ resourceInputs["scheduleExpression"] = args?.scheduleExpression;
121
+ resourceInputs["targetContainerName"] = args?.targetContainerName;
122
+ resourceInputs["schedule"] = undefined /*out*/;
123
+ }
124
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
125
+ super(CronJob.__pulumiType, name, resourceInputs, opts);
126
+ }
127
+ }
128
+
129
+ /**
130
+ * Input properties used for looking up and filtering CronJob resources.
131
+ */
132
+ export interface CronJobState {
133
+ /**
134
+ * Application name
135
+ */
136
+ application?: pulumi.Input<string>;
137
+ /**
138
+ * Command to execute as a JSON array of strings
139
+ */
140
+ command?: pulumi.Input<string>;
141
+ /**
142
+ * Cron job description
143
+ */
144
+ description?: pulumi.Input<string>;
145
+ /**
146
+ * Environment name
147
+ */
148
+ environment?: pulumi.Input<string>;
149
+ /**
150
+ * Whether the cron job is enabled
151
+ */
152
+ isEnabled?: pulumi.Input<boolean>;
153
+ /**
154
+ * Cron job name
155
+ */
156
+ name?: pulumi.Input<string>;
157
+ /**
158
+ * Organization machine name (defaults to provider organization)
159
+ */
160
+ organization?: pulumi.Input<string>;
161
+ /**
162
+ * Resolved cron schedule
163
+ */
164
+ schedule?: pulumi.Input<string>;
165
+ /**
166
+ * Cron schedule expression
167
+ */
168
+ scheduleExpression?: pulumi.Input<string>;
169
+ /**
170
+ * Target container name
171
+ */
172
+ targetContainerName?: pulumi.Input<string>;
173
+ }
174
+
175
+ /**
176
+ * The set of arguments for constructing a CronJob resource.
177
+ */
178
+ export interface CronJobArgs {
179
+ /**
180
+ * Application name
181
+ */
182
+ application: pulumi.Input<string>;
183
+ /**
184
+ * Command to execute as a JSON array of strings
185
+ */
186
+ command: pulumi.Input<string>;
187
+ /**
188
+ * Cron job description
189
+ */
190
+ description?: pulumi.Input<string>;
191
+ /**
192
+ * Environment name
193
+ */
194
+ environment: pulumi.Input<string>;
195
+ /**
196
+ * Whether the cron job is enabled
197
+ */
198
+ isEnabled?: pulumi.Input<boolean>;
199
+ /**
200
+ * Cron job name
201
+ */
202
+ name?: pulumi.Input<string>;
203
+ /**
204
+ * Organization machine name (defaults to provider organization)
205
+ */
206
+ organization?: pulumi.Input<string>;
207
+ /**
208
+ * Cron schedule expression
209
+ */
210
+ scheduleExpression: pulumi.Input<string>;
211
+ /**
212
+ * Target container name
213
+ */
214
+ targetContainerName?: pulumi.Input<string>;
215
+ }
package/domain.ts ADDED
@@ -0,0 +1,144 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "./types/input";
6
+ import * as outputs from "./types/output";
7
+ import * as utilities from "./utilities";
8
+
9
+ export class Domain extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing Domain resource's state with the given name, ID, and optional extra
12
+ * properties used to qualify the lookup.
13
+ *
14
+ * @param name The _unique_ name of the resulting resource.
15
+ * @param id The _unique_ provider ID of the resource to lookup.
16
+ * @param state Any extra arguments used during the lookup.
17
+ * @param opts Optional settings to control the behavior of the CustomResource.
18
+ */
19
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainState, opts?: pulumi.CustomResourceOptions): Domain {
20
+ return new Domain(name, <any>state, { ...opts, id: id });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'quant:index:Domain';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of Domain. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ public static isInstance(obj: any): obj is Domain {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === Domain.__pulumiType;
35
+ }
36
+
37
+ /**
38
+ * DNS engagement status. 1 indicates DNS is properly configured and engaged, 0 indicates DNS configuration is pending or incomplete.
39
+ */
40
+ declare public /*out*/ readonly dnsEngaged: pulumi.Output<number>;
41
+ /**
42
+ * DNS records required to route traffic to the CDN. These records differ based on domain type (apex vs subdomain). Present when the CDN is configured and ready to receive traffic.
43
+ */
44
+ declare public /*out*/ readonly dnsGoLiveRecords: pulumi.Output<outputs.DomainDnsGoLiveRecord[]>;
45
+ /**
46
+ * DNS validation records required for SSL certificate validation. Present for domains pending certificate validation. Each record contains the CNAME information needed to validate domain ownership.
47
+ */
48
+ declare public /*out*/ readonly dnsValidationRecords: pulumi.Output<outputs.DomainDnsValidationRecord[]>;
49
+ /**
50
+ * Domain name
51
+ */
52
+ declare public readonly domain: pulumi.Output<string>;
53
+ /**
54
+ * Organization identifier
55
+ */
56
+ declare public readonly organization: pulumi.Output<string>;
57
+ /**
58
+ * Project identifier
59
+ */
60
+ declare public readonly project: pulumi.Output<string>;
61
+
62
+ /**
63
+ * Create a Domain resource with the given unique name, arguments, and options.
64
+ *
65
+ * @param name The _unique_ name of the resource.
66
+ * @param args The arguments to use to populate this resource's properties.
67
+ * @param opts A bag of options that control this resource's behavior.
68
+ */
69
+ constructor(name: string, args: DomainArgs, opts?: pulumi.CustomResourceOptions)
70
+ constructor(name: string, argsOrState?: DomainArgs | DomainState, opts?: pulumi.CustomResourceOptions) {
71
+ let resourceInputs: pulumi.Inputs = {};
72
+ opts = opts || {};
73
+ if (opts.id) {
74
+ const state = argsOrState as DomainState | undefined;
75
+ resourceInputs["dnsEngaged"] = state?.dnsEngaged;
76
+ resourceInputs["dnsGoLiveRecords"] = state?.dnsGoLiveRecords;
77
+ resourceInputs["dnsValidationRecords"] = state?.dnsValidationRecords;
78
+ resourceInputs["domain"] = state?.domain;
79
+ resourceInputs["organization"] = state?.organization;
80
+ resourceInputs["project"] = state?.project;
81
+ } else {
82
+ const args = argsOrState as DomainArgs | undefined;
83
+ if (args?.domain === undefined && !opts.urn) {
84
+ throw new Error("Missing required property 'domain'");
85
+ }
86
+ resourceInputs["domain"] = args?.domain;
87
+ resourceInputs["organization"] = args?.organization;
88
+ resourceInputs["project"] = args?.project;
89
+ resourceInputs["dnsEngaged"] = undefined /*out*/;
90
+ resourceInputs["dnsGoLiveRecords"] = undefined /*out*/;
91
+ resourceInputs["dnsValidationRecords"] = undefined /*out*/;
92
+ }
93
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
94
+ super(Domain.__pulumiType, name, resourceInputs, opts);
95
+ }
96
+ }
97
+
98
+ /**
99
+ * Input properties used for looking up and filtering Domain resources.
100
+ */
101
+ export interface DomainState {
102
+ /**
103
+ * DNS engagement status. 1 indicates DNS is properly configured and engaged, 0 indicates DNS configuration is pending or incomplete.
104
+ */
105
+ dnsEngaged?: pulumi.Input<number>;
106
+ /**
107
+ * DNS records required to route traffic to the CDN. These records differ based on domain type (apex vs subdomain). Present when the CDN is configured and ready to receive traffic.
108
+ */
109
+ dnsGoLiveRecords?: pulumi.Input<pulumi.Input<inputs.DomainDnsGoLiveRecord>[]>;
110
+ /**
111
+ * DNS validation records required for SSL certificate validation. Present for domains pending certificate validation. Each record contains the CNAME information needed to validate domain ownership.
112
+ */
113
+ dnsValidationRecords?: pulumi.Input<pulumi.Input<inputs.DomainDnsValidationRecord>[]>;
114
+ /**
115
+ * Domain name
116
+ */
117
+ domain?: pulumi.Input<string>;
118
+ /**
119
+ * Organization identifier
120
+ */
121
+ organization?: pulumi.Input<string>;
122
+ /**
123
+ * Project identifier
124
+ */
125
+ project?: pulumi.Input<string>;
126
+ }
127
+
128
+ /**
129
+ * The set of arguments for constructing a Domain resource.
130
+ */
131
+ export interface DomainArgs {
132
+ /**
133
+ * Domain name
134
+ */
135
+ domain: pulumi.Input<string>;
136
+ /**
137
+ * Organization identifier
138
+ */
139
+ organization?: pulumi.Input<string>;
140
+ /**
141
+ * Project identifier
142
+ */
143
+ project?: pulumi.Input<string>;
144
+ }
package/environment.ts ADDED
@@ -0,0 +1,287 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "./utilities";
6
+
7
+ export class Environment extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing Environment 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 state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment {
18
+ return new Environment(name, <any>state, { ...opts, id: id });
19
+ }
20
+
21
+ /** @internal */
22
+ public static readonly __pulumiType = 'quant:index:Environment';
23
+
24
+ /**
25
+ * Returns true if the given object is an instance of Environment. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ public static isInstance(obj: any): obj is Environment {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === Environment.__pulumiType;
33
+ }
34
+
35
+ /**
36
+ * Application name
37
+ */
38
+ declare public readonly application: pulumi.Output<string>;
39
+ /**
40
+ * Clone configuration from an existing environment
41
+ */
42
+ declare public readonly cloneConfigurationFrom: pulumi.Output<string>;
43
+ /**
44
+ * Compose definition as a JSON string
45
+ */
46
+ declare public readonly composeDefinition: pulumi.Output<string>;
47
+ /**
48
+ * Creation timestamp
49
+ */
50
+ declare public /*out*/ readonly createdAt: pulumi.Output<string>;
51
+ /**
52
+ * Current deployment status
53
+ */
54
+ declare public /*out*/ readonly deploymentStatus: pulumi.Output<string>;
55
+ /**
56
+ * Desired number of tasks
57
+ */
58
+ declare public /*out*/ readonly desiredCount: pulumi.Output<number>;
59
+ /**
60
+ * Environment name (e.g., staging, development)
61
+ */
62
+ declare public readonly envName: pulumi.Output<string>;
63
+ /**
64
+ * Environment variables as a JSON array of {name, value} objects
65
+ */
66
+ declare public readonly environmentVariables: pulumi.Output<string>;
67
+ /**
68
+ * Optional image tag suffix for cloning
69
+ */
70
+ declare public readonly imageSuffix: pulumi.Output<string>;
71
+ /**
72
+ * Maximum number of instances for auto-scaling
73
+ */
74
+ declare public readonly maxCapacity: pulumi.Output<number>;
75
+ /**
76
+ * Whether to merge environment variables with cloned ones
77
+ */
78
+ declare public readonly mergeEnvironment: pulumi.Output<boolean>;
79
+ /**
80
+ * Minimum number of instances for auto-scaling
81
+ */
82
+ declare public readonly minCapacity: pulumi.Output<number>;
83
+ /**
84
+ * Organization machine name (defaults to provider organization)
85
+ */
86
+ declare public readonly organization: pulumi.Output<string>;
87
+ /**
88
+ * Number of running tasks
89
+ */
90
+ declare public /*out*/ readonly runningCount: pulumi.Output<number>;
91
+ /**
92
+ * Spot configuration as a JSON string
93
+ */
94
+ declare public readonly spotConfiguration: pulumi.Output<string>;
95
+ /**
96
+ * Environment status
97
+ */
98
+ declare public /*out*/ readonly status: pulumi.Output<string>;
99
+ /**
100
+ * Last update timestamp
101
+ */
102
+ declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
103
+
104
+ /**
105
+ * Create a Environment resource with the given unique name, arguments, and options.
106
+ *
107
+ * @param name The _unique_ name of the resource.
108
+ * @param args The arguments to use to populate this resource's properties.
109
+ * @param opts A bag of options that control this resource's behavior.
110
+ */
111
+ constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions)
112
+ constructor(name: string, argsOrState?: EnvironmentArgs | EnvironmentState, opts?: pulumi.CustomResourceOptions) {
113
+ let resourceInputs: pulumi.Inputs = {};
114
+ opts = opts || {};
115
+ if (opts.id) {
116
+ const state = argsOrState as EnvironmentState | undefined;
117
+ resourceInputs["application"] = state?.application;
118
+ resourceInputs["cloneConfigurationFrom"] = state?.cloneConfigurationFrom;
119
+ resourceInputs["composeDefinition"] = state?.composeDefinition;
120
+ resourceInputs["createdAt"] = state?.createdAt;
121
+ resourceInputs["deploymentStatus"] = state?.deploymentStatus;
122
+ resourceInputs["desiredCount"] = state?.desiredCount;
123
+ resourceInputs["envName"] = state?.envName;
124
+ resourceInputs["environmentVariables"] = state?.environmentVariables;
125
+ resourceInputs["imageSuffix"] = state?.imageSuffix;
126
+ resourceInputs["maxCapacity"] = state?.maxCapacity;
127
+ resourceInputs["mergeEnvironment"] = state?.mergeEnvironment;
128
+ resourceInputs["minCapacity"] = state?.minCapacity;
129
+ resourceInputs["organization"] = state?.organization;
130
+ resourceInputs["runningCount"] = state?.runningCount;
131
+ resourceInputs["spotConfiguration"] = state?.spotConfiguration;
132
+ resourceInputs["status"] = state?.status;
133
+ resourceInputs["updatedAt"] = state?.updatedAt;
134
+ } else {
135
+ const args = argsOrState as EnvironmentArgs | undefined;
136
+ if (args?.application === undefined && !opts.urn) {
137
+ throw new Error("Missing required property 'application'");
138
+ }
139
+ if (args?.envName === undefined && !opts.urn) {
140
+ throw new Error("Missing required property 'envName'");
141
+ }
142
+ resourceInputs["application"] = args?.application;
143
+ resourceInputs["cloneConfigurationFrom"] = args?.cloneConfigurationFrom;
144
+ resourceInputs["composeDefinition"] = args?.composeDefinition;
145
+ resourceInputs["envName"] = args?.envName;
146
+ resourceInputs["environmentVariables"] = args?.environmentVariables;
147
+ resourceInputs["imageSuffix"] = args?.imageSuffix;
148
+ resourceInputs["maxCapacity"] = args?.maxCapacity;
149
+ resourceInputs["mergeEnvironment"] = args?.mergeEnvironment;
150
+ resourceInputs["minCapacity"] = args?.minCapacity;
151
+ resourceInputs["organization"] = args?.organization;
152
+ resourceInputs["spotConfiguration"] = args?.spotConfiguration;
153
+ resourceInputs["createdAt"] = undefined /*out*/;
154
+ resourceInputs["deploymentStatus"] = undefined /*out*/;
155
+ resourceInputs["desiredCount"] = undefined /*out*/;
156
+ resourceInputs["runningCount"] = undefined /*out*/;
157
+ resourceInputs["status"] = undefined /*out*/;
158
+ resourceInputs["updatedAt"] = undefined /*out*/;
159
+ }
160
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
161
+ super(Environment.__pulumiType, name, resourceInputs, opts);
162
+ }
163
+ }
164
+
165
+ /**
166
+ * Input properties used for looking up and filtering Environment resources.
167
+ */
168
+ export interface EnvironmentState {
169
+ /**
170
+ * Application name
171
+ */
172
+ application?: pulumi.Input<string>;
173
+ /**
174
+ * Clone configuration from an existing environment
175
+ */
176
+ cloneConfigurationFrom?: pulumi.Input<string>;
177
+ /**
178
+ * Compose definition as a JSON string
179
+ */
180
+ composeDefinition?: pulumi.Input<string>;
181
+ /**
182
+ * Creation timestamp
183
+ */
184
+ createdAt?: pulumi.Input<string>;
185
+ /**
186
+ * Current deployment status
187
+ */
188
+ deploymentStatus?: pulumi.Input<string>;
189
+ /**
190
+ * Desired number of tasks
191
+ */
192
+ desiredCount?: pulumi.Input<number>;
193
+ /**
194
+ * Environment name (e.g., staging, development)
195
+ */
196
+ envName?: pulumi.Input<string>;
197
+ /**
198
+ * Environment variables as a JSON array of {name, value} objects
199
+ */
200
+ environmentVariables?: pulumi.Input<string>;
201
+ /**
202
+ * Optional image tag suffix for cloning
203
+ */
204
+ imageSuffix?: pulumi.Input<string>;
205
+ /**
206
+ * Maximum number of instances for auto-scaling
207
+ */
208
+ maxCapacity?: pulumi.Input<number>;
209
+ /**
210
+ * Whether to merge environment variables with cloned ones
211
+ */
212
+ mergeEnvironment?: pulumi.Input<boolean>;
213
+ /**
214
+ * Minimum number of instances for auto-scaling
215
+ */
216
+ minCapacity?: pulumi.Input<number>;
217
+ /**
218
+ * Organization machine name (defaults to provider organization)
219
+ */
220
+ organization?: pulumi.Input<string>;
221
+ /**
222
+ * Number of running tasks
223
+ */
224
+ runningCount?: pulumi.Input<number>;
225
+ /**
226
+ * Spot configuration as a JSON string
227
+ */
228
+ spotConfiguration?: pulumi.Input<string>;
229
+ /**
230
+ * Environment status
231
+ */
232
+ status?: pulumi.Input<string>;
233
+ /**
234
+ * Last update timestamp
235
+ */
236
+ updatedAt?: pulumi.Input<string>;
237
+ }
238
+
239
+ /**
240
+ * The set of arguments for constructing a Environment resource.
241
+ */
242
+ export interface EnvironmentArgs {
243
+ /**
244
+ * Application name
245
+ */
246
+ application: pulumi.Input<string>;
247
+ /**
248
+ * Clone configuration from an existing environment
249
+ */
250
+ cloneConfigurationFrom?: pulumi.Input<string>;
251
+ /**
252
+ * Compose definition as a JSON string
253
+ */
254
+ composeDefinition?: pulumi.Input<string>;
255
+ /**
256
+ * Environment name (e.g., staging, development)
257
+ */
258
+ envName: pulumi.Input<string>;
259
+ /**
260
+ * Environment variables as a JSON array of {name, value} objects
261
+ */
262
+ environmentVariables?: pulumi.Input<string>;
263
+ /**
264
+ * Optional image tag suffix for cloning
265
+ */
266
+ imageSuffix?: pulumi.Input<string>;
267
+ /**
268
+ * Maximum number of instances for auto-scaling
269
+ */
270
+ maxCapacity?: pulumi.Input<number>;
271
+ /**
272
+ * Whether to merge environment variables with cloned ones
273
+ */
274
+ mergeEnvironment?: pulumi.Input<boolean>;
275
+ /**
276
+ * Minimum number of instances for auto-scaling
277
+ */
278
+ minCapacity?: pulumi.Input<number>;
279
+ /**
280
+ * Organization machine name (defaults to provider organization)
281
+ */
282
+ organization?: pulumi.Input<string>;
283
+ /**
284
+ * Spot configuration as a JSON string
285
+ */
286
+ spotConfiguration?: pulumi.Input<string>;
287
+ }
package/getProject.ts ADDED
@@ -0,0 +1,54 @@
1
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as utilities from "./utilities";
6
+
7
+ export function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult> {
8
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
9
+ return pulumi.runtime.invoke("quant:index:getProject", {
10
+ "machineName": args.machineName,
11
+ "withToken": args.withToken,
12
+ }, opts);
13
+ }
14
+
15
+ /**
16
+ * A collection of arguments for invoking getProject.
17
+ */
18
+ export interface GetProjectArgs {
19
+ machineName: string;
20
+ withToken?: boolean;
21
+ }
22
+
23
+ /**
24
+ * A collection of values returned by getProject.
25
+ */
26
+ export interface GetProjectResult {
27
+ readonly createdAt: string;
28
+ readonly gitUrl: string;
29
+ readonly id: number;
30
+ readonly machineName: string;
31
+ readonly name: string;
32
+ readonly organizationId: number;
33
+ readonly region: string;
34
+ readonly securityScore: string;
35
+ readonly updatedAt: string;
36
+ readonly uuid: string;
37
+ readonly withToken?: boolean;
38
+ readonly writeToken: string;
39
+ }
40
+ export function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectResult> {
41
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
42
+ return pulumi.runtime.invokeOutput("quant:index:getProject", {
43
+ "machineName": args.machineName,
44
+ "withToken": args.withToken,
45
+ }, opts);
46
+ }
47
+
48
+ /**
49
+ * A collection of arguments for invoking getProject.
50
+ */
51
+ export interface GetProjectOutputArgs {
52
+ machineName: pulumi.Input<string>;
53
+ withToken?: pulumi.Input<boolean>;
54
+ }