@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,447 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint aptible_endpoint}
|
|
6
|
+
*/
|
|
7
|
+
export class Endpoint extends cdktf.TerraformResource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "aptible_endpoint";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a Endpoint resource upon running "cdktf plan <stack-name>"
|
|
17
|
+
* @param scope The scope in which to define this construct
|
|
18
|
+
* @param importToId The construct id used in the generated config for the Endpoint to import
|
|
19
|
+
* @param importFromId The id of the existing Endpoint that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the Endpoint to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aptible_endpoint", importId: importFromId, provider });
|
|
24
|
+
}
|
|
25
|
+
// ===========
|
|
26
|
+
// INITIALIZER
|
|
27
|
+
// ===========
|
|
28
|
+
/**
|
|
29
|
+
* Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint aptible_endpoint} Resource
|
|
30
|
+
*
|
|
31
|
+
* @param scope The scope in which to define this construct
|
|
32
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
33
|
+
* @param options EndpointConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'aptible_endpoint',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'aptible',
|
|
40
|
+
providerVersion: '0.9.18',
|
|
41
|
+
providerVersionConstraint: '0.9.18'
|
|
42
|
+
},
|
|
43
|
+
provider: config.provider,
|
|
44
|
+
dependsOn: config.dependsOn,
|
|
45
|
+
count: config.count,
|
|
46
|
+
lifecycle: config.lifecycle,
|
|
47
|
+
provisioners: config.provisioners,
|
|
48
|
+
connection: config.connection,
|
|
49
|
+
forEach: config.forEach
|
|
50
|
+
});
|
|
51
|
+
this._containerPort = config.containerPort;
|
|
52
|
+
this._containerPorts = config.containerPorts;
|
|
53
|
+
this._defaultDomain = config.defaultDomain;
|
|
54
|
+
this._domain = config.domain;
|
|
55
|
+
this._endpointType = config.endpointType;
|
|
56
|
+
this._envId = config.envId;
|
|
57
|
+
this._id = config.id;
|
|
58
|
+
this._internal = config.internal;
|
|
59
|
+
this._ipFiltering = config.ipFiltering;
|
|
60
|
+
this._loadBalancingAlgorithmType = config.loadBalancingAlgorithmType;
|
|
61
|
+
this._managed = config.managed;
|
|
62
|
+
this._platform = config.platform;
|
|
63
|
+
this._processType = config.processType;
|
|
64
|
+
this._resourceId = config.resourceId;
|
|
65
|
+
this._resourceType = config.resourceType;
|
|
66
|
+
this._shared = config.shared;
|
|
67
|
+
}
|
|
68
|
+
// ==========
|
|
69
|
+
// ATTRIBUTES
|
|
70
|
+
// ==========
|
|
71
|
+
// container_port - computed: false, optional: true, required: false
|
|
72
|
+
_containerPort;
|
|
73
|
+
get containerPort() {
|
|
74
|
+
return this.getNumberAttribute('container_port');
|
|
75
|
+
}
|
|
76
|
+
set containerPort(value) {
|
|
77
|
+
this._containerPort = value;
|
|
78
|
+
}
|
|
79
|
+
resetContainerPort() {
|
|
80
|
+
this._containerPort = undefined;
|
|
81
|
+
}
|
|
82
|
+
// Temporarily expose input value. Use with caution.
|
|
83
|
+
get containerPortInput() {
|
|
84
|
+
return this._containerPort;
|
|
85
|
+
}
|
|
86
|
+
// container_ports - computed: false, optional: true, required: false
|
|
87
|
+
_containerPorts;
|
|
88
|
+
get containerPorts() {
|
|
89
|
+
return this.getNumberListAttribute('container_ports');
|
|
90
|
+
}
|
|
91
|
+
set containerPorts(value) {
|
|
92
|
+
this._containerPorts = value;
|
|
93
|
+
}
|
|
94
|
+
resetContainerPorts() {
|
|
95
|
+
this._containerPorts = undefined;
|
|
96
|
+
}
|
|
97
|
+
// Temporarily expose input value. Use with caution.
|
|
98
|
+
get containerPortsInput() {
|
|
99
|
+
return this._containerPorts;
|
|
100
|
+
}
|
|
101
|
+
// default_domain - computed: false, optional: true, required: false
|
|
102
|
+
_defaultDomain;
|
|
103
|
+
get defaultDomain() {
|
|
104
|
+
return this.getBooleanAttribute('default_domain');
|
|
105
|
+
}
|
|
106
|
+
set defaultDomain(value) {
|
|
107
|
+
this._defaultDomain = value;
|
|
108
|
+
}
|
|
109
|
+
resetDefaultDomain() {
|
|
110
|
+
this._defaultDomain = undefined;
|
|
111
|
+
}
|
|
112
|
+
// Temporarily expose input value. Use with caution.
|
|
113
|
+
get defaultDomainInput() {
|
|
114
|
+
return this._defaultDomain;
|
|
115
|
+
}
|
|
116
|
+
// dns_validation_record - computed: true, optional: false, required: false
|
|
117
|
+
get dnsValidationRecord() {
|
|
118
|
+
return this.getStringAttribute('dns_validation_record');
|
|
119
|
+
}
|
|
120
|
+
// dns_validation_value - computed: true, optional: false, required: false
|
|
121
|
+
get dnsValidationValue() {
|
|
122
|
+
return this.getStringAttribute('dns_validation_value');
|
|
123
|
+
}
|
|
124
|
+
// domain - computed: false, optional: true, required: false
|
|
125
|
+
_domain;
|
|
126
|
+
get domain() {
|
|
127
|
+
return this.getStringAttribute('domain');
|
|
128
|
+
}
|
|
129
|
+
set domain(value) {
|
|
130
|
+
this._domain = value;
|
|
131
|
+
}
|
|
132
|
+
resetDomain() {
|
|
133
|
+
this._domain = undefined;
|
|
134
|
+
}
|
|
135
|
+
// Temporarily expose input value. Use with caution.
|
|
136
|
+
get domainInput() {
|
|
137
|
+
return this._domain;
|
|
138
|
+
}
|
|
139
|
+
// endpoint_id - computed: true, optional: false, required: false
|
|
140
|
+
get endpointId() {
|
|
141
|
+
return this.getNumberAttribute('endpoint_id');
|
|
142
|
+
}
|
|
143
|
+
// endpoint_type - computed: false, optional: true, required: false
|
|
144
|
+
_endpointType;
|
|
145
|
+
get endpointType() {
|
|
146
|
+
return this.getStringAttribute('endpoint_type');
|
|
147
|
+
}
|
|
148
|
+
set endpointType(value) {
|
|
149
|
+
this._endpointType = value;
|
|
150
|
+
}
|
|
151
|
+
resetEndpointType() {
|
|
152
|
+
this._endpointType = undefined;
|
|
153
|
+
}
|
|
154
|
+
// Temporarily expose input value. Use with caution.
|
|
155
|
+
get endpointTypeInput() {
|
|
156
|
+
return this._endpointType;
|
|
157
|
+
}
|
|
158
|
+
// env_id - computed: false, optional: false, required: true
|
|
159
|
+
_envId;
|
|
160
|
+
get envId() {
|
|
161
|
+
return this.getNumberAttribute('env_id');
|
|
162
|
+
}
|
|
163
|
+
set envId(value) {
|
|
164
|
+
this._envId = value;
|
|
165
|
+
}
|
|
166
|
+
// Temporarily expose input value. Use with caution.
|
|
167
|
+
get envIdInput() {
|
|
168
|
+
return this._envId;
|
|
169
|
+
}
|
|
170
|
+
// external_hostname - computed: true, optional: false, required: false
|
|
171
|
+
get externalHostname() {
|
|
172
|
+
return this.getStringAttribute('external_hostname');
|
|
173
|
+
}
|
|
174
|
+
// id - computed: true, optional: true, required: false
|
|
175
|
+
_id;
|
|
176
|
+
get id() {
|
|
177
|
+
return this.getStringAttribute('id');
|
|
178
|
+
}
|
|
179
|
+
set id(value) {
|
|
180
|
+
this._id = value;
|
|
181
|
+
}
|
|
182
|
+
resetId() {
|
|
183
|
+
this._id = undefined;
|
|
184
|
+
}
|
|
185
|
+
// Temporarily expose input value. Use with caution.
|
|
186
|
+
get idInput() {
|
|
187
|
+
return this._id;
|
|
188
|
+
}
|
|
189
|
+
// internal - computed: false, optional: true, required: false
|
|
190
|
+
_internal;
|
|
191
|
+
get internal() {
|
|
192
|
+
return this.getBooleanAttribute('internal');
|
|
193
|
+
}
|
|
194
|
+
set internal(value) {
|
|
195
|
+
this._internal = value;
|
|
196
|
+
}
|
|
197
|
+
resetInternal() {
|
|
198
|
+
this._internal = undefined;
|
|
199
|
+
}
|
|
200
|
+
// Temporarily expose input value. Use with caution.
|
|
201
|
+
get internalInput() {
|
|
202
|
+
return this._internal;
|
|
203
|
+
}
|
|
204
|
+
// ip_filtering - computed: false, optional: true, required: false
|
|
205
|
+
_ipFiltering;
|
|
206
|
+
get ipFiltering() {
|
|
207
|
+
return this.getListAttribute('ip_filtering');
|
|
208
|
+
}
|
|
209
|
+
set ipFiltering(value) {
|
|
210
|
+
this._ipFiltering = value;
|
|
211
|
+
}
|
|
212
|
+
resetIpFiltering() {
|
|
213
|
+
this._ipFiltering = undefined;
|
|
214
|
+
}
|
|
215
|
+
// Temporarily expose input value. Use with caution.
|
|
216
|
+
get ipFilteringInput() {
|
|
217
|
+
return this._ipFiltering;
|
|
218
|
+
}
|
|
219
|
+
// load_balancing_algorithm_type - computed: false, optional: true, required: false
|
|
220
|
+
_loadBalancingAlgorithmType;
|
|
221
|
+
get loadBalancingAlgorithmType() {
|
|
222
|
+
return this.getStringAttribute('load_balancing_algorithm_type');
|
|
223
|
+
}
|
|
224
|
+
set loadBalancingAlgorithmType(value) {
|
|
225
|
+
this._loadBalancingAlgorithmType = value;
|
|
226
|
+
}
|
|
227
|
+
resetLoadBalancingAlgorithmType() {
|
|
228
|
+
this._loadBalancingAlgorithmType = undefined;
|
|
229
|
+
}
|
|
230
|
+
// Temporarily expose input value. Use with caution.
|
|
231
|
+
get loadBalancingAlgorithmTypeInput() {
|
|
232
|
+
return this._loadBalancingAlgorithmType;
|
|
233
|
+
}
|
|
234
|
+
// managed - computed: false, optional: true, required: false
|
|
235
|
+
_managed;
|
|
236
|
+
get managed() {
|
|
237
|
+
return this.getBooleanAttribute('managed');
|
|
238
|
+
}
|
|
239
|
+
set managed(value) {
|
|
240
|
+
this._managed = value;
|
|
241
|
+
}
|
|
242
|
+
resetManaged() {
|
|
243
|
+
this._managed = undefined;
|
|
244
|
+
}
|
|
245
|
+
// Temporarily expose input value. Use with caution.
|
|
246
|
+
get managedInput() {
|
|
247
|
+
return this._managed;
|
|
248
|
+
}
|
|
249
|
+
// platform - computed: false, optional: true, required: false
|
|
250
|
+
_platform;
|
|
251
|
+
get platform() {
|
|
252
|
+
return this.getStringAttribute('platform');
|
|
253
|
+
}
|
|
254
|
+
set platform(value) {
|
|
255
|
+
this._platform = value;
|
|
256
|
+
}
|
|
257
|
+
resetPlatform() {
|
|
258
|
+
this._platform = undefined;
|
|
259
|
+
}
|
|
260
|
+
// Temporarily expose input value. Use with caution.
|
|
261
|
+
get platformInput() {
|
|
262
|
+
return this._platform;
|
|
263
|
+
}
|
|
264
|
+
// process_type - computed: false, optional: true, required: false
|
|
265
|
+
_processType;
|
|
266
|
+
get processType() {
|
|
267
|
+
return this.getStringAttribute('process_type');
|
|
268
|
+
}
|
|
269
|
+
set processType(value) {
|
|
270
|
+
this._processType = value;
|
|
271
|
+
}
|
|
272
|
+
resetProcessType() {
|
|
273
|
+
this._processType = undefined;
|
|
274
|
+
}
|
|
275
|
+
// Temporarily expose input value. Use with caution.
|
|
276
|
+
get processTypeInput() {
|
|
277
|
+
return this._processType;
|
|
278
|
+
}
|
|
279
|
+
// resource_id - computed: false, optional: false, required: true
|
|
280
|
+
_resourceId;
|
|
281
|
+
get resourceId() {
|
|
282
|
+
return this.getNumberAttribute('resource_id');
|
|
283
|
+
}
|
|
284
|
+
set resourceId(value) {
|
|
285
|
+
this._resourceId = value;
|
|
286
|
+
}
|
|
287
|
+
// Temporarily expose input value. Use with caution.
|
|
288
|
+
get resourceIdInput() {
|
|
289
|
+
return this._resourceId;
|
|
290
|
+
}
|
|
291
|
+
// resource_type - computed: false, optional: false, required: true
|
|
292
|
+
_resourceType;
|
|
293
|
+
get resourceType() {
|
|
294
|
+
return this.getStringAttribute('resource_type');
|
|
295
|
+
}
|
|
296
|
+
set resourceType(value) {
|
|
297
|
+
this._resourceType = value;
|
|
298
|
+
}
|
|
299
|
+
// Temporarily expose input value. Use with caution.
|
|
300
|
+
get resourceTypeInput() {
|
|
301
|
+
return this._resourceType;
|
|
302
|
+
}
|
|
303
|
+
// shared - computed: false, optional: true, required: false
|
|
304
|
+
_shared;
|
|
305
|
+
get shared() {
|
|
306
|
+
return this.getBooleanAttribute('shared');
|
|
307
|
+
}
|
|
308
|
+
set shared(value) {
|
|
309
|
+
this._shared = value;
|
|
310
|
+
}
|
|
311
|
+
resetShared() {
|
|
312
|
+
this._shared = undefined;
|
|
313
|
+
}
|
|
314
|
+
// Temporarily expose input value. Use with caution.
|
|
315
|
+
get sharedInput() {
|
|
316
|
+
return this._shared;
|
|
317
|
+
}
|
|
318
|
+
// virtual_domain - computed: true, optional: false, required: false
|
|
319
|
+
get virtualDomain() {
|
|
320
|
+
return this.getStringAttribute('virtual_domain');
|
|
321
|
+
}
|
|
322
|
+
// =========
|
|
323
|
+
// SYNTHESIS
|
|
324
|
+
// =========
|
|
325
|
+
synthesizeAttributes() {
|
|
326
|
+
return {
|
|
327
|
+
container_port: cdktf.numberToTerraform(this._containerPort),
|
|
328
|
+
container_ports: cdktf.listMapper(cdktf.numberToTerraform, false)(this._containerPorts),
|
|
329
|
+
default_domain: cdktf.booleanToTerraform(this._defaultDomain),
|
|
330
|
+
domain: cdktf.stringToTerraform(this._domain),
|
|
331
|
+
endpoint_type: cdktf.stringToTerraform(this._endpointType),
|
|
332
|
+
env_id: cdktf.numberToTerraform(this._envId),
|
|
333
|
+
id: cdktf.stringToTerraform(this._id),
|
|
334
|
+
internal: cdktf.booleanToTerraform(this._internal),
|
|
335
|
+
ip_filtering: cdktf.listMapper(cdktf.stringToTerraform, false)(this._ipFiltering),
|
|
336
|
+
load_balancing_algorithm_type: cdktf.stringToTerraform(this._loadBalancingAlgorithmType),
|
|
337
|
+
managed: cdktf.booleanToTerraform(this._managed),
|
|
338
|
+
platform: cdktf.stringToTerraform(this._platform),
|
|
339
|
+
process_type: cdktf.stringToTerraform(this._processType),
|
|
340
|
+
resource_id: cdktf.numberToTerraform(this._resourceId),
|
|
341
|
+
resource_type: cdktf.stringToTerraform(this._resourceType),
|
|
342
|
+
shared: cdktf.booleanToTerraform(this._shared),
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
synthesizeHclAttributes() {
|
|
346
|
+
const attrs = {
|
|
347
|
+
container_port: {
|
|
348
|
+
value: cdktf.numberToHclTerraform(this._containerPort),
|
|
349
|
+
isBlock: false,
|
|
350
|
+
type: "simple",
|
|
351
|
+
storageClassType: "number",
|
|
352
|
+
},
|
|
353
|
+
container_ports: {
|
|
354
|
+
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(this._containerPorts),
|
|
355
|
+
isBlock: false,
|
|
356
|
+
type: "list",
|
|
357
|
+
storageClassType: "numberList",
|
|
358
|
+
},
|
|
359
|
+
default_domain: {
|
|
360
|
+
value: cdktf.booleanToHclTerraform(this._defaultDomain),
|
|
361
|
+
isBlock: false,
|
|
362
|
+
type: "simple",
|
|
363
|
+
storageClassType: "boolean",
|
|
364
|
+
},
|
|
365
|
+
domain: {
|
|
366
|
+
value: cdktf.stringToHclTerraform(this._domain),
|
|
367
|
+
isBlock: false,
|
|
368
|
+
type: "simple",
|
|
369
|
+
storageClassType: "string",
|
|
370
|
+
},
|
|
371
|
+
endpoint_type: {
|
|
372
|
+
value: cdktf.stringToHclTerraform(this._endpointType),
|
|
373
|
+
isBlock: false,
|
|
374
|
+
type: "simple",
|
|
375
|
+
storageClassType: "string",
|
|
376
|
+
},
|
|
377
|
+
env_id: {
|
|
378
|
+
value: cdktf.numberToHclTerraform(this._envId),
|
|
379
|
+
isBlock: false,
|
|
380
|
+
type: "simple",
|
|
381
|
+
storageClassType: "number",
|
|
382
|
+
},
|
|
383
|
+
id: {
|
|
384
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
385
|
+
isBlock: false,
|
|
386
|
+
type: "simple",
|
|
387
|
+
storageClassType: "string",
|
|
388
|
+
},
|
|
389
|
+
internal: {
|
|
390
|
+
value: cdktf.booleanToHclTerraform(this._internal),
|
|
391
|
+
isBlock: false,
|
|
392
|
+
type: "simple",
|
|
393
|
+
storageClassType: "boolean",
|
|
394
|
+
},
|
|
395
|
+
ip_filtering: {
|
|
396
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._ipFiltering),
|
|
397
|
+
isBlock: false,
|
|
398
|
+
type: "list",
|
|
399
|
+
storageClassType: "stringList",
|
|
400
|
+
},
|
|
401
|
+
load_balancing_algorithm_type: {
|
|
402
|
+
value: cdktf.stringToHclTerraform(this._loadBalancingAlgorithmType),
|
|
403
|
+
isBlock: false,
|
|
404
|
+
type: "simple",
|
|
405
|
+
storageClassType: "string",
|
|
406
|
+
},
|
|
407
|
+
managed: {
|
|
408
|
+
value: cdktf.booleanToHclTerraform(this._managed),
|
|
409
|
+
isBlock: false,
|
|
410
|
+
type: "simple",
|
|
411
|
+
storageClassType: "boolean",
|
|
412
|
+
},
|
|
413
|
+
platform: {
|
|
414
|
+
value: cdktf.stringToHclTerraform(this._platform),
|
|
415
|
+
isBlock: false,
|
|
416
|
+
type: "simple",
|
|
417
|
+
storageClassType: "string",
|
|
418
|
+
},
|
|
419
|
+
process_type: {
|
|
420
|
+
value: cdktf.stringToHclTerraform(this._processType),
|
|
421
|
+
isBlock: false,
|
|
422
|
+
type: "simple",
|
|
423
|
+
storageClassType: "string",
|
|
424
|
+
},
|
|
425
|
+
resource_id: {
|
|
426
|
+
value: cdktf.numberToHclTerraform(this._resourceId),
|
|
427
|
+
isBlock: false,
|
|
428
|
+
type: "simple",
|
|
429
|
+
storageClassType: "number",
|
|
430
|
+
},
|
|
431
|
+
resource_type: {
|
|
432
|
+
value: cdktf.stringToHclTerraform(this._resourceType),
|
|
433
|
+
isBlock: false,
|
|
434
|
+
type: "simple",
|
|
435
|
+
storageClassType: "string",
|
|
436
|
+
},
|
|
437
|
+
shared: {
|
|
438
|
+
value: cdktf.booleanToHclTerraform(this._shared),
|
|
439
|
+
isBlock: false,
|
|
440
|
+
type: "simple",
|
|
441
|
+
storageClassType: "boolean",
|
|
442
|
+
},
|
|
443
|
+
};
|
|
444
|
+
// remove undefined attributes
|
|
445
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
446
|
+
}
|
|
447
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface EnvironmentConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#handle Environment#handle}
|
|
6
|
+
*/
|
|
7
|
+
readonly handle: string;
|
|
8
|
+
/**
|
|
9
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#id Environment#id}
|
|
10
|
+
*
|
|
11
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
12
|
+
* 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.
|
|
13
|
+
*/
|
|
14
|
+
readonly id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#org_id Environment#org_id}
|
|
17
|
+
*/
|
|
18
|
+
readonly orgId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#stack_id Environment#stack_id}
|
|
21
|
+
*/
|
|
22
|
+
readonly stackId: number;
|
|
23
|
+
/**
|
|
24
|
+
* backup_retention_policy block
|
|
25
|
+
*
|
|
26
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#backup_retention_policy Environment#backup_retention_policy}
|
|
27
|
+
*/
|
|
28
|
+
readonly backupRetentionPolicy?: EnvironmentBackupRetentionPolicy[] | cdktf.IResolvable;
|
|
29
|
+
}
|
|
30
|
+
export interface EnvironmentBackupRetentionPolicy {
|
|
31
|
+
/**
|
|
32
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#daily Environment#daily}
|
|
33
|
+
*/
|
|
34
|
+
readonly daily: number;
|
|
35
|
+
/**
|
|
36
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#keep_final Environment#keep_final}
|
|
37
|
+
*/
|
|
38
|
+
readonly keepFinal: boolean | cdktf.IResolvable;
|
|
39
|
+
/**
|
|
40
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#make_copy Environment#make_copy}
|
|
41
|
+
*/
|
|
42
|
+
readonly makeCopy: boolean | cdktf.IResolvable;
|
|
43
|
+
/**
|
|
44
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#monthly Environment#monthly}
|
|
45
|
+
*/
|
|
46
|
+
readonly monthly: number;
|
|
47
|
+
/**
|
|
48
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#yearly Environment#yearly}
|
|
49
|
+
*/
|
|
50
|
+
readonly yearly: number;
|
|
51
|
+
}
|
|
52
|
+
export declare function environmentBackupRetentionPolicyToTerraform(struct?: EnvironmentBackupRetentionPolicy | cdktf.IResolvable): any;
|
|
53
|
+
export declare function environmentBackupRetentionPolicyToHclTerraform(struct?: EnvironmentBackupRetentionPolicy | cdktf.IResolvable): any;
|
|
54
|
+
export declare class EnvironmentBackupRetentionPolicyOutputReference extends cdktf.ComplexObject {
|
|
55
|
+
private isEmptyObject;
|
|
56
|
+
private resolvableValue?;
|
|
57
|
+
/**
|
|
58
|
+
* @param terraformResource The parent resource
|
|
59
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
60
|
+
* @param complexObjectIndex the index of this item in the list
|
|
61
|
+
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
62
|
+
*/
|
|
63
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
|
|
64
|
+
get internalValue(): EnvironmentBackupRetentionPolicy | cdktf.IResolvable | undefined;
|
|
65
|
+
set internalValue(value: EnvironmentBackupRetentionPolicy | cdktf.IResolvable | undefined);
|
|
66
|
+
private _daily?;
|
|
67
|
+
get daily(): number;
|
|
68
|
+
set daily(value: number);
|
|
69
|
+
get dailyInput(): number;
|
|
70
|
+
private _keepFinal?;
|
|
71
|
+
get keepFinal(): boolean | cdktf.IResolvable;
|
|
72
|
+
set keepFinal(value: boolean | cdktf.IResolvable);
|
|
73
|
+
get keepFinalInput(): any;
|
|
74
|
+
private _makeCopy?;
|
|
75
|
+
get makeCopy(): boolean | cdktf.IResolvable;
|
|
76
|
+
set makeCopy(value: boolean | cdktf.IResolvable);
|
|
77
|
+
get makeCopyInput(): any;
|
|
78
|
+
private _monthly?;
|
|
79
|
+
get monthly(): number;
|
|
80
|
+
set monthly(value: number);
|
|
81
|
+
get monthlyInput(): number;
|
|
82
|
+
private _yearly?;
|
|
83
|
+
get yearly(): number;
|
|
84
|
+
set yearly(value: number);
|
|
85
|
+
get yearlyInput(): number;
|
|
86
|
+
}
|
|
87
|
+
export declare class EnvironmentBackupRetentionPolicyList extends cdktf.ComplexList {
|
|
88
|
+
protected terraformResource: cdktf.IInterpolatingParent;
|
|
89
|
+
protected terraformAttribute: string;
|
|
90
|
+
protected wrapsSet: boolean;
|
|
91
|
+
internalValue?: EnvironmentBackupRetentionPolicy[] | cdktf.IResolvable;
|
|
92
|
+
/**
|
|
93
|
+
* @param terraformResource The parent resource
|
|
94
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
95
|
+
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
|
|
96
|
+
*/
|
|
97
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
|
|
98
|
+
/**
|
|
99
|
+
* @param index the index of the item to return
|
|
100
|
+
*/
|
|
101
|
+
get(index: number): EnvironmentBackupRetentionPolicyOutputReference;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment aptible_environment}
|
|
105
|
+
*/
|
|
106
|
+
export declare class Environment extends cdktf.TerraformResource {
|
|
107
|
+
static readonly tfResourceType = "aptible_environment";
|
|
108
|
+
/**
|
|
109
|
+
* Generates CDKTF code for importing a Environment resource upon running "cdktf plan <stack-name>"
|
|
110
|
+
* @param scope The scope in which to define this construct
|
|
111
|
+
* @param importToId The construct id used in the generated config for the Environment to import
|
|
112
|
+
* @param importFromId The id of the existing Environment that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment#import import section} in the documentation of this resource for the id to use
|
|
113
|
+
* @param provider? Optional instance of the provider where the Environment to import is found
|
|
114
|
+
*/
|
|
115
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
116
|
+
/**
|
|
117
|
+
* Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/environment aptible_environment} Resource
|
|
118
|
+
*
|
|
119
|
+
* @param scope The scope in which to define this construct
|
|
120
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
121
|
+
* @param options EnvironmentConfig
|
|
122
|
+
*/
|
|
123
|
+
constructor(scope: Construct, id: string, config: EnvironmentConfig);
|
|
124
|
+
get envId(): any;
|
|
125
|
+
private _handle?;
|
|
126
|
+
get handle(): string;
|
|
127
|
+
set handle(value: string);
|
|
128
|
+
get handleInput(): string;
|
|
129
|
+
private _id?;
|
|
130
|
+
get id(): string;
|
|
131
|
+
set id(value: string);
|
|
132
|
+
resetId(): void;
|
|
133
|
+
get idInput(): string;
|
|
134
|
+
private _orgId?;
|
|
135
|
+
get orgId(): string;
|
|
136
|
+
set orgId(value: string);
|
|
137
|
+
resetOrgId(): void;
|
|
138
|
+
get orgIdInput(): string;
|
|
139
|
+
private _stackId?;
|
|
140
|
+
get stackId(): number;
|
|
141
|
+
set stackId(value: number);
|
|
142
|
+
get stackIdInput(): number;
|
|
143
|
+
private _backupRetentionPolicy;
|
|
144
|
+
get backupRetentionPolicy(): EnvironmentBackupRetentionPolicyList;
|
|
145
|
+
putBackupRetentionPolicy(value: EnvironmentBackupRetentionPolicy[] | cdktf.IResolvable): void;
|
|
146
|
+
resetBackupRetentionPolicy(): void;
|
|
147
|
+
get backupRetentionPolicyInput(): any;
|
|
148
|
+
protected synthesizeAttributes(): {
|
|
149
|
+
[name: string]: any;
|
|
150
|
+
};
|
|
151
|
+
protected synthesizeHclAttributes(): {
|
|
152
|
+
[name: string]: any;
|
|
153
|
+
};
|
|
154
|
+
}
|