stacktape 2.23.0-alpha.8 → 2.23.0-beta.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/index.d.ts +58 -65
- package/index.js.map +7 -0
- package/package.json +14 -14
- package/sdk.js.map +7 -0
package/index.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ import type {
|
|
|
98
98
|
* Helper function to define a config with automatic transformation
|
|
99
99
|
* Use this when exporting your config for the Stacktape CLI
|
|
100
100
|
*/
|
|
101
|
-
export declare const defineConfig: (configFn: (params: GetConfigParams) =>
|
|
101
|
+
export declare const defineConfig: (configFn: (params: GetConfigParams) => StacktapeConfig) => (params: GetConfigParams) => any;
|
|
102
102
|
/**
|
|
103
103
|
* Transforms a config with resource instances into a plain config object
|
|
104
104
|
*/
|
|
@@ -109,85 +109,78 @@ export {};
|
|
|
109
109
|
// ==========================================
|
|
110
110
|
// ESSENTIAL BASE TYPES
|
|
111
111
|
// ==========================================
|
|
112
|
-
|
|
113
112
|
declare const getParamReferenceSymbol: unique symbol;
|
|
113
|
+
|
|
114
114
|
declare const getTypeSymbol: unique symbol;
|
|
115
|
+
|
|
115
116
|
declare const getPropertiesSymbol: unique symbol;
|
|
117
|
+
|
|
116
118
|
declare const getOverridesSymbol: unique symbol;
|
|
117
119
|
|
|
118
|
-
/**
|
|
119
|
-
* A reference to a resource parameter that will be resolved at runtime
|
|
120
|
-
*/
|
|
121
120
|
export declare class ResourceParamReference {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
private __resourceName;
|
|
122
|
+
private __param;
|
|
123
|
+
constructor(resourceName: string, param: string);
|
|
124
|
+
toString(): string;
|
|
125
|
+
toJSON(): string;
|
|
126
|
+
valueOf(): string;
|
|
128
127
|
}
|
|
129
128
|
|
|
130
|
-
/**
|
|
131
|
-
* Base class for type/properties structures (engines, packaging, events, etc.)
|
|
132
|
-
*/
|
|
133
129
|
export declare class BaseTypeProperties {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
readonly type: string;
|
|
131
|
+
readonly properties: any;
|
|
132
|
+
constructor(type: string, properties: any);
|
|
137
133
|
}
|
|
138
134
|
|
|
139
|
-
/**
|
|
140
|
-
* Base resource class that provides common functionality
|
|
141
|
-
*/
|
|
142
135
|
export declare class BaseResource {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
private readonly _type;
|
|
137
|
+
private readonly _properties;
|
|
138
|
+
private readonly _overrides?;
|
|
139
|
+
private readonly _resourceName;
|
|
140
|
+
constructor(name: string, type: string, properties: any, overrides?: any);
|
|
141
|
+
get resourceName(): string;
|
|
142
|
+
[getParamReferenceSymbol](paramName: string): ResourceParamReference;
|
|
143
|
+
[getTypeSymbol](): string;
|
|
144
|
+
[getPropertiesSymbol](): any;
|
|
145
|
+
[getOverridesSymbol](): any | undefined;
|
|
153
146
|
}
|
|
154
147
|
|
|
155
|
-
/**
|
|
156
|
-
* Parameters passed to the config function
|
|
157
|
-
*/
|
|
158
148
|
export type GetConfigParams = {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Project name used for this operation
|
|
151
|
+
*/
|
|
152
|
+
projectName: string;
|
|
153
|
+
/**
|
|
154
|
+
* Stage ("environment") used for this operation
|
|
155
|
+
*/
|
|
156
|
+
stage: string;
|
|
157
|
+
/**
|
|
158
|
+
* AWS region used for this operation
|
|
159
|
+
* The list of available regions is available at https://www.aws-services.info/regions.html
|
|
160
|
+
*/
|
|
161
|
+
region: string;
|
|
162
|
+
/**
|
|
163
|
+
* List of arguments passed to the operation
|
|
164
|
+
*/
|
|
165
|
+
cliArgs: StacktapeArgs;
|
|
166
|
+
/**
|
|
167
|
+
* Stacktape command used to perform this operation (can be either deploy, codebuild:deploy, delete, etc.)
|
|
168
|
+
*/
|
|
169
|
+
command: string;
|
|
170
|
+
/**
|
|
171
|
+
* Locally-configured AWS profile used to execute the operation.
|
|
172
|
+
* Doesn't apply if you have your AWS account connected in "automatic" mode.
|
|
173
|
+
*/
|
|
174
|
+
awsProfile: string;
|
|
175
|
+
/**
|
|
176
|
+
* Information about the user performing the stack operation
|
|
177
|
+
*/
|
|
178
|
+
user: {
|
|
179
|
+
id: string;
|
|
180
|
+
name: string;
|
|
181
|
+
email: string;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
191
184
|
|
|
192
185
|
// ==========================================
|
|
193
186
|
// AUGMENTED PROPS TYPES
|