@cdktf-providers/edge-center-edgecenter 0.10.4

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.
Files changed (173) hide show
  1. package/LICENSE +355 -0
  2. package/README.md +19 -0
  3. package/dist/baremetal/index.d.ts +528 -0
  4. package/dist/baremetal/index.js +1250 -0
  5. package/dist/cdn-lecert/index.d.ts +76 -0
  6. package/dist/cdn-lecert/index.js +157 -0
  7. package/dist/cdn-origingroup/index.d.ts +237 -0
  8. package/dist/cdn-origingroup/index.js +560 -0
  9. package/dist/cdn-resource/index.d.ts +2223 -0
  10. package/dist/cdn-resource/index.js +5865 -0
  11. package/dist/cdn-rule/index.d.ts +2037 -0
  12. package/dist/cdn-rule/index.js +5381 -0
  13. package/dist/cdn-shielding/index.d.ts +64 -0
  14. package/dist/cdn-shielding/index.js +131 -0
  15. package/dist/cdn-sslcert/index.d.ts +76 -0
  16. package/dist/cdn-sslcert/index.js +159 -0
  17. package/dist/data-edgecenter-availability-zone/index.d.ts +67 -0
  18. package/dist/data-edgecenter-availability-zone/index.js +141 -0
  19. package/dist/data-edgecenter-cdn-shielding-location/index.d.ts +54 -0
  20. package/dist/data-edgecenter-cdn-shielding-location/index.js +111 -0
  21. package/dist/data-edgecenter-floatingip/index.d.ts +183 -0
  22. package/dist/data-edgecenter-floatingip/index.js +378 -0
  23. package/dist/data-edgecenter-image/index.d.ts +183 -0
  24. package/dist/data-edgecenter-image/index.js +378 -0
  25. package/dist/data-edgecenter-instance/index.d.ts +312 -0
  26. package/dist/data-edgecenter-instance/index.js +690 -0
  27. package/dist/data-edgecenter-instance-port-security/index.d.ts +110 -0
  28. package/dist/data-edgecenter-instance-port-security/index.js +231 -0
  29. package/dist/data-edgecenter-instance-v2/index.d.ts +222 -0
  30. package/dist/data-edgecenter-instance-v2/index.js +501 -0
  31. package/dist/data-edgecenter-k8s/index.d.ts +167 -0
  32. package/dist/data-edgecenter-k8s/index.js +412 -0
  33. package/dist/data-edgecenter-k8s-client-config/index.d.ts +100 -0
  34. package/dist/data-edgecenter-k8s-client-config/index.js +211 -0
  35. package/dist/data-edgecenter-k8s-pool/index.d.ts +120 -0
  36. package/dist/data-edgecenter-k8s-pool/index.js +271 -0
  37. package/dist/data-edgecenter-lb-l7policy/index.d.ts +114 -0
  38. package/dist/data-edgecenter-lb-l7policy/index.js +258 -0
  39. package/dist/data-edgecenter-lb-l7rule/index.d.ts +120 -0
  40. package/dist/data-edgecenter-lb-l7rule/index.js +262 -0
  41. package/dist/data-edgecenter-lblistener/index.d.ts +122 -0
  42. package/dist/data-edgecenter-lblistener/index.js +269 -0
  43. package/dist/data-edgecenter-lbpool/index.d.ts +204 -0
  44. package/dist/data-edgecenter-lbpool/index.js +454 -0
  45. package/dist/data-edgecenter-loadbalancer/index.d.ts +203 -0
  46. package/dist/data-edgecenter-loadbalancer/index.js +427 -0
  47. package/dist/data-edgecenter-loadbalancerv2/index.d.ts +169 -0
  48. package/dist/data-edgecenter-loadbalancerv2/index.js +343 -0
  49. package/dist/data-edgecenter-network/index.d.ts +270 -0
  50. package/dist/data-edgecenter-network/index.js +589 -0
  51. package/dist/data-edgecenter-project/index.d.ts +72 -0
  52. package/dist/data-edgecenter-project/index.js +153 -0
  53. package/dist/data-edgecenter-region/index.d.ts +54 -0
  54. package/dist/data-edgecenter-region/index.js +111 -0
  55. package/dist/data-edgecenter-reseller-images/index.d.ts +91 -0
  56. package/dist/data-edgecenter-reseller-images/index.js +198 -0
  57. package/dist/data-edgecenter-reseller-images-v2/index.d.ts +101 -0
  58. package/dist/data-edgecenter-reseller-images-v2/index.js +218 -0
  59. package/dist/data-edgecenter-reseller-networks/index.d.ts +269 -0
  60. package/dist/data-edgecenter-reseller-networks/index.js +610 -0
  61. package/dist/data-edgecenter-reservedfixedip/index.d.ts +141 -0
  62. package/dist/data-edgecenter-reservedfixedip/index.js +311 -0
  63. package/dist/data-edgecenter-router/index.d.ts +245 -0
  64. package/dist/data-edgecenter-router/index.js +538 -0
  65. package/dist/data-edgecenter-secret/index.d.ts +109 -0
  66. package/dist/data-edgecenter-secret/index.js +235 -0
  67. package/dist/data-edgecenter-securitygroup/index.d.ts +211 -0
  68. package/dist/data-edgecenter-securitygroup/index.js +450 -0
  69. package/dist/data-edgecenter-servergroup/index.d.ts +137 -0
  70. package/dist/data-edgecenter-servergroup/index.js +289 -0
  71. package/dist/data-edgecenter-snapshot/index.d.ts +129 -0
  72. package/dist/data-edgecenter-snapshot/index.js +281 -0
  73. package/dist/data-edgecenter-storage-s3/index.d.ts +71 -0
  74. package/dist/data-edgecenter-storage-s3/index.js +157 -0
  75. package/dist/data-edgecenter-storage-s3-bucket/index.d.ts +64 -0
  76. package/dist/data-edgecenter-storage-s3-bucket/index.js +131 -0
  77. package/dist/data-edgecenter-subnet/index.d.ts +253 -0
  78. package/dist/data-edgecenter-subnet/index.js +536 -0
  79. package/dist/data-edgecenter-useractions-subscription-amqp/index.d.ts +48 -0
  80. package/dist/data-edgecenter-useractions-subscription-amqp/index.js +107 -0
  81. package/dist/data-edgecenter-useractions-subscription-log/index.d.ts +47 -0
  82. package/dist/data-edgecenter-useractions-subscription-log/index.js +103 -0
  83. package/dist/data-edgecenter-volume/index.d.ts +169 -0
  84. package/dist/data-edgecenter-volume/index.js +343 -0
  85. package/dist/dns-zone/index.d.ts +54 -0
  86. package/dist/dns-zone/index.js +111 -0
  87. package/dist/dns-zone-record/index.d.ts +494 -0
  88. package/dist/dns-zone-record/index.js +1217 -0
  89. package/dist/floatingip/index.d.ts +185 -0
  90. package/dist/floatingip/index.js +394 -0
  91. package/dist/index.d.ts +83 -0
  92. package/dist/index.js +84 -0
  93. package/dist/instance/index.d.ts +830 -0
  94. package/dist/instance/index.js +1948 -0
  95. package/dist/instance-port-security/index.d.ts +229 -0
  96. package/dist/instance-port-security/index.js +564 -0
  97. package/dist/instance-v2/index.d.ts +552 -0
  98. package/dist/instance-v2/index.js +1244 -0
  99. package/dist/k8s/index.d.ts +342 -0
  100. package/dist/k8s/index.js +856 -0
  101. package/dist/k8s-pool/index.d.ts +227 -0
  102. package/dist/k8s-pool/index.js +514 -0
  103. package/dist/keypair/index.d.ts +88 -0
  104. package/dist/keypair/index.js +185 -0
  105. package/dist/lazy-index.d.ts +0 -0
  106. package/dist/lazy-index.js +84 -0
  107. package/dist/lb-l7policy/index.d.ts +244 -0
  108. package/dist/lb-l7policy/index.js +566 -0
  109. package/dist/lb-l7rule/index.d.ts +219 -0
  110. package/dist/lb-l7rule/index.js +506 -0
  111. package/dist/lblistener/index.d.ts +264 -0
  112. package/dist/lblistener/index.js +597 -0
  113. package/dist/lbmember/index.d.ts +207 -0
  114. package/dist/lbmember/index.js +473 -0
  115. package/dist/lbpool/index.d.ts +387 -0
  116. package/dist/lbpool/index.js +934 -0
  117. package/dist/lifecyclepolicy/index.d.ts +476 -0
  118. package/dist/lifecyclepolicy/index.js +1188 -0
  119. package/dist/loadbalancer/index.d.ts +341 -0
  120. package/dist/loadbalancer/index.js +851 -0
  121. package/dist/loadbalancerv2/index.d.ts +253 -0
  122. package/dist/loadbalancerv2/index.js +562 -0
  123. package/dist/network/index.d.ts +187 -0
  124. package/dist/network/index.js +382 -0
  125. package/dist/project/index.d.ts +68 -0
  126. package/dist/project/index.js +150 -0
  127. package/dist/protection-resource/index.d.ts +179 -0
  128. package/dist/protection-resource/index.js +381 -0
  129. package/dist/protection-resource-alias/index.d.ts +64 -0
  130. package/dist/protection-resource-alias/index.js +131 -0
  131. package/dist/protection-resource-alias-certificate/index.d.ts +88 -0
  132. package/dist/protection-resource-alias-certificate/index.js +185 -0
  133. package/dist/protection-resource-blacklist-entry/index.d.ts +64 -0
  134. package/dist/protection-resource-blacklist-entry/index.js +131 -0
  135. package/dist/protection-resource-certificate/index.d.ts +88 -0
  136. package/dist/protection-resource-certificate/index.js +185 -0
  137. package/dist/protection-resource-header/index.d.ts +74 -0
  138. package/dist/protection-resource-header/index.js +151 -0
  139. package/dist/protection-resource-origin/index.d.ts +119 -0
  140. package/dist/protection-resource-origin/index.js +246 -0
  141. package/dist/protection-resource-whitelist-entry/index.d.ts +64 -0
  142. package/dist/protection-resource-whitelist-entry/index.js +131 -0
  143. package/dist/provider/index.d.ts +182 -0
  144. package/dist/provider/index.js +384 -0
  145. package/dist/reseller-images/index.d.ts +120 -0
  146. package/dist/reseller-images/index.js +272 -0
  147. package/dist/reseller-images-v2/index.d.ts +130 -0
  148. package/dist/reseller-images-v2/index.js +292 -0
  149. package/dist/reservedfixedip/index.d.ts +230 -0
  150. package/dist/reservedfixedip/index.js +513 -0
  151. package/dist/router/index.d.ts +322 -0
  152. package/dist/router/index.js +755 -0
  153. package/dist/secret/index.d.ts +146 -0
  154. package/dist/secret/index.js +311 -0
  155. package/dist/securitygroup/index.d.ts +291 -0
  156. package/dist/securitygroup/index.js +654 -0
  157. package/dist/servergroup/index.d.ts +143 -0
  158. package/dist/servergroup/index.js +302 -0
  159. package/dist/snapshot/index.d.ts +185 -0
  160. package/dist/snapshot/index.js +383 -0
  161. package/dist/storage-s3/index.d.ts +141 -0
  162. package/dist/storage-s3/index.js +292 -0
  163. package/dist/storage-s3-bucket/index.d.ts +64 -0
  164. package/dist/storage-s3-bucket/index.js +131 -0
  165. package/dist/subnet/index.d.ts +346 -0
  166. package/dist/subnet/index.js +751 -0
  167. package/dist/useractions-subscription-amqp/index.d.ts +87 -0
  168. package/dist/useractions-subscription-amqp/index.js +180 -0
  169. package/dist/useractions-subscription-log/index.d.ts +74 -0
  170. package/dist/useractions-subscription-log/index.js +151 -0
  171. package/dist/volume/index.d.ts +208 -0
  172. package/dist/volume/index.js +424 -0
  173. package/package.json +51 -0
@@ -0,0 +1,185 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_alias_certificate
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_alias_certificate edgecenter_protection_resource_alias_certificate}
6
+ */
7
+ export class ProtectionResourceAliasCertificate extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "edgecenter_protection_resource_alias_certificate";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a ProtectionResourceAliasCertificate 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 ProtectionResourceAliasCertificate to import
19
+ * @param importFromId The id of the existing ProtectionResourceAliasCertificate that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_alias_certificate#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the ProtectionResourceAliasCertificate to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_protection_resource_alias_certificate", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_alias_certificate edgecenter_protection_resource_alias_certificate} 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 ProtectionResourceAliasCertificateConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'edgecenter_protection_resource_alias_certificate',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'edgecenter',
40
+ providerVersion: '0.10.4',
41
+ providerVersionConstraint: '0.10.4'
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._alias = config.alias;
52
+ this._id = config.id;
53
+ this._sslCrt = config.sslCrt;
54
+ this._sslKey = config.sslKey;
55
+ this._sslType = config.sslType;
56
+ }
57
+ // ==========
58
+ // ATTRIBUTES
59
+ // ==========
60
+ // alias - computed: false, optional: false, required: true
61
+ _alias;
62
+ get alias() {
63
+ return this.getStringAttribute('alias');
64
+ }
65
+ set alias(value) {
66
+ this._alias = value;
67
+ }
68
+ // Temporarily expose input value. Use with caution.
69
+ get aliasInput() {
70
+ return this._alias;
71
+ }
72
+ // id - computed: true, optional: true, required: false
73
+ _id;
74
+ get id() {
75
+ return this.getStringAttribute('id');
76
+ }
77
+ set id(value) {
78
+ this._id = value;
79
+ }
80
+ resetId() {
81
+ this._id = undefined;
82
+ }
83
+ // Temporarily expose input value. Use with caution.
84
+ get idInput() {
85
+ return this._id;
86
+ }
87
+ // ssl_crt - computed: false, optional: true, required: false
88
+ _sslCrt;
89
+ get sslCrt() {
90
+ return this.getStringAttribute('ssl_crt');
91
+ }
92
+ set sslCrt(value) {
93
+ this._sslCrt = value;
94
+ }
95
+ resetSslCrt() {
96
+ this._sslCrt = undefined;
97
+ }
98
+ // Temporarily expose input value. Use with caution.
99
+ get sslCrtInput() {
100
+ return this._sslCrt;
101
+ }
102
+ // ssl_expire - computed: true, optional: false, required: false
103
+ get sslExpire() {
104
+ return this.getNumberAttribute('ssl_expire');
105
+ }
106
+ // ssl_key - computed: false, optional: true, required: false
107
+ _sslKey;
108
+ get sslKey() {
109
+ return this.getStringAttribute('ssl_key');
110
+ }
111
+ set sslKey(value) {
112
+ this._sslKey = value;
113
+ }
114
+ resetSslKey() {
115
+ this._sslKey = undefined;
116
+ }
117
+ // Temporarily expose input value. Use with caution.
118
+ get sslKeyInput() {
119
+ return this._sslKey;
120
+ }
121
+ // ssl_status - computed: true, optional: false, required: false
122
+ get sslStatus() {
123
+ return this.getStringAttribute('ssl_status');
124
+ }
125
+ // ssl_type - computed: false, optional: false, required: true
126
+ _sslType;
127
+ get sslType() {
128
+ return this.getStringAttribute('ssl_type');
129
+ }
130
+ set sslType(value) {
131
+ this._sslType = value;
132
+ }
133
+ // Temporarily expose input value. Use with caution.
134
+ get sslTypeInput() {
135
+ return this._sslType;
136
+ }
137
+ // =========
138
+ // SYNTHESIS
139
+ // =========
140
+ synthesizeAttributes() {
141
+ return {
142
+ alias: cdktf.stringToTerraform(this._alias),
143
+ id: cdktf.stringToTerraform(this._id),
144
+ ssl_crt: cdktf.stringToTerraform(this._sslCrt),
145
+ ssl_key: cdktf.stringToTerraform(this._sslKey),
146
+ ssl_type: cdktf.stringToTerraform(this._sslType),
147
+ };
148
+ }
149
+ synthesizeHclAttributes() {
150
+ const attrs = {
151
+ alias: {
152
+ value: cdktf.stringToHclTerraform(this._alias),
153
+ isBlock: false,
154
+ type: "simple",
155
+ storageClassType: "string",
156
+ },
157
+ id: {
158
+ value: cdktf.stringToHclTerraform(this._id),
159
+ isBlock: false,
160
+ type: "simple",
161
+ storageClassType: "string",
162
+ },
163
+ ssl_crt: {
164
+ value: cdktf.stringToHclTerraform(this._sslCrt),
165
+ isBlock: false,
166
+ type: "simple",
167
+ storageClassType: "string",
168
+ },
169
+ ssl_key: {
170
+ value: cdktf.stringToHclTerraform(this._sslKey),
171
+ isBlock: false,
172
+ type: "simple",
173
+ storageClassType: "string",
174
+ },
175
+ ssl_type: {
176
+ value: cdktf.stringToHclTerraform(this._sslType),
177
+ isBlock: false,
178
+ type: "simple",
179
+ storageClassType: "string",
180
+ },
181
+ };
182
+ // remove undefined attributes
183
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
184
+ }
185
+ }
@@ -0,0 +1,64 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface ProtectionResourceBlacklistEntryConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry#id ProtectionResourceBlacklistEntry#id}
6
+ *
7
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
8
+ * 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.
9
+ */
10
+ readonly id?: string;
11
+ /**
12
+ * Blocked IP address.
13
+ *
14
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry#ip ProtectionResourceBlacklistEntry#ip}
15
+ */
16
+ readonly ip: string;
17
+ /**
18
+ * ID of the DDoS protection resource to add blacklist to.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry#resource ProtectionResourceBlacklistEntry#resource}
21
+ */
22
+ readonly resource: string;
23
+ }
24
+ /**
25
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry edgecenter_protection_resource_blacklist_entry}
26
+ */
27
+ export declare class ProtectionResourceBlacklistEntry extends cdktf.TerraformResource {
28
+ static readonly tfResourceType = "edgecenter_protection_resource_blacklist_entry";
29
+ /**
30
+ * Generates CDKTF code for importing a ProtectionResourceBlacklistEntry resource upon running "cdktf plan <stack-name>"
31
+ * @param scope The scope in which to define this construct
32
+ * @param importToId The construct id used in the generated config for the ProtectionResourceBlacklistEntry to import
33
+ * @param importFromId The id of the existing ProtectionResourceBlacklistEntry that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry#import import section} in the documentation of this resource for the id to use
34
+ * @param provider? Optional instance of the provider where the ProtectionResourceBlacklistEntry to import is found
35
+ */
36
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
37
+ /**
38
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry edgecenter_protection_resource_blacklist_entry} Resource
39
+ *
40
+ * @param scope The scope in which to define this construct
41
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
42
+ * @param options ProtectionResourceBlacklistEntryConfig
43
+ */
44
+ constructor(scope: Construct, id: string, config: ProtectionResourceBlacklistEntryConfig);
45
+ private _id?;
46
+ get id(): string;
47
+ set id(value: string);
48
+ resetId(): void;
49
+ get idInput(): string;
50
+ private _ip?;
51
+ get ip(): string;
52
+ set ip(value: string);
53
+ get ipInput(): string;
54
+ private _resource?;
55
+ get resource(): string;
56
+ set resource(value: string);
57
+ get resourceInput(): string;
58
+ protected synthesizeAttributes(): {
59
+ [name: string]: any;
60
+ };
61
+ protected synthesizeHclAttributes(): {
62
+ [name: string]: any;
63
+ };
64
+ }
@@ -0,0 +1,131 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry edgecenter_protection_resource_blacklist_entry}
6
+ */
7
+ export class ProtectionResourceBlacklistEntry extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "edgecenter_protection_resource_blacklist_entry";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a ProtectionResourceBlacklistEntry 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 ProtectionResourceBlacklistEntry to import
19
+ * @param importFromId The id of the existing ProtectionResourceBlacklistEntry that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the ProtectionResourceBlacklistEntry to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_protection_resource_blacklist_entry", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_blacklist_entry edgecenter_protection_resource_blacklist_entry} 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 ProtectionResourceBlacklistEntryConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'edgecenter_protection_resource_blacklist_entry',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'edgecenter',
40
+ providerVersion: '0.10.4',
41
+ providerVersionConstraint: '0.10.4'
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._id = config.id;
52
+ this._ip = config.ip;
53
+ this._resource = config.resource;
54
+ }
55
+ // ==========
56
+ // ATTRIBUTES
57
+ // ==========
58
+ // id - computed: true, optional: true, required: false
59
+ _id;
60
+ get id() {
61
+ return this.getStringAttribute('id');
62
+ }
63
+ set id(value) {
64
+ this._id = value;
65
+ }
66
+ resetId() {
67
+ this._id = undefined;
68
+ }
69
+ // Temporarily expose input value. Use with caution.
70
+ get idInput() {
71
+ return this._id;
72
+ }
73
+ // ip - computed: false, optional: false, required: true
74
+ _ip;
75
+ get ip() {
76
+ return this.getStringAttribute('ip');
77
+ }
78
+ set ip(value) {
79
+ this._ip = value;
80
+ }
81
+ // Temporarily expose input value. Use with caution.
82
+ get ipInput() {
83
+ return this._ip;
84
+ }
85
+ // resource - computed: false, optional: false, required: true
86
+ _resource;
87
+ get resource() {
88
+ return this.getStringAttribute('resource');
89
+ }
90
+ set resource(value) {
91
+ this._resource = value;
92
+ }
93
+ // Temporarily expose input value. Use with caution.
94
+ get resourceInput() {
95
+ return this._resource;
96
+ }
97
+ // =========
98
+ // SYNTHESIS
99
+ // =========
100
+ synthesizeAttributes() {
101
+ return {
102
+ id: cdktf.stringToTerraform(this._id),
103
+ ip: cdktf.stringToTerraform(this._ip),
104
+ resource: cdktf.stringToTerraform(this._resource),
105
+ };
106
+ }
107
+ synthesizeHclAttributes() {
108
+ const attrs = {
109
+ id: {
110
+ value: cdktf.stringToHclTerraform(this._id),
111
+ isBlock: false,
112
+ type: "simple",
113
+ storageClassType: "string",
114
+ },
115
+ ip: {
116
+ value: cdktf.stringToHclTerraform(this._ip),
117
+ isBlock: false,
118
+ type: "simple",
119
+ storageClassType: "string",
120
+ },
121
+ resource: {
122
+ value: cdktf.stringToHclTerraform(this._resource),
123
+ isBlock: false,
124
+ type: "simple",
125
+ storageClassType: "string",
126
+ },
127
+ };
128
+ // remove undefined attributes
129
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
130
+ }
131
+ }
@@ -0,0 +1,88 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface ProtectionResourceCertificateConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#id ProtectionResourceCertificate#id}
6
+ *
7
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
8
+ * 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.
9
+ */
10
+ readonly id?: string;
11
+ /**
12
+ * The ID of DDoS protection resource to manage certificate for.
13
+ *
14
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#resource ProtectionResourceCertificate#resource}
15
+ */
16
+ readonly resource: string;
17
+ /**
18
+ * Public part of the SSL certificate. It is required add all chains. Each certificate chain should be separated by `\n`.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#ssl_crt ProtectionResourceCertificate#ssl_crt}
21
+ */
22
+ readonly sslCrt?: string;
23
+ /**
24
+ * Private key of the SSL certificate.
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#ssl_key ProtectionResourceCertificate#ssl_key}
27
+ */
28
+ readonly sslKey?: string;
29
+ /**
30
+ * Select the SSL certificate type. Available values are `custom`, `le`.
31
+ *
32
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#ssl_type ProtectionResourceCertificate#ssl_type}
33
+ */
34
+ readonly sslType: string;
35
+ }
36
+ /**
37
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate edgecenter_protection_resource_certificate}
38
+ */
39
+ export declare class ProtectionResourceCertificate extends cdktf.TerraformResource {
40
+ static readonly tfResourceType = "edgecenter_protection_resource_certificate";
41
+ /**
42
+ * Generates CDKTF code for importing a ProtectionResourceCertificate resource upon running "cdktf plan <stack-name>"
43
+ * @param scope The scope in which to define this construct
44
+ * @param importToId The construct id used in the generated config for the ProtectionResourceCertificate to import
45
+ * @param importFromId The id of the existing ProtectionResourceCertificate that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#import import section} in the documentation of this resource for the id to use
46
+ * @param provider? Optional instance of the provider where the ProtectionResourceCertificate to import is found
47
+ */
48
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
49
+ /**
50
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate edgecenter_protection_resource_certificate} Resource
51
+ *
52
+ * @param scope The scope in which to define this construct
53
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
54
+ * @param options ProtectionResourceCertificateConfig
55
+ */
56
+ constructor(scope: Construct, id: string, config: ProtectionResourceCertificateConfig);
57
+ private _id?;
58
+ get id(): string;
59
+ set id(value: string);
60
+ resetId(): void;
61
+ get idInput(): string;
62
+ private _resource?;
63
+ get resource(): string;
64
+ set resource(value: string);
65
+ get resourceInput(): string;
66
+ private _sslCrt?;
67
+ get sslCrt(): string;
68
+ set sslCrt(value: string);
69
+ resetSslCrt(): void;
70
+ get sslCrtInput(): string;
71
+ get sslExpire(): any;
72
+ private _sslKey?;
73
+ get sslKey(): string;
74
+ set sslKey(value: string);
75
+ resetSslKey(): void;
76
+ get sslKeyInput(): string;
77
+ get sslStatus(): any;
78
+ private _sslType?;
79
+ get sslType(): string;
80
+ set sslType(value: string);
81
+ get sslTypeInput(): string;
82
+ protected synthesizeAttributes(): {
83
+ [name: string]: any;
84
+ };
85
+ protected synthesizeHclAttributes(): {
86
+ [name: string]: any;
87
+ };
88
+ }
@@ -0,0 +1,185 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate
2
+ // generated from terraform resource schema
3
+ import * as cdktf from 'cdktf';
4
+ /**
5
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate edgecenter_protection_resource_certificate}
6
+ */
7
+ export class ProtectionResourceCertificate extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "edgecenter_protection_resource_certificate";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a ProtectionResourceCertificate 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 ProtectionResourceCertificate to import
19
+ * @param importFromId The id of the existing ProtectionResourceCertificate that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the ProtectionResourceCertificate to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_protection_resource_certificate", importId: importFromId, provider });
24
+ }
25
+ // ===========
26
+ // INITIALIZER
27
+ // ===========
28
+ /**
29
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_certificate edgecenter_protection_resource_certificate} 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 ProtectionResourceCertificateConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'edgecenter_protection_resource_certificate',
38
+ terraformGeneratorMetadata: {
39
+ providerName: 'edgecenter',
40
+ providerVersion: '0.10.4',
41
+ providerVersionConstraint: '0.10.4'
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._id = config.id;
52
+ this._resource = config.resource;
53
+ this._sslCrt = config.sslCrt;
54
+ this._sslKey = config.sslKey;
55
+ this._sslType = config.sslType;
56
+ }
57
+ // ==========
58
+ // ATTRIBUTES
59
+ // ==========
60
+ // id - computed: true, optional: true, required: false
61
+ _id;
62
+ get id() {
63
+ return this.getStringAttribute('id');
64
+ }
65
+ set id(value) {
66
+ this._id = value;
67
+ }
68
+ resetId() {
69
+ this._id = undefined;
70
+ }
71
+ // Temporarily expose input value. Use with caution.
72
+ get idInput() {
73
+ return this._id;
74
+ }
75
+ // resource - computed: false, optional: false, required: true
76
+ _resource;
77
+ get resource() {
78
+ return this.getStringAttribute('resource');
79
+ }
80
+ set resource(value) {
81
+ this._resource = value;
82
+ }
83
+ // Temporarily expose input value. Use with caution.
84
+ get resourceInput() {
85
+ return this._resource;
86
+ }
87
+ // ssl_crt - computed: false, optional: true, required: false
88
+ _sslCrt;
89
+ get sslCrt() {
90
+ return this.getStringAttribute('ssl_crt');
91
+ }
92
+ set sslCrt(value) {
93
+ this._sslCrt = value;
94
+ }
95
+ resetSslCrt() {
96
+ this._sslCrt = undefined;
97
+ }
98
+ // Temporarily expose input value. Use with caution.
99
+ get sslCrtInput() {
100
+ return this._sslCrt;
101
+ }
102
+ // ssl_expire - computed: true, optional: false, required: false
103
+ get sslExpire() {
104
+ return this.getNumberAttribute('ssl_expire');
105
+ }
106
+ // ssl_key - computed: false, optional: true, required: false
107
+ _sslKey;
108
+ get sslKey() {
109
+ return this.getStringAttribute('ssl_key');
110
+ }
111
+ set sslKey(value) {
112
+ this._sslKey = value;
113
+ }
114
+ resetSslKey() {
115
+ this._sslKey = undefined;
116
+ }
117
+ // Temporarily expose input value. Use with caution.
118
+ get sslKeyInput() {
119
+ return this._sslKey;
120
+ }
121
+ // ssl_status - computed: true, optional: false, required: false
122
+ get sslStatus() {
123
+ return this.getStringAttribute('ssl_status');
124
+ }
125
+ // ssl_type - computed: false, optional: false, required: true
126
+ _sslType;
127
+ get sslType() {
128
+ return this.getStringAttribute('ssl_type');
129
+ }
130
+ set sslType(value) {
131
+ this._sslType = value;
132
+ }
133
+ // Temporarily expose input value. Use with caution.
134
+ get sslTypeInput() {
135
+ return this._sslType;
136
+ }
137
+ // =========
138
+ // SYNTHESIS
139
+ // =========
140
+ synthesizeAttributes() {
141
+ return {
142
+ id: cdktf.stringToTerraform(this._id),
143
+ resource: cdktf.stringToTerraform(this._resource),
144
+ ssl_crt: cdktf.stringToTerraform(this._sslCrt),
145
+ ssl_key: cdktf.stringToTerraform(this._sslKey),
146
+ ssl_type: cdktf.stringToTerraform(this._sslType),
147
+ };
148
+ }
149
+ synthesizeHclAttributes() {
150
+ const attrs = {
151
+ id: {
152
+ value: cdktf.stringToHclTerraform(this._id),
153
+ isBlock: false,
154
+ type: "simple",
155
+ storageClassType: "string",
156
+ },
157
+ resource: {
158
+ value: cdktf.stringToHclTerraform(this._resource),
159
+ isBlock: false,
160
+ type: "simple",
161
+ storageClassType: "string",
162
+ },
163
+ ssl_crt: {
164
+ value: cdktf.stringToHclTerraform(this._sslCrt),
165
+ isBlock: false,
166
+ type: "simple",
167
+ storageClassType: "string",
168
+ },
169
+ ssl_key: {
170
+ value: cdktf.stringToHclTerraform(this._sslKey),
171
+ isBlock: false,
172
+ type: "simple",
173
+ storageClassType: "string",
174
+ },
175
+ ssl_type: {
176
+ value: cdktf.stringToHclTerraform(this._sslType),
177
+ isBlock: false,
178
+ type: "simple",
179
+ storageClassType: "string",
180
+ },
181
+ };
182
+ // remove undefined attributes
183
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
184
+ }
185
+ }