@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.
@@ -0,0 +1,308 @@
1
+ // https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/database
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/database aptible_database}
6
+ */
7
+ export class Database extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "aptible_database";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a Database 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 Database to import
19
+ * @param importFromId The id of the existing Database that should be imported. Refer to the {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/database#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the Database to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aptible_database", 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/database aptible_database} 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 DatabaseConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'aptible_database',
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._databaseType = config.databaseType;
54
+ this._diskSize = config.diskSize;
55
+ this._enableBackups = config.enableBackups;
56
+ this._envId = config.envId;
57
+ this._handle = config.handle;
58
+ this._id = config.id;
59
+ this._iops = config.iops;
60
+ this._version = config.version;
61
+ }
62
+ // ==========
63
+ // ATTRIBUTES
64
+ // ==========
65
+ // connection_urls - computed: true, optional: false, required: false
66
+ get connectionUrls() {
67
+ return this.getListAttribute('connection_urls');
68
+ }
69
+ // container_profile - computed: false, optional: true, required: false
70
+ _containerProfile;
71
+ get containerProfile() {
72
+ return this.getStringAttribute('container_profile');
73
+ }
74
+ set containerProfile(value) {
75
+ this._containerProfile = value;
76
+ }
77
+ resetContainerProfile() {
78
+ this._containerProfile = undefined;
79
+ }
80
+ // Temporarily expose input value. Use with caution.
81
+ get containerProfileInput() {
82
+ return this._containerProfile;
83
+ }
84
+ // container_size - computed: false, optional: true, required: false
85
+ _containerSize;
86
+ get containerSize() {
87
+ return this.getNumberAttribute('container_size');
88
+ }
89
+ set containerSize(value) {
90
+ this._containerSize = value;
91
+ }
92
+ resetContainerSize() {
93
+ this._containerSize = undefined;
94
+ }
95
+ // Temporarily expose input value. Use with caution.
96
+ get containerSizeInput() {
97
+ return this._containerSize;
98
+ }
99
+ // database_id - computed: true, optional: false, required: false
100
+ get databaseId() {
101
+ return this.getNumberAttribute('database_id');
102
+ }
103
+ // database_image_id - computed: true, optional: false, required: false
104
+ get databaseImageId() {
105
+ return this.getNumberAttribute('database_image_id');
106
+ }
107
+ // database_type - computed: false, optional: true, required: false
108
+ _databaseType;
109
+ get databaseType() {
110
+ return this.getStringAttribute('database_type');
111
+ }
112
+ set databaseType(value) {
113
+ this._databaseType = value;
114
+ }
115
+ resetDatabaseType() {
116
+ this._databaseType = undefined;
117
+ }
118
+ // Temporarily expose input value. Use with caution.
119
+ get databaseTypeInput() {
120
+ return this._databaseType;
121
+ }
122
+ // default_connection_url - computed: true, optional: false, required: false
123
+ get defaultConnectionUrl() {
124
+ return this.getStringAttribute('default_connection_url');
125
+ }
126
+ // disk_size - computed: false, optional: true, required: false
127
+ _diskSize;
128
+ get diskSize() {
129
+ return this.getNumberAttribute('disk_size');
130
+ }
131
+ set diskSize(value) {
132
+ this._diskSize = value;
133
+ }
134
+ resetDiskSize() {
135
+ this._diskSize = undefined;
136
+ }
137
+ // Temporarily expose input value. Use with caution.
138
+ get diskSizeInput() {
139
+ return this._diskSize;
140
+ }
141
+ // enable_backups - computed: false, optional: true, required: false
142
+ _enableBackups;
143
+ get enableBackups() {
144
+ return this.getBooleanAttribute('enable_backups');
145
+ }
146
+ set enableBackups(value) {
147
+ this._enableBackups = value;
148
+ }
149
+ resetEnableBackups() {
150
+ this._enableBackups = undefined;
151
+ }
152
+ // Temporarily expose input value. Use with caution.
153
+ get enableBackupsInput() {
154
+ return this._enableBackups;
155
+ }
156
+ // env_id - computed: false, optional: false, required: true
157
+ _envId;
158
+ get envId() {
159
+ return this.getNumberAttribute('env_id');
160
+ }
161
+ set envId(value) {
162
+ this._envId = value;
163
+ }
164
+ // Temporarily expose input value. Use with caution.
165
+ get envIdInput() {
166
+ return this._envId;
167
+ }
168
+ // handle - computed: false, optional: false, required: true
169
+ _handle;
170
+ get handle() {
171
+ return this.getStringAttribute('handle');
172
+ }
173
+ set handle(value) {
174
+ this._handle = value;
175
+ }
176
+ // Temporarily expose input value. Use with caution.
177
+ get handleInput() {
178
+ return this._handle;
179
+ }
180
+ // id - computed: true, optional: true, required: false
181
+ _id;
182
+ get id() {
183
+ return this.getStringAttribute('id');
184
+ }
185
+ set id(value) {
186
+ this._id = value;
187
+ }
188
+ resetId() {
189
+ this._id = undefined;
190
+ }
191
+ // Temporarily expose input value. Use with caution.
192
+ get idInput() {
193
+ return this._id;
194
+ }
195
+ // iops - computed: false, optional: true, required: false
196
+ _iops;
197
+ get iops() {
198
+ return this.getNumberAttribute('iops');
199
+ }
200
+ set iops(value) {
201
+ this._iops = value;
202
+ }
203
+ resetIops() {
204
+ this._iops = undefined;
205
+ }
206
+ // Temporarily expose input value. Use with caution.
207
+ get iopsInput() {
208
+ return this._iops;
209
+ }
210
+ // version - computed: false, optional: true, required: false
211
+ _version;
212
+ get version() {
213
+ return this.getStringAttribute('version');
214
+ }
215
+ set version(value) {
216
+ this._version = value;
217
+ }
218
+ resetVersion() {
219
+ this._version = undefined;
220
+ }
221
+ // Temporarily expose input value. Use with caution.
222
+ get versionInput() {
223
+ return this._version;
224
+ }
225
+ // =========
226
+ // SYNTHESIS
227
+ // =========
228
+ synthesizeAttributes() {
229
+ return {
230
+ container_profile: cdktf.stringToTerraform(this._containerProfile),
231
+ container_size: cdktf.numberToTerraform(this._containerSize),
232
+ database_type: cdktf.stringToTerraform(this._databaseType),
233
+ disk_size: cdktf.numberToTerraform(this._diskSize),
234
+ enable_backups: cdktf.booleanToTerraform(this._enableBackups),
235
+ env_id: cdktf.numberToTerraform(this._envId),
236
+ handle: cdktf.stringToTerraform(this._handle),
237
+ id: cdktf.stringToTerraform(this._id),
238
+ iops: cdktf.numberToTerraform(this._iops),
239
+ version: cdktf.stringToTerraform(this._version),
240
+ };
241
+ }
242
+ synthesizeHclAttributes() {
243
+ const attrs = {
244
+ container_profile: {
245
+ value: cdktf.stringToHclTerraform(this._containerProfile),
246
+ isBlock: false,
247
+ type: "simple",
248
+ storageClassType: "string",
249
+ },
250
+ container_size: {
251
+ value: cdktf.numberToHclTerraform(this._containerSize),
252
+ isBlock: false,
253
+ type: "simple",
254
+ storageClassType: "number",
255
+ },
256
+ database_type: {
257
+ value: cdktf.stringToHclTerraform(this._databaseType),
258
+ isBlock: false,
259
+ type: "simple",
260
+ storageClassType: "string",
261
+ },
262
+ disk_size: {
263
+ value: cdktf.numberToHclTerraform(this._diskSize),
264
+ isBlock: false,
265
+ type: "simple",
266
+ storageClassType: "number",
267
+ },
268
+ enable_backups: {
269
+ value: cdktf.booleanToHclTerraform(this._enableBackups),
270
+ isBlock: false,
271
+ type: "simple",
272
+ storageClassType: "boolean",
273
+ },
274
+ env_id: {
275
+ value: cdktf.numberToHclTerraform(this._envId),
276
+ isBlock: false,
277
+ type: "simple",
278
+ storageClassType: "number",
279
+ },
280
+ handle: {
281
+ value: cdktf.stringToHclTerraform(this._handle),
282
+ isBlock: false,
283
+ type: "simple",
284
+ storageClassType: "string",
285
+ },
286
+ id: {
287
+ value: cdktf.stringToHclTerraform(this._id),
288
+ isBlock: false,
289
+ type: "simple",
290
+ storageClassType: "string",
291
+ },
292
+ iops: {
293
+ value: cdktf.numberToHclTerraform(this._iops),
294
+ isBlock: false,
295
+ type: "simple",
296
+ storageClassType: "number",
297
+ },
298
+ version: {
299
+ value: cdktf.stringToHclTerraform(this._version),
300
+ isBlock: false,
301
+ type: "simple",
302
+ storageClassType: "string",
303
+ },
304
+ };
305
+ // remove undefined attributes
306
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
307
+ }
308
+ }
@@ -0,0 +1,181 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface EndpointConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#container_port Endpoint#container_port}
6
+ */
7
+ readonly containerPort?: number;
8
+ /**
9
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#container_ports Endpoint#container_ports}
10
+ */
11
+ readonly containerPorts?: number[];
12
+ /**
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#default_domain Endpoint#default_domain}
14
+ */
15
+ readonly defaultDomain?: boolean | cdktf.IResolvable;
16
+ /**
17
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#domain Endpoint#domain}
18
+ */
19
+ readonly domain?: string;
20
+ /**
21
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#endpoint_type Endpoint#endpoint_type}
22
+ */
23
+ readonly endpointType?: string;
24
+ /**
25
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#env_id Endpoint#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/endpoint#id Endpoint#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/endpoint#internal Endpoint#internal}
37
+ */
38
+ readonly internal?: boolean | cdktf.IResolvable;
39
+ /**
40
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#ip_filtering Endpoint#ip_filtering}
41
+ */
42
+ readonly ipFiltering?: string[];
43
+ /**
44
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#load_balancing_algorithm_type Endpoint#load_balancing_algorithm_type}
45
+ */
46
+ readonly loadBalancingAlgorithmType?: string;
47
+ /**
48
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#managed Endpoint#managed}
49
+ */
50
+ readonly managed?: boolean | cdktf.IResolvable;
51
+ /**
52
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#platform Endpoint#platform}
53
+ */
54
+ readonly platform?: string;
55
+ /**
56
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#process_type Endpoint#process_type}
57
+ */
58
+ readonly processType?: string;
59
+ /**
60
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#resource_id Endpoint#resource_id}
61
+ */
62
+ readonly resourceId: number;
63
+ /**
64
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#resource_type Endpoint#resource_type}
65
+ */
66
+ readonly resourceType: string;
67
+ /**
68
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint#shared Endpoint#shared}
69
+ */
70
+ readonly shared?: boolean | cdktf.IResolvable;
71
+ }
72
+ /**
73
+ * Represents a {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint aptible_endpoint}
74
+ */
75
+ export declare class Endpoint extends cdktf.TerraformResource {
76
+ static readonly tfResourceType = "aptible_endpoint";
77
+ /**
78
+ * Generates CDKTF code for importing a Endpoint resource upon running "cdktf plan <stack-name>"
79
+ * @param scope The scope in which to define this construct
80
+ * @param importToId The construct id used in the generated config for the Endpoint to import
81
+ * @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
82
+ * @param provider? Optional instance of the provider where the Endpoint to import is found
83
+ */
84
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
85
+ /**
86
+ * Create a new {@link https://registry.terraform.io/providers/aptible/aptible/0.9.18/docs/resources/endpoint aptible_endpoint} Resource
87
+ *
88
+ * @param scope The scope in which to define this construct
89
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
90
+ * @param options EndpointConfig
91
+ */
92
+ constructor(scope: Construct, id: string, config: EndpointConfig);
93
+ private _containerPort?;
94
+ get containerPort(): number;
95
+ set containerPort(value: number);
96
+ resetContainerPort(): void;
97
+ get containerPortInput(): number;
98
+ private _containerPorts?;
99
+ get containerPorts(): number[];
100
+ set containerPorts(value: number[]);
101
+ resetContainerPorts(): void;
102
+ get containerPortsInput(): number[];
103
+ private _defaultDomain?;
104
+ get defaultDomain(): boolean | cdktf.IResolvable;
105
+ set defaultDomain(value: boolean | cdktf.IResolvable);
106
+ resetDefaultDomain(): void;
107
+ get defaultDomainInput(): any;
108
+ get dnsValidationRecord(): any;
109
+ get dnsValidationValue(): any;
110
+ private _domain?;
111
+ get domain(): string;
112
+ set domain(value: string);
113
+ resetDomain(): void;
114
+ get domainInput(): string;
115
+ get endpointId(): any;
116
+ private _endpointType?;
117
+ get endpointType(): string;
118
+ set endpointType(value: string);
119
+ resetEndpointType(): void;
120
+ get endpointTypeInput(): string;
121
+ private _envId?;
122
+ get envId(): number;
123
+ set envId(value: number);
124
+ get envIdInput(): number;
125
+ get externalHostname(): any;
126
+ private _id?;
127
+ get id(): string;
128
+ set id(value: string);
129
+ resetId(): void;
130
+ get idInput(): string;
131
+ private _internal?;
132
+ get internal(): boolean | cdktf.IResolvable;
133
+ set internal(value: boolean | cdktf.IResolvable);
134
+ resetInternal(): void;
135
+ get internalInput(): any;
136
+ private _ipFiltering?;
137
+ get ipFiltering(): string[];
138
+ set ipFiltering(value: string[]);
139
+ resetIpFiltering(): void;
140
+ get ipFilteringInput(): string[];
141
+ private _loadBalancingAlgorithmType?;
142
+ get loadBalancingAlgorithmType(): string;
143
+ set loadBalancingAlgorithmType(value: string);
144
+ resetLoadBalancingAlgorithmType(): void;
145
+ get loadBalancingAlgorithmTypeInput(): string;
146
+ private _managed?;
147
+ get managed(): boolean | cdktf.IResolvable;
148
+ set managed(value: boolean | cdktf.IResolvable);
149
+ resetManaged(): void;
150
+ get managedInput(): any;
151
+ private _platform?;
152
+ get platform(): string;
153
+ set platform(value: string);
154
+ resetPlatform(): void;
155
+ get platformInput(): string;
156
+ private _processType?;
157
+ get processType(): string;
158
+ set processType(value: string);
159
+ resetProcessType(): void;
160
+ get processTypeInput(): string;
161
+ private _resourceId?;
162
+ get resourceId(): number;
163
+ set resourceId(value: number);
164
+ get resourceIdInput(): number;
165
+ private _resourceType?;
166
+ get resourceType(): string;
167
+ set resourceType(value: string);
168
+ get resourceTypeInput(): string;
169
+ private _shared?;
170
+ get shared(): boolean | cdktf.IResolvable;
171
+ set shared(value: boolean | cdktf.IResolvable);
172
+ resetShared(): void;
173
+ get sharedInput(): any;
174
+ get virtualDomain(): any;
175
+ protected synthesizeAttributes(): {
176
+ [name: string]: any;
177
+ };
178
+ protected synthesizeHclAttributes(): {
179
+ [name: string]: any;
180
+ };
181
+ }