@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,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { PagesProject } from '@cdktf/provider-cloudflare/lib/pages-project/index.js';
|
|
4
|
-
import { LocalExec, Provider } from 'cdktf-local-exec';
|
|
5
|
-
import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
2
|
+
import { local } from '@pulumi/command';
|
|
6
3
|
/**
|
|
7
4
|
* @classdesc Provides operations on Cloudflare Pages
|
|
8
5
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -26,70 +23,60 @@ export class CloudflarePageManager {
|
|
|
26
23
|
* @param id scoped id of the resource
|
|
27
24
|
* @param scope scope in which this resource is defined
|
|
28
25
|
* @param props pages project properties
|
|
29
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare Pages Project]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagesproject/}
|
|
30
27
|
*/
|
|
31
28
|
createPagesProject(id, scope, props) {
|
|
32
29
|
if (!props)
|
|
33
30
|
throw `Props undefined for ${id}`;
|
|
34
|
-
|
|
31
|
+
return new cloudflare.PagesProject(`${id}`, {
|
|
35
32
|
...props,
|
|
36
33
|
accountId: props.accountId ?? scope.props.accountId,
|
|
37
34
|
name: `${props.name}-${scope.props.stage}`,
|
|
38
35
|
});
|
|
39
|
-
createCloudflareTfOutput(`${id}-pagesProjectFriendlyUniqueId`, scope, pagesProject.friendlyUniqueId);
|
|
40
|
-
createCloudflareTfOutput(`${id}-pagesProjectId`, scope, pagesProject.id);
|
|
41
|
-
return pagesProject;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* @summary Method to create a new Cloudflare Pages Domain
|
|
45
39
|
* @param id scoped id of the resource
|
|
46
40
|
* @param scope scope in which this resource is defined
|
|
47
41
|
* @param props pages domain properties
|
|
48
|
-
* @see [
|
|
42
|
+
* @see [Pulumi Cloudflare Pages Domain]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagesdomain/}
|
|
49
43
|
*/
|
|
50
44
|
createPagesDomain(id, scope, props) {
|
|
51
45
|
if (!props)
|
|
52
46
|
throw `Props undefined for ${id}`;
|
|
53
|
-
|
|
47
|
+
return new cloudflare.PagesDomain(`${id}`, {
|
|
54
48
|
...props,
|
|
55
49
|
accountId: props.accountId ?? scope.props.accountId,
|
|
56
50
|
name: props.name ?? scope.props.domainName,
|
|
57
51
|
});
|
|
58
|
-
createCloudflareTfOutput(`${id}-pagesDomainFriendlyUniqueId`, scope, pagesDomain.friendlyUniqueId);
|
|
59
|
-
createCloudflareTfOutput(`${id}-pagesDomainId`, scope, pagesDomain.id);
|
|
60
|
-
return pagesDomain;
|
|
61
52
|
}
|
|
62
53
|
/**
|
|
63
54
|
* @summary Method to create a new Cloudflare Page Rule
|
|
64
55
|
* @param id scoped id of the resource
|
|
65
56
|
* @param scope scope in which this resource is defined
|
|
66
57
|
* @param props page rule properties
|
|
67
|
-
* @see [
|
|
58
|
+
* @see [Pulumi Cloudflare Page Rule]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagerule/}
|
|
68
59
|
*/
|
|
69
60
|
createPageRule(id, scope, props) {
|
|
70
61
|
if (!props)
|
|
71
62
|
throw `Props undefined for ${id}`;
|
|
72
63
|
const zoneId = props.zoneId
|
|
73
64
|
? props.zoneId
|
|
74
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
75
|
-
|
|
65
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
66
|
+
return new cloudflare.PageRule(`${id}`, {
|
|
76
67
|
...props,
|
|
77
68
|
zoneId,
|
|
78
69
|
});
|
|
79
|
-
createCloudflareTfOutput(`${id}-pageRuleFriendlyUniqueId`, scope, pageRule.friendlyUniqueId);
|
|
80
|
-
createCloudflareTfOutput(`${id}-pageRuleId`, scope, pageRule.id);
|
|
81
|
-
return pageRule;
|
|
82
70
|
}
|
|
83
71
|
deployPagesProject(id, scope, props) {
|
|
84
72
|
if (!props)
|
|
85
73
|
throw `Props undefined for ${id}`;
|
|
86
|
-
new Provider(scope, `${id}`);
|
|
87
74
|
const message = process.env.BUILD_NUMBER ?? props.message;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
return new local.Command(`${id}-deploy-${new Date().toISOString()}`, {
|
|
76
|
+
create: `CLOUDFLARE_ACCOUNT_ID=${scope.props.accountId} CLOUDFLARE_API_TOKEN=${scope.props.apiToken} npx wrangler pages deploy ${props.directory} --project-name=${props.projectName} --branch=${props.branch} --commit-message=${message}`,
|
|
77
|
+
dir: '',
|
|
78
|
+
}, {
|
|
91
79
|
dependsOn: props.dependsOn,
|
|
92
80
|
});
|
|
93
|
-
return deployment;
|
|
94
81
|
}
|
|
95
82
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { PagesProjectConfig } from '@cdktf/provider-cloudflare/lib/pages-project/index.js';
|
|
4
|
-
export interface PagesProjectProps extends PagesProjectConfig {
|
|
1
|
+
import { PageRuleArgs, PagesDomainArgs, PagesProjectArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface PagesProjectProps extends PagesProjectArgs {
|
|
5
3
|
}
|
|
6
|
-
export interface PagesDomainProps extends
|
|
4
|
+
export interface PagesDomainProps extends PagesDomainArgs {
|
|
7
5
|
}
|
|
8
|
-
export interface PageRuleProps extends
|
|
6
|
+
export interface PageRuleProps extends PageRuleArgs {
|
|
9
7
|
}
|
|
10
8
|
export interface PagesProjectDeployProps {
|
|
11
9
|
branch: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DnsRecord } from '@cdktf/provider-cloudflare/lib/dns-record/index.js';
|
|
2
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
3
2
|
import { DnsRecordProps } from './types.js';
|
|
4
3
|
/**
|
|
@@ -24,7 +23,7 @@ export declare class CloudflareRecordManager {
|
|
|
24
23
|
* @param id scoped id of the resource
|
|
25
24
|
* @param scope scope in which this resource is defined
|
|
26
25
|
* @param props record properties
|
|
27
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare Record]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/record/}
|
|
28
27
|
*/
|
|
29
|
-
createRecord(id: string, scope: CommonCloudflareConstruct, props: DnsRecordProps): DnsRecord;
|
|
28
|
+
createRecord(id: string, scope: CommonCloudflareConstruct, props: DnsRecordProps): import("@pulumi/cloudflare/dnsRecord.js").DnsRecord;
|
|
30
29
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
3
2
|
/**
|
|
4
3
|
* @classdesc Provides operations on Cloudflare Records
|
|
5
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -23,20 +22,17 @@ export class CloudflareRecordManager {
|
|
|
23
22
|
* @param id scoped id of the resource
|
|
24
23
|
* @param scope scope in which this resource is defined
|
|
25
24
|
* @param props record properties
|
|
26
|
-
* @see [
|
|
25
|
+
* @see [Pulumi Cloudflare Record]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/record/}
|
|
27
26
|
*/
|
|
28
27
|
createRecord(id, scope, props) {
|
|
29
28
|
if (!props)
|
|
30
29
|
throw `Props undefined for ${id}`;
|
|
31
30
|
const zoneId = props.zoneId
|
|
32
31
|
? props.zoneId
|
|
33
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
34
|
-
|
|
32
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
33
|
+
return new cloudflare.DnsRecord(id, {
|
|
35
34
|
...props,
|
|
36
35
|
zoneId,
|
|
37
36
|
});
|
|
38
|
-
createCloudflareTfOutput(`${id}-recordFriendlyUniqueId`, scope, record.friendlyUniqueId);
|
|
39
|
-
createCloudflareTfOutput(`${id}-recordId`, scope, record.id);
|
|
40
|
-
return record;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface DnsRecordProps extends
|
|
1
|
+
import { DnsRecordArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface DnsRecordProps extends DnsRecordArgs {
|
|
3
3
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Ruleset } from '@cdktf/provider-cloudflare/lib/ruleset/index.js';
|
|
2
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
3
2
|
import { RulesetProps } from './types.js';
|
|
4
3
|
/**
|
|
@@ -7,11 +6,11 @@ import { RulesetProps } from './types.js';
|
|
|
7
6
|
* - If a custom construct extends {@link CommonCloudflareConstruct}, an instance is available within the context.
|
|
8
7
|
* @example
|
|
9
8
|
* ```
|
|
10
|
-
* import { CommonCloudflareConstruct
|
|
9
|
+
* import { CommonCloudflareConstruct } from '@gradientedge/cdk-utils'
|
|
11
10
|
*
|
|
12
11
|
* class CustomConstruct extends CommonCloudflareConstruct {
|
|
13
|
-
* constructor(parent:
|
|
14
|
-
* super(parent,
|
|
12
|
+
* constructor(parent: pulumi.ComponentResource, name: string, props: CommonCloudflareStackProps) {
|
|
13
|
+
* super(parent, name, props)
|
|
15
14
|
* this.props = props
|
|
16
15
|
* this.ruleSetManager.createRuleSet('MyRule', this, props)
|
|
17
16
|
* }
|
|
@@ -24,7 +23,7 @@ export declare class CloudflareRuleSetManager {
|
|
|
24
23
|
* @param id scoped id of the resource
|
|
25
24
|
* @param scope scope in which this resource is defined
|
|
26
25
|
* @param props rule set properties
|
|
27
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare Ruleset]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/ruleset/}
|
|
28
27
|
*/
|
|
29
|
-
createRuleSet(id: string, scope: CommonCloudflareConstruct, props: RulesetProps): Ruleset;
|
|
28
|
+
createRuleSet(id: string, scope: CommonCloudflareConstruct, props: RulesetProps): import("@pulumi/cloudflare/ruleset.js").Ruleset;
|
|
30
29
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
3
2
|
/**
|
|
4
3
|
* @classdesc Provides operations on Cloudflare Rule Sets
|
|
5
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
6
5
|
* - If a custom construct extends {@link CommonCloudflareConstruct}, an instance is available within the context.
|
|
7
6
|
* @example
|
|
8
7
|
* ```
|
|
9
|
-
* import { CommonCloudflareConstruct
|
|
8
|
+
* import { CommonCloudflareConstruct } from '@gradientedge/cdk-utils'
|
|
10
9
|
*
|
|
11
10
|
* class CustomConstruct extends CommonCloudflareConstruct {
|
|
12
|
-
* constructor(parent:
|
|
13
|
-
* super(parent,
|
|
11
|
+
* constructor(parent: pulumi.ComponentResource, name: string, props: CommonCloudflareStackProps) {
|
|
12
|
+
* super(parent, name, props)
|
|
14
13
|
* this.props = props
|
|
15
14
|
* this.ruleSetManager.createRuleSet('MyRule', this, props)
|
|
16
15
|
* }
|
|
@@ -23,20 +22,18 @@ export class CloudflareRuleSetManager {
|
|
|
23
22
|
* @param id scoped id of the resource
|
|
24
23
|
* @param scope scope in which this resource is defined
|
|
25
24
|
* @param props rule set properties
|
|
26
|
-
* @see [
|
|
25
|
+
* @see [Pulumi Cloudflare Ruleset]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/ruleset/}
|
|
27
26
|
*/
|
|
28
27
|
createRuleSet(id, scope, props) {
|
|
29
28
|
if (!props)
|
|
30
29
|
throw `Props undefined for ${id}`;
|
|
31
30
|
const zoneId = props.zoneId
|
|
32
31
|
? props.zoneId
|
|
33
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
34
|
-
const ruleSet = new Ruleset(
|
|
32
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
33
|
+
const ruleSet = new cloudflare.Ruleset(`${id}`, {
|
|
35
34
|
...props,
|
|
36
35
|
zoneId,
|
|
37
36
|
});
|
|
38
|
-
createCloudflareTfOutput(`${id}-ruleSetFriendlyUniqueId`, scope, ruleSet.friendlyUniqueId);
|
|
39
|
-
createCloudflareTfOutput(`${id}-ruleSetId`, scope, ruleSet.id);
|
|
40
37
|
return ruleSet;
|
|
41
38
|
}
|
|
42
39
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface RulesetProps extends
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
2
|
+
export interface RulesetProps extends cloudflare.RulesetArgs {
|
|
3
3
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { WorkersCronTrigger } from '@cdktf/provider-cloudflare/lib/workers-cron-trigger/index.js';
|
|
2
|
-
import { WorkersCustomDomain } from '@cdktf/provider-cloudflare/lib/workers-custom-domain/index.js';
|
|
3
|
-
import { WorkersKvNamespace } from '@cdktf/provider-cloudflare/lib/workers-kv-namespace/index.js';
|
|
4
|
-
import { WorkersKv } from '@cdktf/provider-cloudflare/lib/workers-kv/index.js';
|
|
5
|
-
import { WorkersRoute } from '@cdktf/provider-cloudflare/lib/workers-route/index.js';
|
|
6
|
-
import { WorkersScript } from '@cdktf/provider-cloudflare/lib/workers-script/index.js';
|
|
7
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
8
2
|
import { WorkerCronTriggerProps, WorkerDomainProps, WorkerRouteProps, WorkerScriptProps, WorkersKvNamespaceProps, WorkersKvProps } from './types.js';
|
|
9
3
|
/**
|
|
@@ -29,47 +23,47 @@ export declare class CloudflareWorkerManager {
|
|
|
29
23
|
* @param id scoped id of the resource
|
|
30
24
|
* @param scope scope in which this resource is defined
|
|
31
25
|
* @param props worker domain properties
|
|
32
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Worker Domain]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workercustomdomain/}
|
|
33
27
|
*/
|
|
34
|
-
createWorkerDomain(id: string, scope: CommonCloudflareConstruct, props: WorkerDomainProps): WorkersCustomDomain;
|
|
28
|
+
createWorkerDomain(id: string, scope: CommonCloudflareConstruct, props: WorkerDomainProps): import("@pulumi/cloudflare/workersCustomDomain.js").WorkersCustomDomain;
|
|
35
29
|
/**
|
|
36
30
|
* @summary Method to create a new Cloudflare Worker Route
|
|
37
31
|
* @param id scoped id of the resource
|
|
38
32
|
* @param scope scope in which this resource is defined
|
|
39
33
|
* @param props worker route properties
|
|
40
|
-
* @see [
|
|
34
|
+
* @see [Pulumi Worker Route]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerroute/}
|
|
41
35
|
*/
|
|
42
|
-
createWorkerRoute(id: string, scope: CommonCloudflareConstruct, props: WorkerRouteProps): WorkersRoute;
|
|
36
|
+
createWorkerRoute(id: string, scope: CommonCloudflareConstruct, props: WorkerRouteProps): import("@pulumi/cloudflare/workersRoute.js").WorkersRoute;
|
|
43
37
|
/**
|
|
44
38
|
* @summary Method to create a new Cloudflare Worker Script
|
|
45
39
|
* @param id scoped id of the resource
|
|
46
40
|
* @param scope scope in which this resource is defined
|
|
47
41
|
* @param props worker script properties
|
|
48
|
-
* @see [
|
|
42
|
+
* @see [Pulumi Worker Script]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerscript/}
|
|
49
43
|
*/
|
|
50
|
-
createWorkerScript(id: string, scope: CommonCloudflareConstruct, props: WorkerScriptProps): WorkersScript;
|
|
44
|
+
createWorkerScript(id: string, scope: CommonCloudflareConstruct, props: WorkerScriptProps): import("@pulumi/cloudflare/workersScript.js").WorkersScript;
|
|
51
45
|
/**
|
|
52
46
|
* @summary Method to create a new Cloudflare Workers KV Namespace
|
|
53
47
|
* @param id scoped id of the resource
|
|
54
48
|
* @param scope scope in which this resource is defined
|
|
55
49
|
* @param props workers kv namespace properties
|
|
56
|
-
* @see [
|
|
50
|
+
* @see [Pulumi Workers KV Namespace]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerskvnamespace/}
|
|
57
51
|
*/
|
|
58
|
-
createWorkersKvNamespace(id: string, scope: CommonCloudflareConstruct, props: WorkersKvNamespaceProps): WorkersKvNamespace;
|
|
52
|
+
createWorkersKvNamespace(id: string, scope: CommonCloudflareConstruct, props: WorkersKvNamespaceProps): import("@pulumi/cloudflare/workersKvNamespace.js").WorkersKvNamespace;
|
|
59
53
|
/**
|
|
60
54
|
* @summary Method to create a new Cloudflare Workers KV
|
|
61
55
|
* @param id scoped id of the resource
|
|
62
56
|
* @param scope scope in which this resource is defined
|
|
63
57
|
* @param props workers kv properties
|
|
64
|
-
* @see [
|
|
58
|
+
* @see [Pulumi Workers KV]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerskv/}
|
|
65
59
|
*/
|
|
66
|
-
createWorkersKv(id: string, scope: CommonCloudflareConstruct, props: WorkersKvProps): WorkersKv;
|
|
60
|
+
createWorkersKv(id: string, scope: CommonCloudflareConstruct, props: WorkersKvProps): import("@pulumi/cloudflare/workersKv.js").WorkersKv;
|
|
67
61
|
/**
|
|
68
62
|
* @summary Method to create a new Cloudflare Worker Cron Trigger
|
|
69
63
|
* @param id scoped id of the resource
|
|
70
64
|
* @param scope scope in which this resource is defined
|
|
71
65
|
* @param props workers cron trigger properties
|
|
72
|
-
* @see [
|
|
66
|
+
* @see [Pulumi Workers Cron Trigger]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workercrontrigger/}
|
|
73
67
|
*/
|
|
74
|
-
createWorkerCronTrigger(id: string, scope: CommonCloudflareConstruct, props: WorkerCronTriggerProps): WorkersCronTrigger;
|
|
68
|
+
createWorkerCronTrigger(id: string, scope: CommonCloudflareConstruct, props: WorkerCronTriggerProps): import("@pulumi/cloudflare/workersCronTrigger.js").WorkersCronTrigger;
|
|
75
69
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { WorkersCustomDomain } from '@cdktf/provider-cloudflare/lib/workers-custom-domain/index.js';
|
|
3
|
-
import { WorkersKvNamespace } from '@cdktf/provider-cloudflare/lib/workers-kv-namespace/index.js';
|
|
4
|
-
import { WorkersKv } from '@cdktf/provider-cloudflare/lib/workers-kv/index.js';
|
|
5
|
-
import { WorkersRoute } from '@cdktf/provider-cloudflare/lib/workers-route/index.js';
|
|
6
|
-
import { WorkersScript } from '@cdktf/provider-cloudflare/lib/workers-script/index.js';
|
|
7
|
-
import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
8
2
|
/**
|
|
9
3
|
* @classdesc Provides operations on Cloudflare Worker
|
|
10
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -28,117 +22,99 @@ export class CloudflareWorkerManager {
|
|
|
28
22
|
* @param id scoped id of the resource
|
|
29
23
|
* @param scope scope in which this resource is defined
|
|
30
24
|
* @param props worker domain properties
|
|
31
|
-
* @see [
|
|
25
|
+
* @see [Pulumi Worker Domain]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workercustomdomain/}
|
|
32
26
|
*/
|
|
33
27
|
createWorkerDomain(id, scope, props) {
|
|
34
28
|
if (!props)
|
|
35
29
|
throw `Props undefined for ${id}`;
|
|
36
30
|
const zoneId = props.zoneId
|
|
37
31
|
? props.zoneId
|
|
38
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
39
|
-
|
|
32
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
33
|
+
return new cloudflare.WorkersCustomDomain(id, {
|
|
40
34
|
...props,
|
|
41
35
|
accountId: props.accountId ?? scope.props.accountId,
|
|
42
36
|
zoneId,
|
|
43
37
|
});
|
|
44
|
-
createCloudflareTfOutput(`${id}-workerDomainFriendlyUniqueId`, scope, workerDomain.friendlyUniqueId);
|
|
45
|
-
createCloudflareTfOutput(`${id}-workerDomainId`, scope, workerDomain.id);
|
|
46
|
-
return workerDomain;
|
|
47
38
|
}
|
|
48
39
|
/**
|
|
49
40
|
* @summary Method to create a new Cloudflare Worker Route
|
|
50
41
|
* @param id scoped id of the resource
|
|
51
42
|
* @param scope scope in which this resource is defined
|
|
52
43
|
* @param props worker route properties
|
|
53
|
-
* @see [
|
|
44
|
+
* @see [Pulumi Worker Route]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerroute/}
|
|
54
45
|
*/
|
|
55
46
|
createWorkerRoute(id, scope, props) {
|
|
56
47
|
if (!props)
|
|
57
48
|
throw `Props undefined for ${id}`;
|
|
58
49
|
const zoneId = props.zoneId
|
|
59
50
|
? props.zoneId
|
|
60
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
61
|
-
|
|
51
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
52
|
+
return new cloudflare.WorkersRoute(id, {
|
|
62
53
|
...props,
|
|
63
54
|
script: `${props.script}-${scope.props.stage}`,
|
|
64
55
|
zoneId,
|
|
65
56
|
});
|
|
66
|
-
createCloudflareTfOutput(`${id}-workerRouteFriendlyUniqueId`, scope, workerRoute.friendlyUniqueId);
|
|
67
|
-
createCloudflareTfOutput(`${id}-workerRouteId`, scope, workerRoute.id);
|
|
68
|
-
return workerRoute;
|
|
69
57
|
}
|
|
70
58
|
/**
|
|
71
59
|
* @summary Method to create a new Cloudflare Worker Script
|
|
72
60
|
* @param id scoped id of the resource
|
|
73
61
|
* @param scope scope in which this resource is defined
|
|
74
62
|
* @param props worker script properties
|
|
75
|
-
* @see [
|
|
63
|
+
* @see [Pulumi Worker Script]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerscript/}
|
|
76
64
|
*/
|
|
77
65
|
createWorkerScript(id, scope, props) {
|
|
78
66
|
if (!props)
|
|
79
67
|
throw `Props undefined for ${id}`;
|
|
80
|
-
|
|
68
|
+
return new cloudflare.WorkersScript(id, {
|
|
81
69
|
...props,
|
|
82
70
|
accountId: props.accountId ?? scope.props.accountId,
|
|
83
71
|
scriptName: `${props.scriptName}-${scope.props.stage}`,
|
|
84
72
|
});
|
|
85
|
-
createCloudflareTfOutput(`${id}-workerScriptFriendlyUniqueId`, scope, workerScript.friendlyUniqueId);
|
|
86
|
-
createCloudflareTfOutput(`${id}-workerScriptId`, scope, workerScript.id);
|
|
87
|
-
return workerScript;
|
|
88
73
|
}
|
|
89
74
|
/**
|
|
90
75
|
* @summary Method to create a new Cloudflare Workers KV Namespace
|
|
91
76
|
* @param id scoped id of the resource
|
|
92
77
|
* @param scope scope in which this resource is defined
|
|
93
78
|
* @param props workers kv namespace properties
|
|
94
|
-
* @see [
|
|
79
|
+
* @see [Pulumi Workers KV Namespace]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerskvnamespace/}
|
|
95
80
|
*/
|
|
96
81
|
createWorkersKvNamespace(id, scope, props) {
|
|
97
82
|
if (!props)
|
|
98
83
|
throw `Props undefined for ${id}`;
|
|
99
|
-
|
|
84
|
+
return new cloudflare.WorkersKvNamespace(id, {
|
|
100
85
|
...props,
|
|
101
86
|
accountId: props.accountId ?? scope.props.accountId,
|
|
102
87
|
title: scope.isProductionStage() ? props.title : `${props.title}-${scope.props.stage}`,
|
|
103
88
|
});
|
|
104
|
-
createCloudflareTfOutput(`${id}-workersKvNamespaceFriendlyUniqueId`, scope, workersKvNamespace.friendlyUniqueId);
|
|
105
|
-
createCloudflareTfOutput(`${id}-workersKvNamespaceId`, scope, workersKvNamespace.id);
|
|
106
|
-
return workersKvNamespace;
|
|
107
89
|
}
|
|
108
90
|
/**
|
|
109
91
|
* @summary Method to create a new Cloudflare Workers KV
|
|
110
92
|
* @param id scoped id of the resource
|
|
111
93
|
* @param scope scope in which this resource is defined
|
|
112
94
|
* @param props workers kv properties
|
|
113
|
-
* @see [
|
|
95
|
+
* @see [Pulumi Workers KV]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workerskv/}
|
|
114
96
|
*/
|
|
115
97
|
createWorkersKv(id, scope, props) {
|
|
116
98
|
if (!props)
|
|
117
99
|
throw `Props undefined for ${id}`;
|
|
118
|
-
|
|
100
|
+
return new cloudflare.WorkersKv(id, {
|
|
119
101
|
...props,
|
|
120
102
|
accountId: props.accountId ?? scope.props.accountId,
|
|
121
103
|
});
|
|
122
|
-
createCloudflareTfOutput(`${id}-workersKvFriendlyUniqueId`, scope, workersKv.friendlyUniqueId);
|
|
123
|
-
createCloudflareTfOutput(`${id}-workersKvId`, scope, workersKv.id);
|
|
124
|
-
return workersKv;
|
|
125
104
|
}
|
|
126
105
|
/**
|
|
127
106
|
* @summary Method to create a new Cloudflare Worker Cron Trigger
|
|
128
107
|
* @param id scoped id of the resource
|
|
129
108
|
* @param scope scope in which this resource is defined
|
|
130
109
|
* @param props workers cron trigger properties
|
|
131
|
-
* @see [
|
|
110
|
+
* @see [Pulumi Workers Cron Trigger]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/workercrontrigger/}
|
|
132
111
|
*/
|
|
133
112
|
createWorkerCronTrigger(id, scope, props) {
|
|
134
113
|
if (!props)
|
|
135
114
|
throw `Props undefined for ${id}`;
|
|
136
|
-
|
|
115
|
+
return new cloudflare.WorkersCronTrigger(id, {
|
|
137
116
|
...props,
|
|
138
117
|
accountId: props.accountId ?? scope.props.accountId,
|
|
139
118
|
});
|
|
140
|
-
createCloudflareTfOutput(`${id}-workerCronTriggerFriendlyUniqueId`, scope, workerCronTrigger.friendlyUniqueId);
|
|
141
|
-
createCloudflareTfOutput(`${id}-workerCronTriggerId`, scope, workerCronTrigger.id);
|
|
142
|
-
return workerCronTrigger;
|
|
143
119
|
}
|
|
144
120
|
}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { WorkersRouteConfig } from '@cdktf/provider-cloudflare/lib/workers-route/index.js';
|
|
4
|
-
import { WorkersScriptConfig } from '@cdktf/provider-cloudflare/lib/workers-script/index.js';
|
|
5
|
-
import { WorkersKvConfig } from '@cdktf/provider-cloudflare/lib/workers-kv/index.js';
|
|
6
|
-
import { WorkersKvNamespaceConfig } from '@cdktf/provider-cloudflare/lib/workers-kv-namespace/index.js';
|
|
7
|
-
export interface WorkerDomainProps extends WorkersCustomDomainConfig {
|
|
1
|
+
import { WorkersCronTriggerArgs, WorkersCustomDomainArgs, WorkersKvArgs, WorkersKvNamespaceArgs, WorkersRouteArgs, WorkersScriptArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface WorkerDomainProps extends WorkersCustomDomainArgs {
|
|
8
3
|
}
|
|
9
|
-
export interface WorkerRouteProps extends
|
|
4
|
+
export interface WorkerRouteProps extends WorkersRouteArgs {
|
|
10
5
|
}
|
|
11
|
-
export interface WorkerScriptProps extends
|
|
6
|
+
export interface WorkerScriptProps extends WorkersScriptArgs {
|
|
12
7
|
}
|
|
13
|
-
export interface WorkersKvNamespaceProps extends
|
|
8
|
+
export interface WorkersKvNamespaceProps extends WorkersKvNamespaceArgs {
|
|
14
9
|
}
|
|
15
|
-
export interface WorkersKvProps extends
|
|
10
|
+
export interface WorkersKvProps extends WorkersKvArgs {
|
|
16
11
|
}
|
|
17
|
-
export interface WorkerCronTriggerProps extends
|
|
12
|
+
export interface WorkerCronTriggerProps extends WorkersCronTriggerArgs {
|
|
18
13
|
}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import { DataCloudflareZone } from '@cdktf/provider-cloudflare/lib/data-cloudflare-zone/index.js';
|
|
2
|
-
import { ZoneCacheReserve } from '@cdktf/provider-cloudflare/lib/zone-cache-reserve/index.js';
|
|
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';
|
|
10
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
11
|
-
import { ZoneCacheReserveProps, ZoneCacheVariantsProps, ZoneDnssecProps, ZoneHoldProps, ZoneLockdownProps,
|
|
2
|
+
import { GetZoneProps, ZoneCacheReserveProps, ZoneCacheVariantsProps, ZoneDnssecProps, ZoneHoldProps, ZoneLockdownProps, ZoneProps, ZoneSettingProps } from './types.js';
|
|
12
3
|
/**
|
|
13
|
-
* @classdesc Provides operations on Cloudflare Zone
|
|
4
|
+
* @classdesc Provides operations on Cloudflare Zone using Pulumi
|
|
14
5
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
15
6
|
* - If a custom construct extends {@link CommonCloudflareConstruct}, an instance is available within the context.
|
|
16
7
|
* @example
|
|
17
8
|
* ```
|
|
18
|
-
* import { CommonCloudflareConstruct
|
|
9
|
+
* import { CommonCloudflareConstruct } from '@gradientedge/cdk-utils'
|
|
19
10
|
*
|
|
20
11
|
* class CustomConstruct extends CommonCloudflareConstruct {
|
|
21
|
-
* constructor(parent:
|
|
12
|
+
* constructor(parent: pulumi.ComponentResource, id: string, props: CommonCloudflareStackProps) {
|
|
22
13
|
* super(parent, id, props)
|
|
23
14
|
* this.props = props
|
|
24
15
|
* this.zoneManager.createZone('MyZone', this, props)
|
|
@@ -32,64 +23,56 @@ export declare class CloudflareZoneManager {
|
|
|
32
23
|
* @param id scoped id of the resource
|
|
33
24
|
* @param scope scope in which this resource is defined
|
|
34
25
|
* @param props zone properties
|
|
35
|
-
* @see [CDKTF Zone Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zone.typescript.md}
|
|
36
26
|
*/
|
|
37
|
-
createZone(id: string, scope: CommonCloudflareConstruct, props: ZoneProps): Zone;
|
|
38
|
-
resolveZone(id: string, scope: CommonCloudflareConstruct, options?:
|
|
27
|
+
createZone(id: string, scope: CommonCloudflareConstruct, props: ZoneProps): import("@pulumi/cloudflare/zone.js").Zone;
|
|
28
|
+
resolveZone(id: string, scope: CommonCloudflareConstruct, options?: GetZoneProps): import("@pulumi/cloudflare/zone.js").Zone;
|
|
39
29
|
/**
|
|
40
30
|
* @summary Method to create a new zone cache reserve
|
|
41
31
|
* @param id scoped id of the resource
|
|
42
32
|
* @param scope scope in which this resource is defined
|
|
43
33
|
* @param props zone cache reserve properties
|
|
44
|
-
* @see [CDKTF Zone Cache Reserve Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneCacheReserve.typescript.md}
|
|
45
34
|
*/
|
|
46
|
-
createZoneCacheReserve(id: string, scope: CommonCloudflareConstruct, props: ZoneCacheReserveProps): ZoneCacheReserve;
|
|
35
|
+
createZoneCacheReserve(id: string, scope: CommonCloudflareConstruct, props: ZoneCacheReserveProps): import("@pulumi/cloudflare/zoneCacheReserve.js").ZoneCacheReserve;
|
|
47
36
|
/**
|
|
48
37
|
* @summary Method to create a new zone cache variants
|
|
49
38
|
* @param id scoped id of the resource
|
|
50
39
|
* @param scope scope in which this resource is defined
|
|
51
40
|
* @param props zone cache variants properties
|
|
52
|
-
* @see [CDKTF Zone Cache Variants Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneCacheVariants.typescript.md}
|
|
53
41
|
*/
|
|
54
|
-
createZoneCacheVariants(id: string, scope: CommonCloudflareConstruct, props: ZoneCacheVariantsProps): ZoneCacheVariants;
|
|
42
|
+
createZoneCacheVariants(id: string, scope: CommonCloudflareConstruct, props: ZoneCacheVariantsProps): import("@pulumi/cloudflare/zoneCacheVariants.js").ZoneCacheVariants;
|
|
55
43
|
/**
|
|
56
44
|
* @summary Method to create a new zone dnssec
|
|
57
45
|
* @param id scoped id of the resource
|
|
58
46
|
* @param scope scope in which this resource is defined
|
|
59
47
|
* @param props zone dnssec properties
|
|
60
|
-
* @see [CDKTF Zone DNS Security Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneDnssec.typescript.md}
|
|
61
48
|
*/
|
|
62
|
-
createZoneDnssec(id: string, scope: CommonCloudflareConstruct, props: ZoneDnssecProps): ZoneDnssec;
|
|
49
|
+
createZoneDnssec(id: string, scope: CommonCloudflareConstruct, props: ZoneDnssecProps): import("@pulumi/cloudflare/zoneDnssec.js").ZoneDnssec;
|
|
63
50
|
/**
|
|
64
51
|
* @summary Method to create a new zone hold
|
|
65
52
|
* @param id scoped id of the resource
|
|
66
53
|
* @param scope scope in which this resource is defined
|
|
67
54
|
* @param props zone hold properties
|
|
68
|
-
* @see [CDKTF Zone Hold Security Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneHold.typescript.md}
|
|
69
55
|
*/
|
|
70
|
-
createZoneHold(id: string, scope: CommonCloudflareConstruct, props: ZoneHoldProps): ZoneHold;
|
|
56
|
+
createZoneHold(id: string, scope: CommonCloudflareConstruct, props: ZoneHoldProps): import("@pulumi/cloudflare/zoneHold.js").ZoneHold;
|
|
71
57
|
/**
|
|
72
58
|
* @summary Method to create a new zone lockdown
|
|
73
59
|
* @param id scoped id of the resource
|
|
74
60
|
* @param scope scope in which this resource is defined
|
|
75
61
|
* @param props zone lockdown properties
|
|
76
|
-
* @see [CDKTF Zone Lockdown Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneLockdown.typescript.md}
|
|
77
62
|
*/
|
|
78
|
-
createZoneLockdown(id: string, scope: CommonCloudflareConstruct, props: ZoneLockdownProps): ZoneLockdown;
|
|
63
|
+
createZoneLockdown(id: string, scope: CommonCloudflareConstruct, props: ZoneLockdownProps): import("@pulumi/cloudflare/zoneLockdown.js").ZoneLockdown;
|
|
79
64
|
/**
|
|
80
65
|
* @summary Method to create new zone dns settings
|
|
81
66
|
* @param id scoped id of the resource
|
|
82
67
|
* @param scope scope in which this resource is defined
|
|
83
68
|
* @param props zone dns settings properties
|
|
84
|
-
* @see [CDKTF Zone Dns Settings Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/dnsZoneSettings.typescript.md}
|
|
85
69
|
*/
|
|
86
|
-
createZoneDnsSettings(id: string, scope: CommonCloudflareConstruct, props: ZoneSettingProps):
|
|
70
|
+
createZoneDnsSettings(id: string, scope: CommonCloudflareConstruct, props: ZoneSettingProps): import("@pulumi/cloudflare/zoneSetting.js").ZoneSetting;
|
|
87
71
|
/**
|
|
88
72
|
* @summary Method to create a new zone setting
|
|
89
73
|
* @param id scoped id of the resource
|
|
90
74
|
* @param scope scope in which this resource is defined
|
|
91
75
|
* @param props zone setting properties
|
|
92
|
-
* @see [CDKTF Zone Setting Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zoneSetting.typescript.md}
|
|
93
76
|
*/
|
|
94
|
-
createZoneSetting(id: string, scope: CommonCloudflareConstruct, props: ZoneSettingProps): ZoneSetting;
|
|
77
|
+
createZoneSetting(id: string, scope: CommonCloudflareConstruct, props: ZoneSettingProps): import("@pulumi/cloudflare/zoneSetting.js").ZoneSetting;
|
|
95
78
|
}
|