@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,362 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain
|
|
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/metric_drain aptible_metric_drain}
|
|
6
|
+
*/
|
|
7
|
+
export class MetricDrain extends cdktf.TerraformResource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "aptible_metric_drain";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a MetricDrain 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 MetricDrain to import
|
|
19
|
+
* @param importFromId The id of the existing MetricDrain that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the MetricDrain to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aptible_metric_drain", 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/metric_drain aptible_metric_drain} 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 MetricDrainConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'aptible_metric_drain',
|
|
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._apiKey = config.apiKey;
|
|
52
|
+
this._bucket = config.bucket;
|
|
53
|
+
this._database = config.database;
|
|
54
|
+
this._databaseId = config.databaseId;
|
|
55
|
+
this._drainType = config.drainType;
|
|
56
|
+
this._envId = config.envId;
|
|
57
|
+
this._handle = config.handle;
|
|
58
|
+
this._id = config.id;
|
|
59
|
+
this._organization = config.organization;
|
|
60
|
+
this._password = config.password;
|
|
61
|
+
this._seriesUrl = config.seriesUrl;
|
|
62
|
+
this._url = config.url;
|
|
63
|
+
this._username = config.username;
|
|
64
|
+
}
|
|
65
|
+
// ==========
|
|
66
|
+
// ATTRIBUTES
|
|
67
|
+
// ==========
|
|
68
|
+
// api_key - computed: false, optional: true, required: false
|
|
69
|
+
_apiKey;
|
|
70
|
+
get apiKey() {
|
|
71
|
+
return this.getStringAttribute('api_key');
|
|
72
|
+
}
|
|
73
|
+
set apiKey(value) {
|
|
74
|
+
this._apiKey = value;
|
|
75
|
+
}
|
|
76
|
+
resetApiKey() {
|
|
77
|
+
this._apiKey = undefined;
|
|
78
|
+
}
|
|
79
|
+
// Temporarily expose input value. Use with caution.
|
|
80
|
+
get apiKeyInput() {
|
|
81
|
+
return this._apiKey;
|
|
82
|
+
}
|
|
83
|
+
// bucket - computed: false, optional: true, required: false
|
|
84
|
+
_bucket;
|
|
85
|
+
get bucket() {
|
|
86
|
+
return this.getStringAttribute('bucket');
|
|
87
|
+
}
|
|
88
|
+
set bucket(value) {
|
|
89
|
+
this._bucket = value;
|
|
90
|
+
}
|
|
91
|
+
resetBucket() {
|
|
92
|
+
this._bucket = undefined;
|
|
93
|
+
}
|
|
94
|
+
// Temporarily expose input value. Use with caution.
|
|
95
|
+
get bucketInput() {
|
|
96
|
+
return this._bucket;
|
|
97
|
+
}
|
|
98
|
+
// database - computed: false, optional: true, required: false
|
|
99
|
+
_database;
|
|
100
|
+
get database() {
|
|
101
|
+
return this.getStringAttribute('database');
|
|
102
|
+
}
|
|
103
|
+
set database(value) {
|
|
104
|
+
this._database = value;
|
|
105
|
+
}
|
|
106
|
+
resetDatabase() {
|
|
107
|
+
this._database = undefined;
|
|
108
|
+
}
|
|
109
|
+
// Temporarily expose input value. Use with caution.
|
|
110
|
+
get databaseInput() {
|
|
111
|
+
return this._database;
|
|
112
|
+
}
|
|
113
|
+
// database_id - computed: false, optional: true, required: false
|
|
114
|
+
_databaseId;
|
|
115
|
+
get databaseId() {
|
|
116
|
+
return this.getNumberAttribute('database_id');
|
|
117
|
+
}
|
|
118
|
+
set databaseId(value) {
|
|
119
|
+
this._databaseId = value;
|
|
120
|
+
}
|
|
121
|
+
resetDatabaseId() {
|
|
122
|
+
this._databaseId = undefined;
|
|
123
|
+
}
|
|
124
|
+
// Temporarily expose input value. Use with caution.
|
|
125
|
+
get databaseIdInput() {
|
|
126
|
+
return this._databaseId;
|
|
127
|
+
}
|
|
128
|
+
// drain_type - computed: false, optional: false, required: true
|
|
129
|
+
_drainType;
|
|
130
|
+
get drainType() {
|
|
131
|
+
return this.getStringAttribute('drain_type');
|
|
132
|
+
}
|
|
133
|
+
set drainType(value) {
|
|
134
|
+
this._drainType = value;
|
|
135
|
+
}
|
|
136
|
+
// Temporarily expose input value. Use with caution.
|
|
137
|
+
get drainTypeInput() {
|
|
138
|
+
return this._drainType;
|
|
139
|
+
}
|
|
140
|
+
// env_id - computed: false, optional: false, required: true
|
|
141
|
+
_envId;
|
|
142
|
+
get envId() {
|
|
143
|
+
return this.getNumberAttribute('env_id');
|
|
144
|
+
}
|
|
145
|
+
set envId(value) {
|
|
146
|
+
this._envId = value;
|
|
147
|
+
}
|
|
148
|
+
// Temporarily expose input value. Use with caution.
|
|
149
|
+
get envIdInput() {
|
|
150
|
+
return this._envId;
|
|
151
|
+
}
|
|
152
|
+
// handle - computed: false, optional: false, required: true
|
|
153
|
+
_handle;
|
|
154
|
+
get handle() {
|
|
155
|
+
return this.getStringAttribute('handle');
|
|
156
|
+
}
|
|
157
|
+
set handle(value) {
|
|
158
|
+
this._handle = value;
|
|
159
|
+
}
|
|
160
|
+
// Temporarily expose input value. Use with caution.
|
|
161
|
+
get handleInput() {
|
|
162
|
+
return this._handle;
|
|
163
|
+
}
|
|
164
|
+
// id - computed: true, optional: true, required: false
|
|
165
|
+
_id;
|
|
166
|
+
get id() {
|
|
167
|
+
return this.getStringAttribute('id');
|
|
168
|
+
}
|
|
169
|
+
set id(value) {
|
|
170
|
+
this._id = value;
|
|
171
|
+
}
|
|
172
|
+
resetId() {
|
|
173
|
+
this._id = undefined;
|
|
174
|
+
}
|
|
175
|
+
// Temporarily expose input value. Use with caution.
|
|
176
|
+
get idInput() {
|
|
177
|
+
return this._id;
|
|
178
|
+
}
|
|
179
|
+
// metric_drain_id - computed: true, optional: false, required: false
|
|
180
|
+
get metricDrainId() {
|
|
181
|
+
return this.getNumberAttribute('metric_drain_id');
|
|
182
|
+
}
|
|
183
|
+
// organization - computed: false, optional: true, required: false
|
|
184
|
+
_organization;
|
|
185
|
+
get organization() {
|
|
186
|
+
return this.getStringAttribute('organization');
|
|
187
|
+
}
|
|
188
|
+
set organization(value) {
|
|
189
|
+
this._organization = value;
|
|
190
|
+
}
|
|
191
|
+
resetOrganization() {
|
|
192
|
+
this._organization = undefined;
|
|
193
|
+
}
|
|
194
|
+
// Temporarily expose input value. Use with caution.
|
|
195
|
+
get organizationInput() {
|
|
196
|
+
return this._organization;
|
|
197
|
+
}
|
|
198
|
+
// password - computed: false, optional: true, required: false
|
|
199
|
+
_password;
|
|
200
|
+
get password() {
|
|
201
|
+
return this.getStringAttribute('password');
|
|
202
|
+
}
|
|
203
|
+
set password(value) {
|
|
204
|
+
this._password = value;
|
|
205
|
+
}
|
|
206
|
+
resetPassword() {
|
|
207
|
+
this._password = undefined;
|
|
208
|
+
}
|
|
209
|
+
// Temporarily expose input value. Use with caution.
|
|
210
|
+
get passwordInput() {
|
|
211
|
+
return this._password;
|
|
212
|
+
}
|
|
213
|
+
// series_url - computed: false, optional: true, required: false
|
|
214
|
+
_seriesUrl;
|
|
215
|
+
get seriesUrl() {
|
|
216
|
+
return this.getStringAttribute('series_url');
|
|
217
|
+
}
|
|
218
|
+
set seriesUrl(value) {
|
|
219
|
+
this._seriesUrl = value;
|
|
220
|
+
}
|
|
221
|
+
resetSeriesUrl() {
|
|
222
|
+
this._seriesUrl = undefined;
|
|
223
|
+
}
|
|
224
|
+
// Temporarily expose input value. Use with caution.
|
|
225
|
+
get seriesUrlInput() {
|
|
226
|
+
return this._seriesUrl;
|
|
227
|
+
}
|
|
228
|
+
// url - computed: false, optional: true, required: false
|
|
229
|
+
_url;
|
|
230
|
+
get url() {
|
|
231
|
+
return this.getStringAttribute('url');
|
|
232
|
+
}
|
|
233
|
+
set url(value) {
|
|
234
|
+
this._url = value;
|
|
235
|
+
}
|
|
236
|
+
resetUrl() {
|
|
237
|
+
this._url = undefined;
|
|
238
|
+
}
|
|
239
|
+
// Temporarily expose input value. Use with caution.
|
|
240
|
+
get urlInput() {
|
|
241
|
+
return this._url;
|
|
242
|
+
}
|
|
243
|
+
// username - computed: false, optional: true, required: false
|
|
244
|
+
_username;
|
|
245
|
+
get username() {
|
|
246
|
+
return this.getStringAttribute('username');
|
|
247
|
+
}
|
|
248
|
+
set username(value) {
|
|
249
|
+
this._username = value;
|
|
250
|
+
}
|
|
251
|
+
resetUsername() {
|
|
252
|
+
this._username = undefined;
|
|
253
|
+
}
|
|
254
|
+
// Temporarily expose input value. Use with caution.
|
|
255
|
+
get usernameInput() {
|
|
256
|
+
return this._username;
|
|
257
|
+
}
|
|
258
|
+
// =========
|
|
259
|
+
// SYNTHESIS
|
|
260
|
+
// =========
|
|
261
|
+
synthesizeAttributes() {
|
|
262
|
+
return {
|
|
263
|
+
api_key: cdktf.stringToTerraform(this._apiKey),
|
|
264
|
+
bucket: cdktf.stringToTerraform(this._bucket),
|
|
265
|
+
database: cdktf.stringToTerraform(this._database),
|
|
266
|
+
database_id: cdktf.numberToTerraform(this._databaseId),
|
|
267
|
+
drain_type: cdktf.stringToTerraform(this._drainType),
|
|
268
|
+
env_id: cdktf.numberToTerraform(this._envId),
|
|
269
|
+
handle: cdktf.stringToTerraform(this._handle),
|
|
270
|
+
id: cdktf.stringToTerraform(this._id),
|
|
271
|
+
organization: cdktf.stringToTerraform(this._organization),
|
|
272
|
+
password: cdktf.stringToTerraform(this._password),
|
|
273
|
+
series_url: cdktf.stringToTerraform(this._seriesUrl),
|
|
274
|
+
url: cdktf.stringToTerraform(this._url),
|
|
275
|
+
username: cdktf.stringToTerraform(this._username),
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
synthesizeHclAttributes() {
|
|
279
|
+
const attrs = {
|
|
280
|
+
api_key: {
|
|
281
|
+
value: cdktf.stringToHclTerraform(this._apiKey),
|
|
282
|
+
isBlock: false,
|
|
283
|
+
type: "simple",
|
|
284
|
+
storageClassType: "string",
|
|
285
|
+
},
|
|
286
|
+
bucket: {
|
|
287
|
+
value: cdktf.stringToHclTerraform(this._bucket),
|
|
288
|
+
isBlock: false,
|
|
289
|
+
type: "simple",
|
|
290
|
+
storageClassType: "string",
|
|
291
|
+
},
|
|
292
|
+
database: {
|
|
293
|
+
value: cdktf.stringToHclTerraform(this._database),
|
|
294
|
+
isBlock: false,
|
|
295
|
+
type: "simple",
|
|
296
|
+
storageClassType: "string",
|
|
297
|
+
},
|
|
298
|
+
database_id: {
|
|
299
|
+
value: cdktf.numberToHclTerraform(this._databaseId),
|
|
300
|
+
isBlock: false,
|
|
301
|
+
type: "simple",
|
|
302
|
+
storageClassType: "number",
|
|
303
|
+
},
|
|
304
|
+
drain_type: {
|
|
305
|
+
value: cdktf.stringToHclTerraform(this._drainType),
|
|
306
|
+
isBlock: false,
|
|
307
|
+
type: "simple",
|
|
308
|
+
storageClassType: "string",
|
|
309
|
+
},
|
|
310
|
+
env_id: {
|
|
311
|
+
value: cdktf.numberToHclTerraform(this._envId),
|
|
312
|
+
isBlock: false,
|
|
313
|
+
type: "simple",
|
|
314
|
+
storageClassType: "number",
|
|
315
|
+
},
|
|
316
|
+
handle: {
|
|
317
|
+
value: cdktf.stringToHclTerraform(this._handle),
|
|
318
|
+
isBlock: false,
|
|
319
|
+
type: "simple",
|
|
320
|
+
storageClassType: "string",
|
|
321
|
+
},
|
|
322
|
+
id: {
|
|
323
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
324
|
+
isBlock: false,
|
|
325
|
+
type: "simple",
|
|
326
|
+
storageClassType: "string",
|
|
327
|
+
},
|
|
328
|
+
organization: {
|
|
329
|
+
value: cdktf.stringToHclTerraform(this._organization),
|
|
330
|
+
isBlock: false,
|
|
331
|
+
type: "simple",
|
|
332
|
+
storageClassType: "string",
|
|
333
|
+
},
|
|
334
|
+
password: {
|
|
335
|
+
value: cdktf.stringToHclTerraform(this._password),
|
|
336
|
+
isBlock: false,
|
|
337
|
+
type: "simple",
|
|
338
|
+
storageClassType: "string",
|
|
339
|
+
},
|
|
340
|
+
series_url: {
|
|
341
|
+
value: cdktf.stringToHclTerraform(this._seriesUrl),
|
|
342
|
+
isBlock: false,
|
|
343
|
+
type: "simple",
|
|
344
|
+
storageClassType: "string",
|
|
345
|
+
},
|
|
346
|
+
url: {
|
|
347
|
+
value: cdktf.stringToHclTerraform(this._url),
|
|
348
|
+
isBlock: false,
|
|
349
|
+
type: "simple",
|
|
350
|
+
storageClassType: "string",
|
|
351
|
+
},
|
|
352
|
+
username: {
|
|
353
|
+
value: cdktf.stringToHclTerraform(this._username),
|
|
354
|
+
isBlock: false,
|
|
355
|
+
type: "simple",
|
|
356
|
+
storageClassType: "string",
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
// remove undefined attributes
|
|
360
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
361
|
+
}
|
|
362
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface AptibleProviderConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Alias name
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs#alias AptibleProvider#alias}
|
|
8
|
+
*/
|
|
9
|
+
readonly alias?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs aptible}
|
|
13
|
+
*/
|
|
14
|
+
export declare class AptibleProvider extends cdktf.TerraformProvider {
|
|
15
|
+
static readonly tfResourceType = "aptible";
|
|
16
|
+
/**
|
|
17
|
+
* Generates CDKTF code for importing a AptibleProvider resource upon running "cdktf plan <stack-name>"
|
|
18
|
+
* @param scope The scope in which to define this construct
|
|
19
|
+
* @param importToId The construct id used in the generated config for the AptibleProvider to import
|
|
20
|
+
* @param importFromId The id of the existing AptibleProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs#import import section} in the documentation of this resource for the id to use
|
|
21
|
+
* @param provider? Optional instance of the provider where the AptibleProvider to import is found
|
|
22
|
+
*/
|
|
23
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
24
|
+
/**
|
|
25
|
+
* Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs aptible} Resource
|
|
26
|
+
*
|
|
27
|
+
* @param scope The scope in which to define this construct
|
|
28
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
29
|
+
* @param options AptibleProviderConfig = {}
|
|
30
|
+
*/
|
|
31
|
+
constructor(scope: Construct, id: string, config?: AptibleProviderConfig);
|
|
32
|
+
private _alias?;
|
|
33
|
+
get alias(): string | undefined;
|
|
34
|
+
set alias(value: string | undefined);
|
|
35
|
+
resetAlias(): void;
|
|
36
|
+
get aliasInput(): string;
|
|
37
|
+
protected synthesizeAttributes(): {
|
|
38
|
+
[name: string]: any;
|
|
39
|
+
};
|
|
40
|
+
protected synthesizeHclAttributes(): {
|
|
41
|
+
[name: string]: any;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs
|
|
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 aptible}
|
|
6
|
+
*/
|
|
7
|
+
export class AptibleProvider extends cdktf.TerraformProvider {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "aptible";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a AptibleProvider 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 AptibleProvider to import
|
|
19
|
+
* @param importFromId The id of the existing AptibleProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs#import import section} in the documentation of this resource for the id to use
|
|
20
|
+
* @param provider? Optional instance of the provider where the AptibleProvider to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aptible", 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 aptible} 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 AptibleProviderConfig = {}
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config = {}) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'aptible',
|
|
38
|
+
terraformGeneratorMetadata: {
|
|
39
|
+
providerName: 'aptible',
|
|
40
|
+
providerVersion: '0.9.18',
|
|
41
|
+
providerVersionConstraint: '0.9.18'
|
|
42
|
+
},
|
|
43
|
+
terraformProviderSource: 'aptible/aptible'
|
|
44
|
+
});
|
|
45
|
+
this._alias = config.alias;
|
|
46
|
+
}
|
|
47
|
+
// ==========
|
|
48
|
+
// ATTRIBUTES
|
|
49
|
+
// ==========
|
|
50
|
+
// alias - computed: false, optional: true, required: false
|
|
51
|
+
_alias;
|
|
52
|
+
get alias() {
|
|
53
|
+
return this._alias;
|
|
54
|
+
}
|
|
55
|
+
set alias(value) {
|
|
56
|
+
this._alias = value;
|
|
57
|
+
}
|
|
58
|
+
resetAlias() {
|
|
59
|
+
this._alias = undefined;
|
|
60
|
+
}
|
|
61
|
+
// Temporarily expose input value. Use with caution.
|
|
62
|
+
get aliasInput() {
|
|
63
|
+
return this._alias;
|
|
64
|
+
}
|
|
65
|
+
// =========
|
|
66
|
+
// SYNTHESIS
|
|
67
|
+
// =========
|
|
68
|
+
synthesizeAttributes() {
|
|
69
|
+
return {
|
|
70
|
+
alias: cdktf.stringToTerraform(this._alias),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
synthesizeHclAttributes() {
|
|
74
|
+
const attrs = {
|
|
75
|
+
alias: {
|
|
76
|
+
value: cdktf.stringToHclTerraform(this._alias),
|
|
77
|
+
isBlock: false,
|
|
78
|
+
type: "simple",
|
|
79
|
+
storageClassType: "string",
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
// remove undefined attributes
|
|
83
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface ReplicaConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#container_profile Replica#container_profile}
|
|
6
|
+
*/
|
|
7
|
+
readonly containerProfile?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#container_size Replica#container_size}
|
|
10
|
+
*/
|
|
11
|
+
readonly containerSize?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#disk_size Replica#disk_size}
|
|
14
|
+
*/
|
|
15
|
+
readonly diskSize?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#enable_backups Replica#enable_backups}
|
|
18
|
+
*/
|
|
19
|
+
readonly enableBackups?: boolean | cdktf.IResolvable;
|
|
20
|
+
/**
|
|
21
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#env_id Replica#env_id}
|
|
22
|
+
*/
|
|
23
|
+
readonly envId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#handle Replica#handle}
|
|
26
|
+
*/
|
|
27
|
+
readonly handle: string;
|
|
28
|
+
/**
|
|
29
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#id Replica#id}
|
|
30
|
+
*
|
|
31
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
32
|
+
* 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.
|
|
33
|
+
*/
|
|
34
|
+
readonly id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#iops Replica#iops}
|
|
37
|
+
*/
|
|
38
|
+
readonly iops?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#primary_database_id Replica#primary_database_id}
|
|
41
|
+
*/
|
|
42
|
+
readonly primaryDatabaseId: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica aptible_replica}
|
|
46
|
+
*/
|
|
47
|
+
export declare class Replica extends cdktf.TerraformResource {
|
|
48
|
+
static readonly tfResourceType = "aptible_replica";
|
|
49
|
+
/**
|
|
50
|
+
* Generates CDKTF code for importing a Replica resource upon running "cdktf plan <stack-name>"
|
|
51
|
+
* @param scope The scope in which to define this construct
|
|
52
|
+
* @param importToId The construct id used in the generated config for the Replica to import
|
|
53
|
+
* @param importFromId The id of the existing Replica that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica#import import section} in the documentation of this resource for the id to use
|
|
54
|
+
* @param provider? Optional instance of the provider where the Replica to import is found
|
|
55
|
+
*/
|
|
56
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
57
|
+
/**
|
|
58
|
+
* Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica aptible_replica} Resource
|
|
59
|
+
*
|
|
60
|
+
* @param scope The scope in which to define this construct
|
|
61
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
62
|
+
* @param options ReplicaConfig
|
|
63
|
+
*/
|
|
64
|
+
constructor(scope: Construct, id: string, config: ReplicaConfig);
|
|
65
|
+
private _containerProfile?;
|
|
66
|
+
get containerProfile(): string;
|
|
67
|
+
set containerProfile(value: string);
|
|
68
|
+
resetContainerProfile(): void;
|
|
69
|
+
get containerProfileInput(): string;
|
|
70
|
+
private _containerSize?;
|
|
71
|
+
get containerSize(): number;
|
|
72
|
+
set containerSize(value: number);
|
|
73
|
+
resetContainerSize(): void;
|
|
74
|
+
get containerSizeInput(): number;
|
|
75
|
+
get defaultConnectionUrl(): any;
|
|
76
|
+
private _diskSize?;
|
|
77
|
+
get diskSize(): number;
|
|
78
|
+
set diskSize(value: number);
|
|
79
|
+
resetDiskSize(): void;
|
|
80
|
+
get diskSizeInput(): number;
|
|
81
|
+
private _enableBackups?;
|
|
82
|
+
get enableBackups(): boolean | cdktf.IResolvable;
|
|
83
|
+
set enableBackups(value: boolean | cdktf.IResolvable);
|
|
84
|
+
resetEnableBackups(): void;
|
|
85
|
+
get enableBackupsInput(): any;
|
|
86
|
+
private _envId?;
|
|
87
|
+
get envId(): number;
|
|
88
|
+
set envId(value: number);
|
|
89
|
+
get envIdInput(): number;
|
|
90
|
+
private _handle?;
|
|
91
|
+
get handle(): string;
|
|
92
|
+
set handle(value: string);
|
|
93
|
+
get handleInput(): string;
|
|
94
|
+
private _id?;
|
|
95
|
+
get id(): string;
|
|
96
|
+
set id(value: string);
|
|
97
|
+
resetId(): void;
|
|
98
|
+
get idInput(): string;
|
|
99
|
+
private _iops?;
|
|
100
|
+
get iops(): number;
|
|
101
|
+
set iops(value: number);
|
|
102
|
+
resetIops(): void;
|
|
103
|
+
get iopsInput(): number;
|
|
104
|
+
private _primaryDatabaseId?;
|
|
105
|
+
get primaryDatabaseId(): number;
|
|
106
|
+
set primaryDatabaseId(value: number);
|
|
107
|
+
get primaryDatabaseIdInput(): number;
|
|
108
|
+
get replicaId(): any;
|
|
109
|
+
protected synthesizeAttributes(): {
|
|
110
|
+
[name: string]: any;
|
|
111
|
+
};
|
|
112
|
+
protected synthesizeHclAttributes(): {
|
|
113
|
+
[name: string]: any;
|
|
114
|
+
};
|
|
115
|
+
}
|