@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,274 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/replica
|
|
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/replica aptible_replica}
|
|
6
|
+
*/
|
|
7
|
+
export class Replica extends cdktf.TerraformResource {
|
|
8
|
+
// =================
|
|
9
|
+
// STATIC PROPERTIES
|
|
10
|
+
// =================
|
|
11
|
+
static tfResourceType = "aptible_replica";
|
|
12
|
+
// ==============
|
|
13
|
+
// STATIC Methods
|
|
14
|
+
// ==============
|
|
15
|
+
/**
|
|
16
|
+
* Generates CDKTF code for importing a Replica 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 Replica to import
|
|
19
|
+
* @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
|
|
20
|
+
* @param provider? Optional instance of the provider where the Replica to import is found
|
|
21
|
+
*/
|
|
22
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
23
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aptible_replica", 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/replica aptible_replica} 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 ReplicaConfig
|
|
34
|
+
*/
|
|
35
|
+
constructor(scope, id, config) {
|
|
36
|
+
super(scope, id, {
|
|
37
|
+
terraformResourceType: 'aptible_replica',
|
|
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._containerProfile = config.containerProfile;
|
|
52
|
+
this._containerSize = config.containerSize;
|
|
53
|
+
this._diskSize = config.diskSize;
|
|
54
|
+
this._enableBackups = config.enableBackups;
|
|
55
|
+
this._envId = config.envId;
|
|
56
|
+
this._handle = config.handle;
|
|
57
|
+
this._id = config.id;
|
|
58
|
+
this._iops = config.iops;
|
|
59
|
+
this._primaryDatabaseId = config.primaryDatabaseId;
|
|
60
|
+
}
|
|
61
|
+
// ==========
|
|
62
|
+
// ATTRIBUTES
|
|
63
|
+
// ==========
|
|
64
|
+
// container_profile - computed: false, optional: true, required: false
|
|
65
|
+
_containerProfile;
|
|
66
|
+
get containerProfile() {
|
|
67
|
+
return this.getStringAttribute('container_profile');
|
|
68
|
+
}
|
|
69
|
+
set containerProfile(value) {
|
|
70
|
+
this._containerProfile = value;
|
|
71
|
+
}
|
|
72
|
+
resetContainerProfile() {
|
|
73
|
+
this._containerProfile = undefined;
|
|
74
|
+
}
|
|
75
|
+
// Temporarily expose input value. Use with caution.
|
|
76
|
+
get containerProfileInput() {
|
|
77
|
+
return this._containerProfile;
|
|
78
|
+
}
|
|
79
|
+
// container_size - computed: false, optional: true, required: false
|
|
80
|
+
_containerSize;
|
|
81
|
+
get containerSize() {
|
|
82
|
+
return this.getNumberAttribute('container_size');
|
|
83
|
+
}
|
|
84
|
+
set containerSize(value) {
|
|
85
|
+
this._containerSize = value;
|
|
86
|
+
}
|
|
87
|
+
resetContainerSize() {
|
|
88
|
+
this._containerSize = undefined;
|
|
89
|
+
}
|
|
90
|
+
// Temporarily expose input value. Use with caution.
|
|
91
|
+
get containerSizeInput() {
|
|
92
|
+
return this._containerSize;
|
|
93
|
+
}
|
|
94
|
+
// default_connection_url - computed: true, optional: false, required: false
|
|
95
|
+
get defaultConnectionUrl() {
|
|
96
|
+
return this.getStringAttribute('default_connection_url');
|
|
97
|
+
}
|
|
98
|
+
// disk_size - computed: false, optional: true, required: false
|
|
99
|
+
_diskSize;
|
|
100
|
+
get diskSize() {
|
|
101
|
+
return this.getNumberAttribute('disk_size');
|
|
102
|
+
}
|
|
103
|
+
set diskSize(value) {
|
|
104
|
+
this._diskSize = value;
|
|
105
|
+
}
|
|
106
|
+
resetDiskSize() {
|
|
107
|
+
this._diskSize = undefined;
|
|
108
|
+
}
|
|
109
|
+
// Temporarily expose input value. Use with caution.
|
|
110
|
+
get diskSizeInput() {
|
|
111
|
+
return this._diskSize;
|
|
112
|
+
}
|
|
113
|
+
// enable_backups - computed: false, optional: true, required: false
|
|
114
|
+
_enableBackups;
|
|
115
|
+
get enableBackups() {
|
|
116
|
+
return this.getBooleanAttribute('enable_backups');
|
|
117
|
+
}
|
|
118
|
+
set enableBackups(value) {
|
|
119
|
+
this._enableBackups = value;
|
|
120
|
+
}
|
|
121
|
+
resetEnableBackups() {
|
|
122
|
+
this._enableBackups = undefined;
|
|
123
|
+
}
|
|
124
|
+
// Temporarily expose input value. Use with caution.
|
|
125
|
+
get enableBackupsInput() {
|
|
126
|
+
return this._enableBackups;
|
|
127
|
+
}
|
|
128
|
+
// env_id - computed: false, optional: false, required: true
|
|
129
|
+
_envId;
|
|
130
|
+
get envId() {
|
|
131
|
+
return this.getNumberAttribute('env_id');
|
|
132
|
+
}
|
|
133
|
+
set envId(value) {
|
|
134
|
+
this._envId = value;
|
|
135
|
+
}
|
|
136
|
+
// Temporarily expose input value. Use with caution.
|
|
137
|
+
get envIdInput() {
|
|
138
|
+
return this._envId;
|
|
139
|
+
}
|
|
140
|
+
// handle - computed: false, optional: false, required: true
|
|
141
|
+
_handle;
|
|
142
|
+
get handle() {
|
|
143
|
+
return this.getStringAttribute('handle');
|
|
144
|
+
}
|
|
145
|
+
set handle(value) {
|
|
146
|
+
this._handle = value;
|
|
147
|
+
}
|
|
148
|
+
// Temporarily expose input value. Use with caution.
|
|
149
|
+
get handleInput() {
|
|
150
|
+
return this._handle;
|
|
151
|
+
}
|
|
152
|
+
// id - computed: true, optional: true, required: false
|
|
153
|
+
_id;
|
|
154
|
+
get id() {
|
|
155
|
+
return this.getStringAttribute('id');
|
|
156
|
+
}
|
|
157
|
+
set id(value) {
|
|
158
|
+
this._id = value;
|
|
159
|
+
}
|
|
160
|
+
resetId() {
|
|
161
|
+
this._id = undefined;
|
|
162
|
+
}
|
|
163
|
+
// Temporarily expose input value. Use with caution.
|
|
164
|
+
get idInput() {
|
|
165
|
+
return this._id;
|
|
166
|
+
}
|
|
167
|
+
// iops - computed: false, optional: true, required: false
|
|
168
|
+
_iops;
|
|
169
|
+
get iops() {
|
|
170
|
+
return this.getNumberAttribute('iops');
|
|
171
|
+
}
|
|
172
|
+
set iops(value) {
|
|
173
|
+
this._iops = value;
|
|
174
|
+
}
|
|
175
|
+
resetIops() {
|
|
176
|
+
this._iops = undefined;
|
|
177
|
+
}
|
|
178
|
+
// Temporarily expose input value. Use with caution.
|
|
179
|
+
get iopsInput() {
|
|
180
|
+
return this._iops;
|
|
181
|
+
}
|
|
182
|
+
// primary_database_id - computed: false, optional: false, required: true
|
|
183
|
+
_primaryDatabaseId;
|
|
184
|
+
get primaryDatabaseId() {
|
|
185
|
+
return this.getNumberAttribute('primary_database_id');
|
|
186
|
+
}
|
|
187
|
+
set primaryDatabaseId(value) {
|
|
188
|
+
this._primaryDatabaseId = value;
|
|
189
|
+
}
|
|
190
|
+
// Temporarily expose input value. Use with caution.
|
|
191
|
+
get primaryDatabaseIdInput() {
|
|
192
|
+
return this._primaryDatabaseId;
|
|
193
|
+
}
|
|
194
|
+
// replica_id - computed: true, optional: false, required: false
|
|
195
|
+
get replicaId() {
|
|
196
|
+
return this.getNumberAttribute('replica_id');
|
|
197
|
+
}
|
|
198
|
+
// =========
|
|
199
|
+
// SYNTHESIS
|
|
200
|
+
// =========
|
|
201
|
+
synthesizeAttributes() {
|
|
202
|
+
return {
|
|
203
|
+
container_profile: cdktf.stringToTerraform(this._containerProfile),
|
|
204
|
+
container_size: cdktf.numberToTerraform(this._containerSize),
|
|
205
|
+
disk_size: cdktf.numberToTerraform(this._diskSize),
|
|
206
|
+
enable_backups: cdktf.booleanToTerraform(this._enableBackups),
|
|
207
|
+
env_id: cdktf.numberToTerraform(this._envId),
|
|
208
|
+
handle: cdktf.stringToTerraform(this._handle),
|
|
209
|
+
id: cdktf.stringToTerraform(this._id),
|
|
210
|
+
iops: cdktf.numberToTerraform(this._iops),
|
|
211
|
+
primary_database_id: cdktf.numberToTerraform(this._primaryDatabaseId),
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
synthesizeHclAttributes() {
|
|
215
|
+
const attrs = {
|
|
216
|
+
container_profile: {
|
|
217
|
+
value: cdktf.stringToHclTerraform(this._containerProfile),
|
|
218
|
+
isBlock: false,
|
|
219
|
+
type: "simple",
|
|
220
|
+
storageClassType: "string",
|
|
221
|
+
},
|
|
222
|
+
container_size: {
|
|
223
|
+
value: cdktf.numberToHclTerraform(this._containerSize),
|
|
224
|
+
isBlock: false,
|
|
225
|
+
type: "simple",
|
|
226
|
+
storageClassType: "number",
|
|
227
|
+
},
|
|
228
|
+
disk_size: {
|
|
229
|
+
value: cdktf.numberToHclTerraform(this._diskSize),
|
|
230
|
+
isBlock: false,
|
|
231
|
+
type: "simple",
|
|
232
|
+
storageClassType: "number",
|
|
233
|
+
},
|
|
234
|
+
enable_backups: {
|
|
235
|
+
value: cdktf.booleanToHclTerraform(this._enableBackups),
|
|
236
|
+
isBlock: false,
|
|
237
|
+
type: "simple",
|
|
238
|
+
storageClassType: "boolean",
|
|
239
|
+
},
|
|
240
|
+
env_id: {
|
|
241
|
+
value: cdktf.numberToHclTerraform(this._envId),
|
|
242
|
+
isBlock: false,
|
|
243
|
+
type: "simple",
|
|
244
|
+
storageClassType: "number",
|
|
245
|
+
},
|
|
246
|
+
handle: {
|
|
247
|
+
value: cdktf.stringToHclTerraform(this._handle),
|
|
248
|
+
isBlock: false,
|
|
249
|
+
type: "simple",
|
|
250
|
+
storageClassType: "string",
|
|
251
|
+
},
|
|
252
|
+
id: {
|
|
253
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
254
|
+
isBlock: false,
|
|
255
|
+
type: "simple",
|
|
256
|
+
storageClassType: "string",
|
|
257
|
+
},
|
|
258
|
+
iops: {
|
|
259
|
+
value: cdktf.numberToHclTerraform(this._iops),
|
|
260
|
+
isBlock: false,
|
|
261
|
+
type: "simple",
|
|
262
|
+
storageClassType: "number",
|
|
263
|
+
},
|
|
264
|
+
primary_database_id: {
|
|
265
|
+
value: cdktf.numberToHclTerraform(this._primaryDatabaseId),
|
|
266
|
+
isBlock: false,
|
|
267
|
+
type: "simple",
|
|
268
|
+
storageClassType: "number",
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
// remove undefined attributes
|
|
272
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
273
|
+
}
|
|
274
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cdktf-providers/aptible",
|
|
3
|
+
"version": "0.9.18",
|
|
4
|
+
"description": "Prebuilt aptible Provider for Terraform CDK (cdktf)",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/shunueda/cdktf-providers.git",
|
|
8
|
+
"directory": "gen/aptible/aptible/typescript"
|
|
9
|
+
},
|
|
10
|
+
"license": "MPL-2.0",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./lazy-index": {
|
|
19
|
+
"import": "./dist/lazy-index.js",
|
|
20
|
+
"types": "./dist/lazy-index.d.ts",
|
|
21
|
+
"require": "./dist/lazy-index.js"
|
|
22
|
+
},
|
|
23
|
+
"./*": {
|
|
24
|
+
"import": "./dist/*/index.js",
|
|
25
|
+
"types": "./dist/*/index.d.ts",
|
|
26
|
+
"require": "./dist/*/index.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"keywords": [
|
|
33
|
+
"cdk",
|
|
34
|
+
"cdktf",
|
|
35
|
+
"provider",
|
|
36
|
+
"terraform",
|
|
37
|
+
"aptible"
|
|
38
|
+
],
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"cdktf": "^0.21.0",
|
|
41
|
+
"constructs": "^10.4.2"
|
|
42
|
+
},
|
|
43
|
+
"cdktf": {
|
|
44
|
+
"isDeprecated": false,
|
|
45
|
+
"provider": {
|
|
46
|
+
"name": "registry.terraform.io/aptible/aptible",
|
|
47
|
+
"version": "0.9.18"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|