@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,477 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/log_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/log_drain aptible_log_drain}
|
|
6
|
+
*/
|
|
7
|
+
export class LogDrain extends cdktf.TerraformResource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "aptible_log_drain";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a LogDrain 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 LogDrain to import
|
|
19
|
+
* @param importFromId The id of the existing LogDrain that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/log_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 LogDrain to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aptible_log_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/log_drain aptible_log_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 LogDrainConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'aptible_log_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._databaseId = config.databaseId;
|
|
52
|
+
this._drainApps = config.drainApps;
|
|
53
|
+
this._drainDatabases = config.drainDatabases;
|
|
54
|
+
this._drainEphemeralSessions = config.drainEphemeralSessions;
|
|
55
|
+
this._drainHost = config.drainHost;
|
|
56
|
+
this._drainPassword = config.drainPassword;
|
|
57
|
+
this._drainPort = config.drainPort;
|
|
58
|
+
this._drainProxies = config.drainProxies;
|
|
59
|
+
this._drainType = config.drainType;
|
|
60
|
+
this._drainUsername = config.drainUsername;
|
|
61
|
+
this._envId = config.envId;
|
|
62
|
+
this._handle = config.handle;
|
|
63
|
+
this._id = config.id;
|
|
64
|
+
this._loggingToken = config.loggingToken;
|
|
65
|
+
this._pipeline = config.pipeline;
|
|
66
|
+
this._tags = config.tags;
|
|
67
|
+
this._token = config.token;
|
|
68
|
+
this._url = config.url;
|
|
69
|
+
}
|
|
70
|
+
// ==========
|
|
71
|
+
// ATTRIBUTES
|
|
72
|
+
// ==========
|
|
73
|
+
// database_id - computed: false, optional: true, required: false
|
|
74
|
+
_databaseId;
|
|
75
|
+
get databaseId() {
|
|
76
|
+
return this.getNumberAttribute('database_id');
|
|
77
|
+
}
|
|
78
|
+
set databaseId(value) {
|
|
79
|
+
this._databaseId = value;
|
|
80
|
+
}
|
|
81
|
+
resetDatabaseId() {
|
|
82
|
+
this._databaseId = undefined;
|
|
83
|
+
}
|
|
84
|
+
// Temporarily expose input value. Use with caution.
|
|
85
|
+
get databaseIdInput() {
|
|
86
|
+
return this._databaseId;
|
|
87
|
+
}
|
|
88
|
+
// drain_apps - computed: false, optional: true, required: false
|
|
89
|
+
_drainApps;
|
|
90
|
+
get drainApps() {
|
|
91
|
+
return this.getBooleanAttribute('drain_apps');
|
|
92
|
+
}
|
|
93
|
+
set drainApps(value) {
|
|
94
|
+
this._drainApps = value;
|
|
95
|
+
}
|
|
96
|
+
resetDrainApps() {
|
|
97
|
+
this._drainApps = undefined;
|
|
98
|
+
}
|
|
99
|
+
// Temporarily expose input value. Use with caution.
|
|
100
|
+
get drainAppsInput() {
|
|
101
|
+
return this._drainApps;
|
|
102
|
+
}
|
|
103
|
+
// drain_databases - computed: false, optional: true, required: false
|
|
104
|
+
_drainDatabases;
|
|
105
|
+
get drainDatabases() {
|
|
106
|
+
return this.getBooleanAttribute('drain_databases');
|
|
107
|
+
}
|
|
108
|
+
set drainDatabases(value) {
|
|
109
|
+
this._drainDatabases = value;
|
|
110
|
+
}
|
|
111
|
+
resetDrainDatabases() {
|
|
112
|
+
this._drainDatabases = undefined;
|
|
113
|
+
}
|
|
114
|
+
// Temporarily expose input value. Use with caution.
|
|
115
|
+
get drainDatabasesInput() {
|
|
116
|
+
return this._drainDatabases;
|
|
117
|
+
}
|
|
118
|
+
// drain_ephemeral_sessions - computed: false, optional: true, required: false
|
|
119
|
+
_drainEphemeralSessions;
|
|
120
|
+
get drainEphemeralSessions() {
|
|
121
|
+
return this.getBooleanAttribute('drain_ephemeral_sessions');
|
|
122
|
+
}
|
|
123
|
+
set drainEphemeralSessions(value) {
|
|
124
|
+
this._drainEphemeralSessions = value;
|
|
125
|
+
}
|
|
126
|
+
resetDrainEphemeralSessions() {
|
|
127
|
+
this._drainEphemeralSessions = undefined;
|
|
128
|
+
}
|
|
129
|
+
// Temporarily expose input value. Use with caution.
|
|
130
|
+
get drainEphemeralSessionsInput() {
|
|
131
|
+
return this._drainEphemeralSessions;
|
|
132
|
+
}
|
|
133
|
+
// drain_host - computed: false, optional: true, required: false
|
|
134
|
+
_drainHost;
|
|
135
|
+
get drainHost() {
|
|
136
|
+
return this.getStringAttribute('drain_host');
|
|
137
|
+
}
|
|
138
|
+
set drainHost(value) {
|
|
139
|
+
this._drainHost = value;
|
|
140
|
+
}
|
|
141
|
+
resetDrainHost() {
|
|
142
|
+
this._drainHost = undefined;
|
|
143
|
+
}
|
|
144
|
+
// Temporarily expose input value. Use with caution.
|
|
145
|
+
get drainHostInput() {
|
|
146
|
+
return this._drainHost;
|
|
147
|
+
}
|
|
148
|
+
// drain_password - computed: true, optional: true, required: false
|
|
149
|
+
_drainPassword;
|
|
150
|
+
get drainPassword() {
|
|
151
|
+
return this.getStringAttribute('drain_password');
|
|
152
|
+
}
|
|
153
|
+
set drainPassword(value) {
|
|
154
|
+
this._drainPassword = value;
|
|
155
|
+
}
|
|
156
|
+
resetDrainPassword() {
|
|
157
|
+
this._drainPassword = undefined;
|
|
158
|
+
}
|
|
159
|
+
// Temporarily expose input value. Use with caution.
|
|
160
|
+
get drainPasswordInput() {
|
|
161
|
+
return this._drainPassword;
|
|
162
|
+
}
|
|
163
|
+
// drain_port - computed: false, optional: true, required: false
|
|
164
|
+
_drainPort;
|
|
165
|
+
get drainPort() {
|
|
166
|
+
return this.getNumberAttribute('drain_port');
|
|
167
|
+
}
|
|
168
|
+
set drainPort(value) {
|
|
169
|
+
this._drainPort = value;
|
|
170
|
+
}
|
|
171
|
+
resetDrainPort() {
|
|
172
|
+
this._drainPort = undefined;
|
|
173
|
+
}
|
|
174
|
+
// Temporarily expose input value. Use with caution.
|
|
175
|
+
get drainPortInput() {
|
|
176
|
+
return this._drainPort;
|
|
177
|
+
}
|
|
178
|
+
// drain_proxies - computed: false, optional: true, required: false
|
|
179
|
+
_drainProxies;
|
|
180
|
+
get drainProxies() {
|
|
181
|
+
return this.getBooleanAttribute('drain_proxies');
|
|
182
|
+
}
|
|
183
|
+
set drainProxies(value) {
|
|
184
|
+
this._drainProxies = value;
|
|
185
|
+
}
|
|
186
|
+
resetDrainProxies() {
|
|
187
|
+
this._drainProxies = undefined;
|
|
188
|
+
}
|
|
189
|
+
// Temporarily expose input value. Use with caution.
|
|
190
|
+
get drainProxiesInput() {
|
|
191
|
+
return this._drainProxies;
|
|
192
|
+
}
|
|
193
|
+
// drain_type - computed: false, optional: false, required: true
|
|
194
|
+
_drainType;
|
|
195
|
+
get drainType() {
|
|
196
|
+
return this.getStringAttribute('drain_type');
|
|
197
|
+
}
|
|
198
|
+
set drainType(value) {
|
|
199
|
+
this._drainType = value;
|
|
200
|
+
}
|
|
201
|
+
// Temporarily expose input value. Use with caution.
|
|
202
|
+
get drainTypeInput() {
|
|
203
|
+
return this._drainType;
|
|
204
|
+
}
|
|
205
|
+
// drain_username - computed: true, optional: true, required: false
|
|
206
|
+
_drainUsername;
|
|
207
|
+
get drainUsername() {
|
|
208
|
+
return this.getStringAttribute('drain_username');
|
|
209
|
+
}
|
|
210
|
+
set drainUsername(value) {
|
|
211
|
+
this._drainUsername = value;
|
|
212
|
+
}
|
|
213
|
+
resetDrainUsername() {
|
|
214
|
+
this._drainUsername = undefined;
|
|
215
|
+
}
|
|
216
|
+
// Temporarily expose input value. Use with caution.
|
|
217
|
+
get drainUsernameInput() {
|
|
218
|
+
return this._drainUsername;
|
|
219
|
+
}
|
|
220
|
+
// env_id - computed: false, optional: false, required: true
|
|
221
|
+
_envId;
|
|
222
|
+
get envId() {
|
|
223
|
+
return this.getNumberAttribute('env_id');
|
|
224
|
+
}
|
|
225
|
+
set envId(value) {
|
|
226
|
+
this._envId = value;
|
|
227
|
+
}
|
|
228
|
+
// Temporarily expose input value. Use with caution.
|
|
229
|
+
get envIdInput() {
|
|
230
|
+
return this._envId;
|
|
231
|
+
}
|
|
232
|
+
// handle - computed: false, optional: false, required: true
|
|
233
|
+
_handle;
|
|
234
|
+
get handle() {
|
|
235
|
+
return this.getStringAttribute('handle');
|
|
236
|
+
}
|
|
237
|
+
set handle(value) {
|
|
238
|
+
this._handle = value;
|
|
239
|
+
}
|
|
240
|
+
// Temporarily expose input value. Use with caution.
|
|
241
|
+
get handleInput() {
|
|
242
|
+
return this._handle;
|
|
243
|
+
}
|
|
244
|
+
// id - computed: true, optional: true, required: false
|
|
245
|
+
_id;
|
|
246
|
+
get id() {
|
|
247
|
+
return this.getStringAttribute('id');
|
|
248
|
+
}
|
|
249
|
+
set id(value) {
|
|
250
|
+
this._id = value;
|
|
251
|
+
}
|
|
252
|
+
resetId() {
|
|
253
|
+
this._id = undefined;
|
|
254
|
+
}
|
|
255
|
+
// Temporarily expose input value. Use with caution.
|
|
256
|
+
get idInput() {
|
|
257
|
+
return this._id;
|
|
258
|
+
}
|
|
259
|
+
// log_drain_id - computed: true, optional: false, required: false
|
|
260
|
+
get logDrainId() {
|
|
261
|
+
return this.getNumberAttribute('log_drain_id');
|
|
262
|
+
}
|
|
263
|
+
// logging_token - computed: true, optional: true, required: false
|
|
264
|
+
_loggingToken;
|
|
265
|
+
get loggingToken() {
|
|
266
|
+
return this.getStringAttribute('logging_token');
|
|
267
|
+
}
|
|
268
|
+
set loggingToken(value) {
|
|
269
|
+
this._loggingToken = value;
|
|
270
|
+
}
|
|
271
|
+
resetLoggingToken() {
|
|
272
|
+
this._loggingToken = undefined;
|
|
273
|
+
}
|
|
274
|
+
// Temporarily expose input value. Use with caution.
|
|
275
|
+
get loggingTokenInput() {
|
|
276
|
+
return this._loggingToken;
|
|
277
|
+
}
|
|
278
|
+
// pipeline - computed: false, optional: true, required: false
|
|
279
|
+
_pipeline;
|
|
280
|
+
get pipeline() {
|
|
281
|
+
return this.getStringAttribute('pipeline');
|
|
282
|
+
}
|
|
283
|
+
set pipeline(value) {
|
|
284
|
+
this._pipeline = value;
|
|
285
|
+
}
|
|
286
|
+
resetPipeline() {
|
|
287
|
+
this._pipeline = undefined;
|
|
288
|
+
}
|
|
289
|
+
// Temporarily expose input value. Use with caution.
|
|
290
|
+
get pipelineInput() {
|
|
291
|
+
return this._pipeline;
|
|
292
|
+
}
|
|
293
|
+
// tags - computed: false, optional: true, required: false
|
|
294
|
+
_tags;
|
|
295
|
+
get tags() {
|
|
296
|
+
return this.getStringAttribute('tags');
|
|
297
|
+
}
|
|
298
|
+
set tags(value) {
|
|
299
|
+
this._tags = value;
|
|
300
|
+
}
|
|
301
|
+
resetTags() {
|
|
302
|
+
this._tags = undefined;
|
|
303
|
+
}
|
|
304
|
+
// Temporarily expose input value. Use with caution.
|
|
305
|
+
get tagsInput() {
|
|
306
|
+
return this._tags;
|
|
307
|
+
}
|
|
308
|
+
// token - computed: false, optional: true, required: false
|
|
309
|
+
_token;
|
|
310
|
+
get token() {
|
|
311
|
+
return this.getStringAttribute('token');
|
|
312
|
+
}
|
|
313
|
+
set token(value) {
|
|
314
|
+
this._token = value;
|
|
315
|
+
}
|
|
316
|
+
resetToken() {
|
|
317
|
+
this._token = undefined;
|
|
318
|
+
}
|
|
319
|
+
// Temporarily expose input value. Use with caution.
|
|
320
|
+
get tokenInput() {
|
|
321
|
+
return this._token;
|
|
322
|
+
}
|
|
323
|
+
// url - computed: false, optional: true, required: false
|
|
324
|
+
_url;
|
|
325
|
+
get url() {
|
|
326
|
+
return this.getStringAttribute('url');
|
|
327
|
+
}
|
|
328
|
+
set url(value) {
|
|
329
|
+
this._url = value;
|
|
330
|
+
}
|
|
331
|
+
resetUrl() {
|
|
332
|
+
this._url = undefined;
|
|
333
|
+
}
|
|
334
|
+
// Temporarily expose input value. Use with caution.
|
|
335
|
+
get urlInput() {
|
|
336
|
+
return this._url;
|
|
337
|
+
}
|
|
338
|
+
// =========
|
|
339
|
+
// SYNTHESIS
|
|
340
|
+
// =========
|
|
341
|
+
synthesizeAttributes() {
|
|
342
|
+
return {
|
|
343
|
+
database_id: cdktf.numberToTerraform(this._databaseId),
|
|
344
|
+
drain_apps: cdktf.booleanToTerraform(this._drainApps),
|
|
345
|
+
drain_databases: cdktf.booleanToTerraform(this._drainDatabases),
|
|
346
|
+
drain_ephemeral_sessions: cdktf.booleanToTerraform(this._drainEphemeralSessions),
|
|
347
|
+
drain_host: cdktf.stringToTerraform(this._drainHost),
|
|
348
|
+
drain_password: cdktf.stringToTerraform(this._drainPassword),
|
|
349
|
+
drain_port: cdktf.numberToTerraform(this._drainPort),
|
|
350
|
+
drain_proxies: cdktf.booleanToTerraform(this._drainProxies),
|
|
351
|
+
drain_type: cdktf.stringToTerraform(this._drainType),
|
|
352
|
+
drain_username: cdktf.stringToTerraform(this._drainUsername),
|
|
353
|
+
env_id: cdktf.numberToTerraform(this._envId),
|
|
354
|
+
handle: cdktf.stringToTerraform(this._handle),
|
|
355
|
+
id: cdktf.stringToTerraform(this._id),
|
|
356
|
+
logging_token: cdktf.stringToTerraform(this._loggingToken),
|
|
357
|
+
pipeline: cdktf.stringToTerraform(this._pipeline),
|
|
358
|
+
tags: cdktf.stringToTerraform(this._tags),
|
|
359
|
+
token: cdktf.stringToTerraform(this._token),
|
|
360
|
+
url: cdktf.stringToTerraform(this._url),
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
synthesizeHclAttributes() {
|
|
364
|
+
const attrs = {
|
|
365
|
+
database_id: {
|
|
366
|
+
value: cdktf.numberToHclTerraform(this._databaseId),
|
|
367
|
+
isBlock: false,
|
|
368
|
+
type: "simple",
|
|
369
|
+
storageClassType: "number",
|
|
370
|
+
},
|
|
371
|
+
drain_apps: {
|
|
372
|
+
value: cdktf.booleanToHclTerraform(this._drainApps),
|
|
373
|
+
isBlock: false,
|
|
374
|
+
type: "simple",
|
|
375
|
+
storageClassType: "boolean",
|
|
376
|
+
},
|
|
377
|
+
drain_databases: {
|
|
378
|
+
value: cdktf.booleanToHclTerraform(this._drainDatabases),
|
|
379
|
+
isBlock: false,
|
|
380
|
+
type: "simple",
|
|
381
|
+
storageClassType: "boolean",
|
|
382
|
+
},
|
|
383
|
+
drain_ephemeral_sessions: {
|
|
384
|
+
value: cdktf.booleanToHclTerraform(this._drainEphemeralSessions),
|
|
385
|
+
isBlock: false,
|
|
386
|
+
type: "simple",
|
|
387
|
+
storageClassType: "boolean",
|
|
388
|
+
},
|
|
389
|
+
drain_host: {
|
|
390
|
+
value: cdktf.stringToHclTerraform(this._drainHost),
|
|
391
|
+
isBlock: false,
|
|
392
|
+
type: "simple",
|
|
393
|
+
storageClassType: "string",
|
|
394
|
+
},
|
|
395
|
+
drain_password: {
|
|
396
|
+
value: cdktf.stringToHclTerraform(this._drainPassword),
|
|
397
|
+
isBlock: false,
|
|
398
|
+
type: "simple",
|
|
399
|
+
storageClassType: "string",
|
|
400
|
+
},
|
|
401
|
+
drain_port: {
|
|
402
|
+
value: cdktf.numberToHclTerraform(this._drainPort),
|
|
403
|
+
isBlock: false,
|
|
404
|
+
type: "simple",
|
|
405
|
+
storageClassType: "number",
|
|
406
|
+
},
|
|
407
|
+
drain_proxies: {
|
|
408
|
+
value: cdktf.booleanToHclTerraform(this._drainProxies),
|
|
409
|
+
isBlock: false,
|
|
410
|
+
type: "simple",
|
|
411
|
+
storageClassType: "boolean",
|
|
412
|
+
},
|
|
413
|
+
drain_type: {
|
|
414
|
+
value: cdktf.stringToHclTerraform(this._drainType),
|
|
415
|
+
isBlock: false,
|
|
416
|
+
type: "simple",
|
|
417
|
+
storageClassType: "string",
|
|
418
|
+
},
|
|
419
|
+
drain_username: {
|
|
420
|
+
value: cdktf.stringToHclTerraform(this._drainUsername),
|
|
421
|
+
isBlock: false,
|
|
422
|
+
type: "simple",
|
|
423
|
+
storageClassType: "string",
|
|
424
|
+
},
|
|
425
|
+
env_id: {
|
|
426
|
+
value: cdktf.numberToHclTerraform(this._envId),
|
|
427
|
+
isBlock: false,
|
|
428
|
+
type: "simple",
|
|
429
|
+
storageClassType: "number",
|
|
430
|
+
},
|
|
431
|
+
handle: {
|
|
432
|
+
value: cdktf.stringToHclTerraform(this._handle),
|
|
433
|
+
isBlock: false,
|
|
434
|
+
type: "simple",
|
|
435
|
+
storageClassType: "string",
|
|
436
|
+
},
|
|
437
|
+
id: {
|
|
438
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
439
|
+
isBlock: false,
|
|
440
|
+
type: "simple",
|
|
441
|
+
storageClassType: "string",
|
|
442
|
+
},
|
|
443
|
+
logging_token: {
|
|
444
|
+
value: cdktf.stringToHclTerraform(this._loggingToken),
|
|
445
|
+
isBlock: false,
|
|
446
|
+
type: "simple",
|
|
447
|
+
storageClassType: "string",
|
|
448
|
+
},
|
|
449
|
+
pipeline: {
|
|
450
|
+
value: cdktf.stringToHclTerraform(this._pipeline),
|
|
451
|
+
isBlock: false,
|
|
452
|
+
type: "simple",
|
|
453
|
+
storageClassType: "string",
|
|
454
|
+
},
|
|
455
|
+
tags: {
|
|
456
|
+
value: cdktf.stringToHclTerraform(this._tags),
|
|
457
|
+
isBlock: false,
|
|
458
|
+
type: "simple",
|
|
459
|
+
storageClassType: "string",
|
|
460
|
+
},
|
|
461
|
+
token: {
|
|
462
|
+
value: cdktf.stringToHclTerraform(this._token),
|
|
463
|
+
isBlock: false,
|
|
464
|
+
type: "simple",
|
|
465
|
+
storageClassType: "string",
|
|
466
|
+
},
|
|
467
|
+
url: {
|
|
468
|
+
value: cdktf.stringToHclTerraform(this._url),
|
|
469
|
+
isBlock: false,
|
|
470
|
+
type: "simple",
|
|
471
|
+
storageClassType: "string",
|
|
472
|
+
},
|
|
473
|
+
};
|
|
474
|
+
// remove undefined attributes
|
|
475
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
476
|
+
}
|
|
477
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface MetricDrainConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#api_key MetricDrain#api_key}
|
|
6
|
+
*/
|
|
7
|
+
readonly apiKey?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#bucket MetricDrain#bucket}
|
|
10
|
+
*/
|
|
11
|
+
readonly bucket?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#database MetricDrain#database}
|
|
14
|
+
*/
|
|
15
|
+
readonly database?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#database_id MetricDrain#database_id}
|
|
18
|
+
*/
|
|
19
|
+
readonly databaseId?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#drain_type MetricDrain#drain_type}
|
|
22
|
+
*/
|
|
23
|
+
readonly drainType: string;
|
|
24
|
+
/**
|
|
25
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#env_id MetricDrain#env_id}
|
|
26
|
+
*/
|
|
27
|
+
readonly envId: number;
|
|
28
|
+
/**
|
|
29
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#handle MetricDrain#handle}
|
|
30
|
+
*/
|
|
31
|
+
readonly handle: string;
|
|
32
|
+
/**
|
|
33
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#id MetricDrain#id}
|
|
34
|
+
*
|
|
35
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
36
|
+
* 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.
|
|
37
|
+
*/
|
|
38
|
+
readonly id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#organization MetricDrain#organization}
|
|
41
|
+
*/
|
|
42
|
+
readonly organization?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#password MetricDrain#password}
|
|
45
|
+
*/
|
|
46
|
+
readonly password?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#series_url MetricDrain#series_url}
|
|
49
|
+
*/
|
|
50
|
+
readonly seriesUrl?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#url MetricDrain#url}
|
|
53
|
+
*/
|
|
54
|
+
readonly url?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain#username MetricDrain#username}
|
|
57
|
+
*/
|
|
58
|
+
readonly username?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain aptible_metric_drain}
|
|
62
|
+
*/
|
|
63
|
+
export declare class MetricDrain extends cdktf.TerraformResource {
|
|
64
|
+
static readonly tfResourceType = "aptible_metric_drain";
|
|
65
|
+
/**
|
|
66
|
+
* Generates CDKTF code for importing a MetricDrain resource upon running "cdktf plan <stack-name>"
|
|
67
|
+
* @param scope The scope in which to define this construct
|
|
68
|
+
* @param importToId The construct id used in the generated config for the MetricDrain to import
|
|
69
|
+
* @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
|
|
70
|
+
* @param provider? Optional instance of the provider where the MetricDrain to import is found
|
|
71
|
+
*/
|
|
72
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
73
|
+
/**
|
|
74
|
+
* Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/metric_drain aptible_metric_drain} Resource
|
|
75
|
+
*
|
|
76
|
+
* @param scope The scope in which to define this construct
|
|
77
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
78
|
+
* @param options MetricDrainConfig
|
|
79
|
+
*/
|
|
80
|
+
constructor(scope: Construct, id: string, config: MetricDrainConfig);
|
|
81
|
+
private _apiKey?;
|
|
82
|
+
get apiKey(): string;
|
|
83
|
+
set apiKey(value: string);
|
|
84
|
+
resetApiKey(): void;
|
|
85
|
+
get apiKeyInput(): string;
|
|
86
|
+
private _bucket?;
|
|
87
|
+
get bucket(): string;
|
|
88
|
+
set bucket(value: string);
|
|
89
|
+
resetBucket(): void;
|
|
90
|
+
get bucketInput(): string;
|
|
91
|
+
private _database?;
|
|
92
|
+
get database(): string;
|
|
93
|
+
set database(value: string);
|
|
94
|
+
resetDatabase(): void;
|
|
95
|
+
get databaseInput(): string;
|
|
96
|
+
private _databaseId?;
|
|
97
|
+
get databaseId(): number;
|
|
98
|
+
set databaseId(value: number);
|
|
99
|
+
resetDatabaseId(): void;
|
|
100
|
+
get databaseIdInput(): number;
|
|
101
|
+
private _drainType?;
|
|
102
|
+
get drainType(): string;
|
|
103
|
+
set drainType(value: string);
|
|
104
|
+
get drainTypeInput(): string;
|
|
105
|
+
private _envId?;
|
|
106
|
+
get envId(): number;
|
|
107
|
+
set envId(value: number);
|
|
108
|
+
get envIdInput(): number;
|
|
109
|
+
private _handle?;
|
|
110
|
+
get handle(): string;
|
|
111
|
+
set handle(value: string);
|
|
112
|
+
get handleInput(): string;
|
|
113
|
+
private _id?;
|
|
114
|
+
get id(): string;
|
|
115
|
+
set id(value: string);
|
|
116
|
+
resetId(): void;
|
|
117
|
+
get idInput(): string;
|
|
118
|
+
get metricDrainId(): any;
|
|
119
|
+
private _organization?;
|
|
120
|
+
get organization(): string;
|
|
121
|
+
set organization(value: string);
|
|
122
|
+
resetOrganization(): void;
|
|
123
|
+
get organizationInput(): string;
|
|
124
|
+
private _password?;
|
|
125
|
+
get password(): string;
|
|
126
|
+
set password(value: string);
|
|
127
|
+
resetPassword(): void;
|
|
128
|
+
get passwordInput(): string;
|
|
129
|
+
private _seriesUrl?;
|
|
130
|
+
get seriesUrl(): string;
|
|
131
|
+
set seriesUrl(value: string);
|
|
132
|
+
resetSeriesUrl(): void;
|
|
133
|
+
get seriesUrlInput(): string;
|
|
134
|
+
private _url?;
|
|
135
|
+
get url(): string;
|
|
136
|
+
set url(value: string);
|
|
137
|
+
resetUrl(): void;
|
|
138
|
+
get urlInput(): string;
|
|
139
|
+
private _username?;
|
|
140
|
+
get username(): string;
|
|
141
|
+
set username(value: string);
|
|
142
|
+
resetUsername(): void;
|
|
143
|
+
get usernameInput(): string;
|
|
144
|
+
protected synthesizeAttributes(): {
|
|
145
|
+
[name: string]: any;
|
|
146
|
+
};
|
|
147
|
+
protected synthesizeHclAttributes(): {
|
|
148
|
+
[name: string]: any;
|
|
149
|
+
};
|
|
150
|
+
}
|