@quantcdn/pulumi-quant 0.2.0 → 5.4.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/Pulumi.yaml +0 -3
- package/README.md +0 -1
- package/aiAgent.ts +233 -0
- package/aiGovernance.ts +136 -0
- package/aiSkill.ts +170 -0
- package/aiVectorCollection.ts +159 -0
- package/aiVectorDocument.ts +127 -0
- package/application.ts +69 -92
- package/cronJob.ts +31 -87
- package/environment.ts +169 -49
- package/index.ts +42 -0
- package/kvItem.ts +19 -32
- package/kvStore.ts +11 -19
- package/package.json +4 -4
- package/ruleAuth.ts +43 -3
- package/ruleBotChallenge.ts +42 -0
- package/ruleHeaders.ts +42 -0
- package/ruleServeStatic.ts +42 -0
- package/slackBot.ts +205 -0
- package/tsconfig.json +6 -0
- package/types/input.ts +645 -0
- package/types/output.ts +645 -0
- package/utilities.ts +1 -1
- package/volume.ts +26 -48
|
@@ -0,0 +1,159 @@
|
|
|
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 AiVectorCollection extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing AiVectorCollection 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?: AiVectorCollectionState, opts?: pulumi.CustomResourceOptions): AiVectorCollection {
|
|
20
|
+
return new AiVectorCollection(name, <any>state, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'quant:index:AiVectorCollection';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of AiVectorCollection. 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 AiVectorCollection {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === AiVectorCollection.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public /*out*/ readonly collection: pulumi.Output<outputs.AiVectorCollectionCollection>;
|
|
38
|
+
/**
|
|
39
|
+
* The collection ID
|
|
40
|
+
*/
|
|
41
|
+
declare public readonly collectionId: pulumi.Output<string>;
|
|
42
|
+
declare public readonly description: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Embedding dimensions (default: 1024)
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly dimensions: pulumi.Output<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Embedding model to use. Supported: amazon.titan-embed-text-v2:0, cohere.embed-english-v3, cohere.embed-multilingual-v3
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly embeddingModel: pulumi.Output<string>;
|
|
51
|
+
declare public /*out*/ readonly message: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Collection name (used for reference)
|
|
54
|
+
*/
|
|
55
|
+
declare public readonly name: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The organisation ID
|
|
58
|
+
*/
|
|
59
|
+
declare public readonly organisation: pulumi.Output<string>;
|
|
60
|
+
declare public /*out*/ readonly success: pulumi.Output<boolean>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Create a AiVectorCollection 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: AiVectorCollectionArgs, opts?: pulumi.CustomResourceOptions)
|
|
70
|
+
constructor(name: string, argsOrState?: AiVectorCollectionArgs | AiVectorCollectionState, opts?: pulumi.CustomResourceOptions) {
|
|
71
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
72
|
+
opts = opts || {};
|
|
73
|
+
if (opts.id) {
|
|
74
|
+
const state = argsOrState as AiVectorCollectionState | undefined;
|
|
75
|
+
resourceInputs["collection"] = state?.collection;
|
|
76
|
+
resourceInputs["collectionId"] = state?.collectionId;
|
|
77
|
+
resourceInputs["description"] = state?.description;
|
|
78
|
+
resourceInputs["dimensions"] = state?.dimensions;
|
|
79
|
+
resourceInputs["embeddingModel"] = state?.embeddingModel;
|
|
80
|
+
resourceInputs["message"] = state?.message;
|
|
81
|
+
resourceInputs["name"] = state?.name;
|
|
82
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
83
|
+
resourceInputs["success"] = state?.success;
|
|
84
|
+
} else {
|
|
85
|
+
const args = argsOrState as AiVectorCollectionArgs | undefined;
|
|
86
|
+
if (args?.embeddingModel === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'embeddingModel'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["collectionId"] = args?.collectionId;
|
|
90
|
+
resourceInputs["description"] = args?.description;
|
|
91
|
+
resourceInputs["dimensions"] = args?.dimensions;
|
|
92
|
+
resourceInputs["embeddingModel"] = args?.embeddingModel;
|
|
93
|
+
resourceInputs["name"] = args?.name;
|
|
94
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
95
|
+
resourceInputs["collection"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
98
|
+
}
|
|
99
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
100
|
+
super(AiVectorCollection.__pulumiType, name, resourceInputs, opts);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Input properties used for looking up and filtering AiVectorCollection resources.
|
|
106
|
+
*/
|
|
107
|
+
export interface AiVectorCollectionState {
|
|
108
|
+
collection?: pulumi.Input<inputs.AiVectorCollectionCollection>;
|
|
109
|
+
/**
|
|
110
|
+
* The collection ID
|
|
111
|
+
*/
|
|
112
|
+
collectionId?: pulumi.Input<string>;
|
|
113
|
+
description?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Embedding dimensions (default: 1024)
|
|
116
|
+
*/
|
|
117
|
+
dimensions?: pulumi.Input<number>;
|
|
118
|
+
/**
|
|
119
|
+
* Embedding model to use. Supported: amazon.titan-embed-text-v2:0, cohere.embed-english-v3, cohere.embed-multilingual-v3
|
|
120
|
+
*/
|
|
121
|
+
embeddingModel?: pulumi.Input<string>;
|
|
122
|
+
message?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Collection name (used for reference)
|
|
125
|
+
*/
|
|
126
|
+
name?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The organisation ID
|
|
129
|
+
*/
|
|
130
|
+
organisation?: pulumi.Input<string>;
|
|
131
|
+
success?: pulumi.Input<boolean>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a AiVectorCollection resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface AiVectorCollectionArgs {
|
|
138
|
+
/**
|
|
139
|
+
* The collection ID
|
|
140
|
+
*/
|
|
141
|
+
collectionId?: pulumi.Input<string>;
|
|
142
|
+
description?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Embedding dimensions (default: 1024)
|
|
145
|
+
*/
|
|
146
|
+
dimensions?: pulumi.Input<number>;
|
|
147
|
+
/**
|
|
148
|
+
* Embedding model to use. Supported: amazon.titan-embed-text-v2:0, cohere.embed-english-v3, cohere.embed-multilingual-v3
|
|
149
|
+
*/
|
|
150
|
+
embeddingModel: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Collection name (used for reference)
|
|
153
|
+
*/
|
|
154
|
+
name?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The organisation ID
|
|
157
|
+
*/
|
|
158
|
+
organisation?: pulumi.Input<string>;
|
|
159
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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 AiVectorDocument extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing AiVectorDocument 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?: AiVectorDocumentState, opts?: pulumi.CustomResourceOptions): AiVectorDocument {
|
|
20
|
+
return new AiVectorDocument(name, <any>state, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'quant:index:AiVectorDocument';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of AiVectorDocument. 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 AiVectorDocument {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === AiVectorDocument.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public /*out*/ readonly chunksCreated: pulumi.Output<number>;
|
|
38
|
+
declare public readonly collectionId: pulumi.Output<string>;
|
|
39
|
+
declare public /*out*/ readonly documentIds: pulumi.Output<string[]>;
|
|
40
|
+
declare public readonly documents: pulumi.Output<outputs.AiVectorDocumentDocument[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Filter by document key
|
|
43
|
+
*/
|
|
44
|
+
declare public readonly key: pulumi.Output<string>;
|
|
45
|
+
declare public readonly limit: pulumi.Output<number>;
|
|
46
|
+
declare public /*out*/ readonly message: pulumi.Output<string>;
|
|
47
|
+
declare public readonly offset: pulumi.Output<number>;
|
|
48
|
+
declare public readonly organisation: pulumi.Output<string>;
|
|
49
|
+
declare public /*out*/ readonly success: pulumi.Output<boolean>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Create a AiVectorDocument resource with the given unique name, arguments, and options.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resource.
|
|
55
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
56
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
57
|
+
*/
|
|
58
|
+
constructor(name: string, args: AiVectorDocumentArgs, opts?: pulumi.CustomResourceOptions)
|
|
59
|
+
constructor(name: string, argsOrState?: AiVectorDocumentArgs | AiVectorDocumentState, opts?: pulumi.CustomResourceOptions) {
|
|
60
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState as AiVectorDocumentState | undefined;
|
|
64
|
+
resourceInputs["chunksCreated"] = state?.chunksCreated;
|
|
65
|
+
resourceInputs["collectionId"] = state?.collectionId;
|
|
66
|
+
resourceInputs["documentIds"] = state?.documentIds;
|
|
67
|
+
resourceInputs["documents"] = state?.documents;
|
|
68
|
+
resourceInputs["key"] = state?.key;
|
|
69
|
+
resourceInputs["limit"] = state?.limit;
|
|
70
|
+
resourceInputs["message"] = state?.message;
|
|
71
|
+
resourceInputs["offset"] = state?.offset;
|
|
72
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
73
|
+
resourceInputs["success"] = state?.success;
|
|
74
|
+
} else {
|
|
75
|
+
const args = argsOrState as AiVectorDocumentArgs | undefined;
|
|
76
|
+
if (args?.documents === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'documents'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["collectionId"] = args?.collectionId;
|
|
80
|
+
resourceInputs["documents"] = args?.documents;
|
|
81
|
+
resourceInputs["key"] = args?.key;
|
|
82
|
+
resourceInputs["limit"] = args?.limit;
|
|
83
|
+
resourceInputs["offset"] = args?.offset;
|
|
84
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
85
|
+
resourceInputs["chunksCreated"] = undefined /*out*/;
|
|
86
|
+
resourceInputs["documentIds"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
89
|
+
}
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
+
super(AiVectorDocument.__pulumiType, name, resourceInputs, opts);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering AiVectorDocument resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface AiVectorDocumentState {
|
|
99
|
+
chunksCreated?: pulumi.Input<number>;
|
|
100
|
+
collectionId?: pulumi.Input<string>;
|
|
101
|
+
documentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
102
|
+
documents?: pulumi.Input<pulumi.Input<inputs.AiVectorDocumentDocument>[]>;
|
|
103
|
+
/**
|
|
104
|
+
* Filter by document key
|
|
105
|
+
*/
|
|
106
|
+
key?: pulumi.Input<string>;
|
|
107
|
+
limit?: pulumi.Input<number>;
|
|
108
|
+
message?: pulumi.Input<string>;
|
|
109
|
+
offset?: pulumi.Input<number>;
|
|
110
|
+
organisation?: pulumi.Input<string>;
|
|
111
|
+
success?: pulumi.Input<boolean>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The set of arguments for constructing a AiVectorDocument resource.
|
|
116
|
+
*/
|
|
117
|
+
export interface AiVectorDocumentArgs {
|
|
118
|
+
collectionId?: pulumi.Input<string>;
|
|
119
|
+
documents: pulumi.Input<pulumi.Input<inputs.AiVectorDocumentDocument>[]>;
|
|
120
|
+
/**
|
|
121
|
+
* Filter by document key
|
|
122
|
+
*/
|
|
123
|
+
key?: pulumi.Input<string>;
|
|
124
|
+
limit?: pulumi.Input<number>;
|
|
125
|
+
offset?: pulumi.Input<number>;
|
|
126
|
+
organisation?: pulumi.Input<string>;
|
|
127
|
+
}
|
package/application.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
3
|
|
|
4
4
|
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
5
7
|
import * as utilities from "./utilities";
|
|
6
8
|
|
|
7
9
|
export class Application extends pulumi.CustomResource {
|
|
@@ -37,45 +39,42 @@ export class Application extends pulumi.CustomResource {
|
|
|
37
39
|
*/
|
|
38
40
|
declare public readonly appName: pulumi.Output<string>;
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
42
|
+
* The application ID
|
|
41
43
|
*/
|
|
42
|
-
declare public readonly
|
|
44
|
+
declare public readonly application: pulumi.Output<string>;
|
|
45
|
+
declare public readonly composeDefinition: pulumi.Output<outputs.ApplicationComposeDefinition>;
|
|
43
46
|
/**
|
|
44
|
-
* List of container names
|
|
47
|
+
* List of container names
|
|
45
48
|
*/
|
|
46
|
-
declare public /*out*/ readonly containerNames: pulumi.Output<string>;
|
|
49
|
+
declare public /*out*/ readonly containerNames: pulumi.Output<string[]>;
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
51
|
+
* Optional database configuration
|
|
49
52
|
*/
|
|
50
|
-
declare public readonly
|
|
53
|
+
declare public readonly database: pulumi.Output<outputs.ApplicationDatabase>;
|
|
51
54
|
/**
|
|
52
|
-
*
|
|
55
|
+
* Deployment history
|
|
53
56
|
*/
|
|
54
|
-
declare public readonly
|
|
55
|
-
/**
|
|
56
|
-
* Enable Multi-AZ database deployment
|
|
57
|
-
*/
|
|
58
|
-
declare public readonly databaseMultiAz: pulumi.Output<boolean>;
|
|
59
|
-
/**
|
|
60
|
-
* Database allocated storage in GiB
|
|
61
|
-
*/
|
|
62
|
-
declare public readonly databaseStorageGb: pulumi.Output<number>;
|
|
57
|
+
declare public /*out*/ readonly deploymentInformations: pulumi.Output<outputs.ApplicationDeploymentInformation[]>;
|
|
63
58
|
/**
|
|
64
59
|
* Desired task count
|
|
65
60
|
*/
|
|
66
61
|
declare public /*out*/ readonly desiredCount: pulumi.Output<number>;
|
|
67
62
|
/**
|
|
68
|
-
*
|
|
63
|
+
* List of environment names (read-only)
|
|
64
|
+
*/
|
|
65
|
+
declare public /*out*/ readonly environmentNames: pulumi.Output<string[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Optional. Initial environment variables for the production environment.
|
|
69
68
|
*/
|
|
70
|
-
declare public readonly
|
|
69
|
+
declare public readonly environments: pulumi.Output<outputs.ApplicationEnvironment[]>;
|
|
71
70
|
/**
|
|
72
|
-
*
|
|
71
|
+
* Optional filesystem configuration
|
|
73
72
|
*/
|
|
74
|
-
declare public readonly
|
|
73
|
+
declare public readonly filesystem: pulumi.Output<outputs.ApplicationFilesystem>;
|
|
75
74
|
/**
|
|
76
|
-
*
|
|
75
|
+
* Image reference information
|
|
77
76
|
*/
|
|
78
|
-
declare public readonly
|
|
77
|
+
declare public /*out*/ readonly imageReference: pulumi.Output<outputs.ApplicationImageReference>;
|
|
79
78
|
/**
|
|
80
79
|
* Maximum task count for auto-scaling
|
|
81
80
|
*/
|
|
@@ -85,9 +84,9 @@ export class Application extends pulumi.CustomResource {
|
|
|
85
84
|
*/
|
|
86
85
|
declare public readonly minCapacity: pulumi.Output<number>;
|
|
87
86
|
/**
|
|
88
|
-
*
|
|
87
|
+
* Organisation machine name
|
|
89
88
|
*/
|
|
90
|
-
declare public readonly
|
|
89
|
+
declare public /*out*/ readonly organisation: pulumi.Output<string>;
|
|
91
90
|
/**
|
|
92
91
|
* Currently running task count
|
|
93
92
|
*/
|
|
@@ -111,19 +110,19 @@ export class Application extends pulumi.CustomResource {
|
|
|
111
110
|
if (opts.id) {
|
|
112
111
|
const state = argsOrState as ApplicationState | undefined;
|
|
113
112
|
resourceInputs["appName"] = state?.appName;
|
|
113
|
+
resourceInputs["application"] = state?.application;
|
|
114
114
|
resourceInputs["composeDefinition"] = state?.composeDefinition;
|
|
115
115
|
resourceInputs["containerNames"] = state?.containerNames;
|
|
116
|
-
resourceInputs["
|
|
117
|
-
resourceInputs["
|
|
118
|
-
resourceInputs["databaseMultiAz"] = state?.databaseMultiAz;
|
|
119
|
-
resourceInputs["databaseStorageGb"] = state?.databaseStorageGb;
|
|
116
|
+
resourceInputs["database"] = state?.database;
|
|
117
|
+
resourceInputs["deploymentInformations"] = state?.deploymentInformations;
|
|
120
118
|
resourceInputs["desiredCount"] = state?.desiredCount;
|
|
121
|
-
resourceInputs["
|
|
122
|
-
resourceInputs["
|
|
123
|
-
resourceInputs["
|
|
119
|
+
resourceInputs["environmentNames"] = state?.environmentNames;
|
|
120
|
+
resourceInputs["environments"] = state?.environments;
|
|
121
|
+
resourceInputs["filesystem"] = state?.filesystem;
|
|
122
|
+
resourceInputs["imageReference"] = state?.imageReference;
|
|
124
123
|
resourceInputs["maxCapacity"] = state?.maxCapacity;
|
|
125
124
|
resourceInputs["minCapacity"] = state?.minCapacity;
|
|
126
|
-
resourceInputs["
|
|
125
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
127
126
|
resourceInputs["runningCount"] = state?.runningCount;
|
|
128
127
|
resourceInputs["status"] = state?.status;
|
|
129
128
|
} else {
|
|
@@ -135,19 +134,19 @@ export class Application extends pulumi.CustomResource {
|
|
|
135
134
|
throw new Error("Missing required property 'composeDefinition'");
|
|
136
135
|
}
|
|
137
136
|
resourceInputs["appName"] = args?.appName;
|
|
137
|
+
resourceInputs["application"] = args?.application;
|
|
138
138
|
resourceInputs["composeDefinition"] = args?.composeDefinition;
|
|
139
|
-
resourceInputs["
|
|
140
|
-
resourceInputs["
|
|
141
|
-
resourceInputs["
|
|
142
|
-
resourceInputs["databaseStorageGb"] = args?.databaseStorageGb;
|
|
143
|
-
resourceInputs["environment"] = args?.environment;
|
|
144
|
-
resourceInputs["filesystemMountPath"] = args?.filesystemMountPath;
|
|
145
|
-
resourceInputs["filesystemRequired"] = args?.filesystemRequired;
|
|
139
|
+
resourceInputs["database"] = args?.database;
|
|
140
|
+
resourceInputs["environments"] = args?.environments;
|
|
141
|
+
resourceInputs["filesystem"] = args?.filesystem;
|
|
146
142
|
resourceInputs["maxCapacity"] = args?.maxCapacity;
|
|
147
143
|
resourceInputs["minCapacity"] = args?.minCapacity;
|
|
148
|
-
resourceInputs["organization"] = args?.organization;
|
|
149
144
|
resourceInputs["containerNames"] = undefined /*out*/;
|
|
145
|
+
resourceInputs["deploymentInformations"] = undefined /*out*/;
|
|
150
146
|
resourceInputs["desiredCount"] = undefined /*out*/;
|
|
147
|
+
resourceInputs["environmentNames"] = undefined /*out*/;
|
|
148
|
+
resourceInputs["imageReference"] = undefined /*out*/;
|
|
149
|
+
resourceInputs["organisation"] = undefined /*out*/;
|
|
151
150
|
resourceInputs["runningCount"] = undefined /*out*/;
|
|
152
151
|
resourceInputs["status"] = undefined /*out*/;
|
|
153
152
|
}
|
|
@@ -165,45 +164,42 @@ export interface ApplicationState {
|
|
|
165
164
|
*/
|
|
166
165
|
appName?: pulumi.Input<string>;
|
|
167
166
|
/**
|
|
168
|
-
*
|
|
167
|
+
* The application ID
|
|
169
168
|
*/
|
|
170
|
-
|
|
169
|
+
application?: pulumi.Input<string>;
|
|
170
|
+
composeDefinition?: pulumi.Input<inputs.ApplicationComposeDefinition>;
|
|
171
171
|
/**
|
|
172
|
-
* List of container names
|
|
172
|
+
* List of container names
|
|
173
173
|
*/
|
|
174
|
-
containerNames?: pulumi.Input<string>;
|
|
174
|
+
containerNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* Optional database configuration
|
|
177
177
|
*/
|
|
178
|
-
|
|
178
|
+
database?: pulumi.Input<inputs.ApplicationDatabase>;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Deployment history
|
|
181
181
|
*/
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Enable Multi-AZ database deployment
|
|
185
|
-
*/
|
|
186
|
-
databaseMultiAz?: pulumi.Input<boolean>;
|
|
187
|
-
/**
|
|
188
|
-
* Database allocated storage in GiB
|
|
189
|
-
*/
|
|
190
|
-
databaseStorageGb?: pulumi.Input<number>;
|
|
182
|
+
deploymentInformations?: pulumi.Input<pulumi.Input<inputs.ApplicationDeploymentInformation>[]>;
|
|
191
183
|
/**
|
|
192
184
|
* Desired task count
|
|
193
185
|
*/
|
|
194
186
|
desiredCount?: pulumi.Input<number>;
|
|
195
187
|
/**
|
|
196
|
-
*
|
|
188
|
+
* List of environment names (read-only)
|
|
189
|
+
*/
|
|
190
|
+
environmentNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Optional. Initial environment variables for the production environment.
|
|
197
193
|
*/
|
|
198
|
-
|
|
194
|
+
environments?: pulumi.Input<pulumi.Input<inputs.ApplicationEnvironment>[]>;
|
|
199
195
|
/**
|
|
200
|
-
*
|
|
196
|
+
* Optional filesystem configuration
|
|
201
197
|
*/
|
|
202
|
-
|
|
198
|
+
filesystem?: pulumi.Input<inputs.ApplicationFilesystem>;
|
|
203
199
|
/**
|
|
204
|
-
*
|
|
200
|
+
* Image reference information
|
|
205
201
|
*/
|
|
206
|
-
|
|
202
|
+
imageReference?: pulumi.Input<inputs.ApplicationImageReference>;
|
|
207
203
|
/**
|
|
208
204
|
* Maximum task count for auto-scaling
|
|
209
205
|
*/
|
|
@@ -213,9 +209,9 @@ export interface ApplicationState {
|
|
|
213
209
|
*/
|
|
214
210
|
minCapacity?: pulumi.Input<number>;
|
|
215
211
|
/**
|
|
216
|
-
*
|
|
212
|
+
* Organisation machine name
|
|
217
213
|
*/
|
|
218
|
-
|
|
214
|
+
organisation?: pulumi.Input<string>;
|
|
219
215
|
/**
|
|
220
216
|
* Currently running task count
|
|
221
217
|
*/
|
|
@@ -235,37 +231,22 @@ export interface ApplicationArgs {
|
|
|
235
231
|
*/
|
|
236
232
|
appName: pulumi.Input<string>;
|
|
237
233
|
/**
|
|
238
|
-
*
|
|
239
|
-
*/
|
|
240
|
-
composeDefinition: pulumi.Input<string>;
|
|
241
|
-
/**
|
|
242
|
-
* Database engine type (mysql, postgres)
|
|
234
|
+
* The application ID
|
|
243
235
|
*/
|
|
244
|
-
|
|
236
|
+
application?: pulumi.Input<string>;
|
|
237
|
+
composeDefinition: pulumi.Input<inputs.ApplicationComposeDefinition>;
|
|
245
238
|
/**
|
|
246
|
-
*
|
|
239
|
+
* Optional database configuration
|
|
247
240
|
*/
|
|
248
|
-
|
|
241
|
+
database?: pulumi.Input<inputs.ApplicationDatabase>;
|
|
249
242
|
/**
|
|
250
|
-
*
|
|
243
|
+
* Optional. Initial environment variables for the production environment.
|
|
251
244
|
*/
|
|
252
|
-
|
|
245
|
+
environments?: pulumi.Input<pulumi.Input<inputs.ApplicationEnvironment>[]>;
|
|
253
246
|
/**
|
|
254
|
-
*
|
|
247
|
+
* Optional filesystem configuration
|
|
255
248
|
*/
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Initial environment variables as a JSON array of {name, value} objects
|
|
259
|
-
*/
|
|
260
|
-
environment?: pulumi.Input<string>;
|
|
261
|
-
/**
|
|
262
|
-
* Mount path inside containers for the shared filesystem
|
|
263
|
-
*/
|
|
264
|
-
filesystemMountPath?: pulumi.Input<string>;
|
|
265
|
-
/**
|
|
266
|
-
* Whether to create a shared filesystem
|
|
267
|
-
*/
|
|
268
|
-
filesystemRequired?: pulumi.Input<boolean>;
|
|
249
|
+
filesystem?: pulumi.Input<inputs.ApplicationFilesystem>;
|
|
269
250
|
/**
|
|
270
251
|
* Maximum task count for auto-scaling
|
|
271
252
|
*/
|
|
@@ -274,8 +255,4 @@ export interface ApplicationArgs {
|
|
|
274
255
|
* Minimum task count for auto-scaling
|
|
275
256
|
*/
|
|
276
257
|
minCapacity?: pulumi.Input<number>;
|
|
277
|
-
/**
|
|
278
|
-
* Organization machine name. Defaults to the provider-level organization.
|
|
279
|
-
*/
|
|
280
|
-
organization?: pulumi.Input<string>;
|
|
281
258
|
}
|