@gradientedge/cdk-utils 9.89.0 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/lib/cloudflare/common/construct.d.ts +7 -19
- package/dist/src/lib/cloudflare/common/construct.js +12 -66
- package/dist/src/lib/cloudflare/common/index.d.ts +0 -1
- package/dist/src/lib/cloudflare/common/index.js +0 -1
- package/dist/src/lib/cloudflare/common/stack.d.ts +11 -21
- package/dist/src/lib/cloudflare/common/stack.js +55 -62
- package/dist/src/lib/cloudflare/common/types.d.ts +2 -14
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.d.ts +8 -10
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.js +18 -25
- package/dist/src/lib/cloudflare/construct/worker-site/main.d.ts +13 -10
- package/dist/src/lib/cloudflare/construct/worker-site/main.js +29 -41
- package/dist/src/lib/cloudflare/index.d.ts +0 -1
- package/dist/src/lib/cloudflare/index.js +0 -1
- package/dist/src/lib/cloudflare/services/access/main.d.ts +31 -43
- package/dist/src/lib/cloudflare/services/access/main.js +56 -83
- package/dist/src/lib/cloudflare/services/access/types.d.ts +12 -22
- package/dist/src/lib/cloudflare/services/api-shield/main.d.ts +10 -15
- package/dist/src/lib/cloudflare/services/api-shield/main.js +16 -36
- package/dist/src/lib/cloudflare/services/api-shield/types.d.ts +6 -10
- package/dist/src/lib/cloudflare/services/argo/main.d.ts +6 -8
- package/dist/src/lib/cloudflare/services/argo/main.js +9 -17
- package/dist/src/lib/cloudflare/services/argo/types.d.ts +3 -4
- package/dist/src/lib/cloudflare/services/filter/main.d.ts +3 -4
- package/dist/src/lib/cloudflare/services/filter/main.js +6 -10
- package/dist/src/lib/cloudflare/services/filter/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/firewall/main.d.ts +2 -3
- package/dist/src/lib/cloudflare/services/firewall/main.js +4 -8
- package/dist/src/lib/cloudflare/services/firewall/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/page/main.d.ts +7 -11
- package/dist/src/lib/cloudflare/services/page/main.js +13 -26
- package/dist/src/lib/cloudflare/services/page/types.d.ts +4 -6
- package/dist/src/lib/cloudflare/services/record/main.d.ts +2 -3
- package/dist/src/lib/cloudflare/services/record/main.js +4 -8
- package/dist/src/lib/cloudflare/services/record/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/rule-set/main.d.ts +5 -6
- package/dist/src/lib/cloudflare/services/rule-set/main.js +7 -10
- package/dist/src/lib/cloudflare/services/rule-set/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/worker/main.d.ts +12 -18
- package/dist/src/lib/cloudflare/services/worker/main.js +15 -39
- package/dist/src/lib/cloudflare/services/worker/types.d.ts +7 -12
- package/dist/src/lib/cloudflare/services/zone/main.d.ts +13 -30
- package/dist/src/lib/cloudflare/services/zone/main.js +31 -84
- package/dist/src/lib/cloudflare/services/zone/types.d.ts +10 -20
- package/dist/src/lib/common/types.d.ts +4 -0
- package/package.json +29 -23
- package/src/lib/cloudflare/common/construct.ts +13 -70
- package/src/lib/cloudflare/common/index.ts +0 -1
- package/src/lib/cloudflare/common/stack.ts +58 -69
- package/src/lib/cloudflare/common/types.ts +2 -15
- package/src/lib/cloudflare/construct/pages-static-site/main.ts +22 -42
- package/src/lib/cloudflare/construct/worker-site/main.ts +38 -62
- package/src/lib/cloudflare/index.ts +0 -1
- package/src/lib/cloudflare/services/access/main.ts +57 -118
- package/src/lib/cloudflare/services/access/types.ts +24 -22
- package/src/lib/cloudflare/services/api-shield/main.ts +16 -63
- package/src/lib/cloudflare/services/api-shield/types.ts +12 -10
- package/src/lib/cloudflare/services/argo/main.ts +9 -23
- package/src/lib/cloudflare/services/argo/types.ts +3 -4
- package/src/lib/cloudflare/services/filter/main.ts +6 -13
- package/src/lib/cloudflare/services/filter/types.ts +2 -2
- package/src/lib/cloudflare/services/firewall/main.ts +4 -11
- package/src/lib/cloudflare/services/firewall/types.ts +2 -2
- package/src/lib/cloudflare/services/page/main.ts +19 -36
- package/src/lib/cloudflare/services/page/types.ts +4 -6
- package/src/lib/cloudflare/services/record/main.ts +4 -11
- package/src/lib/cloudflare/services/record/types.ts +2 -2
- package/src/lib/cloudflare/services/rule-set/main.ts +7 -12
- package/src/lib/cloudflare/services/rule-set/types.ts +2 -2
- package/src/lib/cloudflare/services/worker/main.ts +15 -52
- package/src/lib/cloudflare/services/worker/types.ts +14 -12
- package/src/lib/cloudflare/services/zone/main.ts +40 -103
- package/src/lib/cloudflare/services/zone/types.ts +20 -21
- package/src/lib/common/types.ts +5 -0
- package/dist/src/lib/cloudflare/common/constants.d.ts +0 -5
- package/dist/src/lib/cloudflare/common/constants.js +0 -6
- package/dist/src/lib/cloudflare/utils/index.d.ts +0 -3
- package/dist/src/lib/cloudflare/utils/index.js +0 -13
- package/src/lib/cloudflare/common/constants.ts +0 -5
- package/src/lib/cloudflare/utils/index.ts +0 -23
|
@@ -1,35 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ZoneCacheVariants } from '@cdktf/provider-cloudflare/lib/zone-cache-variants/index.js'
|
|
4
|
-
import { ZoneDnsSettings } from '@cdktf/provider-cloudflare/lib/zone-dns-settings/index.js'
|
|
5
|
-
import { ZoneDnssec } from '@cdktf/provider-cloudflare/lib/zone-dnssec/index.js'
|
|
6
|
-
import { ZoneHold } from '@cdktf/provider-cloudflare/lib/zone-hold/index.js'
|
|
7
|
-
import { ZoneLockdown } from '@cdktf/provider-cloudflare/lib/zone-lockdown/index.js'
|
|
8
|
-
import { ZoneSetting } from '@cdktf/provider-cloudflare/lib/zone-setting/index.js'
|
|
9
|
-
import { Zone } from '@cdktf/provider-cloudflare/lib/zone/index.js'
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare'
|
|
2
|
+
import * as pulumi from '@pulumi/pulumi'
|
|
10
3
|
import { CommonCloudflareConstruct } from '../../common/index.js'
|
|
11
|
-
import { createCloudflareTfOutput } from '../../utils/index.js'
|
|
12
4
|
import {
|
|
5
|
+
GetZoneProps,
|
|
13
6
|
ZoneCacheReserveProps,
|
|
14
7
|
ZoneCacheVariantsProps,
|
|
15
8
|
ZoneDnssecProps,
|
|
16
9
|
ZoneHoldProps,
|
|
17
10
|
ZoneLockdownProps,
|
|
18
|
-
ZoneOptions,
|
|
19
11
|
ZoneProps,
|
|
20
12
|
ZoneSettingProps,
|
|
21
13
|
} from './types.js'
|
|
22
14
|
|
|
23
15
|
/**
|
|
24
|
-
* @classdesc Provides operations on Cloudflare Zone
|
|
16
|
+
* @classdesc Provides operations on Cloudflare Zone using Pulumi
|
|
25
17
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
26
18
|
* - If a custom construct extends {@link CommonCloudflareConstruct}, an instance is available within the context.
|
|
27
19
|
* @example
|
|
28
20
|
* ```
|
|
29
|
-
* import { CommonCloudflareConstruct
|
|
21
|
+
* import { CommonCloudflareConstruct } from '@gradientedge/cdk-utils'
|
|
30
22
|
*
|
|
31
23
|
* class CustomConstruct extends CommonCloudflareConstruct {
|
|
32
|
-
* constructor(parent:
|
|
24
|
+
* constructor(parent: pulumi.ComponentResource, id: string, props: CommonCloudflareStackProps) {
|
|
33
25
|
* super(parent, id, props)
|
|
34
26
|
* this.props = props
|
|
35
27
|
* this.zoneManager.createZone('MyZone', this, props)
|
|
@@ -43,35 +35,20 @@ export class CloudflareZoneManager {
|
|
|
43
35
|
* @param id scoped id of the resource
|
|
44
36
|
* @param scope scope in which this resource is defined
|
|
45
37
|
* @param props zone properties
|
|
46
|
-
* @see [CDKTF Zone Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zone.typescript.md}
|
|
47
38
|
*/
|
|
48
39
|
public createZone(id: string, scope: CommonCloudflareConstruct, props: ZoneProps) {
|
|
49
40
|
if (!props) throw `Props undefined for ${id}`
|
|
50
41
|
|
|
51
|
-
|
|
42
|
+
return new cloudflare.Zone(id, {
|
|
52
43
|
...props,
|
|
53
|
-
account:
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
name: props.name ?? scope.props.domainName,
|
|
44
|
+
account: props.account ?? scope.props.accountId,
|
|
45
|
+
name: scope.props.domainName,
|
|
57
46
|
})
|
|
58
|
-
|
|
59
|
-
createCloudflareTfOutput(`${id}-zoneName`, scope, zone.name)
|
|
60
|
-
createCloudflareTfOutput(`${id}-zoneFriendlyUniqueId`, scope, zone.friendlyUniqueId)
|
|
61
|
-
createCloudflareTfOutput(`${id}-zoneId`, scope, zone.id)
|
|
62
|
-
|
|
63
|
-
return zone
|
|
64
47
|
}
|
|
65
48
|
|
|
66
|
-
public resolveZone(id: string, scope: CommonCloudflareConstruct, options?:
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
name: options?.name ?? scope.props.domainName,
|
|
70
|
-
},
|
|
71
|
-
zoneId: options?.zoneId,
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
return zone
|
|
49
|
+
public resolveZone(id: string, scope: CommonCloudflareConstruct, options?: GetZoneProps) {
|
|
50
|
+
const name = options?.filter?.name ?? scope.props.domainName
|
|
51
|
+
return cloudflare.Zone.get(name, id)
|
|
75
52
|
}
|
|
76
53
|
|
|
77
54
|
/**
|
|
@@ -79,24 +56,17 @@ export class CloudflareZoneManager {
|
|
|
79
56
|
* @param id scoped id of the resource
|
|
80
57
|
* @param scope scope in which this resource is defined
|
|
81
58
|
* @param props zone cache reserve properties
|
|
82
|
-
* @see [CDKTF Zone Cache Reserve Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneCacheReserve.typescript.md}
|
|
83
59
|
*/
|
|
84
60
|
public createZoneCacheReserve(id: string, scope: CommonCloudflareConstruct, props: ZoneCacheReserveProps) {
|
|
85
61
|
if (!props) throw `Props undefined for ${id}`
|
|
86
62
|
|
|
87
|
-
const zoneId =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const zoneCacheReserve = new ZoneCacheReserve(scope, `${id}`, {
|
|
63
|
+
const zoneId =
|
|
64
|
+
props.zoneId ??
|
|
65
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
66
|
+
return new cloudflare.ZoneCacheReserve(id, {
|
|
92
67
|
...props,
|
|
93
68
|
zoneId,
|
|
94
69
|
})
|
|
95
|
-
|
|
96
|
-
createCloudflareTfOutput(`${id}-zoneCacheReserveFriendlyUniqueId`, scope, zoneCacheReserve.friendlyUniqueId)
|
|
97
|
-
createCloudflareTfOutput(`${id}-zoneCacheReserveId`, scope, zoneCacheReserve.id)
|
|
98
|
-
|
|
99
|
-
return zoneCacheReserve
|
|
100
70
|
}
|
|
101
71
|
|
|
102
72
|
/**
|
|
@@ -104,23 +74,17 @@ export class CloudflareZoneManager {
|
|
|
104
74
|
* @param id scoped id of the resource
|
|
105
75
|
* @param scope scope in which this resource is defined
|
|
106
76
|
* @param props zone cache variants properties
|
|
107
|
-
* @see [CDKTF Zone Cache Variants Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneCacheVariants.typescript.md}
|
|
108
77
|
*/
|
|
109
78
|
public createZoneCacheVariants(id: string, scope: CommonCloudflareConstruct, props: ZoneCacheVariantsProps) {
|
|
110
79
|
if (!props) throw `Props undefined for ${id}`
|
|
111
80
|
|
|
112
|
-
const zoneId =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
81
|
+
const zoneId =
|
|
82
|
+
props.zoneId ??
|
|
83
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
84
|
+
return new cloudflare.ZoneCacheVariants(id, {
|
|
116
85
|
...props,
|
|
117
86
|
zoneId,
|
|
118
87
|
})
|
|
119
|
-
|
|
120
|
-
createCloudflareTfOutput(`${id}-zoneCacheVariantsFriendlyUniqueId`, scope, zoneCacheVariants.friendlyUniqueId)
|
|
121
|
-
createCloudflareTfOutput(`${id}-zoneCacheVariantsId`, scope, zoneCacheVariants.id)
|
|
122
|
-
|
|
123
|
-
return zoneCacheVariants
|
|
124
88
|
}
|
|
125
89
|
|
|
126
90
|
/**
|
|
@@ -128,23 +92,17 @@ export class CloudflareZoneManager {
|
|
|
128
92
|
* @param id scoped id of the resource
|
|
129
93
|
* @param scope scope in which this resource is defined
|
|
130
94
|
* @param props zone dnssec properties
|
|
131
|
-
* @see [CDKTF Zone DNS Security Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneDnssec.typescript.md}
|
|
132
95
|
*/
|
|
133
96
|
public createZoneDnssec(id: string, scope: CommonCloudflareConstruct, props: ZoneDnssecProps) {
|
|
134
97
|
if (!props) throw `Props undefined for ${id}`
|
|
135
98
|
|
|
136
|
-
const zoneId =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
99
|
+
const zoneId =
|
|
100
|
+
props.zoneId ??
|
|
101
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
102
|
+
return new cloudflare.ZoneDnssec(id, {
|
|
140
103
|
...props,
|
|
141
104
|
zoneId,
|
|
142
105
|
})
|
|
143
|
-
|
|
144
|
-
createCloudflareTfOutput(`${id}-zoneDnssecFriendlyUniqueId`, scope, zoneDnssec.friendlyUniqueId)
|
|
145
|
-
createCloudflareTfOutput(`${id}-zoneDnssecId`, scope, zoneDnssec.id)
|
|
146
|
-
|
|
147
|
-
return zoneDnssec
|
|
148
106
|
}
|
|
149
107
|
|
|
150
108
|
/**
|
|
@@ -152,23 +110,17 @@ export class CloudflareZoneManager {
|
|
|
152
110
|
* @param id scoped id of the resource
|
|
153
111
|
* @param scope scope in which this resource is defined
|
|
154
112
|
* @param props zone hold properties
|
|
155
|
-
* @see [CDKTF Zone Hold Security Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneHold.typescript.md}
|
|
156
113
|
*/
|
|
157
114
|
public createZoneHold(id: string, scope: CommonCloudflareConstruct, props: ZoneHoldProps) {
|
|
158
115
|
if (!props) throw `Props undefined for ${id}`
|
|
159
116
|
|
|
160
|
-
const zoneId =
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
117
|
+
const zoneId =
|
|
118
|
+
props.zoneId ??
|
|
119
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
120
|
+
return new cloudflare.ZoneHold(id, {
|
|
164
121
|
...props,
|
|
165
122
|
zoneId,
|
|
166
123
|
})
|
|
167
|
-
|
|
168
|
-
createCloudflareTfOutput(`${id}-zoneHoldFriendlyUniqueId`, scope, zoneHold.friendlyUniqueId)
|
|
169
|
-
createCloudflareTfOutput(`${id}-zoneHoldId`, scope, zoneHold.id)
|
|
170
|
-
|
|
171
|
-
return zoneHold
|
|
172
124
|
}
|
|
173
125
|
|
|
174
126
|
/**
|
|
@@ -176,23 +128,17 @@ export class CloudflareZoneManager {
|
|
|
176
128
|
* @param id scoped id of the resource
|
|
177
129
|
* @param scope scope in which this resource is defined
|
|
178
130
|
* @param props zone lockdown properties
|
|
179
|
-
* @see [CDKTF Zone Lockdown Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneLockdown.typescript.md}
|
|
180
131
|
*/
|
|
181
132
|
public createZoneLockdown(id: string, scope: CommonCloudflareConstruct, props: ZoneLockdownProps) {
|
|
182
133
|
if (!props) throw `Props undefined for ${id}`
|
|
183
134
|
|
|
184
|
-
const zoneId =
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
135
|
+
const zoneId =
|
|
136
|
+
props.zoneId ??
|
|
137
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
138
|
+
return new cloudflare.ZoneLockdown(id, {
|
|
188
139
|
...props,
|
|
189
140
|
zoneId,
|
|
190
141
|
})
|
|
191
|
-
|
|
192
|
-
createCloudflareTfOutput(`${id}-zoneLockdownFriendlyUniqueId`, scope, zoneLockdown.friendlyUniqueId)
|
|
193
|
-
createCloudflareTfOutput(`${id}-zoneLockdownId`, scope, zoneLockdown.id)
|
|
194
|
-
|
|
195
|
-
return zoneLockdown
|
|
196
142
|
}
|
|
197
143
|
|
|
198
144
|
/**
|
|
@@ -200,21 +146,18 @@ export class CloudflareZoneManager {
|
|
|
200
146
|
* @param id scoped id of the resource
|
|
201
147
|
* @param scope scope in which this resource is defined
|
|
202
148
|
* @param props zone dns settings properties
|
|
203
|
-
* @see [CDKTF Zone Dns Settings Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/dnsZoneSettings.typescript.md}
|
|
204
149
|
*/
|
|
205
150
|
public createZoneDnsSettings(id: string, scope: CommonCloudflareConstruct, props: ZoneSettingProps) {
|
|
206
151
|
if (!props) throw `Props undefined for ${id}`
|
|
207
152
|
|
|
208
|
-
const zoneId =
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const zoneDnsSettings = new
|
|
153
|
+
const zoneId =
|
|
154
|
+
props.zoneId ??
|
|
155
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
156
|
+
const zoneDnsSettings = new cloudflare.ZoneSetting(id, {
|
|
212
157
|
...props,
|
|
213
158
|
zoneId,
|
|
214
159
|
})
|
|
215
160
|
|
|
216
|
-
createCloudflareTfOutput(`${id}-zoneDnsSettingsFriendlyUniqueId`, scope, zoneDnsSettings.friendlyUniqueId)
|
|
217
|
-
|
|
218
161
|
return zoneDnsSettings
|
|
219
162
|
}
|
|
220
163
|
|
|
@@ -223,22 +166,16 @@ export class CloudflareZoneManager {
|
|
|
223
166
|
* @param id scoped id of the resource
|
|
224
167
|
* @param scope scope in which this resource is defined
|
|
225
168
|
* @param props zone setting properties
|
|
226
|
-
* @see [CDKTF Zone Setting Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneSetting.typescript.md}
|
|
227
169
|
*/
|
|
228
170
|
public createZoneSetting(id: string, scope: CommonCloudflareConstruct, props: ZoneSettingProps) {
|
|
229
171
|
if (!props) throw `Props undefined for ${id}`
|
|
230
172
|
|
|
231
|
-
const zoneId =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
173
|
+
const zoneId =
|
|
174
|
+
props.zoneId ??
|
|
175
|
+
pulumi.output(this.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })).id
|
|
176
|
+
return new cloudflare.ZoneSetting(id, {
|
|
235
177
|
...props,
|
|
236
178
|
zoneId,
|
|
237
179
|
})
|
|
238
|
-
|
|
239
|
-
createCloudflareTfOutput(`${id}-zoneSettingFriendlyUniqueId`, scope, zoneSetting.friendlyUniqueId)
|
|
240
|
-
createCloudflareTfOutput(`${id}-zoneSettingId`, scope, zoneSetting.id)
|
|
241
|
-
|
|
242
|
-
return zoneSetting
|
|
243
180
|
}
|
|
244
181
|
}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import {
|
|
2
|
+
GetZoneArgs,
|
|
3
|
+
ZoneArgs,
|
|
4
|
+
ZoneCacheReserveArgs,
|
|
5
|
+
ZoneCacheVariantsArgs,
|
|
6
|
+
ZoneDnssecArgs,
|
|
7
|
+
ZoneDnsSettingsArgs,
|
|
8
|
+
ZoneHoldArgs,
|
|
9
|
+
ZoneLockdownArgs,
|
|
10
|
+
ZoneSettingArgs,
|
|
11
|
+
} from '@pulumi/cloudflare'
|
|
10
12
|
|
|
11
|
-
export interface ZoneProps extends
|
|
12
|
-
export interface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export interface
|
|
17
|
-
export interface
|
|
18
|
-
export interface
|
|
19
|
-
export interface
|
|
20
|
-
export interface ZoneLockdownProps extends ZoneLockdownConfig {}
|
|
21
|
-
export interface ZoneSettingProps extends ZoneSettingConfig {}
|
|
22
|
-
export interface ZoneDnsSettingsProps extends ZoneDnsSettingsConfig {}
|
|
13
|
+
export interface ZoneProps extends ZoneArgs {}
|
|
14
|
+
export interface GetZoneProps extends GetZoneArgs {}
|
|
15
|
+
export interface ZoneCacheReserveProps extends ZoneCacheReserveArgs {}
|
|
16
|
+
export interface ZoneCacheVariantsProps extends ZoneCacheVariantsArgs {}
|
|
17
|
+
export interface ZoneDnssecProps extends ZoneDnssecArgs {}
|
|
18
|
+
export interface ZoneHoldProps extends ZoneHoldArgs {}
|
|
19
|
+
export interface ZoneLockdownProps extends ZoneLockdownArgs {}
|
|
20
|
+
export interface ZoneSettingProps extends ZoneSettingArgs {}
|
|
21
|
+
export interface ZoneDnsSettingsProps extends ZoneDnsSettingsArgs {}
|
package/src/lib/common/types.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from '@pulumi/pulumi'
|
|
2
|
+
|
|
1
3
|
export interface BaseProps {
|
|
4
|
+
debug?: boolean
|
|
2
5
|
domainName: string
|
|
3
6
|
extraContexts?: string[]
|
|
4
7
|
name: string
|
|
@@ -7,3 +10,5 @@ export interface BaseProps {
|
|
|
7
10
|
stageContextPath?: string
|
|
8
11
|
subDomain?: string
|
|
9
12
|
}
|
|
13
|
+
|
|
14
|
+
export interface BaseOptions extends ComponentResourceOptions {}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { TerraformOutput } from 'cdktf';
|
|
2
|
-
import { CommonCloudflareConstruct } from '../common/index.js';
|
|
3
|
-
export declare const createCloudflareTfOutput: (id: string, scope: CommonCloudflareConstruct, value?: string, description?: string, sensitive?: boolean, overrideId?: boolean) => TerraformOutput;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TerraformOutput } from 'cdktf';
|
|
2
|
-
import _ from 'lodash';
|
|
3
|
-
export const createCloudflareTfOutput = (id, scope, value, description, sensitive, overrideId = true) => {
|
|
4
|
-
const output = new TerraformOutput(scope, id, {
|
|
5
|
-
description,
|
|
6
|
-
sensitive,
|
|
7
|
-
value,
|
|
8
|
-
});
|
|
9
|
-
if (overrideId) {
|
|
10
|
-
output.overrideLogicalId(_.camelCase(id));
|
|
11
|
-
}
|
|
12
|
-
return output;
|
|
13
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TerraformOutput } from 'cdktf'
|
|
2
|
-
import _ from 'lodash'
|
|
3
|
-
import { CommonCloudflareConstruct } from '../common/index.js'
|
|
4
|
-
|
|
5
|
-
export const createCloudflareTfOutput = (
|
|
6
|
-
id: string,
|
|
7
|
-
scope: CommonCloudflareConstruct,
|
|
8
|
-
value?: string,
|
|
9
|
-
description?: string,
|
|
10
|
-
sensitive?: boolean,
|
|
11
|
-
overrideId = true
|
|
12
|
-
) => {
|
|
13
|
-
const output = new TerraformOutput(scope, id, {
|
|
14
|
-
description,
|
|
15
|
-
sensitive,
|
|
16
|
-
value,
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
if (overrideId) {
|
|
20
|
-
output.overrideLogicalId(_.camelCase(id))
|
|
21
|
-
}
|
|
22
|
-
return output
|
|
23
|
-
}
|