@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,74 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface ProtectionResourceHeaderConfig 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_header#id ProtectionResourceHeader#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
+ * HTTP header name.
13
+ *
14
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header#key ProtectionResourceHeader#key}
15
+ */
16
+ readonly key: string;
17
+ /**
18
+ * ID of the DDoS protection resource to add header to.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header#resource ProtectionResourceHeader#resource}
21
+ */
22
+ readonly resource: string;
23
+ /**
24
+ * HTTP header value.
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header#value ProtectionResourceHeader#value}
27
+ */
28
+ readonly value: string;
29
+ }
30
+ /**
31
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header edgecenter_protection_resource_header}
32
+ */
33
+ export declare class ProtectionResourceHeader extends cdktf.TerraformResource {
34
+ static readonly tfResourceType = "edgecenter_protection_resource_header";
35
+ /**
36
+ * Generates CDKTF code for importing a ProtectionResourceHeader resource upon running "cdktf plan <stack-name>"
37
+ * @param scope The scope in which to define this construct
38
+ * @param importToId The construct id used in the generated config for the ProtectionResourceHeader to import
39
+ * @param importFromId The id of the existing ProtectionResourceHeader that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header#import import section} in the documentation of this resource for the id to use
40
+ * @param provider? Optional instance of the provider where the ProtectionResourceHeader to import is found
41
+ */
42
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
43
+ /**
44
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header edgecenter_protection_resource_header} Resource
45
+ *
46
+ * @param scope The scope in which to define this construct
47
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
48
+ * @param options ProtectionResourceHeaderConfig
49
+ */
50
+ constructor(scope: Construct, id: string, config: ProtectionResourceHeaderConfig);
51
+ private _id?;
52
+ get id(): string;
53
+ set id(value: string);
54
+ resetId(): void;
55
+ get idInput(): string;
56
+ private _key?;
57
+ get key(): string;
58
+ set key(value: string);
59
+ get keyInput(): string;
60
+ private _resource?;
61
+ get resource(): string;
62
+ set resource(value: string);
63
+ get resourceInput(): string;
64
+ private _value?;
65
+ get value(): string;
66
+ set value(value: string);
67
+ get valueInput(): string;
68
+ protected synthesizeAttributes(): {
69
+ [name: string]: any;
70
+ };
71
+ protected synthesizeHclAttributes(): {
72
+ [name: string]: any;
73
+ };
74
+ }
@@ -0,0 +1,151 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header
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_header edgecenter_protection_resource_header}
6
+ */
7
+ export class ProtectionResourceHeader extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "edgecenter_protection_resource_header";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a ProtectionResourceHeader 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 ProtectionResourceHeader to import
19
+ * @param importFromId The id of the existing ProtectionResourceHeader that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_header#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the ProtectionResourceHeader to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_protection_resource_header", 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_header edgecenter_protection_resource_header} 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 ProtectionResourceHeaderConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'edgecenter_protection_resource_header',
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._key = config.key;
53
+ this._resource = config.resource;
54
+ this._value = config.value;
55
+ }
56
+ // ==========
57
+ // ATTRIBUTES
58
+ // ==========
59
+ // id - computed: true, optional: true, required: false
60
+ _id;
61
+ get id() {
62
+ return this.getStringAttribute('id');
63
+ }
64
+ set id(value) {
65
+ this._id = value;
66
+ }
67
+ resetId() {
68
+ this._id = undefined;
69
+ }
70
+ // Temporarily expose input value. Use with caution.
71
+ get idInput() {
72
+ return this._id;
73
+ }
74
+ // key - computed: false, optional: false, required: true
75
+ _key;
76
+ get key() {
77
+ return this.getStringAttribute('key');
78
+ }
79
+ set key(value) {
80
+ this._key = value;
81
+ }
82
+ // Temporarily expose input value. Use with caution.
83
+ get keyInput() {
84
+ return this._key;
85
+ }
86
+ // resource - computed: false, optional: false, required: true
87
+ _resource;
88
+ get resource() {
89
+ return this.getStringAttribute('resource');
90
+ }
91
+ set resource(value) {
92
+ this._resource = value;
93
+ }
94
+ // Temporarily expose input value. Use with caution.
95
+ get resourceInput() {
96
+ return this._resource;
97
+ }
98
+ // value - computed: false, optional: false, required: true
99
+ _value;
100
+ get value() {
101
+ return this.getStringAttribute('value');
102
+ }
103
+ set value(value) {
104
+ this._value = value;
105
+ }
106
+ // Temporarily expose input value. Use with caution.
107
+ get valueInput() {
108
+ return this._value;
109
+ }
110
+ // =========
111
+ // SYNTHESIS
112
+ // =========
113
+ synthesizeAttributes() {
114
+ return {
115
+ id: cdktf.stringToTerraform(this._id),
116
+ key: cdktf.stringToTerraform(this._key),
117
+ resource: cdktf.stringToTerraform(this._resource),
118
+ value: cdktf.stringToTerraform(this._value),
119
+ };
120
+ }
121
+ synthesizeHclAttributes() {
122
+ const attrs = {
123
+ id: {
124
+ value: cdktf.stringToHclTerraform(this._id),
125
+ isBlock: false,
126
+ type: "simple",
127
+ storageClassType: "string",
128
+ },
129
+ key: {
130
+ value: cdktf.stringToHclTerraform(this._key),
131
+ isBlock: false,
132
+ type: "simple",
133
+ storageClassType: "string",
134
+ },
135
+ resource: {
136
+ value: cdktf.stringToHclTerraform(this._resource),
137
+ isBlock: false,
138
+ type: "simple",
139
+ storageClassType: "string",
140
+ },
141
+ value: {
142
+ value: cdktf.stringToHclTerraform(this._value),
143
+ isBlock: false,
144
+ type: "simple",
145
+ storageClassType: "string",
146
+ },
147
+ };
148
+ // remove undefined attributes
149
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
150
+ }
151
+ }
@@ -0,0 +1,119 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface ProtectionResourceOriginConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * Custom comment about the origin.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#comment ProtectionResourceOrigin#comment}
8
+ */
9
+ readonly comment?: string;
10
+ /**
11
+ * Time (in seconds) after which the server is considered unreachable.
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#fail_timeout ProtectionResourceOrigin#fail_timeout}
14
+ */
15
+ readonly failTimeout?: number;
16
+ /**
17
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#id ProtectionResourceOrigin#id}
18
+ *
19
+ * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
20
+ * 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.
21
+ */
22
+ readonly id?: string;
23
+ /**
24
+ * Origin IP for the website behind DDoS protection.
25
+ *
26
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#ip ProtectionResourceOrigin#ip}
27
+ */
28
+ readonly ip: string;
29
+ /**
30
+ * Max number of failed connection attempts.
31
+ *
32
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#max_fails ProtectionResourceOrigin#max_fails}
33
+ */
34
+ readonly maxFails?: number;
35
+ /**
36
+ * Operation mode for this origin. Available values are `primary`, `backup`, `down`.
37
+ *
38
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#mode ProtectionResourceOrigin#mode}
39
+ */
40
+ readonly mode?: string;
41
+ /**
42
+ * ID of the DDoS protection resource using this origin.
43
+ *
44
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#resource ProtectionResourceOrigin#resource}
45
+ */
46
+ readonly resource: string;
47
+ /**
48
+ * Origin weight for request balancing.
49
+ *
50
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#weight ProtectionResourceOrigin#weight}
51
+ */
52
+ readonly weight?: number;
53
+ }
54
+ /**
55
+ * Represents a {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin edgecenter_protection_resource_origin}
56
+ */
57
+ export declare class ProtectionResourceOrigin extends cdktf.TerraformResource {
58
+ static readonly tfResourceType = "edgecenter_protection_resource_origin";
59
+ /**
60
+ * Generates CDKTF code for importing a ProtectionResourceOrigin resource upon running "cdktf plan <stack-name>"
61
+ * @param scope The scope in which to define this construct
62
+ * @param importToId The construct id used in the generated config for the ProtectionResourceOrigin to import
63
+ * @param importFromId The id of the existing ProtectionResourceOrigin that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#import import section} in the documentation of this resource for the id to use
64
+ * @param provider? Optional instance of the provider where the ProtectionResourceOrigin to import is found
65
+ */
66
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
67
+ /**
68
+ * Create a new {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin edgecenter_protection_resource_origin} Resource
69
+ *
70
+ * @param scope The scope in which to define this construct
71
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
72
+ * @param options ProtectionResourceOriginConfig
73
+ */
74
+ constructor(scope: Construct, id: string, config: ProtectionResourceOriginConfig);
75
+ private _comment?;
76
+ get comment(): string;
77
+ set comment(value: string);
78
+ resetComment(): void;
79
+ get commentInput(): string;
80
+ private _failTimeout?;
81
+ get failTimeout(): number;
82
+ set failTimeout(value: number);
83
+ resetFailTimeout(): void;
84
+ get failTimeoutInput(): number;
85
+ private _id?;
86
+ get id(): string;
87
+ set id(value: string);
88
+ resetId(): void;
89
+ get idInput(): string;
90
+ private _ip?;
91
+ get ip(): string;
92
+ set ip(value: string);
93
+ get ipInput(): string;
94
+ private _maxFails?;
95
+ get maxFails(): number;
96
+ set maxFails(value: number);
97
+ resetMaxFails(): void;
98
+ get maxFailsInput(): number;
99
+ private _mode?;
100
+ get mode(): string;
101
+ set mode(value: string);
102
+ resetMode(): void;
103
+ get modeInput(): string;
104
+ private _resource?;
105
+ get resource(): string;
106
+ set resource(value: string);
107
+ get resourceInput(): string;
108
+ private _weight?;
109
+ get weight(): number;
110
+ set weight(value: number);
111
+ resetWeight(): void;
112
+ get weightInput(): number;
113
+ protected synthesizeAttributes(): {
114
+ [name: string]: any;
115
+ };
116
+ protected synthesizeHclAttributes(): {
117
+ [name: string]: any;
118
+ };
119
+ }
@@ -0,0 +1,246 @@
1
+ // https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin
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_origin edgecenter_protection_resource_origin}
6
+ */
7
+ export class ProtectionResourceOrigin extends cdktf.TerraformResource {
8
+ // =================
9
+ // STATIC PROPERTIES
10
+ // =================
11
+ static tfResourceType = "edgecenter_protection_resource_origin";
12
+ // ==============
13
+ // STATIC Methods
14
+ // ==============
15
+ /**
16
+ * Generates CDKTF code for importing a ProtectionResourceOrigin 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 ProtectionResourceOrigin to import
19
+ * @param importFromId The id of the existing ProtectionResourceOrigin that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_origin#import import section} in the documentation of this resource for the id to use
20
+ * @param provider? Optional instance of the provider where the ProtectionResourceOrigin to import is found
21
+ */
22
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
23
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "edgecenter_protection_resource_origin", 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_origin edgecenter_protection_resource_origin} 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 ProtectionResourceOriginConfig
34
+ */
35
+ constructor(scope, id, config) {
36
+ super(scope, id, {
37
+ terraformResourceType: 'edgecenter_protection_resource_origin',
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._comment = config.comment;
52
+ this._failTimeout = config.failTimeout;
53
+ this._id = config.id;
54
+ this._ip = config.ip;
55
+ this._maxFails = config.maxFails;
56
+ this._mode = config.mode;
57
+ this._resource = config.resource;
58
+ this._weight = config.weight;
59
+ }
60
+ // ==========
61
+ // ATTRIBUTES
62
+ // ==========
63
+ // comment - computed: true, optional: true, required: false
64
+ _comment;
65
+ get comment() {
66
+ return this.getStringAttribute('comment');
67
+ }
68
+ set comment(value) {
69
+ this._comment = value;
70
+ }
71
+ resetComment() {
72
+ this._comment = undefined;
73
+ }
74
+ // Temporarily expose input value. Use with caution.
75
+ get commentInput() {
76
+ return this._comment;
77
+ }
78
+ // fail_timeout - computed: true, optional: true, required: false
79
+ _failTimeout;
80
+ get failTimeout() {
81
+ return this.getNumberAttribute('fail_timeout');
82
+ }
83
+ set failTimeout(value) {
84
+ this._failTimeout = value;
85
+ }
86
+ resetFailTimeout() {
87
+ this._failTimeout = undefined;
88
+ }
89
+ // Temporarily expose input value. Use with caution.
90
+ get failTimeoutInput() {
91
+ return this._failTimeout;
92
+ }
93
+ // id - computed: true, optional: true, required: false
94
+ _id;
95
+ get id() {
96
+ return this.getStringAttribute('id');
97
+ }
98
+ set id(value) {
99
+ this._id = value;
100
+ }
101
+ resetId() {
102
+ this._id = undefined;
103
+ }
104
+ // Temporarily expose input value. Use with caution.
105
+ get idInput() {
106
+ return this._id;
107
+ }
108
+ // ip - computed: false, optional: false, required: true
109
+ _ip;
110
+ get ip() {
111
+ return this.getStringAttribute('ip');
112
+ }
113
+ set ip(value) {
114
+ this._ip = value;
115
+ }
116
+ // Temporarily expose input value. Use with caution.
117
+ get ipInput() {
118
+ return this._ip;
119
+ }
120
+ // max_fails - computed: true, optional: true, required: false
121
+ _maxFails;
122
+ get maxFails() {
123
+ return this.getNumberAttribute('max_fails');
124
+ }
125
+ set maxFails(value) {
126
+ this._maxFails = value;
127
+ }
128
+ resetMaxFails() {
129
+ this._maxFails = undefined;
130
+ }
131
+ // Temporarily expose input value. Use with caution.
132
+ get maxFailsInput() {
133
+ return this._maxFails;
134
+ }
135
+ // mode - computed: true, optional: true, required: false
136
+ _mode;
137
+ get mode() {
138
+ return this.getStringAttribute('mode');
139
+ }
140
+ set mode(value) {
141
+ this._mode = value;
142
+ }
143
+ resetMode() {
144
+ this._mode = undefined;
145
+ }
146
+ // Temporarily expose input value. Use with caution.
147
+ get modeInput() {
148
+ return this._mode;
149
+ }
150
+ // resource - computed: false, optional: false, required: true
151
+ _resource;
152
+ get resource() {
153
+ return this.getStringAttribute('resource');
154
+ }
155
+ set resource(value) {
156
+ this._resource = value;
157
+ }
158
+ // Temporarily expose input value. Use with caution.
159
+ get resourceInput() {
160
+ return this._resource;
161
+ }
162
+ // weight - computed: true, optional: true, required: false
163
+ _weight;
164
+ get weight() {
165
+ return this.getNumberAttribute('weight');
166
+ }
167
+ set weight(value) {
168
+ this._weight = value;
169
+ }
170
+ resetWeight() {
171
+ this._weight = undefined;
172
+ }
173
+ // Temporarily expose input value. Use with caution.
174
+ get weightInput() {
175
+ return this._weight;
176
+ }
177
+ // =========
178
+ // SYNTHESIS
179
+ // =========
180
+ synthesizeAttributes() {
181
+ return {
182
+ comment: cdktf.stringToTerraform(this._comment),
183
+ fail_timeout: cdktf.numberToTerraform(this._failTimeout),
184
+ id: cdktf.stringToTerraform(this._id),
185
+ ip: cdktf.stringToTerraform(this._ip),
186
+ max_fails: cdktf.numberToTerraform(this._maxFails),
187
+ mode: cdktf.stringToTerraform(this._mode),
188
+ resource: cdktf.stringToTerraform(this._resource),
189
+ weight: cdktf.numberToTerraform(this._weight),
190
+ };
191
+ }
192
+ synthesizeHclAttributes() {
193
+ const attrs = {
194
+ comment: {
195
+ value: cdktf.stringToHclTerraform(this._comment),
196
+ isBlock: false,
197
+ type: "simple",
198
+ storageClassType: "string",
199
+ },
200
+ fail_timeout: {
201
+ value: cdktf.numberToHclTerraform(this._failTimeout),
202
+ isBlock: false,
203
+ type: "simple",
204
+ storageClassType: "number",
205
+ },
206
+ id: {
207
+ value: cdktf.stringToHclTerraform(this._id),
208
+ isBlock: false,
209
+ type: "simple",
210
+ storageClassType: "string",
211
+ },
212
+ ip: {
213
+ value: cdktf.stringToHclTerraform(this._ip),
214
+ isBlock: false,
215
+ type: "simple",
216
+ storageClassType: "string",
217
+ },
218
+ max_fails: {
219
+ value: cdktf.numberToHclTerraform(this._maxFails),
220
+ isBlock: false,
221
+ type: "simple",
222
+ storageClassType: "number",
223
+ },
224
+ mode: {
225
+ value: cdktf.stringToHclTerraform(this._mode),
226
+ isBlock: false,
227
+ type: "simple",
228
+ storageClassType: "string",
229
+ },
230
+ resource: {
231
+ value: cdktf.stringToHclTerraform(this._resource),
232
+ isBlock: false,
233
+ type: "simple",
234
+ storageClassType: "string",
235
+ },
236
+ weight: {
237
+ value: cdktf.numberToHclTerraform(this._weight),
238
+ isBlock: false,
239
+ type: "simple",
240
+ storageClassType: "number",
241
+ },
242
+ };
243
+ // remove undefined attributes
244
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
245
+ }
246
+ }
@@ -0,0 +1,64 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface ProtectionResourceWhitelistEntryConfig 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_whitelist_entry#id ProtectionResourceWhitelistEntry#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
+ * Allowed IP address.
13
+ *
14
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_whitelist_entry#ip ProtectionResourceWhitelistEntry#ip}
15
+ */
16
+ readonly ip: string;
17
+ /**
18
+ * ID of the DDoS protection resource to add header to.
19
+ *
20
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_whitelist_entry#resource ProtectionResourceWhitelistEntry#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_whitelist_entry edgecenter_protection_resource_whitelist_entry}
26
+ */
27
+ export declare class ProtectionResourceWhitelistEntry extends cdktf.TerraformResource {
28
+ static readonly tfResourceType = "edgecenter_protection_resource_whitelist_entry";
29
+ /**
30
+ * Generates CDKTF code for importing a ProtectionResourceWhitelistEntry 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 ProtectionResourceWhitelistEntry to import
33
+ * @param importFromId The id of the existing ProtectionResourceWhitelistEntry that should be imported. Refer to the {@link https://registry.terraform.io/providers/edge-center/edgecenter/0.10.4/docs/resources/protection_resource_whitelist_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 ProtectionResourceWhitelistEntry 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_whitelist_entry edgecenter_protection_resource_whitelist_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 ProtectionResourceWhitelistEntryConfig
43
+ */
44
+ constructor(scope: Construct, id: string, config: ProtectionResourceWhitelistEntryConfig);
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
+ }