@gradientedge/cdk-utils 9.52.3 → 9.53.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/construct/pages-static-site/main.d.ts +7 -7
- package/dist/src/lib/cloudflare/construct/pages-static-site/main.js +9 -6
- package/dist/src/lib/cloudflare/construct/pages-static-site/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/construct/worker-site/main.d.ts +5 -5
- package/dist/src/lib/cloudflare/construct/worker-site/main.js +8 -9
- package/dist/src/lib/cloudflare/construct/worker-site/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/access/main.d.ts +34 -34
- package/dist/src/lib/cloudflare/services/access/main.js +42 -50
- package/dist/src/lib/cloudflare/services/access/types.d.ts +20 -20
- package/dist/src/lib/cloudflare/services/api-shield/main.js +1 -1
- package/dist/src/lib/cloudflare/services/argo/main.d.ts +13 -4
- package/dist/src/lib/cloudflare/services/argo/main.js +29 -7
- package/dist/src/lib/cloudflare/services/argo/types.d.ts +5 -2
- package/dist/src/lib/cloudflare/services/page/main.js +1 -1
- package/dist/src/lib/cloudflare/services/record/main.d.ts +4 -4
- package/dist/src/lib/cloudflare/services/record/main.js +3 -3
- package/dist/src/lib/cloudflare/services/record/types.d.ts +2 -2
- package/dist/src/lib/cloudflare/services/rule-set/main.js +3 -1
- package/dist/src/lib/cloudflare/services/worker/main.d.ts +12 -12
- package/dist/src/lib/cloudflare/services/worker/main.js +20 -16
- package/dist/src/lib/cloudflare/services/worker/types.d.ts +8 -8
- package/dist/src/lib/cloudflare/services/zone/main.d.ts +15 -6
- package/dist/src/lib/cloudflare/services/zone/main.js +41 -15
- package/dist/src/lib/cloudflare/services/zone/types.d.ts +7 -3
- package/package.json +2 -2
- package/src/lib/cloudflare/construct/pages-static-site/main.ts +20 -13
- package/src/lib/cloudflare/construct/pages-static-site/types.ts +2 -2
- package/src/lib/cloudflare/construct/worker-site/main.ts +12 -19
- package/src/lib/cloudflare/construct/worker-site/types.ts +2 -8
- package/src/lib/cloudflare/services/access/main.ts +73 -72
- package/src/lib/cloudflare/services/access/types.ts +20 -20
- package/src/lib/cloudflare/services/api-shield/main.ts +1 -1
- package/src/lib/cloudflare/services/argo/main.ts +35 -8
- package/src/lib/cloudflare/services/argo/types.ts +4 -2
- package/src/lib/cloudflare/services/page/main.ts +1 -1
- package/src/lib/cloudflare/services/record/main.ts +5 -5
- package/src/lib/cloudflare/services/record/types.ts +2 -2
- package/src/lib/cloudflare/services/rule-set/main.ts +3 -1
- package/src/lib/cloudflare/services/worker/main.ts +20 -16
- package/src/lib/cloudflare/services/worker/types.ts +8 -8
- package/src/lib/cloudflare/services/zone/main.ts +45 -16
- package/src/lib/cloudflare/services/zone/types.ts +6 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataCloudflareZone } from '@cdktf/provider-cloudflare/lib/data-cloudflare-zone';
|
|
2
2
|
import { PagesDomain } from '@cdktf/provider-cloudflare/lib/pages-domain';
|
|
3
|
-
import { PagesProject } from '@cdktf/provider-cloudflare/lib/pages-project';
|
|
4
|
-
import {
|
|
3
|
+
import { PagesProject, PagesProjectDeploymentConfigsPreviewEnvVars, PagesProjectDeploymentConfigsProductionEnvVars } from '@cdktf/provider-cloudflare/lib/pages-project';
|
|
4
|
+
import { DnsRecord } from '@cdktf/provider-cloudflare/lib/dns-record';
|
|
5
5
|
import { Zone } from '@cdktf/provider-cloudflare/lib/zone';
|
|
6
6
|
import { Construct } from 'constructs';
|
|
7
7
|
import { CommonCloudflareConstruct } from '../../common';
|
|
@@ -23,21 +23,21 @@ import { CloudflarePagesStaticSiteProps } from './types';
|
|
|
23
23
|
*/
|
|
24
24
|
export declare class CloudflarePagesStaticSite extends CommonCloudflareConstruct {
|
|
25
25
|
props: CloudflarePagesStaticSiteProps;
|
|
26
|
-
sitePagesCnameRecord:
|
|
26
|
+
sitePagesCnameRecord: DnsRecord;
|
|
27
27
|
sitePagesDomain: PagesDomain;
|
|
28
28
|
sitePagesProject: PagesProject;
|
|
29
29
|
siteZone: DataCloudflareZone | Zone;
|
|
30
30
|
sitePagesEnvironmentVariables: {
|
|
31
|
-
[key: string]:
|
|
31
|
+
[key: string]: PagesProjectDeploymentConfigsProductionEnvVars;
|
|
32
32
|
};
|
|
33
33
|
sitePagesPreviewEnvironmentVariables: {
|
|
34
|
-
[key: string]:
|
|
34
|
+
[key: string]: PagesProjectDeploymentConfigsPreviewEnvVars;
|
|
35
35
|
};
|
|
36
36
|
sitePagesSecrets: {
|
|
37
|
-
[key: string]:
|
|
37
|
+
[key: string]: PagesProjectDeploymentConfigsProductionEnvVars;
|
|
38
38
|
};
|
|
39
39
|
sitePagesPreviewSecrets: {
|
|
40
|
-
[key: string]:
|
|
40
|
+
[key: string]: PagesProjectDeploymentConfigsPreviewEnvVars;
|
|
41
41
|
};
|
|
42
42
|
siteDeploymentDependsOn: any;
|
|
43
43
|
constructor(parent: Construct, id: string, props: CloudflarePagesStaticSiteProps);
|
|
@@ -69,10 +69,10 @@ class CloudflarePagesStaticSite extends common_1.CommonCloudflareConstruct {
|
|
|
69
69
|
...this.props.sitePagesProject,
|
|
70
70
|
deploymentConfigs: {
|
|
71
71
|
preview: {
|
|
72
|
-
|
|
72
|
+
envVars: this.sitePagesPreviewSecrets,
|
|
73
73
|
},
|
|
74
74
|
production: {
|
|
75
|
-
|
|
75
|
+
envVars: this.sitePagesSecrets,
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
};
|
|
@@ -85,10 +85,10 @@ class CloudflarePagesStaticSite extends common_1.CommonCloudflareConstruct {
|
|
|
85
85
|
...this.props.sitePagesProject,
|
|
86
86
|
deploymentConfigs: {
|
|
87
87
|
preview: {
|
|
88
|
-
|
|
88
|
+
envVars: this.sitePagesPreviewEnvironmentVariables,
|
|
89
89
|
},
|
|
90
90
|
production: {
|
|
91
|
-
|
|
91
|
+
envVars: this.sitePagesEnvironmentVariables,
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
94
|
};
|
|
@@ -146,7 +146,7 @@ class CloudflarePagesStaticSite extends common_1.CommonCloudflareConstruct {
|
|
|
146
146
|
createDomain() {
|
|
147
147
|
this.sitePagesDomain = this.pageManager.createPagesDomain(`${this.id}-site-domain`, this, {
|
|
148
148
|
accountId: this.props.accountId,
|
|
149
|
-
|
|
149
|
+
name: `${this.props.siteSubDomain}.${this.props.domainName}`,
|
|
150
150
|
projectName: this.sitePagesProject.name,
|
|
151
151
|
});
|
|
152
152
|
}
|
|
@@ -157,7 +157,10 @@ class CloudflarePagesStaticSite extends common_1.CommonCloudflareConstruct {
|
|
|
157
157
|
this.sitePagesCnameRecord = this.recordManager.createRecord(`${this.id}-site-record`, this, {
|
|
158
158
|
...this.props.siteCnameRecord,
|
|
159
159
|
name: this.props.siteSubDomain,
|
|
160
|
-
|
|
160
|
+
data: {
|
|
161
|
+
...this.props.siteCnameRecord.data,
|
|
162
|
+
value: `${this.sitePagesProject.name}.pages.dev`,
|
|
163
|
+
},
|
|
161
164
|
});
|
|
162
165
|
}
|
|
163
166
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CommonCloudflareStackProps } from '../../common';
|
|
2
|
-
import { PagesProjectProps,
|
|
2
|
+
import { PagesProjectProps, DnsRecordProps, ZoneProps } from '../../services';
|
|
3
3
|
export interface CloudflarePagesStaticSiteProps extends CommonCloudflareStackProps {
|
|
4
4
|
siteAssetDir: string;
|
|
5
5
|
siteBranch?: string;
|
|
6
|
-
siteCnameRecord:
|
|
6
|
+
siteCnameRecord: DnsRecordProps;
|
|
7
7
|
siteDeployMessage: string;
|
|
8
8
|
sitePagesProject: PagesProjectProps;
|
|
9
9
|
siteSubDomain: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataCloudflareZone } from '@cdktf/provider-cloudflare/lib/data-cloudflare-zone';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkersScript, WorkersScriptBindings } from '@cdktf/provider-cloudflare/lib/workers-script';
|
|
3
3
|
import { Zone } from '@cdktf/provider-cloudflare/lib/zone';
|
|
4
4
|
import { Construct } from 'constructs';
|
|
5
5
|
import { CommonCloudflareConstruct } from '../../common';
|
|
@@ -22,9 +22,9 @@ import { CloudflareWorkerSiteProps } from './types';
|
|
|
22
22
|
export declare class CloudflareWorkerSite extends CommonCloudflareConstruct {
|
|
23
23
|
props: CloudflareWorkerSiteProps;
|
|
24
24
|
siteZone: DataCloudflareZone | Zone;
|
|
25
|
-
siteWorkerScript:
|
|
26
|
-
workerPlainTextBindingEnvironmentVariables:
|
|
27
|
-
workerSecretTextBindingEnvironmentVariables:
|
|
25
|
+
siteWorkerScript: WorkersScript;
|
|
26
|
+
workerPlainTextBindingEnvironmentVariables: WorkersScriptBindings[];
|
|
27
|
+
workerSecretTextBindingEnvironmentVariables: WorkersScriptBindings[];
|
|
28
28
|
constructor(parent: Construct, id: string, props: CloudflareWorkerSiteProps);
|
|
29
29
|
/**
|
|
30
30
|
* @summary Initialise and provision resources
|
|
@@ -69,5 +69,5 @@ export declare class CloudflareWorkerSite extends CommonCloudflareConstruct {
|
|
|
69
69
|
/**
|
|
70
70
|
* @summary Create zone settings override
|
|
71
71
|
*/
|
|
72
|
-
protected
|
|
72
|
+
protected createZoneSetting(): void;
|
|
73
73
|
}
|
|
@@ -26,8 +26,8 @@ class CloudflareWorkerSite extends common_1.CommonCloudflareConstruct {
|
|
|
26
26
|
/* worker site resources */
|
|
27
27
|
siteZone;
|
|
28
28
|
siteWorkerScript;
|
|
29
|
-
workerPlainTextBindingEnvironmentVariables;
|
|
30
|
-
workerSecretTextBindingEnvironmentVariables;
|
|
29
|
+
workerPlainTextBindingEnvironmentVariables = [];
|
|
30
|
+
workerSecretTextBindingEnvironmentVariables = [];
|
|
31
31
|
constructor(parent, id, props) {
|
|
32
32
|
super(parent, id, props);
|
|
33
33
|
this.props = props;
|
|
@@ -42,7 +42,7 @@ class CloudflareWorkerSite extends common_1.CommonCloudflareConstruct {
|
|
|
42
42
|
this.createWorker();
|
|
43
43
|
this.createWorkerDomain();
|
|
44
44
|
this.createRuleset();
|
|
45
|
-
this.
|
|
45
|
+
this.createZoneSetting();
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* @summary Resolve the zone to use for the worker site
|
|
@@ -61,8 +61,7 @@ class CloudflareWorkerSite extends common_1.CommonCloudflareConstruct {
|
|
|
61
61
|
resolveEnvironmentVariables() {
|
|
62
62
|
this.props.siteWorkerScript = {
|
|
63
63
|
...this.props.siteWorkerScript,
|
|
64
|
-
|
|
65
|
-
secretTextBinding: this.workerSecretTextBindingEnvironmentVariables,
|
|
64
|
+
bindings: this.workerPlainTextBindingEnvironmentVariables.concat(this.workerSecretTextBindingEnvironmentVariables),
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
/**
|
|
@@ -85,7 +84,7 @@ class CloudflareWorkerSite extends common_1.CommonCloudflareConstruct {
|
|
|
85
84
|
this.workerManager.createWorkerDomain(`${this.id}-worker-domain`, this, {
|
|
86
85
|
...this.props.siteWorkerDomain,
|
|
87
86
|
hostname: `${this.props.siteSubDomain}.${this.props.domainName}`,
|
|
88
|
-
service: this.siteWorkerScript.
|
|
87
|
+
service: this.siteWorkerScript.scriptName,
|
|
89
88
|
});
|
|
90
89
|
}
|
|
91
90
|
/**
|
|
@@ -144,10 +143,10 @@ class CloudflareWorkerSite extends common_1.CommonCloudflareConstruct {
|
|
|
144
143
|
/**
|
|
145
144
|
* @summary Create zone settings override
|
|
146
145
|
*/
|
|
147
|
-
|
|
148
|
-
if (!this.props.
|
|
146
|
+
createZoneSetting() {
|
|
147
|
+
if (!this.props.siteZoneSetting)
|
|
149
148
|
return;
|
|
150
|
-
this.zoneManager.
|
|
149
|
+
this.zoneManager.createZoneSetting(`${this.id}-zone-setting`, this, this.props.siteZoneSetting);
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
exports.CloudflareWorkerSite = CloudflareWorkerSite;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonCloudflareStackProps } from '../../common';
|
|
2
|
-
import { WorkerDomainProps, WorkerScriptProps, RulesetProps, ZoneProps,
|
|
2
|
+
import { WorkerDomainProps, WorkerScriptProps, RulesetProps, ZoneProps, ZoneSettingProps } from '../../services';
|
|
3
3
|
export interface CloudflareWorkerSiteProps extends CommonCloudflareStackProps {
|
|
4
4
|
siteSubDomain: string;
|
|
5
5
|
siteZone: ZoneProps;
|
|
@@ -7,5 +7,5 @@ export interface CloudflareWorkerSiteProps extends CommonCloudflareStackProps {
|
|
|
7
7
|
siteWorkerDomain: WorkerDomainProps;
|
|
8
8
|
siteWorkerAsset: string;
|
|
9
9
|
siteRuleSet: RulesetProps;
|
|
10
|
-
|
|
10
|
+
siteZoneSetting: ZoneSettingProps;
|
|
11
11
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { AccessOrganization } from '@cdktf/provider-cloudflare/lib/access-organization';
|
|
10
|
-
import { AccessPolicy } from '@cdktf/provider-cloudflare/lib/access-policy';
|
|
1
|
+
import { ZeroTrustAccessApplication } from '@cdktf/provider-cloudflare/lib/zero-trust-access-application';
|
|
2
|
+
import { ZeroTrustAccessShortLivedCertificate } from '@cdktf/provider-cloudflare/lib/zero-trust-access-short-lived-certificate';
|
|
3
|
+
import { ZeroTrustAccessCustomPage } from '@cdktf/provider-cloudflare/lib/zero-trust-access-custom-page';
|
|
4
|
+
import { ZeroTrustAccessGroup } from '@cdktf/provider-cloudflare/lib/zero-trust-access-group';
|
|
5
|
+
import { ZeroTrustAccessIdentityProvider } from '@cdktf/provider-cloudflare/lib/zero-trust-access-identity-provider';
|
|
6
|
+
import { ZeroTrustAccessMtlsCertificate } from '@cdktf/provider-cloudflare/lib/zero-trust-access-mtls-certificate';
|
|
7
|
+
import { ZeroTrustOrganization } from '@cdktf/provider-cloudflare/lib/zero-trust-organization';
|
|
8
|
+
import { ZeroTrustAccessPolicy } from '@cdktf/provider-cloudflare/lib/zero-trust-access-policy';
|
|
11
9
|
import { AccessRule } from '@cdktf/provider-cloudflare/lib/access-rule';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import { ZeroTrustAccessServiceToken } from '@cdktf/provider-cloudflare/lib/zero-trust-access-service-token';
|
|
11
|
+
import { ZeroTrustAccessTag } from '@cdktf/provider-cloudflare/lib/zero-trust-access-tag';
|
|
12
|
+
import { CommonCloudflareConstruct } from '../../common';
|
|
13
|
+
import { ZeroTrustAccessApplicationProps, ZeroTrustAccessShortLivedCertificateProps, ZeroTrustAccessCustomPageProps, ZeroTrustAccessGroupProps, ZeroTrustAccessIdentityProviderProps, ZeroTrustAccessMtlsCertificateProps, ZeroTrustOrganizationProps, ZeroTrustAccessPolicyProps, AccessRuleProps, ZeroTrustAccessServiceTokenProps, ZeroTrustAccessTagProps } from './types';
|
|
14
14
|
/**
|
|
15
15
|
* @classdesc Provides operations on Cloudflare Access
|
|
16
16
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -34,65 +34,65 @@ export declare class CloudflareAccessManager {
|
|
|
34
34
|
* @param id scoped id of the resource
|
|
35
35
|
* @param scope scope in which this resource is defined
|
|
36
36
|
* @param props access application properties
|
|
37
|
-
* @see [CDKTF Access Application Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
37
|
+
* @see [CDKTF Access Application Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessApplication.typescript.md}
|
|
38
38
|
*/
|
|
39
|
-
createAccessApplication(id: string, scope: CommonCloudflareConstruct, props:
|
|
39
|
+
createAccessApplication(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessApplicationProps): ZeroTrustAccessApplication;
|
|
40
40
|
/**
|
|
41
|
-
* @summary Method to create a new Cloudflare Application Access
|
|
41
|
+
* @summary Method to create a new Cloudflare Application Access Short Lived Certificate
|
|
42
42
|
* @param id scoped id of the resource
|
|
43
43
|
* @param scope scope in which this resource is defined
|
|
44
|
-
* @param props access
|
|
45
|
-
* @see [CDKTF Access
|
|
44
|
+
* @param props access short lived certificate properties
|
|
45
|
+
* @see [CDKTF Access Short Lived Certificate Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessShortLivedCertificate.typescript.md}
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
createAccessShortLivedCertificate(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessShortLivedCertificateProps): ZeroTrustAccessShortLivedCertificate;
|
|
48
48
|
/**
|
|
49
49
|
* @summary Method to create a new Cloudflare Application Access Custom Page
|
|
50
50
|
* @param id scoped id of the resource
|
|
51
51
|
* @param scope scope in which this resource is defined
|
|
52
52
|
* @param props access custom page properties
|
|
53
|
-
* @see [CDKTF Access Custom Page Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
53
|
+
* @see [CDKTF Access Custom Page Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessCustomPage.typescript.md}
|
|
54
54
|
*/
|
|
55
|
-
createAccessCustomPage(id: string, scope: CommonCloudflareConstruct, props:
|
|
55
|
+
createAccessCustomPage(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessCustomPageProps): ZeroTrustAccessCustomPage;
|
|
56
56
|
/**
|
|
57
57
|
* @summary Method to create a new Cloudflare Application Access Group
|
|
58
58
|
* @param id scoped id of the resource
|
|
59
59
|
* @param scope scope in which this resource is defined
|
|
60
60
|
* @param props access group properties
|
|
61
|
-
* @see [CDKTF Access Group Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
61
|
+
* @see [CDKTF Access Group Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessGroup.typescript.md}
|
|
62
62
|
*/
|
|
63
|
-
createAccessGroup(id: string, scope: CommonCloudflareConstruct, props:
|
|
63
|
+
createAccessGroup(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessGroupProps): ZeroTrustAccessGroup;
|
|
64
64
|
/**
|
|
65
65
|
* @summary Method to create a new Cloudflare Application Access Identity Provider
|
|
66
66
|
* @param id scoped id of the resource
|
|
67
67
|
* @param scope scope in which this resource is defined
|
|
68
68
|
* @param props access identity provider properties
|
|
69
|
-
* @see [CDKTF Access Identity Provider Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
69
|
+
* @see [CDKTF Access Identity Provider Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessIdentityProvider.typescript.md}
|
|
70
70
|
*/
|
|
71
|
-
createAccessIdentityProvider(id: string, scope: CommonCloudflareConstruct, props:
|
|
71
|
+
createAccessIdentityProvider(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessIdentityProviderProps): ZeroTrustAccessIdentityProvider;
|
|
72
72
|
/**
|
|
73
73
|
* @summary Method to create a new Cloudflare Application Access Mutual Tls Certificate
|
|
74
74
|
* @param id scoped id of the resource
|
|
75
75
|
* @param scope scope in which this resource is defined
|
|
76
76
|
* @param props access mutual tls certificate properties
|
|
77
|
-
* @see [CDKTF Access Mutual Tls Certificate Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
77
|
+
* @see [CDKTF Access Mutual Tls Certificate Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessMtlsCertificate.typescript.md}
|
|
78
78
|
*/
|
|
79
|
-
createAccessMutualTlsCertificate(id: string, scope: CommonCloudflareConstruct, props:
|
|
79
|
+
createAccessMutualTlsCertificate(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessMtlsCertificateProps): ZeroTrustAccessMtlsCertificate;
|
|
80
80
|
/**
|
|
81
81
|
* @summary Method to create a new Cloudflare Application Access Organisation
|
|
82
82
|
* @param id scoped id of the resource
|
|
83
83
|
* @param scope scope in which this resource is defined
|
|
84
84
|
* @param props access organisation properties
|
|
85
|
-
* @see [CDKTF Access Organisation Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
85
|
+
* @see [CDKTF Access Organisation Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessOrganization.typescript.md}
|
|
86
86
|
*/
|
|
87
|
-
createAccessOrganization(id: string, scope: CommonCloudflareConstruct, props:
|
|
87
|
+
createAccessOrganization(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustOrganizationProps): ZeroTrustOrganization;
|
|
88
88
|
/**
|
|
89
89
|
* @summary Method to create a new Cloudflare Application Access Policy
|
|
90
90
|
* @param id scoped id of the resource
|
|
91
91
|
* @param scope scope in which this resource is defined
|
|
92
92
|
* @param props access policy properties
|
|
93
|
-
* @see [CDKTF Access Policy Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
93
|
+
* @see [CDKTF Access Policy Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessPolicy.typescript.md}
|
|
94
94
|
*/
|
|
95
|
-
createAccessPolicy(id: string, scope: CommonCloudflareConstruct, props:
|
|
95
|
+
createAccessPolicy(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessPolicyProps): ZeroTrustAccessPolicy;
|
|
96
96
|
/**
|
|
97
97
|
* @summary Method to create a new Cloudflare Application Access Rule
|
|
98
98
|
* @param id scoped id of the resource
|
|
@@ -106,15 +106,15 @@ export declare class CloudflareAccessManager {
|
|
|
106
106
|
* @param id scoped id of the resource
|
|
107
107
|
* @param scope scope in which this resource is defined
|
|
108
108
|
* @param props access service token properties
|
|
109
|
-
* @see [CDKTF Access Service Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
109
|
+
* @see [CDKTF Access Service Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessServiceToken.typescript.md}
|
|
110
110
|
*/
|
|
111
|
-
createAccessServiceToken(id: string, scope: CommonCloudflareConstruct, props:
|
|
111
|
+
createAccessServiceToken(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessServiceTokenProps): ZeroTrustAccessServiceToken;
|
|
112
112
|
/**
|
|
113
113
|
* @summary Method to create a new Cloudflare Application Access Tag
|
|
114
114
|
* @param id scoped id of the resource
|
|
115
115
|
* @param scope scope in which this resource is defined
|
|
116
116
|
* @param props access tag properties
|
|
117
|
-
* @see [CDKTF Access Tag Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
117
|
+
* @see [CDKTF Access Tag Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessTag.typescript.md}
|
|
118
118
|
*/
|
|
119
|
-
createAccessTag(id: string, scope: CommonCloudflareConstruct, props:
|
|
119
|
+
createAccessTag(id: string, scope: CommonCloudflareConstruct, props: ZeroTrustAccessTagProps): ZeroTrustAccessTag;
|
|
120
120
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CloudflareAccessManager = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const access_policy_1 = require("@cdktf/provider-cloudflare/lib/access-policy");
|
|
4
|
+
const zero_trust_access_application_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-application");
|
|
5
|
+
const zero_trust_access_short_lived_certificate_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-short-lived-certificate");
|
|
6
|
+
const zero_trust_access_custom_page_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-custom-page");
|
|
7
|
+
const zero_trust_access_group_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-group");
|
|
8
|
+
const zero_trust_access_identity_provider_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-identity-provider");
|
|
9
|
+
const zero_trust_access_mtls_certificate_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-mtls-certificate");
|
|
10
|
+
const zero_trust_organization_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-organization");
|
|
11
|
+
const zero_trust_access_policy_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-policy");
|
|
13
12
|
const access_rule_1 = require("@cdktf/provider-cloudflare/lib/access-rule");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
13
|
+
const zero_trust_access_service_token_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-service-token");
|
|
14
|
+
const zero_trust_access_tag_1 = require("@cdktf/provider-cloudflare/lib/zero-trust-access-tag");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
16
|
/**
|
|
17
17
|
* @classdesc Provides operations on Cloudflare Access
|
|
18
18
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -36,7 +36,7 @@ class CloudflareAccessManager {
|
|
|
36
36
|
* @param id scoped id of the resource
|
|
37
37
|
* @param scope scope in which this resource is defined
|
|
38
38
|
* @param props access application properties
|
|
39
|
-
* @see [CDKTF Access Application Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
39
|
+
* @see [CDKTF Access Application Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessApplication.typescript.md}
|
|
40
40
|
*/
|
|
41
41
|
createAccessApplication(id, scope, props) {
|
|
42
42
|
if (!props)
|
|
@@ -44,7 +44,7 @@ class CloudflareAccessManager {
|
|
|
44
44
|
const zoneId = props.zoneId
|
|
45
45
|
? props.zoneId
|
|
46
46
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
47
|
-
const accessApplication = new
|
|
47
|
+
const accessApplication = new zero_trust_access_application_1.ZeroTrustAccessApplication(scope, `${id}`, {
|
|
48
48
|
...props,
|
|
49
49
|
domain: `${props.domain}-${scope.props.domainName}`,
|
|
50
50
|
name: `${props.name}-${scope.props.stage}`,
|
|
@@ -55,43 +55,40 @@ class CloudflareAccessManager {
|
|
|
55
55
|
return accessApplication;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* @summary Method to create a new Cloudflare Application Access
|
|
58
|
+
* @summary Method to create a new Cloudflare Application Access Short Lived Certificate
|
|
59
59
|
* @param id scoped id of the resource
|
|
60
60
|
* @param scope scope in which this resource is defined
|
|
61
|
-
* @param props access
|
|
62
|
-
* @see [CDKTF Access
|
|
61
|
+
* @param props access short lived certificate properties
|
|
62
|
+
* @see [CDKTF Access Short Lived Certificate Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessShortLivedCertificate.typescript.md}
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
createAccessShortLivedCertificate(id, scope, props) {
|
|
65
65
|
if (!props)
|
|
66
66
|
throw `Props undefined for ${id}`;
|
|
67
67
|
const zoneId = props.zoneId
|
|
68
68
|
? props.zoneId
|
|
69
69
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
70
|
-
const
|
|
70
|
+
const accessShortLivedCertificate = new zero_trust_access_short_lived_certificate_1.ZeroTrustAccessShortLivedCertificate(scope, `${id}`, {
|
|
71
71
|
...props,
|
|
72
72
|
zoneId,
|
|
73
73
|
});
|
|
74
|
-
(0, utils_1.createCloudflareTfOutput)(`${id}-
|
|
75
|
-
(0, utils_1.createCloudflareTfOutput)(`${id}-
|
|
76
|
-
return
|
|
74
|
+
(0, utils_1.createCloudflareTfOutput)(`${id}-accessShortLivedCertificateFriendlyUniqueId`, scope, accessShortLivedCertificate.friendlyUniqueId);
|
|
75
|
+
(0, utils_1.createCloudflareTfOutput)(`${id}-accessShortLivedCertificateId`, scope, accessShortLivedCertificate.id);
|
|
76
|
+
return accessShortLivedCertificate;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* @summary Method to create a new Cloudflare Application Access Custom Page
|
|
80
80
|
* @param id scoped id of the resource
|
|
81
81
|
* @param scope scope in which this resource is defined
|
|
82
82
|
* @param props access custom page properties
|
|
83
|
-
* @see [CDKTF Access Custom Page Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
83
|
+
* @see [CDKTF Access Custom Page Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessCustomPage.typescript.md}
|
|
84
84
|
*/
|
|
85
85
|
createAccessCustomPage(id, scope, props) {
|
|
86
86
|
if (!props)
|
|
87
87
|
throw `Props undefined for ${id}`;
|
|
88
|
-
const
|
|
89
|
-
? props.zoneId
|
|
90
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
91
|
-
const accessCustomPage = new access_custom_page_1.AccessCustomPage(scope, `${id}`, {
|
|
88
|
+
const accessCustomPage = new zero_trust_access_custom_page_1.ZeroTrustAccessCustomPage(scope, `${id}`, {
|
|
92
89
|
...props,
|
|
90
|
+
accountId: props.accountId ?? scope.props.accountId,
|
|
93
91
|
name: `${props.name}-${scope.props.stage}`,
|
|
94
|
-
zoneId,
|
|
95
92
|
});
|
|
96
93
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessCustomPageFriendlyUniqueId`, scope, accessCustomPage.friendlyUniqueId);
|
|
97
94
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessCustomPageId`, scope, accessCustomPage.id);
|
|
@@ -102,7 +99,7 @@ class CloudflareAccessManager {
|
|
|
102
99
|
* @param id scoped id of the resource
|
|
103
100
|
* @param scope scope in which this resource is defined
|
|
104
101
|
* @param props access group properties
|
|
105
|
-
* @see [CDKTF Access Group Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
102
|
+
* @see [CDKTF Access Group Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessGroup.typescript.md}
|
|
106
103
|
*/
|
|
107
104
|
createAccessGroup(id, scope, props) {
|
|
108
105
|
if (!props)
|
|
@@ -110,7 +107,7 @@ class CloudflareAccessManager {
|
|
|
110
107
|
const zoneId = props.zoneId
|
|
111
108
|
? props.zoneId
|
|
112
109
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
113
|
-
const accessGroup = new
|
|
110
|
+
const accessGroup = new zero_trust_access_group_1.ZeroTrustAccessGroup(scope, `${id}`, {
|
|
114
111
|
...props,
|
|
115
112
|
name: `${props.name}-${scope.props.stage}`,
|
|
116
113
|
zoneId,
|
|
@@ -124,7 +121,7 @@ class CloudflareAccessManager {
|
|
|
124
121
|
* @param id scoped id of the resource
|
|
125
122
|
* @param scope scope in which this resource is defined
|
|
126
123
|
* @param props access identity provider properties
|
|
127
|
-
* @see [CDKTF Access Identity Provider Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
124
|
+
* @see [CDKTF Access Identity Provider Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessIdentityProvider.typescript.md}
|
|
128
125
|
*/
|
|
129
126
|
createAccessIdentityProvider(id, scope, props) {
|
|
130
127
|
if (!props)
|
|
@@ -132,7 +129,7 @@ class CloudflareAccessManager {
|
|
|
132
129
|
const zoneId = props.zoneId
|
|
133
130
|
? props.zoneId
|
|
134
131
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
135
|
-
const accessIdentityProvider = new
|
|
132
|
+
const accessIdentityProvider = new zero_trust_access_identity_provider_1.ZeroTrustAccessIdentityProvider(scope, `${id}`, {
|
|
136
133
|
...props,
|
|
137
134
|
name: `${props.name}-${scope.props.stage}`,
|
|
138
135
|
zoneId,
|
|
@@ -146,7 +143,7 @@ class CloudflareAccessManager {
|
|
|
146
143
|
* @param id scoped id of the resource
|
|
147
144
|
* @param scope scope in which this resource is defined
|
|
148
145
|
* @param props access mutual tls certificate properties
|
|
149
|
-
* @see [CDKTF Access Mutual Tls Certificate Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
146
|
+
* @see [CDKTF Access Mutual Tls Certificate Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessMtlsCertificate.typescript.md}
|
|
150
147
|
*/
|
|
151
148
|
createAccessMutualTlsCertificate(id, scope, props) {
|
|
152
149
|
if (!props)
|
|
@@ -154,7 +151,7 @@ class CloudflareAccessManager {
|
|
|
154
151
|
const zoneId = props.zoneId
|
|
155
152
|
? props.zoneId
|
|
156
153
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
157
|
-
const accessMutualTlsCertificate = new
|
|
154
|
+
const accessMutualTlsCertificate = new zero_trust_access_mtls_certificate_1.ZeroTrustAccessMtlsCertificate(scope, `${id}`, {
|
|
158
155
|
...props,
|
|
159
156
|
name: `${props.name}-${scope.props.stage}`,
|
|
160
157
|
zoneId,
|
|
@@ -168,7 +165,7 @@ class CloudflareAccessManager {
|
|
|
168
165
|
* @param id scoped id of the resource
|
|
169
166
|
* @param scope scope in which this resource is defined
|
|
170
167
|
* @param props access organisation properties
|
|
171
|
-
* @see [CDKTF Access Organisation Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
168
|
+
* @see [CDKTF Access Organisation Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessOrganization.typescript.md}
|
|
172
169
|
*/
|
|
173
170
|
createAccessOrganization(id, scope, props) {
|
|
174
171
|
if (!props)
|
|
@@ -176,13 +173,12 @@ class CloudflareAccessManager {
|
|
|
176
173
|
const zoneId = props.zoneId
|
|
177
174
|
? props.zoneId
|
|
178
175
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
179
|
-
const accessOrganization = new
|
|
176
|
+
const accessOrganization = new zero_trust_organization_1.ZeroTrustOrganization(scope, `${id}`, {
|
|
180
177
|
...props,
|
|
181
178
|
name: `${props.name}-${scope.props.stage}`,
|
|
182
179
|
zoneId,
|
|
183
180
|
});
|
|
184
181
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessOrganizationFriendlyUniqueId`, scope, accessOrganization.friendlyUniqueId);
|
|
185
|
-
(0, utils_1.createCloudflareTfOutput)(`${id}-accessOrganizationId`, scope, accessOrganization.id);
|
|
186
182
|
return accessOrganization;
|
|
187
183
|
}
|
|
188
184
|
/**
|
|
@@ -190,18 +186,15 @@ class CloudflareAccessManager {
|
|
|
190
186
|
* @param id scoped id of the resource
|
|
191
187
|
* @param scope scope in which this resource is defined
|
|
192
188
|
* @param props access policy properties
|
|
193
|
-
* @see [CDKTF Access Policy Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
189
|
+
* @see [CDKTF Access Policy Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessPolicy.typescript.md}
|
|
194
190
|
*/
|
|
195
191
|
createAccessPolicy(id, scope, props) {
|
|
196
192
|
if (!props)
|
|
197
193
|
throw `Props undefined for ${id}`;
|
|
198
|
-
const
|
|
199
|
-
? props.zoneId
|
|
200
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
201
|
-
const accessPolicy = new access_policy_1.AccessPolicy(scope, `${id}`, {
|
|
194
|
+
const accessPolicy = new zero_trust_access_policy_1.ZeroTrustAccessPolicy(scope, `${id}`, {
|
|
202
195
|
...props,
|
|
203
196
|
name: `${props.name}-${scope.props.stage}`,
|
|
204
|
-
|
|
197
|
+
accountId: props.accountId ?? scope.props.accountId,
|
|
205
198
|
});
|
|
206
199
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessPolicyFriendlyUniqueId`, scope, accessPolicy.friendlyUniqueId);
|
|
207
200
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessPolicyId`, scope, accessPolicy.id);
|
|
@@ -223,6 +216,7 @@ class CloudflareAccessManager {
|
|
|
223
216
|
const accessRule = new access_rule_1.AccessRule(scope, `${id}`, {
|
|
224
217
|
...props,
|
|
225
218
|
zoneId,
|
|
219
|
+
accountId: props.accountId ?? scope.props.accountId,
|
|
226
220
|
});
|
|
227
221
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessRuleFriendlyUniqueId`, scope, accessRule.friendlyUniqueId);
|
|
228
222
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessRuleId`, scope, accessRule.id);
|
|
@@ -233,7 +227,7 @@ class CloudflareAccessManager {
|
|
|
233
227
|
* @param id scoped id of the resource
|
|
234
228
|
* @param scope scope in which this resource is defined
|
|
235
229
|
* @param props access service token properties
|
|
236
|
-
* @see [CDKTF Access Service Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
230
|
+
* @see [CDKTF Access Service Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessServiceToken.typescript.md}
|
|
237
231
|
*/
|
|
238
232
|
createAccessServiceToken(id, scope, props) {
|
|
239
233
|
if (!props)
|
|
@@ -241,9 +235,10 @@ class CloudflareAccessManager {
|
|
|
241
235
|
const zoneId = props.zoneId
|
|
242
236
|
? props.zoneId
|
|
243
237
|
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
244
|
-
const accessServiceToken = new
|
|
238
|
+
const accessServiceToken = new zero_trust_access_service_token_1.ZeroTrustAccessServiceToken(scope, `${id}`, {
|
|
245
239
|
...props,
|
|
246
240
|
name: `${props.name}-${scope.props.stage}`,
|
|
241
|
+
accountId: props.accountId ?? scope.props.accountId,
|
|
247
242
|
zoneId,
|
|
248
243
|
});
|
|
249
244
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessServiceTokenFriendlyUniqueId`, scope, accessServiceToken.friendlyUniqueId);
|
|
@@ -255,18 +250,15 @@ class CloudflareAccessManager {
|
|
|
255
250
|
* @param id scoped id of the resource
|
|
256
251
|
* @param scope scope in which this resource is defined
|
|
257
252
|
* @param props access tag properties
|
|
258
|
-
* @see [CDKTF Access Tag Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/
|
|
253
|
+
* @see [CDKTF Access Tag Token Module]{@link https://github.com/cdktf/cdktf-provider-cloudflare/blob/main/docs/zeroTrustAccessTag.typescript.md}
|
|
259
254
|
*/
|
|
260
255
|
createAccessTag(id, scope, props) {
|
|
261
256
|
if (!props)
|
|
262
257
|
throw `Props undefined for ${id}`;
|
|
263
|
-
const
|
|
264
|
-
? props.zoneId
|
|
265
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.id;
|
|
266
|
-
const accessTag = new access_tag_1.AccessTag(scope, `${id}`, {
|
|
258
|
+
const accessTag = new zero_trust_access_tag_1.ZeroTrustAccessTag(scope, `${id}`, {
|
|
267
259
|
...props,
|
|
268
260
|
name: `${props.name}-${scope.props.stage}`,
|
|
269
|
-
|
|
261
|
+
accountId: props.accountId ?? scope.props.accountId,
|
|
270
262
|
});
|
|
271
263
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessTagFriendlyUniqueId`, scope, accessTag.friendlyUniqueId);
|
|
272
264
|
(0, utils_1.createCloudflareTfOutput)(`${id}-accessTagId`, scope, accessTag.id);
|