@quantcdn/pulumi-quant 5.4.0 → 5.5.1
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/aiAgent.d.ts +155 -0
- package/aiAgent.js +94 -0
- package/aiAgent.js.map +1 -0
- package/aiGovernance.d.ts +77 -0
- package/aiGovernance.js +75 -0
- package/aiGovernance.js.map +1 -0
- package/aiSkill.d.ts +101 -0
- package/aiSkill.js +85 -0
- package/aiSkill.js.map +1 -0
- package/aiVectorCollection.d.ts +107 -0
- package/aiVectorCollection.js +68 -0
- package/aiVectorCollection.js.map +1 -0
- package/aiVectorDocument.d.ts +73 -0
- package/aiVectorDocument.js +70 -0
- package/aiVectorDocument.js.map +1 -0
- package/application.d.ts +189 -0
- package/application.js +85 -0
- package/application.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 +36 -0
- package/config/vars.js +61 -0
- package/config/vars.js.map +1 -0
- package/{crawler.ts → crawler.d.ts} +45 -139
- package/crawler.js +116 -0
- package/crawler.js.map +1 -0
- package/crawlerSchedule.d.ts +156 -0
- package/crawlerSchedule.js +74 -0
- package/crawlerSchedule.js.map +1 -0
- package/cronJob.d.ts +102 -0
- package/cronJob.js +73 -0
- package/cronJob.js.map +1 -0
- package/{domain.ts → domain.d.ts} +10 -56
- package/domain.js +62 -0
- package/domain.js.map +1 -0
- package/environment.d.ts +313 -0
- package/environment.js +110 -0
- package/environment.js.map +1 -0
- package/getProject.d.ts +34 -0
- package/getProject.js +24 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +14 -0
- package/getProjects.js +18 -0
- package/getProjects.js.map +1 -0
- package/header.d.ts +60 -0
- package/header.js +59 -0
- package/header.js.map +1 -0
- package/index.d.ts +88 -0
- package/index.js +158 -0
- package/index.js.map +1 -0
- package/{kvItem.ts → kvItem.d.ts} +11 -62
- package/kvItem.js +67 -0
- package/kvItem.js.map +1 -0
- package/kvStore.d.ts +75 -0
- package/kvStore.js +55 -0
- package/kvStore.js.map +1 -0
- package/package.json +32 -30
- package/project.d.ts +175 -0
- package/project.js +73 -0
- package/project.js.map +1 -0
- package/{provider.ts → provider.d.ts} +12 -51
- package/provider.js +63 -0
- package/provider.js.map +1 -0
- package/{ruleAuth.ts → ruleAuth.d.ts} +31 -128
- package/ruleAuth.js +113 -0
- package/ruleAuth.js.map +1 -0
- package/{ruleBotChallenge.ts → ruleBotChallenge.d.ts} +32 -128
- package/ruleBotChallenge.js +112 -0
- package/ruleBotChallenge.js.map +1 -0
- package/{ruleContentFilter.ts → ruleContentFilter.d.ts} +30 -122
- package/ruleContentFilter.js +108 -0
- package/ruleContentFilter.js.map +1 -0
- package/{ruleCustomResponse.ts → ruleCustomResponse.d.ts} +33 -131
- package/ruleCustomResponse.js +114 -0
- package/ruleCustomResponse.js.map +1 -0
- package/{ruleFunction.ts → ruleFunction.d.ts} +30 -122
- package/ruleFunction.js +108 -0
- package/ruleFunction.js.map +1 -0
- package/{ruleHeaders.ts → ruleHeaders.d.ts} +38 -124
- package/ruleHeaders.js +108 -0
- package/ruleHeaders.js.map +1 -0
- package/{ruleProxy.ts → ruleProxy.d.ts} +62 -196
- package/ruleProxy.js +156 -0
- package/ruleProxy.js.map +1 -0
- package/{ruleRedirect.ts → ruleRedirect.d.ts} +31 -125
- package/ruleRedirect.js +110 -0
- package/ruleRedirect.js.map +1 -0
- package/{ruleServeStatic.ts → ruleServeStatic.d.ts} +30 -122
- package/ruleServeStatic.js +108 -0
- package/ruleServeStatic.js.map +1 -0
- package/{slackBot.ts → slackBot.d.ts} +14 -71
- package/slackBot.js +73 -0
- package/slackBot.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.ts → input.d.ts} +6 -78
- package/{config/index.ts → types/input.js} +3 -3
- package/types/input.js.map +1 -0
- package/types/{output.ts → output.d.ts} +6 -81
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/{utilities.ts → utilities.js} +23 -28
- package/utilities.js.map +1 -0
- package/volume.d.ts +130 -0
- package/volume.js +74 -0
- package/volume.js.map +1 -0
- package/.gitattributes +0 -1
- package/aiAgent.ts +0 -233
- package/aiGovernance.ts +0 -136
- package/aiSkill.ts +0 -170
- package/aiVectorCollection.ts +0 -159
- package/aiVectorDocument.ts +0 -127
- package/application.ts +0 -258
- package/config/vars.ts +0 -108
- package/crawlerSchedule.ts +0 -214
- package/cronJob.ts +0 -159
- package/environment.ts +0 -407
- package/getProject.ts +0 -54
- package/getProjects.ts +0 -29
- package/header.ts +0 -97
- package/index.ts +0 -231
- package/kvStore.ts +0 -114
- package/project.ts +0 -232
- package/tsconfig.json +0 -53
- package/types/index.ts +0 -13
- package/volume.ts +0 -188
package/cronJob.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
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
|
-
* The application ID
|
|
37
|
-
*/
|
|
38
|
-
declare public readonly application: pulumi.Output<string>;
|
|
39
|
-
declare public readonly commands: pulumi.Output<string[]>;
|
|
40
|
-
/**
|
|
41
|
-
* The cron job ID
|
|
42
|
-
*/
|
|
43
|
-
declare public readonly cron: pulumi.Output<string>;
|
|
44
|
-
declare public readonly description: pulumi.Output<string>;
|
|
45
|
-
/**
|
|
46
|
-
* The environment ID
|
|
47
|
-
*/
|
|
48
|
-
declare public readonly environment: pulumi.Output<string>;
|
|
49
|
-
declare public readonly isEnabled: pulumi.Output<boolean>;
|
|
50
|
-
declare public readonly name: pulumi.Output<string>;
|
|
51
|
-
/**
|
|
52
|
-
* The organisation ID
|
|
53
|
-
*/
|
|
54
|
-
declare public readonly organisation: pulumi.Output<string>;
|
|
55
|
-
declare public readonly scheduleExpression: pulumi.Output<string>;
|
|
56
|
-
declare public readonly targetContainerName: pulumi.Output<string>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Create a CronJob 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: CronJobArgs, opts?: pulumi.CustomResourceOptions)
|
|
66
|
-
constructor(name: string, argsOrState?: CronJobArgs | CronJobState, opts?: pulumi.CustomResourceOptions) {
|
|
67
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
68
|
-
opts = opts || {};
|
|
69
|
-
if (opts.id) {
|
|
70
|
-
const state = argsOrState as CronJobState | undefined;
|
|
71
|
-
resourceInputs["application"] = state?.application;
|
|
72
|
-
resourceInputs["commands"] = state?.commands;
|
|
73
|
-
resourceInputs["cron"] = state?.cron;
|
|
74
|
-
resourceInputs["description"] = state?.description;
|
|
75
|
-
resourceInputs["environment"] = state?.environment;
|
|
76
|
-
resourceInputs["isEnabled"] = state?.isEnabled;
|
|
77
|
-
resourceInputs["name"] = state?.name;
|
|
78
|
-
resourceInputs["organisation"] = state?.organisation;
|
|
79
|
-
resourceInputs["scheduleExpression"] = state?.scheduleExpression;
|
|
80
|
-
resourceInputs["targetContainerName"] = state?.targetContainerName;
|
|
81
|
-
} else {
|
|
82
|
-
const args = argsOrState as CronJobArgs | undefined;
|
|
83
|
-
if (args?.commands === undefined && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'commands'");
|
|
85
|
-
}
|
|
86
|
-
if (args?.scheduleExpression === undefined && !opts.urn) {
|
|
87
|
-
throw new Error("Missing required property 'scheduleExpression'");
|
|
88
|
-
}
|
|
89
|
-
resourceInputs["application"] = args?.application;
|
|
90
|
-
resourceInputs["commands"] = args?.commands;
|
|
91
|
-
resourceInputs["cron"] = args?.cron;
|
|
92
|
-
resourceInputs["description"] = args?.description;
|
|
93
|
-
resourceInputs["environment"] = args?.environment;
|
|
94
|
-
resourceInputs["isEnabled"] = args?.isEnabled;
|
|
95
|
-
resourceInputs["name"] = args?.name;
|
|
96
|
-
resourceInputs["organisation"] = args?.organisation;
|
|
97
|
-
resourceInputs["scheduleExpression"] = args?.scheduleExpression;
|
|
98
|
-
resourceInputs["targetContainerName"] = args?.targetContainerName;
|
|
99
|
-
}
|
|
100
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
-
super(CronJob.__pulumiType, name, resourceInputs, opts);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Input properties used for looking up and filtering CronJob resources.
|
|
107
|
-
*/
|
|
108
|
-
export interface CronJobState {
|
|
109
|
-
/**
|
|
110
|
-
* The application ID
|
|
111
|
-
*/
|
|
112
|
-
application?: pulumi.Input<string>;
|
|
113
|
-
commands?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
|
-
/**
|
|
115
|
-
* The cron job ID
|
|
116
|
-
*/
|
|
117
|
-
cron?: pulumi.Input<string>;
|
|
118
|
-
description?: pulumi.Input<string>;
|
|
119
|
-
/**
|
|
120
|
-
* The environment ID
|
|
121
|
-
*/
|
|
122
|
-
environment?: pulumi.Input<string>;
|
|
123
|
-
isEnabled?: pulumi.Input<boolean>;
|
|
124
|
-
name?: pulumi.Input<string>;
|
|
125
|
-
/**
|
|
126
|
-
* The organisation ID
|
|
127
|
-
*/
|
|
128
|
-
organisation?: pulumi.Input<string>;
|
|
129
|
-
scheduleExpression?: pulumi.Input<string>;
|
|
130
|
-
targetContainerName?: pulumi.Input<string>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* The set of arguments for constructing a CronJob resource.
|
|
135
|
-
*/
|
|
136
|
-
export interface CronJobArgs {
|
|
137
|
-
/**
|
|
138
|
-
* The application ID
|
|
139
|
-
*/
|
|
140
|
-
application?: pulumi.Input<string>;
|
|
141
|
-
commands: pulumi.Input<pulumi.Input<string>[]>;
|
|
142
|
-
/**
|
|
143
|
-
* The cron job ID
|
|
144
|
-
*/
|
|
145
|
-
cron?: pulumi.Input<string>;
|
|
146
|
-
description?: pulumi.Input<string>;
|
|
147
|
-
/**
|
|
148
|
-
* The environment ID
|
|
149
|
-
*/
|
|
150
|
-
environment?: pulumi.Input<string>;
|
|
151
|
-
isEnabled?: pulumi.Input<boolean>;
|
|
152
|
-
name?: pulumi.Input<string>;
|
|
153
|
-
/**
|
|
154
|
-
* The organisation ID
|
|
155
|
-
*/
|
|
156
|
-
organisation?: pulumi.Input<string>;
|
|
157
|
-
scheduleExpression: pulumi.Input<string>;
|
|
158
|
-
targetContainerName?: pulumi.Input<string>;
|
|
159
|
-
}
|
package/environment.ts
DELETED
|
@@ -1,407 +0,0 @@
|
|
|
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 Environment extends pulumi.CustomResource {
|
|
10
|
-
/**
|
|
11
|
-
* Get an existing Environment 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?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment {
|
|
20
|
-
return new Environment(name, <any>state, { ...opts, id: id });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
public static readonly __pulumiType = 'quant:index:Environment';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Returns true if the given object is an instance of Environment. 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 Environment {
|
|
31
|
-
if (obj === undefined || obj === null) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
return obj['__pulumiType'] === Environment.__pulumiType;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* ALB routing configuration
|
|
39
|
-
*/
|
|
40
|
-
declare public /*out*/ readonly albRouting: pulumi.Output<outputs.EnvironmentAlbRouting>;
|
|
41
|
-
/**
|
|
42
|
-
* The application ID
|
|
43
|
-
*/
|
|
44
|
-
declare public readonly application: pulumi.Output<string>;
|
|
45
|
-
/**
|
|
46
|
-
* Clone configuration from an existing environment
|
|
47
|
-
*/
|
|
48
|
-
declare public readonly cloneConfigurationFrom: pulumi.Output<string>;
|
|
49
|
-
declare public readonly composeDefinition: pulumi.Output<outputs.EnvironmentComposeDefinition>;
|
|
50
|
-
/**
|
|
51
|
-
* Container name list
|
|
52
|
-
*/
|
|
53
|
-
declare public /*out*/ readonly containerNames: pulumi.Output<string[]>;
|
|
54
|
-
/**
|
|
55
|
-
* Creation timestamp
|
|
56
|
-
*/
|
|
57
|
-
declare public /*out*/ readonly createdAt: pulumi.Output<string>;
|
|
58
|
-
/**
|
|
59
|
-
* Scheduled cron jobs
|
|
60
|
-
*/
|
|
61
|
-
declare public /*out*/ readonly crons: pulumi.Output<outputs.EnvironmentCron[]>;
|
|
62
|
-
/**
|
|
63
|
-
* Reason for deployment failure
|
|
64
|
-
*/
|
|
65
|
-
declare public /*out*/ readonly deploymentFailureReason: pulumi.Output<string>;
|
|
66
|
-
/**
|
|
67
|
-
* Type of deployment failure
|
|
68
|
-
*/
|
|
69
|
-
declare public /*out*/ readonly deploymentFailureType: pulumi.Output<string>;
|
|
70
|
-
/**
|
|
71
|
-
* Current deployment status
|
|
72
|
-
*/
|
|
73
|
-
declare public /*out*/ readonly deploymentStatus: pulumi.Output<string>;
|
|
74
|
-
/**
|
|
75
|
-
* Desired number of tasks
|
|
76
|
-
*/
|
|
77
|
-
declare public /*out*/ readonly desiredCount: pulumi.Output<number>;
|
|
78
|
-
/**
|
|
79
|
-
* Environment name (e.g., 'staging', 'development')
|
|
80
|
-
*/
|
|
81
|
-
declare public readonly envName: pulumi.Output<string>;
|
|
82
|
-
/**
|
|
83
|
-
* Environment variables to inject
|
|
84
|
-
*/
|
|
85
|
-
declare public readonly environments: pulumi.Output<outputs.EnvironmentEnvironment[]>;
|
|
86
|
-
/**
|
|
87
|
-
* Optional image tag suffix for cloning
|
|
88
|
-
*/
|
|
89
|
-
declare public readonly imageSuffix: pulumi.Output<string>;
|
|
90
|
-
/**
|
|
91
|
-
* Load balancer configuration
|
|
92
|
-
*/
|
|
93
|
-
declare public /*out*/ readonly loadBalancer: pulumi.Output<outputs.EnvironmentLoadBalancer>;
|
|
94
|
-
/**
|
|
95
|
-
* Maximum number of instances
|
|
96
|
-
*/
|
|
97
|
-
declare public readonly maxCapacity: pulumi.Output<number>;
|
|
98
|
-
/**
|
|
99
|
-
* Whether to merge environment variables with cloned ones (true) or replace them (false). Default: false
|
|
100
|
-
*/
|
|
101
|
-
declare public readonly mergeEnvironment: pulumi.Output<boolean>;
|
|
102
|
-
/**
|
|
103
|
-
* Minimum number of instances
|
|
104
|
-
*/
|
|
105
|
-
declare public readonly minCapacity: pulumi.Output<number>;
|
|
106
|
-
/**
|
|
107
|
-
* The organisation ID
|
|
108
|
-
*/
|
|
109
|
-
declare public readonly organisation: pulumi.Output<string>;
|
|
110
|
-
/**
|
|
111
|
-
* Public IP address for SSH access
|
|
112
|
-
*/
|
|
113
|
-
declare public /*out*/ readonly publicIpAddress: pulumi.Output<string>;
|
|
114
|
-
/**
|
|
115
|
-
* Number of running tasks
|
|
116
|
-
*/
|
|
117
|
-
declare public /*out*/ readonly runningCount: pulumi.Output<number>;
|
|
118
|
-
/**
|
|
119
|
-
* Security group configuration
|
|
120
|
-
*/
|
|
121
|
-
declare public /*out*/ readonly securityGroup: pulumi.Output<outputs.EnvironmentSecurityGroup>;
|
|
122
|
-
/**
|
|
123
|
-
* ECS service details
|
|
124
|
-
*/
|
|
125
|
-
declare public /*out*/ readonly service: pulumi.Output<outputs.EnvironmentService>;
|
|
126
|
-
/**
|
|
127
|
-
* Spot instance strategy configuration for controlling cost vs reliability. Spot instances provide significant cost savings (~70%) but may be interrupted by AWS. Available for non-production environments.
|
|
128
|
-
*/
|
|
129
|
-
declare public readonly spotConfiguration: pulumi.Output<outputs.EnvironmentSpotConfiguration>;
|
|
130
|
-
/**
|
|
131
|
-
* Environment status
|
|
132
|
-
*/
|
|
133
|
-
declare public /*out*/ readonly status: pulumi.Output<string>;
|
|
134
|
-
/**
|
|
135
|
-
* Subnet configuration
|
|
136
|
-
*/
|
|
137
|
-
declare public /*out*/ readonly subnet: pulumi.Output<outputs.EnvironmentSubnet>;
|
|
138
|
-
/**
|
|
139
|
-
* ECS task definition details
|
|
140
|
-
*/
|
|
141
|
-
declare public /*out*/ readonly taskDefinition: pulumi.Output<outputs.EnvironmentTaskDefinition>;
|
|
142
|
-
/**
|
|
143
|
-
* Last update timestamp
|
|
144
|
-
*/
|
|
145
|
-
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
146
|
-
/**
|
|
147
|
-
* Persistent storage volumes
|
|
148
|
-
*/
|
|
149
|
-
declare public /*out*/ readonly volumes: pulumi.Output<outputs.EnvironmentVolume[]>;
|
|
150
|
-
/**
|
|
151
|
-
* VPC configuration
|
|
152
|
-
*/
|
|
153
|
-
declare public /*out*/ readonly vpc: pulumi.Output<outputs.EnvironmentVpc>;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Create a Environment resource with the given unique name, arguments, and options.
|
|
157
|
-
*
|
|
158
|
-
* @param name The _unique_ name of the resource.
|
|
159
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
160
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
161
|
-
*/
|
|
162
|
-
constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions)
|
|
163
|
-
constructor(name: string, argsOrState?: EnvironmentArgs | EnvironmentState, opts?: pulumi.CustomResourceOptions) {
|
|
164
|
-
let resourceInputs: pulumi.Inputs = {};
|
|
165
|
-
opts = opts || {};
|
|
166
|
-
if (opts.id) {
|
|
167
|
-
const state = argsOrState as EnvironmentState | undefined;
|
|
168
|
-
resourceInputs["albRouting"] = state?.albRouting;
|
|
169
|
-
resourceInputs["application"] = state?.application;
|
|
170
|
-
resourceInputs["cloneConfigurationFrom"] = state?.cloneConfigurationFrom;
|
|
171
|
-
resourceInputs["composeDefinition"] = state?.composeDefinition;
|
|
172
|
-
resourceInputs["containerNames"] = state?.containerNames;
|
|
173
|
-
resourceInputs["createdAt"] = state?.createdAt;
|
|
174
|
-
resourceInputs["crons"] = state?.crons;
|
|
175
|
-
resourceInputs["deploymentFailureReason"] = state?.deploymentFailureReason;
|
|
176
|
-
resourceInputs["deploymentFailureType"] = state?.deploymentFailureType;
|
|
177
|
-
resourceInputs["deploymentStatus"] = state?.deploymentStatus;
|
|
178
|
-
resourceInputs["desiredCount"] = state?.desiredCount;
|
|
179
|
-
resourceInputs["envName"] = state?.envName;
|
|
180
|
-
resourceInputs["environments"] = state?.environments;
|
|
181
|
-
resourceInputs["imageSuffix"] = state?.imageSuffix;
|
|
182
|
-
resourceInputs["loadBalancer"] = state?.loadBalancer;
|
|
183
|
-
resourceInputs["maxCapacity"] = state?.maxCapacity;
|
|
184
|
-
resourceInputs["mergeEnvironment"] = state?.mergeEnvironment;
|
|
185
|
-
resourceInputs["minCapacity"] = state?.minCapacity;
|
|
186
|
-
resourceInputs["organisation"] = state?.organisation;
|
|
187
|
-
resourceInputs["publicIpAddress"] = state?.publicIpAddress;
|
|
188
|
-
resourceInputs["runningCount"] = state?.runningCount;
|
|
189
|
-
resourceInputs["securityGroup"] = state?.securityGroup;
|
|
190
|
-
resourceInputs["service"] = state?.service;
|
|
191
|
-
resourceInputs["spotConfiguration"] = state?.spotConfiguration;
|
|
192
|
-
resourceInputs["status"] = state?.status;
|
|
193
|
-
resourceInputs["subnet"] = state?.subnet;
|
|
194
|
-
resourceInputs["taskDefinition"] = state?.taskDefinition;
|
|
195
|
-
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
196
|
-
resourceInputs["volumes"] = state?.volumes;
|
|
197
|
-
resourceInputs["vpc"] = state?.vpc;
|
|
198
|
-
} else {
|
|
199
|
-
const args = argsOrState as EnvironmentArgs | undefined;
|
|
200
|
-
if (args?.envName === undefined && !opts.urn) {
|
|
201
|
-
throw new Error("Missing required property 'envName'");
|
|
202
|
-
}
|
|
203
|
-
resourceInputs["application"] = args?.application;
|
|
204
|
-
resourceInputs["cloneConfigurationFrom"] = args?.cloneConfigurationFrom;
|
|
205
|
-
resourceInputs["composeDefinition"] = args?.composeDefinition;
|
|
206
|
-
resourceInputs["envName"] = args?.envName;
|
|
207
|
-
resourceInputs["environments"] = args?.environments;
|
|
208
|
-
resourceInputs["imageSuffix"] = args?.imageSuffix;
|
|
209
|
-
resourceInputs["maxCapacity"] = args?.maxCapacity;
|
|
210
|
-
resourceInputs["mergeEnvironment"] = args?.mergeEnvironment;
|
|
211
|
-
resourceInputs["minCapacity"] = args?.minCapacity;
|
|
212
|
-
resourceInputs["organisation"] = args?.organisation;
|
|
213
|
-
resourceInputs["spotConfiguration"] = args?.spotConfiguration;
|
|
214
|
-
resourceInputs["albRouting"] = undefined /*out*/;
|
|
215
|
-
resourceInputs["containerNames"] = undefined /*out*/;
|
|
216
|
-
resourceInputs["createdAt"] = undefined /*out*/;
|
|
217
|
-
resourceInputs["crons"] = undefined /*out*/;
|
|
218
|
-
resourceInputs["deploymentFailureReason"] = undefined /*out*/;
|
|
219
|
-
resourceInputs["deploymentFailureType"] = undefined /*out*/;
|
|
220
|
-
resourceInputs["deploymentStatus"] = undefined /*out*/;
|
|
221
|
-
resourceInputs["desiredCount"] = undefined /*out*/;
|
|
222
|
-
resourceInputs["loadBalancer"] = undefined /*out*/;
|
|
223
|
-
resourceInputs["publicIpAddress"] = undefined /*out*/;
|
|
224
|
-
resourceInputs["runningCount"] = undefined /*out*/;
|
|
225
|
-
resourceInputs["securityGroup"] = undefined /*out*/;
|
|
226
|
-
resourceInputs["service"] = undefined /*out*/;
|
|
227
|
-
resourceInputs["status"] = undefined /*out*/;
|
|
228
|
-
resourceInputs["subnet"] = undefined /*out*/;
|
|
229
|
-
resourceInputs["taskDefinition"] = undefined /*out*/;
|
|
230
|
-
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
231
|
-
resourceInputs["volumes"] = undefined /*out*/;
|
|
232
|
-
resourceInputs["vpc"] = undefined /*out*/;
|
|
233
|
-
}
|
|
234
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
235
|
-
super(Environment.__pulumiType, name, resourceInputs, opts);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Input properties used for looking up and filtering Environment resources.
|
|
241
|
-
*/
|
|
242
|
-
export interface EnvironmentState {
|
|
243
|
-
/**
|
|
244
|
-
* ALB routing configuration
|
|
245
|
-
*/
|
|
246
|
-
albRouting?: pulumi.Input<inputs.EnvironmentAlbRouting>;
|
|
247
|
-
/**
|
|
248
|
-
* The application ID
|
|
249
|
-
*/
|
|
250
|
-
application?: pulumi.Input<string>;
|
|
251
|
-
/**
|
|
252
|
-
* Clone configuration from an existing environment
|
|
253
|
-
*/
|
|
254
|
-
cloneConfigurationFrom?: pulumi.Input<string>;
|
|
255
|
-
composeDefinition?: pulumi.Input<inputs.EnvironmentComposeDefinition>;
|
|
256
|
-
/**
|
|
257
|
-
* Container name list
|
|
258
|
-
*/
|
|
259
|
-
containerNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
260
|
-
/**
|
|
261
|
-
* Creation timestamp
|
|
262
|
-
*/
|
|
263
|
-
createdAt?: pulumi.Input<string>;
|
|
264
|
-
/**
|
|
265
|
-
* Scheduled cron jobs
|
|
266
|
-
*/
|
|
267
|
-
crons?: pulumi.Input<pulumi.Input<inputs.EnvironmentCron>[]>;
|
|
268
|
-
/**
|
|
269
|
-
* Reason for deployment failure
|
|
270
|
-
*/
|
|
271
|
-
deploymentFailureReason?: pulumi.Input<string>;
|
|
272
|
-
/**
|
|
273
|
-
* Type of deployment failure
|
|
274
|
-
*/
|
|
275
|
-
deploymentFailureType?: pulumi.Input<string>;
|
|
276
|
-
/**
|
|
277
|
-
* Current deployment status
|
|
278
|
-
*/
|
|
279
|
-
deploymentStatus?: pulumi.Input<string>;
|
|
280
|
-
/**
|
|
281
|
-
* Desired number of tasks
|
|
282
|
-
*/
|
|
283
|
-
desiredCount?: pulumi.Input<number>;
|
|
284
|
-
/**
|
|
285
|
-
* Environment name (e.g., 'staging', 'development')
|
|
286
|
-
*/
|
|
287
|
-
envName?: pulumi.Input<string>;
|
|
288
|
-
/**
|
|
289
|
-
* Environment variables to inject
|
|
290
|
-
*/
|
|
291
|
-
environments?: pulumi.Input<pulumi.Input<inputs.EnvironmentEnvironment>[]>;
|
|
292
|
-
/**
|
|
293
|
-
* Optional image tag suffix for cloning
|
|
294
|
-
*/
|
|
295
|
-
imageSuffix?: pulumi.Input<string>;
|
|
296
|
-
/**
|
|
297
|
-
* Load balancer configuration
|
|
298
|
-
*/
|
|
299
|
-
loadBalancer?: pulumi.Input<inputs.EnvironmentLoadBalancer>;
|
|
300
|
-
/**
|
|
301
|
-
* Maximum number of instances
|
|
302
|
-
*/
|
|
303
|
-
maxCapacity?: pulumi.Input<number>;
|
|
304
|
-
/**
|
|
305
|
-
* Whether to merge environment variables with cloned ones (true) or replace them (false). Default: false
|
|
306
|
-
*/
|
|
307
|
-
mergeEnvironment?: pulumi.Input<boolean>;
|
|
308
|
-
/**
|
|
309
|
-
* Minimum number of instances
|
|
310
|
-
*/
|
|
311
|
-
minCapacity?: pulumi.Input<number>;
|
|
312
|
-
/**
|
|
313
|
-
* The organisation ID
|
|
314
|
-
*/
|
|
315
|
-
organisation?: pulumi.Input<string>;
|
|
316
|
-
/**
|
|
317
|
-
* Public IP address for SSH access
|
|
318
|
-
*/
|
|
319
|
-
publicIpAddress?: pulumi.Input<string>;
|
|
320
|
-
/**
|
|
321
|
-
* Number of running tasks
|
|
322
|
-
*/
|
|
323
|
-
runningCount?: pulumi.Input<number>;
|
|
324
|
-
/**
|
|
325
|
-
* Security group configuration
|
|
326
|
-
*/
|
|
327
|
-
securityGroup?: pulumi.Input<inputs.EnvironmentSecurityGroup>;
|
|
328
|
-
/**
|
|
329
|
-
* ECS service details
|
|
330
|
-
*/
|
|
331
|
-
service?: pulumi.Input<inputs.EnvironmentService>;
|
|
332
|
-
/**
|
|
333
|
-
* Spot instance strategy configuration for controlling cost vs reliability. Spot instances provide significant cost savings (~70%) but may be interrupted by AWS. Available for non-production environments.
|
|
334
|
-
*/
|
|
335
|
-
spotConfiguration?: pulumi.Input<inputs.EnvironmentSpotConfiguration>;
|
|
336
|
-
/**
|
|
337
|
-
* Environment status
|
|
338
|
-
*/
|
|
339
|
-
status?: pulumi.Input<string>;
|
|
340
|
-
/**
|
|
341
|
-
* Subnet configuration
|
|
342
|
-
*/
|
|
343
|
-
subnet?: pulumi.Input<inputs.EnvironmentSubnet>;
|
|
344
|
-
/**
|
|
345
|
-
* ECS task definition details
|
|
346
|
-
*/
|
|
347
|
-
taskDefinition?: pulumi.Input<inputs.EnvironmentTaskDefinition>;
|
|
348
|
-
/**
|
|
349
|
-
* Last update timestamp
|
|
350
|
-
*/
|
|
351
|
-
updatedAt?: pulumi.Input<string>;
|
|
352
|
-
/**
|
|
353
|
-
* Persistent storage volumes
|
|
354
|
-
*/
|
|
355
|
-
volumes?: pulumi.Input<pulumi.Input<inputs.EnvironmentVolume>[]>;
|
|
356
|
-
/**
|
|
357
|
-
* VPC configuration
|
|
358
|
-
*/
|
|
359
|
-
vpc?: pulumi.Input<inputs.EnvironmentVpc>;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* The set of arguments for constructing a Environment resource.
|
|
364
|
-
*/
|
|
365
|
-
export interface EnvironmentArgs {
|
|
366
|
-
/**
|
|
367
|
-
* The application ID
|
|
368
|
-
*/
|
|
369
|
-
application?: pulumi.Input<string>;
|
|
370
|
-
/**
|
|
371
|
-
* Clone configuration from an existing environment
|
|
372
|
-
*/
|
|
373
|
-
cloneConfigurationFrom?: pulumi.Input<string>;
|
|
374
|
-
composeDefinition?: pulumi.Input<inputs.EnvironmentComposeDefinition>;
|
|
375
|
-
/**
|
|
376
|
-
* Environment name (e.g., 'staging', 'development')
|
|
377
|
-
*/
|
|
378
|
-
envName: pulumi.Input<string>;
|
|
379
|
-
/**
|
|
380
|
-
* Environment variables to inject
|
|
381
|
-
*/
|
|
382
|
-
environments?: pulumi.Input<pulumi.Input<inputs.EnvironmentEnvironment>[]>;
|
|
383
|
-
/**
|
|
384
|
-
* Optional image tag suffix for cloning
|
|
385
|
-
*/
|
|
386
|
-
imageSuffix?: pulumi.Input<string>;
|
|
387
|
-
/**
|
|
388
|
-
* Maximum number of instances
|
|
389
|
-
*/
|
|
390
|
-
maxCapacity?: pulumi.Input<number>;
|
|
391
|
-
/**
|
|
392
|
-
* Whether to merge environment variables with cloned ones (true) or replace them (false). Default: false
|
|
393
|
-
*/
|
|
394
|
-
mergeEnvironment?: pulumi.Input<boolean>;
|
|
395
|
-
/**
|
|
396
|
-
* Minimum number of instances
|
|
397
|
-
*/
|
|
398
|
-
minCapacity?: pulumi.Input<number>;
|
|
399
|
-
/**
|
|
400
|
-
* The organisation ID
|
|
401
|
-
*/
|
|
402
|
-
organisation?: pulumi.Input<string>;
|
|
403
|
-
/**
|
|
404
|
-
* Spot instance strategy configuration for controlling cost vs reliability. Spot instances provide significant cost savings (~70%) but may be interrupted by AWS. Available for non-production environments.
|
|
405
|
-
*/
|
|
406
|
-
spotConfiguration?: pulumi.Input<inputs.EnvironmentSpotConfiguration>;
|
|
407
|
-
}
|
package/getProject.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
}
|
package/getProjects.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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 function getProjects(opts?: pulumi.InvokeOptions): Promise<GetProjectsResult> {
|
|
10
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
11
|
-
return pulumi.runtime.invoke("quant:index:getProjects", {
|
|
12
|
-
}, opts);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* A collection of values returned by getProjects.
|
|
17
|
-
*/
|
|
18
|
-
export interface GetProjectsResult {
|
|
19
|
-
/**
|
|
20
|
-
* The provider-assigned unique ID for this managed resource.
|
|
21
|
-
*/
|
|
22
|
-
readonly id: string;
|
|
23
|
-
readonly projects: outputs.GetProjectsProject[];
|
|
24
|
-
}
|
|
25
|
-
export function getProjectsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectsResult> {
|
|
26
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
27
|
-
return pulumi.runtime.invokeOutput("quant:index:getProjects", {
|
|
28
|
-
}, opts);
|
|
29
|
-
}
|