@gradientedge/cdk-utils 9.52.2 → 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/azure/services/storage/main.d.ts +26 -0
- package/dist/src/lib/azure/services/storage/main.js +43 -0
- package/dist/src/lib/azure/services/storage/types.d.ts +5 -0
- 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/azure/services/storage/main.ts +56 -0
- package/src/lib/azure/services/storage/types.ts +7 -1
- 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
|
@@ -3,6 +3,7 @@ import { StorageBlob } from '@cdktf/provider-azurerm/lib/storage-blob';
|
|
|
3
3
|
import { StorageContainer } from '@cdktf/provider-azurerm/lib/storage-container';
|
|
4
4
|
import { CommonAzureConstruct } from '../../common';
|
|
5
5
|
import { StorageAccountProps, StorageBlobProps, StorageContainerProps } from './types';
|
|
6
|
+
import { DataAzurermStorageAccountBlobContainerSas } from '@cdktf/provider-azurerm/lib/data-azurerm-storage-account-blob-container-sas';
|
|
6
7
|
/**
|
|
7
8
|
* @classdesc Provides operations on Azure Storage
|
|
8
9
|
* - A new instance of this class is injected into {@link CommonAzureConstruct} constructor.
|
|
@@ -45,4 +46,29 @@ export declare class AzureStorageManager {
|
|
|
45
46
|
* @see [CDKTF Storage Blob Module]{@link https://github.com/cdktf/cdktf-provider-azurerm/blob/main/docs/storageBlob.typescript.md}
|
|
46
47
|
*/
|
|
47
48
|
createStorageBlob(id: string, scope: CommonAzureConstruct, props: StorageBlobProps): StorageBlob;
|
|
49
|
+
/**
|
|
50
|
+
* @summary Generates a container-level SAS token for an existing Azure Storage container.
|
|
51
|
+
*
|
|
52
|
+
* @description
|
|
53
|
+
* This method creates a `DataAzurermStorageAccountBlobContainerSas` resource, allowing secure access
|
|
54
|
+
* to a container via a generated Shared Access Signature (SAS) token.
|
|
55
|
+
*
|
|
56
|
+
* @param id - Unique scoped identifier for the SAS token resource
|
|
57
|
+
* @param scope - CDKTF construct scope in which the resource will be created
|
|
58
|
+
* @param props - Container details and SAS options:
|
|
59
|
+
* - storageAccountName: The name of the existing Azure Storage Account
|
|
60
|
+
* - storageContainerName: The name of the container within the storage account
|
|
61
|
+
* - resourceGroupName: The name of the resource group containing the storage account
|
|
62
|
+
* - sasExpiry: Optional expiry date in the format 'YYYY-MM-DD'. Defaults to 7 days from current date if not provided.
|
|
63
|
+
*
|
|
64
|
+
* @returns A `DataAzurermStorageAccountBlobContainerSas` instance with the generated SAS token
|
|
65
|
+
*
|
|
66
|
+
* @see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account_blob_container_sas
|
|
67
|
+
*/
|
|
68
|
+
generateContainerSasToken(id: string, scope: CommonAzureConstruct, props: {
|
|
69
|
+
storageAccountName: string;
|
|
70
|
+
storageContainerName: string;
|
|
71
|
+
resourceGroupName: string;
|
|
72
|
+
sasExpiry?: string;
|
|
73
|
+
}): DataAzurermStorageAccountBlobContainerSas;
|
|
48
74
|
}
|
|
@@ -8,6 +8,7 @@ const storage_account_1 = require("@cdktf/provider-azurerm/lib/storage-account")
|
|
|
8
8
|
const storage_blob_1 = require("@cdktf/provider-azurerm/lib/storage-blob");
|
|
9
9
|
const storage_container_1 = require("@cdktf/provider-azurerm/lib/storage-container");
|
|
10
10
|
const utils_1 = require("../../utils");
|
|
11
|
+
const data_azurerm_storage_account_blob_container_sas_1 = require("@cdktf/provider-azurerm/lib/data-azurerm-storage-account-blob-container-sas");
|
|
11
12
|
/**
|
|
12
13
|
* @classdesc Provides operations on Azure Storage
|
|
13
14
|
* - A new instance of this class is injected into {@link CommonAzureConstruct} constructor.
|
|
@@ -117,5 +118,47 @@ class AzureStorageManager {
|
|
|
117
118
|
(0, utils_1.createAzureTfOutput)(`${id}-storageBlobId`, scope, storageBlob.id);
|
|
118
119
|
return storageBlob;
|
|
119
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* @summary Generates a container-level SAS token for an existing Azure Storage container.
|
|
123
|
+
*
|
|
124
|
+
* @description
|
|
125
|
+
* This method creates a `DataAzurermStorageAccountBlobContainerSas` resource, allowing secure access
|
|
126
|
+
* to a container via a generated Shared Access Signature (SAS) token.
|
|
127
|
+
*
|
|
128
|
+
* @param id - Unique scoped identifier for the SAS token resource
|
|
129
|
+
* @param scope - CDKTF construct scope in which the resource will be created
|
|
130
|
+
* @param props - Container details and SAS options:
|
|
131
|
+
* - storageAccountName: The name of the existing Azure Storage Account
|
|
132
|
+
* - storageContainerName: The name of the container within the storage account
|
|
133
|
+
* - resourceGroupName: The name of the resource group containing the storage account
|
|
134
|
+
* - sasExpiry: Optional expiry date in the format 'YYYY-MM-DD'. Defaults to 7 days from current date if not provided.
|
|
135
|
+
*
|
|
136
|
+
* @returns A `DataAzurermStorageAccountBlobContainerSas` instance with the generated SAS token
|
|
137
|
+
*
|
|
138
|
+
* @see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account_blob_container_sas
|
|
139
|
+
*/
|
|
140
|
+
generateContainerSasToken(id, scope, props) {
|
|
141
|
+
const storageAccountLookup = new data_azurerm_storage_account_1.DataAzurermStorageAccount(scope, `${id}-lookup-sa`, {
|
|
142
|
+
name: props.storageAccountName,
|
|
143
|
+
resourceGroupName: props.resourceGroupName,
|
|
144
|
+
});
|
|
145
|
+
const containerSas = new data_azurerm_storage_account_blob_container_sas_1.DataAzurermStorageAccountBlobContainerSas(scope, `${id}-sas`, {
|
|
146
|
+
connectionString: storageAccountLookup.primaryConnectionString,
|
|
147
|
+
containerName: props.storageContainerName,
|
|
148
|
+
httpsOnly: true,
|
|
149
|
+
start: new Date().toISOString().split('T')[0],
|
|
150
|
+
expiry: props.sasExpiry ?? new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
|
|
151
|
+
permissions: {
|
|
152
|
+
read: true,
|
|
153
|
+
add: false,
|
|
154
|
+
create: false,
|
|
155
|
+
delete: false,
|
|
156
|
+
list: false,
|
|
157
|
+
write: false,
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
(0, utils_1.createAzureTfOutput)(`${id}-sas-token`, scope, containerSas.sas, 'output', true);
|
|
161
|
+
return containerSas;
|
|
162
|
+
}
|
|
120
163
|
}
|
|
121
164
|
exports.AzureStorageManager = AzureStorageManager;
|
|
@@ -7,4 +7,9 @@ export interface StorageAccountProps extends StorageAccountConfig {
|
|
|
7
7
|
export interface StorageContainerProps extends BaseAzureConfigProps, StorageContainerConfig {
|
|
8
8
|
}
|
|
9
9
|
export interface StorageBlobProps extends BaseAzureConfigProps, StorageBlobConfig {
|
|
10
|
+
/**
|
|
11
|
+
* Optional ISO date string representing the expiry date for the SAS token.
|
|
12
|
+
* Format: 'YYYY-MM-DD' (e.g., '2025-05-01')
|
|
13
|
+
*/
|
|
14
|
+
sasExpiry?: string;
|
|
10
15
|
}
|
|
@@ -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
|
}
|