@quantcdn/pulumi-quant 0.3.0 → 5.5.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 +27 -74
- package/aiSkill.ts +69 -96
- package/aiVectorCollection.ts +63 -23
- package/aiVectorDocument.ts +45 -98
- package/application.ts +69 -92
- package/cronJob.ts +31 -87
- package/environment.ts +169 -49
- package/index.ts +14 -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 +2 -0
- package/types/input.ts +619 -20
- package/types/output.ts +619 -20
- package/utilities.ts +1 -1
- package/volume.ts +26 -48
package/aiVectorCollection.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 AiVectorCollection extends pulumi.CustomResource {
|
|
@@ -32,22 +34,30 @@ export class AiVectorCollection extends pulumi.CustomResource {
|
|
|
32
34
|
return obj['__pulumiType'] === AiVectorCollection.__pulumiType;
|
|
33
35
|
}
|
|
34
36
|
|
|
37
|
+
declare public /*out*/ readonly collection: pulumi.Output<outputs.AiVectorCollectionCollection>;
|
|
35
38
|
/**
|
|
36
|
-
*
|
|
39
|
+
* The collection ID
|
|
37
40
|
*/
|
|
38
|
-
declare public
|
|
41
|
+
declare public readonly collectionId: pulumi.Output<string>;
|
|
42
|
+
declare public readonly description: pulumi.Output<string>;
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* Embedding dimensions (default: 1024)
|
|
41
45
|
*/
|
|
42
|
-
declare public readonly
|
|
46
|
+
declare public readonly dimensions: pulumi.Output<number>;
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
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)
|
|
45
54
|
*/
|
|
46
55
|
declare public readonly name: pulumi.Output<string>;
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
57
|
+
* The organisation ID
|
|
49
58
|
*/
|
|
50
|
-
declare public readonly
|
|
59
|
+
declare public readonly organisation: pulumi.Output<string>;
|
|
60
|
+
declare public /*out*/ readonly success: pulumi.Output<boolean>;
|
|
51
61
|
|
|
52
62
|
/**
|
|
53
63
|
* Create a AiVectorCollection resource with the given unique name, arguments, and options.
|
|
@@ -56,22 +66,35 @@ export class AiVectorCollection extends pulumi.CustomResource {
|
|
|
56
66
|
* @param args The arguments to use to populate this resource's properties.
|
|
57
67
|
* @param opts A bag of options that control this resource's behavior.
|
|
58
68
|
*/
|
|
59
|
-
constructor(name: string, args
|
|
69
|
+
constructor(name: string, args: AiVectorCollectionArgs, opts?: pulumi.CustomResourceOptions)
|
|
60
70
|
constructor(name: string, argsOrState?: AiVectorCollectionArgs | AiVectorCollectionState, opts?: pulumi.CustomResourceOptions) {
|
|
61
71
|
let resourceInputs: pulumi.Inputs = {};
|
|
62
72
|
opts = opts || {};
|
|
63
73
|
if (opts.id) {
|
|
64
74
|
const state = argsOrState as AiVectorCollectionState | undefined;
|
|
65
|
-
resourceInputs["
|
|
75
|
+
resourceInputs["collection"] = state?.collection;
|
|
76
|
+
resourceInputs["collectionId"] = state?.collectionId;
|
|
66
77
|
resourceInputs["description"] = state?.description;
|
|
78
|
+
resourceInputs["dimensions"] = state?.dimensions;
|
|
79
|
+
resourceInputs["embeddingModel"] = state?.embeddingModel;
|
|
80
|
+
resourceInputs["message"] = state?.message;
|
|
67
81
|
resourceInputs["name"] = state?.name;
|
|
68
|
-
resourceInputs["
|
|
82
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
83
|
+
resourceInputs["success"] = state?.success;
|
|
69
84
|
} else {
|
|
70
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;
|
|
71
90
|
resourceInputs["description"] = args?.description;
|
|
91
|
+
resourceInputs["dimensions"] = args?.dimensions;
|
|
92
|
+
resourceInputs["embeddingModel"] = args?.embeddingModel;
|
|
72
93
|
resourceInputs["name"] = args?.name;
|
|
73
|
-
resourceInputs["
|
|
74
|
-
resourceInputs["
|
|
94
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
95
|
+
resourceInputs["collection"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
75
98
|
}
|
|
76
99
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
77
100
|
super(AiVectorCollection.__pulumiType, name, resourceInputs, opts);
|
|
@@ -82,22 +105,30 @@ export class AiVectorCollection extends pulumi.CustomResource {
|
|
|
82
105
|
* Input properties used for looking up and filtering AiVectorCollection resources.
|
|
83
106
|
*/
|
|
84
107
|
export interface AiVectorCollectionState {
|
|
108
|
+
collection?: pulumi.Input<inputs.AiVectorCollectionCollection>;
|
|
85
109
|
/**
|
|
86
|
-
*
|
|
110
|
+
* The collection ID
|
|
87
111
|
*/
|
|
88
|
-
|
|
112
|
+
collectionId?: pulumi.Input<string>;
|
|
113
|
+
description?: pulumi.Input<string>;
|
|
89
114
|
/**
|
|
90
|
-
*
|
|
115
|
+
* Embedding dimensions (default: 1024)
|
|
91
116
|
*/
|
|
92
|
-
|
|
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>;
|
|
93
123
|
/**
|
|
94
|
-
* Collection name (
|
|
124
|
+
* Collection name (used for reference)
|
|
95
125
|
*/
|
|
96
126
|
name?: pulumi.Input<string>;
|
|
97
127
|
/**
|
|
98
|
-
*
|
|
128
|
+
* The organisation ID
|
|
99
129
|
*/
|
|
100
|
-
|
|
130
|
+
organisation?: pulumi.Input<string>;
|
|
131
|
+
success?: pulumi.Input<boolean>;
|
|
101
132
|
}
|
|
102
133
|
|
|
103
134
|
/**
|
|
@@ -105,15 +136,24 @@ export interface AiVectorCollectionState {
|
|
|
105
136
|
*/
|
|
106
137
|
export interface AiVectorCollectionArgs {
|
|
107
138
|
/**
|
|
108
|
-
*
|
|
139
|
+
* The collection ID
|
|
109
140
|
*/
|
|
141
|
+
collectionId?: pulumi.Input<string>;
|
|
110
142
|
description?: pulumi.Input<string>;
|
|
111
143
|
/**
|
|
112
|
-
*
|
|
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)
|
|
113
153
|
*/
|
|
114
154
|
name?: pulumi.Input<string>;
|
|
115
155
|
/**
|
|
116
|
-
*
|
|
156
|
+
* The organisation ID
|
|
117
157
|
*/
|
|
118
|
-
|
|
158
|
+
organisation?: pulumi.Input<string>;
|
|
119
159
|
}
|
package/aiVectorDocument.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 AiVectorDocument extends pulumi.CustomResource {
|
|
@@ -32,38 +34,19 @@ export class AiVectorDocument extends pulumi.CustomResource {
|
|
|
32
34
|
return obj['__pulumiType'] === AiVectorDocument.__pulumiType;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
* Vector collection UUID
|
|
37
|
-
*/
|
|
37
|
+
declare public /*out*/ readonly chunksCreated: pulumi.Output<number>;
|
|
38
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[]>;
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
declare public readonly content: pulumi.Output<string>;
|
|
43
|
-
/**
|
|
44
|
-
* SHA256 hash of content for drift detection
|
|
45
|
-
*/
|
|
46
|
-
declare public /*out*/ readonly contentSha256: pulumi.Output<string>;
|
|
47
|
-
/**
|
|
48
|
-
* Auto-assigned document UUID
|
|
49
|
-
*/
|
|
50
|
-
declare public /*out*/ readonly documentId: pulumi.Output<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Stable document key (max 512 characters)
|
|
42
|
+
* Filter by document key
|
|
53
43
|
*/
|
|
54
44
|
declare public readonly key: pulumi.Output<string>;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
declare public readonly
|
|
59
|
-
|
|
60
|
-
* Organization machine name (defaults to provider organization)
|
|
61
|
-
*/
|
|
62
|
-
declare public readonly organization: pulumi.Output<string>;
|
|
63
|
-
/**
|
|
64
|
-
* List of searchable field names
|
|
65
|
-
*/
|
|
66
|
-
declare public readonly searchableFields: pulumi.Output<string[] | undefined>;
|
|
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>;
|
|
67
50
|
|
|
68
51
|
/**
|
|
69
52
|
* Create a AiVectorDocument resource with the given unique name, arguments, and options.
|
|
@@ -78,33 +61,31 @@ export class AiVectorDocument extends pulumi.CustomResource {
|
|
|
78
61
|
opts = opts || {};
|
|
79
62
|
if (opts.id) {
|
|
80
63
|
const state = argsOrState as AiVectorDocumentState | undefined;
|
|
64
|
+
resourceInputs["chunksCreated"] = state?.chunksCreated;
|
|
81
65
|
resourceInputs["collectionId"] = state?.collectionId;
|
|
82
|
-
resourceInputs["
|
|
83
|
-
resourceInputs["
|
|
84
|
-
resourceInputs["documentId"] = state?.documentId;
|
|
66
|
+
resourceInputs["documentIds"] = state?.documentIds;
|
|
67
|
+
resourceInputs["documents"] = state?.documents;
|
|
85
68
|
resourceInputs["key"] = state?.key;
|
|
86
|
-
resourceInputs["
|
|
87
|
-
resourceInputs["
|
|
88
|
-
resourceInputs["
|
|
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;
|
|
89
74
|
} else {
|
|
90
75
|
const args = argsOrState as AiVectorDocumentArgs | undefined;
|
|
91
|
-
if (args?.
|
|
92
|
-
throw new Error("Missing required property '
|
|
93
|
-
}
|
|
94
|
-
if (args?.content === undefined && !opts.urn) {
|
|
95
|
-
throw new Error("Missing required property 'content'");
|
|
96
|
-
}
|
|
97
|
-
if (args?.key === undefined && !opts.urn) {
|
|
98
|
-
throw new Error("Missing required property 'key'");
|
|
76
|
+
if (args?.documents === undefined && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'documents'");
|
|
99
78
|
}
|
|
100
79
|
resourceInputs["collectionId"] = args?.collectionId;
|
|
101
|
-
resourceInputs["
|
|
80
|
+
resourceInputs["documents"] = args?.documents;
|
|
102
81
|
resourceInputs["key"] = args?.key;
|
|
103
|
-
resourceInputs["
|
|
104
|
-
resourceInputs["
|
|
105
|
-
resourceInputs["
|
|
106
|
-
resourceInputs["
|
|
107
|
-
resourceInputs["
|
|
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*/;
|
|
108
89
|
}
|
|
109
90
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
91
|
super(AiVectorDocument.__pulumiType, name, resourceInputs, opts);
|
|
@@ -115,66 +96,32 @@ export class AiVectorDocument extends pulumi.CustomResource {
|
|
|
115
96
|
* Input properties used for looking up and filtering AiVectorDocument resources.
|
|
116
97
|
*/
|
|
117
98
|
export interface AiVectorDocumentState {
|
|
118
|
-
|
|
119
|
-
* Vector collection UUID
|
|
120
|
-
*/
|
|
99
|
+
chunksCreated?: pulumi.Input<number>;
|
|
121
100
|
collectionId?: pulumi.Input<string>;
|
|
101
|
+
documentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
102
|
+
documents?: pulumi.Input<pulumi.Input<inputs.AiVectorDocumentDocument>[]>;
|
|
122
103
|
/**
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
|
-
content?: pulumi.Input<string>;
|
|
126
|
-
/**
|
|
127
|
-
* SHA256 hash of content for drift detection
|
|
128
|
-
*/
|
|
129
|
-
contentSha256?: pulumi.Input<string>;
|
|
130
|
-
/**
|
|
131
|
-
* Auto-assigned document UUID
|
|
132
|
-
*/
|
|
133
|
-
documentId?: pulumi.Input<string>;
|
|
134
|
-
/**
|
|
135
|
-
* Stable document key (max 512 characters)
|
|
104
|
+
* Filter by document key
|
|
136
105
|
*/
|
|
137
106
|
key?: pulumi.Input<string>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
* Organization machine name (defaults to provider organization)
|
|
144
|
-
*/
|
|
145
|
-
organization?: pulumi.Input<string>;
|
|
146
|
-
/**
|
|
147
|
-
* List of searchable field names
|
|
148
|
-
*/
|
|
149
|
-
searchableFields?: pulumi.Input<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>;
|
|
150
112
|
}
|
|
151
113
|
|
|
152
114
|
/**
|
|
153
115
|
* The set of arguments for constructing a AiVectorDocument resource.
|
|
154
116
|
*/
|
|
155
117
|
export interface AiVectorDocumentArgs {
|
|
118
|
+
collectionId?: pulumi.Input<string>;
|
|
119
|
+
documents: pulumi.Input<pulumi.Input<inputs.AiVectorDocumentDocument>[]>;
|
|
156
120
|
/**
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
collectionId: pulumi.Input<string>;
|
|
160
|
-
/**
|
|
161
|
-
* Document text content
|
|
162
|
-
*/
|
|
163
|
-
content: pulumi.Input<string>;
|
|
164
|
-
/**
|
|
165
|
-
* Stable document key (max 512 characters)
|
|
166
|
-
*/
|
|
167
|
-
key: pulumi.Input<string>;
|
|
168
|
-
/**
|
|
169
|
-
* Key-value metadata attached to the document
|
|
170
|
-
*/
|
|
171
|
-
metadata?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
|
172
|
-
/**
|
|
173
|
-
* Organization machine name (defaults to provider organization)
|
|
174
|
-
*/
|
|
175
|
-
organization?: pulumi.Input<string>;
|
|
176
|
-
/**
|
|
177
|
-
* List of searchable field names
|
|
121
|
+
* Filter by document key
|
|
178
122
|
*/
|
|
179
|
-
|
|
123
|
+
key?: pulumi.Input<string>;
|
|
124
|
+
limit?: pulumi.Input<number>;
|
|
125
|
+
offset?: pulumi.Input<number>;
|
|
126
|
+
organisation?: pulumi.Input<string>;
|
|
180
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
|
}
|