@cdktf-providers/aptible 0.9.18
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/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/app/index.d.ts +684 -0
- package/dist/app/index.js +1743 -0
- package/dist/data-aptible-backup-retention-policy/index.d.ts +58 -0
- package/dist/data-aptible-backup-retention-policy/index.js +135 -0
- package/dist/data-aptible-environment/index.d.ts +53 -0
- package/dist/data-aptible-environment/index.js +115 -0
- package/dist/data-aptible-stack/index.d.ts +54 -0
- package/dist/data-aptible-stack/index.js +119 -0
- package/dist/database/index.d.ts +127 -0
- package/dist/database/index.js +308 -0
- package/dist/endpoint/index.d.ts +181 -0
- package/dist/endpoint/index.js +447 -0
- package/dist/environment/index.d.ts +154 -0
- package/dist/environment/index.js +386 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +12 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +12 -0
- package/dist/log-drain/index.d.ts +195 -0
- package/dist/log-drain/index.js +477 -0
- package/dist/metric-drain/index.d.ts +150 -0
- package/dist/metric-drain/index.js +362 -0
- package/dist/provider/index.d.ts +43 -0
- package/dist/provider/index.js +85 -0
- package/dist/replica/index.d.ts +115 -0
- package/dist/replica/index.js +274 -0
- package/package.json +50 -0
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface AppConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#config App#config}
|
|
6
|
+
*/
|
|
7
|
+
readonly config?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#env_id App#env_id}
|
|
12
|
+
*/
|
|
13
|
+
readonly envId: number;
|
|
14
|
+
/**
|
|
15
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#handle App#handle}
|
|
16
|
+
*/
|
|
17
|
+
readonly handle: string;
|
|
18
|
+
/**
|
|
19
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#id App#id}
|
|
20
|
+
*
|
|
21
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
22
|
+
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
23
|
+
*/
|
|
24
|
+
readonly id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* service block
|
|
27
|
+
*
|
|
28
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#service App#service}
|
|
29
|
+
*/
|
|
30
|
+
readonly service?: AppService[] | cdktf.IResolvable;
|
|
31
|
+
}
|
|
32
|
+
export interface AppServiceAutoscalingPolicy {
|
|
33
|
+
/**
|
|
34
|
+
* The type of autoscaling, must be either 'vertical' or 'horizontal'.
|
|
35
|
+
*
|
|
36
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#autoscaling_type App#autoscaling_type}
|
|
37
|
+
*/
|
|
38
|
+
readonly autoscalingType: string;
|
|
39
|
+
/**
|
|
40
|
+
* The maximum number of containers for scaling.
|
|
41
|
+
*
|
|
42
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#max_containers App#max_containers}
|
|
43
|
+
*/
|
|
44
|
+
readonly maxContainers?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum CPU utilization threshold for scaling.
|
|
47
|
+
*
|
|
48
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#max_cpu_threshold App#max_cpu_threshold}
|
|
49
|
+
*/
|
|
50
|
+
readonly maxCpuThreshold?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The maximum memory allocation in MB.
|
|
53
|
+
*
|
|
54
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#maximum_memory App#maximum_memory}
|
|
55
|
+
*/
|
|
56
|
+
readonly maximumMemory?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_cpu_ratio_c_threshold App#mem_cpu_ratio_c_threshold}
|
|
59
|
+
*/
|
|
60
|
+
readonly memCpuRatioCThreshold?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_cpu_ratio_r_threshold App#mem_cpu_ratio_r_threshold}
|
|
63
|
+
*/
|
|
64
|
+
readonly memCpuRatioRThreshold?: number;
|
|
65
|
+
/**
|
|
66
|
+
* The memory usage threshold for scaling down.
|
|
67
|
+
*
|
|
68
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_scale_down_threshold App#mem_scale_down_threshold}
|
|
69
|
+
*/
|
|
70
|
+
readonly memScaleDownThreshold?: number;
|
|
71
|
+
/**
|
|
72
|
+
* The memory usage threshold for scaling up.
|
|
73
|
+
*
|
|
74
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_scale_up_threshold App#mem_scale_up_threshold}
|
|
75
|
+
*/
|
|
76
|
+
readonly memScaleUpThreshold?: number;
|
|
77
|
+
/**
|
|
78
|
+
* The lookback period for metrics in seconds.
|
|
79
|
+
*
|
|
80
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#metric_lookback_seconds App#metric_lookback_seconds}
|
|
81
|
+
*/
|
|
82
|
+
readonly metricLookbackSeconds?: number;
|
|
83
|
+
/**
|
|
84
|
+
* The minimum number of containers for scaling.
|
|
85
|
+
*
|
|
86
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#min_containers App#min_containers}
|
|
87
|
+
*/
|
|
88
|
+
readonly minContainers?: number;
|
|
89
|
+
/**
|
|
90
|
+
* The minimum CPU utilization threshold for scaling.
|
|
91
|
+
*
|
|
92
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#min_cpu_threshold App#min_cpu_threshold}
|
|
93
|
+
*/
|
|
94
|
+
readonly minCpuThreshold?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The minimum memory allocation in MB.
|
|
97
|
+
*
|
|
98
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#minimum_memory App#minimum_memory}
|
|
99
|
+
*/
|
|
100
|
+
readonly minimumMemory?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The percentile threshold used for scaling.
|
|
103
|
+
*
|
|
104
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#percentile App#percentile}
|
|
105
|
+
*/
|
|
106
|
+
readonly percentile?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Seconds to ignore in metrics after a release event.
|
|
109
|
+
*
|
|
110
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#post_release_cooldown_seconds App#post_release_cooldown_seconds}
|
|
111
|
+
*/
|
|
112
|
+
readonly postReleaseCooldownSeconds?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Cooldown period in seconds after a scale-down event.
|
|
115
|
+
*
|
|
116
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#post_scale_down_cooldown_seconds App#post_scale_down_cooldown_seconds}
|
|
117
|
+
*/
|
|
118
|
+
readonly postScaleDownCooldownSeconds?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Cooldown period in seconds after a scale-up event.
|
|
121
|
+
*
|
|
122
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#post_scale_up_cooldown_seconds App#post_scale_up_cooldown_seconds}
|
|
123
|
+
*/
|
|
124
|
+
readonly postScaleUpCooldownSeconds?: number;
|
|
125
|
+
/**
|
|
126
|
+
* The number of containers to remove in each scale-down event.
|
|
127
|
+
*
|
|
128
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#scale_down_step App#scale_down_step}
|
|
129
|
+
*/
|
|
130
|
+
readonly scaleDownStep?: number;
|
|
131
|
+
/**
|
|
132
|
+
* The number of containers to add in each scale-up event.
|
|
133
|
+
*
|
|
134
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#scale_up_step App#scale_up_step}
|
|
135
|
+
*/
|
|
136
|
+
readonly scaleUpStep?: number;
|
|
137
|
+
/**
|
|
138
|
+
* Whether to use restart-free scaling for this service.
|
|
139
|
+
*
|
|
140
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#use_horizontal_scale App#use_horizontal_scale}
|
|
141
|
+
*/
|
|
142
|
+
readonly useHorizontalScale?: boolean | cdktf.IResolvable;
|
|
143
|
+
}
|
|
144
|
+
export declare function appServiceAutoscalingPolicyToTerraform(struct?: AppServiceAutoscalingPolicy | cdktf.IResolvable): any;
|
|
145
|
+
export declare function appServiceAutoscalingPolicyToHclTerraform(struct?: AppServiceAutoscalingPolicy | cdktf.IResolvable): any;
|
|
146
|
+
export declare class AppServiceAutoscalingPolicyOutputReference extends cdktf.ComplexObject {
|
|
147
|
+
private isEmptyObject;
|
|
148
|
+
private resolvableValue?;
|
|
149
|
+
/**
|
|
150
|
+
* @param terraformResource The parent resource
|
|
151
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
152
|
+
* @param complexObjectIndex the index of this item in the list
|
|
153
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
154
|
+
*/
|
|
155
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
156
|
+
get internalValue(): AppServiceAutoscalingPolicy | cdktf.IResolvable | undefined;
|
|
157
|
+
set internalValue(value: AppServiceAutoscalingPolicy | cdktf.IResolvable | undefined);
|
|
158
|
+
private _autoscalingType?;
|
|
159
|
+
get autoscalingType(): string;
|
|
160
|
+
set autoscalingType(value: string);
|
|
161
|
+
get autoscalingTypeInput(): string;
|
|
162
|
+
private _maxContainers?;
|
|
163
|
+
get maxContainers(): number;
|
|
164
|
+
set maxContainers(value: number);
|
|
165
|
+
resetMaxContainers(): void;
|
|
166
|
+
get maxContainersInput(): number;
|
|
167
|
+
private _maxCpuThreshold?;
|
|
168
|
+
get maxCpuThreshold(): number;
|
|
169
|
+
set maxCpuThreshold(value: number);
|
|
170
|
+
resetMaxCpuThreshold(): void;
|
|
171
|
+
get maxCpuThresholdInput(): number;
|
|
172
|
+
private _maximumMemory?;
|
|
173
|
+
get maximumMemory(): number;
|
|
174
|
+
set maximumMemory(value: number);
|
|
175
|
+
resetMaximumMemory(): void;
|
|
176
|
+
get maximumMemoryInput(): number;
|
|
177
|
+
private _memCpuRatioCThreshold?;
|
|
178
|
+
get memCpuRatioCThreshold(): number;
|
|
179
|
+
set memCpuRatioCThreshold(value: number);
|
|
180
|
+
resetMemCpuRatioCThreshold(): void;
|
|
181
|
+
get memCpuRatioCThresholdInput(): number;
|
|
182
|
+
private _memCpuRatioRThreshold?;
|
|
183
|
+
get memCpuRatioRThreshold(): number;
|
|
184
|
+
set memCpuRatioRThreshold(value: number);
|
|
185
|
+
resetMemCpuRatioRThreshold(): void;
|
|
186
|
+
get memCpuRatioRThresholdInput(): number;
|
|
187
|
+
private _memScaleDownThreshold?;
|
|
188
|
+
get memScaleDownThreshold(): number;
|
|
189
|
+
set memScaleDownThreshold(value: number);
|
|
190
|
+
resetMemScaleDownThreshold(): void;
|
|
191
|
+
get memScaleDownThresholdInput(): number;
|
|
192
|
+
private _memScaleUpThreshold?;
|
|
193
|
+
get memScaleUpThreshold(): number;
|
|
194
|
+
set memScaleUpThreshold(value: number);
|
|
195
|
+
resetMemScaleUpThreshold(): void;
|
|
196
|
+
get memScaleUpThresholdInput(): number;
|
|
197
|
+
private _metricLookbackSeconds?;
|
|
198
|
+
get metricLookbackSeconds(): number;
|
|
199
|
+
set metricLookbackSeconds(value: number);
|
|
200
|
+
resetMetricLookbackSeconds(): void;
|
|
201
|
+
get metricLookbackSecondsInput(): number;
|
|
202
|
+
private _minContainers?;
|
|
203
|
+
get minContainers(): number;
|
|
204
|
+
set minContainers(value: number);
|
|
205
|
+
resetMinContainers(): void;
|
|
206
|
+
get minContainersInput(): number;
|
|
207
|
+
private _minCpuThreshold?;
|
|
208
|
+
get minCpuThreshold(): number;
|
|
209
|
+
set minCpuThreshold(value: number);
|
|
210
|
+
resetMinCpuThreshold(): void;
|
|
211
|
+
get minCpuThresholdInput(): number;
|
|
212
|
+
private _minimumMemory?;
|
|
213
|
+
get minimumMemory(): number;
|
|
214
|
+
set minimumMemory(value: number);
|
|
215
|
+
resetMinimumMemory(): void;
|
|
216
|
+
get minimumMemoryInput(): number;
|
|
217
|
+
private _percentile?;
|
|
218
|
+
get percentile(): number;
|
|
219
|
+
set percentile(value: number);
|
|
220
|
+
resetPercentile(): void;
|
|
221
|
+
get percentileInput(): number;
|
|
222
|
+
private _postReleaseCooldownSeconds?;
|
|
223
|
+
get postReleaseCooldownSeconds(): number;
|
|
224
|
+
set postReleaseCooldownSeconds(value: number);
|
|
225
|
+
resetPostReleaseCooldownSeconds(): void;
|
|
226
|
+
get postReleaseCooldownSecondsInput(): number;
|
|
227
|
+
private _postScaleDownCooldownSeconds?;
|
|
228
|
+
get postScaleDownCooldownSeconds(): number;
|
|
229
|
+
set postScaleDownCooldownSeconds(value: number);
|
|
230
|
+
resetPostScaleDownCooldownSeconds(): void;
|
|
231
|
+
get postScaleDownCooldownSecondsInput(): number;
|
|
232
|
+
private _postScaleUpCooldownSeconds?;
|
|
233
|
+
get postScaleUpCooldownSeconds(): number;
|
|
234
|
+
set postScaleUpCooldownSeconds(value: number);
|
|
235
|
+
resetPostScaleUpCooldownSeconds(): void;
|
|
236
|
+
get postScaleUpCooldownSecondsInput(): number;
|
|
237
|
+
private _scaleDownStep?;
|
|
238
|
+
get scaleDownStep(): number;
|
|
239
|
+
set scaleDownStep(value: number);
|
|
240
|
+
resetScaleDownStep(): void;
|
|
241
|
+
get scaleDownStepInput(): number;
|
|
242
|
+
private _scaleUpStep?;
|
|
243
|
+
get scaleUpStep(): number;
|
|
244
|
+
set scaleUpStep(value: number);
|
|
245
|
+
resetScaleUpStep(): void;
|
|
246
|
+
get scaleUpStepInput(): number;
|
|
247
|
+
get scalingEnabled(): any;
|
|
248
|
+
private _useHorizontalScale?;
|
|
249
|
+
get useHorizontalScale(): boolean | cdktf.IResolvable;
|
|
250
|
+
set useHorizontalScale(value: boolean | cdktf.IResolvable);
|
|
251
|
+
resetUseHorizontalScale(): void;
|
|
252
|
+
get useHorizontalScaleInput(): any;
|
|
253
|
+
}
|
|
254
|
+
export declare class AppServiceAutoscalingPolicyList extends cdktf.ComplexList {
|
|
255
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
256
|
+
protected terraformAttribute: string;
|
|
257
|
+
protected wrapsSet: boolean;
|
|
258
|
+
internalValue?: AppServiceAutoscalingPolicy[] | cdktf.IResolvable;
|
|
259
|
+
/**
|
|
260
|
+
* @param terraformResource The parent resource
|
|
261
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
262
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
263
|
+
*/
|
|
264
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
265
|
+
/**
|
|
266
|
+
* @param index the index of the item to return
|
|
267
|
+
*/
|
|
268
|
+
get(index: number): AppServiceAutoscalingPolicyOutputReference;
|
|
269
|
+
}
|
|
270
|
+
export interface AppServiceServiceSizingPolicy {
|
|
271
|
+
/**
|
|
272
|
+
* The type of autoscaling, must be either 'vertical' or 'horizontal'.
|
|
273
|
+
*
|
|
274
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#autoscaling_type App#autoscaling_type}
|
|
275
|
+
*/
|
|
276
|
+
readonly autoscalingType: string;
|
|
277
|
+
/**
|
|
278
|
+
* The maximum number of containers for scaling.
|
|
279
|
+
*
|
|
280
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#max_containers App#max_containers}
|
|
281
|
+
*/
|
|
282
|
+
readonly maxContainers?: number;
|
|
283
|
+
/**
|
|
284
|
+
* The maximum CPU utilization threshold for scaling.
|
|
285
|
+
*
|
|
286
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#max_cpu_threshold App#max_cpu_threshold}
|
|
287
|
+
*/
|
|
288
|
+
readonly maxCpuThreshold?: number;
|
|
289
|
+
/**
|
|
290
|
+
* The maximum memory allocation in MB.
|
|
291
|
+
*
|
|
292
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#maximum_memory App#maximum_memory}
|
|
293
|
+
*/
|
|
294
|
+
readonly maximumMemory?: number;
|
|
295
|
+
/**
|
|
296
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_cpu_ratio_c_threshold App#mem_cpu_ratio_c_threshold}
|
|
297
|
+
*/
|
|
298
|
+
readonly memCpuRatioCThreshold?: number;
|
|
299
|
+
/**
|
|
300
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_cpu_ratio_r_threshold App#mem_cpu_ratio_r_threshold}
|
|
301
|
+
*/
|
|
302
|
+
readonly memCpuRatioRThreshold?: number;
|
|
303
|
+
/**
|
|
304
|
+
* The memory usage threshold for scaling down.
|
|
305
|
+
*
|
|
306
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_scale_down_threshold App#mem_scale_down_threshold}
|
|
307
|
+
*/
|
|
308
|
+
readonly memScaleDownThreshold?: number;
|
|
309
|
+
/**
|
|
310
|
+
* The memory usage threshold for scaling up.
|
|
311
|
+
*
|
|
312
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#mem_scale_up_threshold App#mem_scale_up_threshold}
|
|
313
|
+
*/
|
|
314
|
+
readonly memScaleUpThreshold?: number;
|
|
315
|
+
/**
|
|
316
|
+
* The lookback period for metrics in seconds.
|
|
317
|
+
*
|
|
318
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#metric_lookback_seconds App#metric_lookback_seconds}
|
|
319
|
+
*/
|
|
320
|
+
readonly metricLookbackSeconds?: number;
|
|
321
|
+
/**
|
|
322
|
+
* The minimum number of containers for scaling.
|
|
323
|
+
*
|
|
324
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#min_containers App#min_containers}
|
|
325
|
+
*/
|
|
326
|
+
readonly minContainers?: number;
|
|
327
|
+
/**
|
|
328
|
+
* The minimum CPU utilization threshold for scaling.
|
|
329
|
+
*
|
|
330
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#min_cpu_threshold App#min_cpu_threshold}
|
|
331
|
+
*/
|
|
332
|
+
readonly minCpuThreshold?: number;
|
|
333
|
+
/**
|
|
334
|
+
* The minimum memory allocation in MB.
|
|
335
|
+
*
|
|
336
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#minimum_memory App#minimum_memory}
|
|
337
|
+
*/
|
|
338
|
+
readonly minimumMemory?: number;
|
|
339
|
+
/**
|
|
340
|
+
* The percentile threshold used for scaling.
|
|
341
|
+
*
|
|
342
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#percentile App#percentile}
|
|
343
|
+
*/
|
|
344
|
+
readonly percentile?: number;
|
|
345
|
+
/**
|
|
346
|
+
* Seconds to ignore in metrics after a release event.
|
|
347
|
+
*
|
|
348
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#post_release_cooldown_seconds App#post_release_cooldown_seconds}
|
|
349
|
+
*/
|
|
350
|
+
readonly postReleaseCooldownSeconds?: number;
|
|
351
|
+
/**
|
|
352
|
+
* Cooldown period in seconds after a scale-down event.
|
|
353
|
+
*
|
|
354
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#post_scale_down_cooldown_seconds App#post_scale_down_cooldown_seconds}
|
|
355
|
+
*/
|
|
356
|
+
readonly postScaleDownCooldownSeconds?: number;
|
|
357
|
+
/**
|
|
358
|
+
* Cooldown period in seconds after a scale-up event.
|
|
359
|
+
*
|
|
360
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#post_scale_up_cooldown_seconds App#post_scale_up_cooldown_seconds}
|
|
361
|
+
*/
|
|
362
|
+
readonly postScaleUpCooldownSeconds?: number;
|
|
363
|
+
/**
|
|
364
|
+
* The number of containers to remove in each scale-down event.
|
|
365
|
+
*
|
|
366
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#scale_down_step App#scale_down_step}
|
|
367
|
+
*/
|
|
368
|
+
readonly scaleDownStep?: number;
|
|
369
|
+
/**
|
|
370
|
+
* The number of containers to add in each scale-up event.
|
|
371
|
+
*
|
|
372
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#scale_up_step App#scale_up_step}
|
|
373
|
+
*/
|
|
374
|
+
readonly scaleUpStep?: number;
|
|
375
|
+
/**
|
|
376
|
+
* Whether to use restart-free scaling for this service.
|
|
377
|
+
*
|
|
378
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#use_horizontal_scale App#use_horizontal_scale}
|
|
379
|
+
*/
|
|
380
|
+
readonly useHorizontalScale?: boolean | cdktf.IResolvable;
|
|
381
|
+
}
|
|
382
|
+
export declare function appServiceServiceSizingPolicyToTerraform(struct?: AppServiceServiceSizingPolicy | cdktf.IResolvable): any;
|
|
383
|
+
export declare function appServiceServiceSizingPolicyToHclTerraform(struct?: AppServiceServiceSizingPolicy | cdktf.IResolvable): any;
|
|
384
|
+
export declare class AppServiceServiceSizingPolicyOutputReference extends cdktf.ComplexObject {
|
|
385
|
+
private isEmptyObject;
|
|
386
|
+
private resolvableValue?;
|
|
387
|
+
/**
|
|
388
|
+
* @param terraformResource The parent resource
|
|
389
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
390
|
+
* @param complexObjectIndex the index of this item in the list
|
|
391
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
392
|
+
*/
|
|
393
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
394
|
+
get internalValue(): AppServiceServiceSizingPolicy | cdktf.IResolvable | undefined;
|
|
395
|
+
set internalValue(value: AppServiceServiceSizingPolicy | cdktf.IResolvable | undefined);
|
|
396
|
+
private _autoscalingType?;
|
|
397
|
+
get autoscalingType(): string;
|
|
398
|
+
set autoscalingType(value: string);
|
|
399
|
+
get autoscalingTypeInput(): string;
|
|
400
|
+
private _maxContainers?;
|
|
401
|
+
get maxContainers(): number;
|
|
402
|
+
set maxContainers(value: number);
|
|
403
|
+
resetMaxContainers(): void;
|
|
404
|
+
get maxContainersInput(): number;
|
|
405
|
+
private _maxCpuThreshold?;
|
|
406
|
+
get maxCpuThreshold(): number;
|
|
407
|
+
set maxCpuThreshold(value: number);
|
|
408
|
+
resetMaxCpuThreshold(): void;
|
|
409
|
+
get maxCpuThresholdInput(): number;
|
|
410
|
+
private _maximumMemory?;
|
|
411
|
+
get maximumMemory(): number;
|
|
412
|
+
set maximumMemory(value: number);
|
|
413
|
+
resetMaximumMemory(): void;
|
|
414
|
+
get maximumMemoryInput(): number;
|
|
415
|
+
private _memCpuRatioCThreshold?;
|
|
416
|
+
get memCpuRatioCThreshold(): number;
|
|
417
|
+
set memCpuRatioCThreshold(value: number);
|
|
418
|
+
resetMemCpuRatioCThreshold(): void;
|
|
419
|
+
get memCpuRatioCThresholdInput(): number;
|
|
420
|
+
private _memCpuRatioRThreshold?;
|
|
421
|
+
get memCpuRatioRThreshold(): number;
|
|
422
|
+
set memCpuRatioRThreshold(value: number);
|
|
423
|
+
resetMemCpuRatioRThreshold(): void;
|
|
424
|
+
get memCpuRatioRThresholdInput(): number;
|
|
425
|
+
private _memScaleDownThreshold?;
|
|
426
|
+
get memScaleDownThreshold(): number;
|
|
427
|
+
set memScaleDownThreshold(value: number);
|
|
428
|
+
resetMemScaleDownThreshold(): void;
|
|
429
|
+
get memScaleDownThresholdInput(): number;
|
|
430
|
+
private _memScaleUpThreshold?;
|
|
431
|
+
get memScaleUpThreshold(): number;
|
|
432
|
+
set memScaleUpThreshold(value: number);
|
|
433
|
+
resetMemScaleUpThreshold(): void;
|
|
434
|
+
get memScaleUpThresholdInput(): number;
|
|
435
|
+
private _metricLookbackSeconds?;
|
|
436
|
+
get metricLookbackSeconds(): number;
|
|
437
|
+
set metricLookbackSeconds(value: number);
|
|
438
|
+
resetMetricLookbackSeconds(): void;
|
|
439
|
+
get metricLookbackSecondsInput(): number;
|
|
440
|
+
private _minContainers?;
|
|
441
|
+
get minContainers(): number;
|
|
442
|
+
set minContainers(value: number);
|
|
443
|
+
resetMinContainers(): void;
|
|
444
|
+
get minContainersInput(): number;
|
|
445
|
+
private _minCpuThreshold?;
|
|
446
|
+
get minCpuThreshold(): number;
|
|
447
|
+
set minCpuThreshold(value: number);
|
|
448
|
+
resetMinCpuThreshold(): void;
|
|
449
|
+
get minCpuThresholdInput(): number;
|
|
450
|
+
private _minimumMemory?;
|
|
451
|
+
get minimumMemory(): number;
|
|
452
|
+
set minimumMemory(value: number);
|
|
453
|
+
resetMinimumMemory(): void;
|
|
454
|
+
get minimumMemoryInput(): number;
|
|
455
|
+
private _percentile?;
|
|
456
|
+
get percentile(): number;
|
|
457
|
+
set percentile(value: number);
|
|
458
|
+
resetPercentile(): void;
|
|
459
|
+
get percentileInput(): number;
|
|
460
|
+
private _postReleaseCooldownSeconds?;
|
|
461
|
+
get postReleaseCooldownSeconds(): number;
|
|
462
|
+
set postReleaseCooldownSeconds(value: number);
|
|
463
|
+
resetPostReleaseCooldownSeconds(): void;
|
|
464
|
+
get postReleaseCooldownSecondsInput(): number;
|
|
465
|
+
private _postScaleDownCooldownSeconds?;
|
|
466
|
+
get postScaleDownCooldownSeconds(): number;
|
|
467
|
+
set postScaleDownCooldownSeconds(value: number);
|
|
468
|
+
resetPostScaleDownCooldownSeconds(): void;
|
|
469
|
+
get postScaleDownCooldownSecondsInput(): number;
|
|
470
|
+
private _postScaleUpCooldownSeconds?;
|
|
471
|
+
get postScaleUpCooldownSeconds(): number;
|
|
472
|
+
set postScaleUpCooldownSeconds(value: number);
|
|
473
|
+
resetPostScaleUpCooldownSeconds(): void;
|
|
474
|
+
get postScaleUpCooldownSecondsInput(): number;
|
|
475
|
+
private _scaleDownStep?;
|
|
476
|
+
get scaleDownStep(): number;
|
|
477
|
+
set scaleDownStep(value: number);
|
|
478
|
+
resetScaleDownStep(): void;
|
|
479
|
+
get scaleDownStepInput(): number;
|
|
480
|
+
private _scaleUpStep?;
|
|
481
|
+
get scaleUpStep(): number;
|
|
482
|
+
set scaleUpStep(value: number);
|
|
483
|
+
resetScaleUpStep(): void;
|
|
484
|
+
get scaleUpStepInput(): number;
|
|
485
|
+
get scalingEnabled(): any;
|
|
486
|
+
private _useHorizontalScale?;
|
|
487
|
+
get useHorizontalScale(): boolean | cdktf.IResolvable;
|
|
488
|
+
set useHorizontalScale(value: boolean | cdktf.IResolvable);
|
|
489
|
+
resetUseHorizontalScale(): void;
|
|
490
|
+
get useHorizontalScaleInput(): any;
|
|
491
|
+
}
|
|
492
|
+
export declare class AppServiceServiceSizingPolicyList extends cdktf.ComplexList {
|
|
493
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
494
|
+
protected terraformAttribute: string;
|
|
495
|
+
protected wrapsSet: boolean;
|
|
496
|
+
internalValue?: AppServiceServiceSizingPolicy[] | cdktf.IResolvable;
|
|
497
|
+
/**
|
|
498
|
+
* @param terraformResource The parent resource
|
|
499
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
500
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
501
|
+
*/
|
|
502
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
503
|
+
/**
|
|
504
|
+
* @param index the index of the item to return
|
|
505
|
+
*/
|
|
506
|
+
get(index: number): AppServiceServiceSizingPolicyOutputReference;
|
|
507
|
+
}
|
|
508
|
+
export interface AppService {
|
|
509
|
+
/**
|
|
510
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#container_count App#container_count}
|
|
511
|
+
*/
|
|
512
|
+
readonly containerCount?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#container_memory_limit App#container_memory_limit}
|
|
515
|
+
*/
|
|
516
|
+
readonly containerMemoryLimit?: number;
|
|
517
|
+
/**
|
|
518
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#container_profile App#container_profile}
|
|
519
|
+
*/
|
|
520
|
+
readonly containerProfile?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#force_zero_downtime App#force_zero_downtime}
|
|
523
|
+
*/
|
|
524
|
+
readonly forceZeroDowntime?: boolean | cdktf.IResolvable;
|
|
525
|
+
/**
|
|
526
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#process_type App#process_type}
|
|
527
|
+
*/
|
|
528
|
+
readonly processType?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#simple_health_check App#simple_health_check}
|
|
531
|
+
*/
|
|
532
|
+
readonly simpleHealthCheck?: boolean | cdktf.IResolvable;
|
|
533
|
+
/**
|
|
534
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#stop_timeout App#stop_timeout}
|
|
535
|
+
*/
|
|
536
|
+
readonly stopTimeout?: number;
|
|
537
|
+
/**
|
|
538
|
+
* autoscaling_policy block
|
|
539
|
+
*
|
|
540
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#autoscaling_policy App#autoscaling_policy}
|
|
541
|
+
*/
|
|
542
|
+
readonly autoscalingPolicy?: AppServiceAutoscalingPolicy[] | cdktf.IResolvable;
|
|
543
|
+
/**
|
|
544
|
+
* service_sizing_policy block
|
|
545
|
+
*
|
|
546
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#service_sizing_policy App#service_sizing_policy}
|
|
547
|
+
*/
|
|
548
|
+
readonly serviceSizingPolicy?: AppServiceServiceSizingPolicy[] | cdktf.IResolvable;
|
|
549
|
+
}
|
|
550
|
+
export declare function appServiceToTerraform(struct?: AppService | cdktf.IResolvable): any;
|
|
551
|
+
export declare function appServiceToHclTerraform(struct?: AppService | cdktf.IResolvable): any;
|
|
552
|
+
export declare class AppServiceOutputReference extends cdktf.ComplexObject {
|
|
553
|
+
private isEmptyObject;
|
|
554
|
+
private resolvableValue?;
|
|
555
|
+
/**
|
|
556
|
+
* @param terraformResource The parent resource
|
|
557
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
558
|
+
* @param complexObjectIndex the index of this item in the list
|
|
559
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
560
|
+
*/
|
|
561
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
562
|
+
get internalValue(): AppService | cdktf.IResolvable | undefined;
|
|
563
|
+
set internalValue(value: AppService | cdktf.IResolvable | undefined);
|
|
564
|
+
private _containerCount?;
|
|
565
|
+
get containerCount(): number;
|
|
566
|
+
set containerCount(value: number);
|
|
567
|
+
resetContainerCount(): void;
|
|
568
|
+
get containerCountInput(): number;
|
|
569
|
+
private _containerMemoryLimit?;
|
|
570
|
+
get containerMemoryLimit(): number;
|
|
571
|
+
set containerMemoryLimit(value: number);
|
|
572
|
+
resetContainerMemoryLimit(): void;
|
|
573
|
+
get containerMemoryLimitInput(): number;
|
|
574
|
+
private _containerProfile?;
|
|
575
|
+
get containerProfile(): string;
|
|
576
|
+
set containerProfile(value: string);
|
|
577
|
+
resetContainerProfile(): void;
|
|
578
|
+
get containerProfileInput(): string;
|
|
579
|
+
private _forceZeroDowntime?;
|
|
580
|
+
get forceZeroDowntime(): boolean | cdktf.IResolvable;
|
|
581
|
+
set forceZeroDowntime(value: boolean | cdktf.IResolvable);
|
|
582
|
+
resetForceZeroDowntime(): void;
|
|
583
|
+
get forceZeroDowntimeInput(): any;
|
|
584
|
+
private _processType?;
|
|
585
|
+
get processType(): string;
|
|
586
|
+
set processType(value: string);
|
|
587
|
+
resetProcessType(): void;
|
|
588
|
+
get processTypeInput(): string;
|
|
589
|
+
private _simpleHealthCheck?;
|
|
590
|
+
get simpleHealthCheck(): boolean | cdktf.IResolvable;
|
|
591
|
+
set simpleHealthCheck(value: boolean | cdktf.IResolvable);
|
|
592
|
+
resetSimpleHealthCheck(): void;
|
|
593
|
+
get simpleHealthCheckInput(): any;
|
|
594
|
+
private _stopTimeout?;
|
|
595
|
+
get stopTimeout(): number;
|
|
596
|
+
set stopTimeout(value: number);
|
|
597
|
+
resetStopTimeout(): void;
|
|
598
|
+
get stopTimeoutInput(): number;
|
|
599
|
+
private _autoscalingPolicy;
|
|
600
|
+
get autoscalingPolicy(): AppServiceAutoscalingPolicyList;
|
|
601
|
+
putAutoscalingPolicy(value: AppServiceAutoscalingPolicy[] | cdktf.IResolvable): void;
|
|
602
|
+
resetAutoscalingPolicy(): void;
|
|
603
|
+
get autoscalingPolicyInput(): any;
|
|
604
|
+
private _serviceSizingPolicy;
|
|
605
|
+
get serviceSizingPolicy(): AppServiceServiceSizingPolicyList;
|
|
606
|
+
putServiceSizingPolicy(value: AppServiceServiceSizingPolicy[] | cdktf.IResolvable): void;
|
|
607
|
+
resetServiceSizingPolicy(): void;
|
|
608
|
+
get serviceSizingPolicyInput(): any;
|
|
609
|
+
}
|
|
610
|
+
export declare class AppServiceList extends cdktf.ComplexList {
|
|
611
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
612
|
+
protected terraformAttribute: string;
|
|
613
|
+
protected wrapsSet: boolean;
|
|
614
|
+
internalValue?: AppService[] | cdktf.IResolvable;
|
|
615
|
+
/**
|
|
616
|
+
* @param terraformResource The parent resource
|
|
617
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
618
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
619
|
+
*/
|
|
620
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
621
|
+
/**
|
|
622
|
+
* @param index the index of the item to return
|
|
623
|
+
*/
|
|
624
|
+
get(index: number): AppServiceOutputReference;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app aptible_app}
|
|
628
|
+
*/
|
|
629
|
+
export declare class App extends cdktf.TerraformResource {
|
|
630
|
+
static readonly tfResourceType = "aptible_app";
|
|
631
|
+
/**
|
|
632
|
+
* Generates CDKTF code for importing a App resource upon running "cdktf plan <stack-name>"
|
|
633
|
+
* @param scope The scope in which to define this construct
|
|
634
|
+
* @param importToId The construct id used in the generated config for the App to import
|
|
635
|
+
* @param importFromId The id of the existing App that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app#import import section} in the documentation of this resource for the id to use
|
|
636
|
+
* @param provider? Optional instance of the provider where the App to import is found
|
|
637
|
+
*/
|
|
638
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
639
|
+
/**
|
|
640
|
+
* Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/app aptible_app} Resource
|
|
641
|
+
*
|
|
642
|
+
* @param scope The scope in which to define this construct
|
|
643
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
644
|
+
* @param options AppConfig
|
|
645
|
+
*/
|
|
646
|
+
constructor(scope: Construct, id: string, config: AppConfig);
|
|
647
|
+
get appId(): any;
|
|
648
|
+
private _config?;
|
|
649
|
+
get config(): {
|
|
650
|
+
[key: string]: string;
|
|
651
|
+
};
|
|
652
|
+
set config(value: {
|
|
653
|
+
[key: string]: string;
|
|
654
|
+
});
|
|
655
|
+
resetConfig(): void;
|
|
656
|
+
get configInput(): {
|
|
657
|
+
[key: string]: string;
|
|
658
|
+
};
|
|
659
|
+
private _envId?;
|
|
660
|
+
get envId(): number;
|
|
661
|
+
set envId(value: number);
|
|
662
|
+
get envIdInput(): number;
|
|
663
|
+
get gitRepo(): any;
|
|
664
|
+
private _handle?;
|
|
665
|
+
get handle(): string;
|
|
666
|
+
set handle(value: string);
|
|
667
|
+
get handleInput(): string;
|
|
668
|
+
private _id?;
|
|
669
|
+
get id(): string;
|
|
670
|
+
set id(value: string);
|
|
671
|
+
resetId(): void;
|
|
672
|
+
get idInput(): string;
|
|
673
|
+
private _service;
|
|
674
|
+
get service(): AppServiceList;
|
|
675
|
+
putService(value: AppService[] | cdktf.IResolvable): void;
|
|
676
|
+
resetService(): void;
|
|
677
|
+
get serviceInput(): any;
|
|
678
|
+
protected synthesizeAttributes(): {
|
|
679
|
+
[name: string]: any;
|
|
680
|
+
};
|
|
681
|
+
protected synthesizeHclAttributes(): {
|
|
682
|
+
[name: string]: any;
|
|
683
|
+
};
|
|
684
|
+
}
|