@gradientedge/cdk-utils 9.89.0 → 10.0.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 +7 -1
- 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,33 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ZeroTrustAccessCustomPageConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-custom-page/index.js';
|
|
4
|
-
import { ZeroTrustAccessGroupConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-group/index.js';
|
|
5
|
-
import { ZeroTrustAccessIdentityProviderConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-identity-provider/index.js';
|
|
6
|
-
import { ZeroTrustAccessMtlsCertificateConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-mtls-certificate/index.js';
|
|
7
|
-
import { ZeroTrustAccessPolicyConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-policy/index.js';
|
|
8
|
-
import { ZeroTrustAccessServiceTokenConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-service-token/index.js';
|
|
9
|
-
import { ZeroTrustAccessShortLivedCertificateConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-short-lived-certificate/index.js';
|
|
10
|
-
import { ZeroTrustAccessTagConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-access-tag/index.js';
|
|
11
|
-
import { ZeroTrustOrganizationConfig } from '@cdktf/provider-cloudflare/lib/zero-trust-organization/index.js';
|
|
12
|
-
export interface ZeroTrustAccessApplicationProps extends ZeroTrustAccessApplicationConfig {
|
|
1
|
+
import { AccessRuleArgs, ZeroTrustAccessApplicationArgs, ZeroTrustAccessCustomPageArgs, ZeroTrustAccessGroupArgs, ZeroTrustAccessIdentityProviderArgs, ZeroTrustAccessMtlsCertificateArgs, ZeroTrustAccessPolicyArgs, ZeroTrustAccessServiceTokenArgs, ZeroTrustAccessShortLivedCertificateArgs, ZeroTrustAccessTagArgs, ZeroTrustOrganizationArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface ZeroTrustAccessApplicationProps extends ZeroTrustAccessApplicationArgs {
|
|
13
3
|
}
|
|
14
|
-
export interface ZeroTrustAccessShortLivedCertificateProps extends
|
|
4
|
+
export interface ZeroTrustAccessShortLivedCertificateProps extends ZeroTrustAccessShortLivedCertificateArgs {
|
|
15
5
|
}
|
|
16
|
-
export interface ZeroTrustAccessCustomPageProps extends
|
|
6
|
+
export interface ZeroTrustAccessCustomPageProps extends ZeroTrustAccessCustomPageArgs {
|
|
17
7
|
}
|
|
18
|
-
export interface ZeroTrustAccessGroupProps extends
|
|
8
|
+
export interface ZeroTrustAccessGroupProps extends ZeroTrustAccessGroupArgs {
|
|
19
9
|
}
|
|
20
|
-
export interface ZeroTrustAccessIdentityProviderProps extends
|
|
10
|
+
export interface ZeroTrustAccessIdentityProviderProps extends ZeroTrustAccessIdentityProviderArgs {
|
|
21
11
|
}
|
|
22
|
-
export interface ZeroTrustAccessMtlsCertificateProps extends
|
|
12
|
+
export interface ZeroTrustAccessMtlsCertificateProps extends ZeroTrustAccessMtlsCertificateArgs {
|
|
23
13
|
}
|
|
24
|
-
export interface ZeroTrustOrganizationProps extends
|
|
14
|
+
export interface ZeroTrustOrganizationProps extends ZeroTrustOrganizationArgs {
|
|
25
15
|
}
|
|
26
|
-
export interface ZeroTrustAccessPolicyProps extends
|
|
16
|
+
export interface ZeroTrustAccessPolicyProps extends ZeroTrustAccessPolicyArgs {
|
|
27
17
|
}
|
|
28
|
-
export interface AccessRuleProps extends
|
|
18
|
+
export interface AccessRuleProps extends AccessRuleArgs {
|
|
29
19
|
}
|
|
30
|
-
export interface ZeroTrustAccessServiceTokenProps extends
|
|
20
|
+
export interface ZeroTrustAccessServiceTokenProps extends ZeroTrustAccessServiceTokenArgs {
|
|
31
21
|
}
|
|
32
|
-
export interface ZeroTrustAccessTagProps extends
|
|
22
|
+
export interface ZeroTrustAccessTagProps extends ZeroTrustAccessTagArgs {
|
|
33
23
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { ApiShieldOperationSchemaValidationSettings } from '@cdktf/provider-cloudflare/lib/api-shield-operation-schema-validation-settings/index.js';
|
|
2
|
-
import { ApiShieldOperation } from '@cdktf/provider-cloudflare/lib/api-shield-operation/index.js';
|
|
3
|
-
import { ApiShieldSchemaValidationSettings } from '@cdktf/provider-cloudflare/lib/api-shield-schema-validation-settings/index.js';
|
|
4
|
-
import { ApiShieldSchema } from '@cdktf/provider-cloudflare/lib/api-shield-schema/index.js';
|
|
5
|
-
import { ApiShield } from '@cdktf/provider-cloudflare/lib/api-shield/index.js';
|
|
6
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
7
2
|
import { ApiShieldOperationProps, ApiShieldOperationSchemaValidationSettingsProps, ApiShieldProps, ApiShieldSchemaProps, ApiShieldSchemaValidationSettingsProps } from './types.js';
|
|
8
3
|
/**
|
|
@@ -28,39 +23,39 @@ export declare class CloudflareApiShieldManager {
|
|
|
28
23
|
* @param id scoped id of the resource
|
|
29
24
|
* @param scope scope in which this resource is defined
|
|
30
25
|
* @param props api shield properties
|
|
31
|
-
* @see [
|
|
26
|
+
* @see [Pulumi API Shield]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishield/}
|
|
32
27
|
*/
|
|
33
|
-
createApiShield(id: string, scope: CommonCloudflareConstruct, props: ApiShieldProps): ApiShield;
|
|
28
|
+
createApiShield(id: string, scope: CommonCloudflareConstruct, props: ApiShieldProps): import("@pulumi/cloudflare/apiShield.js").ApiShield;
|
|
34
29
|
/**
|
|
35
30
|
* @summary Method to create a new Cloudflare Api Shield Schema
|
|
36
31
|
* @param id scoped id of the resource
|
|
37
32
|
* @param scope scope in which this resource is defined
|
|
38
33
|
* @param props api shield schema properties
|
|
39
|
-
* @see [
|
|
34
|
+
* @see [Pulumi API Shield Schema]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldschema/}
|
|
40
35
|
*/
|
|
41
|
-
createApiShieldSchema(id: string, scope: CommonCloudflareConstruct, props: ApiShieldSchemaProps): ApiShieldSchema;
|
|
36
|
+
createApiShieldSchema(id: string, scope: CommonCloudflareConstruct, props: ApiShieldSchemaProps): import("@pulumi/cloudflare/apiShieldSchema.js").ApiShieldSchema;
|
|
42
37
|
/**
|
|
43
38
|
* @summary Method to create a new Cloudflare Api Shield Schema Validation Settings
|
|
44
39
|
* @param id scoped id of the resource
|
|
45
40
|
* @param scope scope in which this resource is defined
|
|
46
41
|
* @param props api shield schema validation settings properties
|
|
47
|
-
* @see [
|
|
42
|
+
* @see [Pulumi API Shield Schema Validation Settings]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldschemavalidationsettings/}
|
|
48
43
|
*/
|
|
49
|
-
createApiShieldSchemaValidationSettings(id: string, scope: CommonCloudflareConstruct, props: ApiShieldSchemaValidationSettingsProps): ApiShieldSchemaValidationSettings;
|
|
44
|
+
createApiShieldSchemaValidationSettings(id: string, scope: CommonCloudflareConstruct, props: ApiShieldSchemaValidationSettingsProps): import("@pulumi/cloudflare/apiShieldSchemaValidationSettings.js").ApiShieldSchemaValidationSettings;
|
|
50
45
|
/**
|
|
51
46
|
* @summary Method to create a new Cloudflare Api Shield Operation
|
|
52
47
|
* @param id scoped id of the resource
|
|
53
48
|
* @param scope scope in which this resource is defined
|
|
54
49
|
* @param props api shield operation properties
|
|
55
|
-
* @see [
|
|
50
|
+
* @see [Pulumi API Shield Operation]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldoperation/}
|
|
56
51
|
*/
|
|
57
|
-
createApiShieldOperation(id: string, scope: CommonCloudflareConstruct, props: ApiShieldOperationProps): ApiShieldOperation;
|
|
52
|
+
createApiShieldOperation(id: string, scope: CommonCloudflareConstruct, props: ApiShieldOperationProps): import("@pulumi/cloudflare/apiShieldOperation.js").ApiShieldOperation;
|
|
58
53
|
/**
|
|
59
54
|
* @summary Method to create a new Cloudflare Api Shield Operation Schema Validation Settings
|
|
60
55
|
* @param id scoped id of the resource
|
|
61
56
|
* @param scope scope in which this resource is defined
|
|
62
57
|
* @param props api shield operation schema validation settings properties
|
|
63
|
-
* @see [
|
|
58
|
+
* @see [Pulumi API Shield Operation Schema Validation Settings]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldoperationschemavalidationsettings/}
|
|
64
59
|
*/
|
|
65
|
-
createApiShieldOperationSchemaValidationSettings(id: string, scope: CommonCloudflareConstruct, props: ApiShieldOperationSchemaValidationSettingsProps): ApiShieldOperationSchemaValidationSettings;
|
|
60
|
+
createApiShieldOperationSchemaValidationSettings(id: string, scope: CommonCloudflareConstruct, props: ApiShieldOperationSchemaValidationSettingsProps): import("@pulumi/cloudflare/apiShieldOperationSchemaValidationSettings.js").ApiShieldOperationSchemaValidationSettings;
|
|
66
61
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ApiShieldOperation } from '@cdktf/provider-cloudflare/lib/api-shield-operation/index.js';
|
|
3
|
-
import { ApiShieldSchemaValidationSettings } from '@cdktf/provider-cloudflare/lib/api-shield-schema-validation-settings/index.js';
|
|
4
|
-
import { ApiShieldSchema } from '@cdktf/provider-cloudflare/lib/api-shield-schema/index.js';
|
|
5
|
-
import { ApiShield } from '@cdktf/provider-cloudflare/lib/api-shield/index.js';
|
|
6
|
-
import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
7
2
|
/**
|
|
8
3
|
* @classdesc Provides operations on Cloudflare Api Shield
|
|
9
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -27,105 +22,90 @@ export class CloudflareApiShieldManager {
|
|
|
27
22
|
* @param id scoped id of the resource
|
|
28
23
|
* @param scope scope in which this resource is defined
|
|
29
24
|
* @param props api shield properties
|
|
30
|
-
* @see [
|
|
25
|
+
* @see [Pulumi API Shield]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishield/}
|
|
31
26
|
*/
|
|
32
27
|
createApiShield(id, scope, props) {
|
|
33
28
|
if (!props)
|
|
34
29
|
throw `Props undefined for ${id}`;
|
|
35
30
|
const zoneId = props.zoneId
|
|
36
31
|
? props.zoneId
|
|
37
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
38
|
-
|
|
32
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
33
|
+
return new cloudflare.ApiShield(`${id}`, {
|
|
39
34
|
...props,
|
|
40
35
|
zoneId,
|
|
41
36
|
});
|
|
42
|
-
createCloudflareTfOutput(`${id}-apiShieldFriendlyUniqueId`, scope, apiShield.friendlyUniqueId);
|
|
43
|
-
createCloudflareTfOutput(`${id}-apiShieldId`, scope, apiShield.id);
|
|
44
|
-
return apiShield;
|
|
45
37
|
}
|
|
46
38
|
/**
|
|
47
39
|
* @summary Method to create a new Cloudflare Api Shield Schema
|
|
48
40
|
* @param id scoped id of the resource
|
|
49
41
|
* @param scope scope in which this resource is defined
|
|
50
42
|
* @param props api shield schema properties
|
|
51
|
-
* @see [
|
|
43
|
+
* @see [Pulumi API Shield Schema]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldschema/}
|
|
52
44
|
*/
|
|
53
45
|
createApiShieldSchema(id, scope, props) {
|
|
54
46
|
if (!props)
|
|
55
47
|
throw `Props undefined for ${id}`;
|
|
56
48
|
const zoneId = props.zoneId
|
|
57
49
|
? props.zoneId
|
|
58
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
59
|
-
|
|
50
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
51
|
+
return new cloudflare.ApiShieldSchema(`${id}`, {
|
|
60
52
|
...props,
|
|
61
53
|
name: `${props.name}-${scope.props.stage}`,
|
|
62
54
|
zoneId,
|
|
63
55
|
});
|
|
64
|
-
createCloudflareTfOutput(`${id}-apiShieldSchemaFriendlyUniqueId`, scope, apiShieldSchema.friendlyUniqueId);
|
|
65
|
-
createCloudflareTfOutput(`${id}-apiShieldSchemaId`, scope, apiShieldSchema.schemaId);
|
|
66
|
-
return apiShieldSchema;
|
|
67
56
|
}
|
|
68
57
|
/**
|
|
69
58
|
* @summary Method to create a new Cloudflare Api Shield Schema Validation Settings
|
|
70
59
|
* @param id scoped id of the resource
|
|
71
60
|
* @param scope scope in which this resource is defined
|
|
72
61
|
* @param props api shield schema validation settings properties
|
|
73
|
-
* @see [
|
|
62
|
+
* @see [Pulumi API Shield Schema Validation Settings]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldschemavalidationsettings/}
|
|
74
63
|
*/
|
|
75
64
|
createApiShieldSchemaValidationSettings(id, scope, props) {
|
|
76
65
|
if (!props)
|
|
77
66
|
throw `Props undefined for ${id}`;
|
|
78
67
|
const zoneId = props.zoneId
|
|
79
68
|
? props.zoneId
|
|
80
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
81
|
-
|
|
69
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
70
|
+
return new cloudflare.ApiShieldSchemaValidationSettings(`${id}`, {
|
|
82
71
|
...props,
|
|
83
72
|
zoneId,
|
|
84
73
|
});
|
|
85
|
-
createCloudflareTfOutput(`${id}-apiShieldSchemaValidationSettingsFriendlyUniqueId`, scope, apiShieldSchemaValidationSettings.friendlyUniqueId);
|
|
86
|
-
createCloudflareTfOutput(`${id}-apiShieldSchemaValidationSettingsId`, scope, apiShieldSchemaValidationSettings.id);
|
|
87
|
-
return apiShieldSchemaValidationSettings;
|
|
88
74
|
}
|
|
89
75
|
/**
|
|
90
76
|
* @summary Method to create a new Cloudflare Api Shield Operation
|
|
91
77
|
* @param id scoped id of the resource
|
|
92
78
|
* @param scope scope in which this resource is defined
|
|
93
79
|
* @param props api shield operation properties
|
|
94
|
-
* @see [
|
|
80
|
+
* @see [Pulumi API Shield Operation]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldoperation/}
|
|
95
81
|
*/
|
|
96
82
|
createApiShieldOperation(id, scope, props) {
|
|
97
83
|
if (!props)
|
|
98
84
|
throw `Props undefined for ${id}`;
|
|
99
85
|
const zoneId = props.zoneId
|
|
100
86
|
? props.zoneId
|
|
101
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
102
|
-
|
|
87
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
88
|
+
return new cloudflare.ApiShieldOperation(`${id}`, {
|
|
103
89
|
...props,
|
|
104
90
|
zoneId,
|
|
105
91
|
});
|
|
106
|
-
createCloudflareTfOutput(`${id}-apiShieldOperationFriendlyUniqueId`, scope, apiShieldOperation.friendlyUniqueId);
|
|
107
|
-
createCloudflareTfOutput(`${id}-apiShieldOperationId`, scope, apiShieldOperation.id);
|
|
108
|
-
return apiShieldOperation;
|
|
109
92
|
}
|
|
110
93
|
/**
|
|
111
94
|
* @summary Method to create a new Cloudflare Api Shield Operation Schema Validation Settings
|
|
112
95
|
* @param id scoped id of the resource
|
|
113
96
|
* @param scope scope in which this resource is defined
|
|
114
97
|
* @param props api shield operation schema validation settings properties
|
|
115
|
-
* @see [
|
|
98
|
+
* @see [Pulumi API Shield Operation Schema Validation Settings]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/apishieldoperationschemavalidationsettings/}
|
|
116
99
|
*/
|
|
117
100
|
createApiShieldOperationSchemaValidationSettings(id, scope, props) {
|
|
118
101
|
if (!props)
|
|
119
102
|
throw `Props undefined for ${id}`;
|
|
120
103
|
const zoneId = props.zoneId
|
|
121
104
|
? props.zoneId
|
|
122
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
123
|
-
|
|
105
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
106
|
+
return new cloudflare.ApiShieldOperationSchemaValidationSettings(`${id}`, {
|
|
124
107
|
...props,
|
|
125
108
|
zoneId,
|
|
126
109
|
});
|
|
127
|
-
createCloudflareTfOutput(`${id}-apiShieldOperationSchemaValidationSettingsFriendlyUniqueId`, scope, apiShieldOperationSchemaValidationSettings.friendlyUniqueId);
|
|
128
|
-
createCloudflareTfOutput(`${id}-apiShieldOperationSchemaValidationSettingsId`, scope, apiShieldOperationSchemaValidationSettings.id);
|
|
129
|
-
return apiShieldOperationSchemaValidationSettings;
|
|
130
110
|
}
|
|
131
111
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ApiShieldOperationSchemaValidationSettingsConfig } from '@cdktf/provider-cloudflare/lib/api-shield-operation-schema-validation-settings/index.js';
|
|
4
|
-
import { ApiShieldSchemaConfig } from '@cdktf/provider-cloudflare/lib/api-shield-schema/index.js';
|
|
5
|
-
import { ApiShieldSchemaValidationSettingsConfig } from '@cdktf/provider-cloudflare/lib/api-shield-schema-validation-settings/index.js';
|
|
6
|
-
export interface ApiShieldProps extends ApiShieldConfig {
|
|
1
|
+
import { ApiShieldArgs, ApiShieldOperationArgs, ApiShieldOperationSchemaValidationSettingsArgs, ApiShieldSchemaArgs, ApiShieldSchemaValidationSettingsArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface ApiShieldProps extends ApiShieldArgs {
|
|
7
3
|
}
|
|
8
|
-
export interface ApiShieldSchemaProps extends
|
|
4
|
+
export interface ApiShieldSchemaProps extends ApiShieldSchemaArgs {
|
|
9
5
|
}
|
|
10
|
-
export interface ApiShieldSchemaValidationSettingsProps extends
|
|
6
|
+
export interface ApiShieldSchemaValidationSettingsProps extends ApiShieldSchemaValidationSettingsArgs {
|
|
11
7
|
}
|
|
12
|
-
export interface ApiShieldOperationProps extends
|
|
8
|
+
export interface ApiShieldOperationProps extends ApiShieldOperationArgs {
|
|
13
9
|
}
|
|
14
|
-
export interface ApiShieldOperationSchemaValidationSettingsProps extends
|
|
10
|
+
export interface ApiShieldOperationSchemaValidationSettingsProps extends ApiShieldOperationSchemaValidationSettingsArgs {
|
|
15
11
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ArgoSmartRouting } from '@cdktf/provider-cloudflare/lib/argo-smart-routing/index.js';
|
|
2
|
-
import { ArgoTieredCaching } from '@cdktf/provider-cloudflare/lib/argo-tiered-caching/index.js';
|
|
3
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
4
2
|
import { ArgoSmartRoutingProps, ArgoTieredCachingProps } from './types.js';
|
|
5
3
|
/**
|
|
@@ -21,19 +19,19 @@ import { ArgoSmartRoutingProps, ArgoTieredCachingProps } from './types.js';
|
|
|
21
19
|
*/
|
|
22
20
|
export declare class CloudflareArgoManager {
|
|
23
21
|
/**
|
|
24
|
-
* @summary Method to create a new Cloudflare Argo
|
|
22
|
+
* @summary Method to create a new Cloudflare Argo Smart Routing
|
|
25
23
|
* @param id scoped id of the resource
|
|
26
24
|
* @param scope scope in which this resource is defined
|
|
27
25
|
* @param props argo properties
|
|
28
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare ArgoSmartRouting]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/argosmartrouting/}
|
|
29
27
|
*/
|
|
30
|
-
createArgoSmartRouting(id: string, scope: CommonCloudflareConstruct, props: ArgoSmartRoutingProps): ArgoSmartRouting;
|
|
28
|
+
createArgoSmartRouting(id: string, scope: CommonCloudflareConstruct, props: ArgoSmartRoutingProps): import("@pulumi/cloudflare/argoSmartRouting.js").ArgoSmartRouting;
|
|
31
29
|
/**
|
|
32
|
-
* @summary Method to create a new Cloudflare Argo
|
|
30
|
+
* @summary Method to create a new Cloudflare Argo Tiered Caching
|
|
33
31
|
* @param id scoped id of the resource
|
|
34
32
|
* @param scope scope in which this resource is defined
|
|
35
33
|
* @param props argo properties
|
|
36
|
-
* @see [
|
|
34
|
+
* @see [Pulumi Cloudflare ArgoTieredCaching]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/argotieredcaching/}
|
|
37
35
|
*/
|
|
38
|
-
createArgoTieredCaching(id: string, scope: CommonCloudflareConstruct, props: ArgoTieredCachingProps): ArgoTieredCaching;
|
|
36
|
+
createArgoTieredCaching(id: string, scope: CommonCloudflareConstruct, props: ArgoTieredCachingProps): import("@pulumi/cloudflare/argoTieredCaching.js").ArgoTieredCaching;
|
|
39
37
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ArgoTieredCaching } from '@cdktf/provider-cloudflare/lib/argo-tiered-caching/index.js';
|
|
3
|
-
import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
1
|
+
import * as cloudflare from '@pulumi/cloudflare';
|
|
4
2
|
/**
|
|
5
3
|
* @classdesc Provides operations on Cloudflare Argo
|
|
6
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -20,45 +18,39 @@ import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
|
20
18
|
*/
|
|
21
19
|
export class CloudflareArgoManager {
|
|
22
20
|
/**
|
|
23
|
-
* @summary Method to create a new Cloudflare Argo
|
|
21
|
+
* @summary Method to create a new Cloudflare Argo Smart Routing
|
|
24
22
|
* @param id scoped id of the resource
|
|
25
23
|
* @param scope scope in which this resource is defined
|
|
26
24
|
* @param props argo properties
|
|
27
|
-
* @see [
|
|
25
|
+
* @see [Pulumi Cloudflare ArgoSmartRouting]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/argosmartrouting/}
|
|
28
26
|
*/
|
|
29
27
|
createArgoSmartRouting(id, scope, props) {
|
|
30
28
|
if (!props)
|
|
31
29
|
throw `Props undefined for ${id}`;
|
|
32
30
|
const zoneId = props.zoneId
|
|
33
31
|
? props.zoneId
|
|
34
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
35
|
-
|
|
32
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
33
|
+
return new cloudflare.ArgoSmartRouting(`${id}`, {
|
|
36
34
|
...props,
|
|
37
35
|
zoneId,
|
|
38
36
|
});
|
|
39
|
-
createCloudflareTfOutput(`${id}-argoSmartRoutingFriendlyUniqueId`, scope, argoSmartRouting.friendlyUniqueId);
|
|
40
|
-
createCloudflareTfOutput(`${id}-argoSmartRoutingId`, scope, argoSmartRouting.id);
|
|
41
|
-
return argoSmartRouting;
|
|
42
37
|
}
|
|
43
38
|
/**
|
|
44
|
-
* @summary Method to create a new Cloudflare Argo
|
|
39
|
+
* @summary Method to create a new Cloudflare Argo Tiered Caching
|
|
45
40
|
* @param id scoped id of the resource
|
|
46
41
|
* @param scope scope in which this resource is defined
|
|
47
42
|
* @param props argo properties
|
|
48
|
-
* @see [
|
|
43
|
+
* @see [Pulumi Cloudflare ArgoTieredCaching]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/argotieredcaching/}
|
|
49
44
|
*/
|
|
50
45
|
createArgoTieredCaching(id, scope, props) {
|
|
51
46
|
if (!props)
|
|
52
47
|
throw `Props undefined for ${id}`;
|
|
53
48
|
const zoneId = props.zoneId
|
|
54
49
|
? props.zoneId
|
|
55
|
-
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { name: scope.props.domainName })?.
|
|
56
|
-
|
|
50
|
+
: scope.zoneManager.resolveZone(`${id}-data-zone`, scope, { filter: { name: scope.props.domainName } })?.id;
|
|
51
|
+
return new cloudflare.ArgoTieredCaching(`${id}`, {
|
|
57
52
|
...props,
|
|
58
53
|
zoneId,
|
|
59
54
|
});
|
|
60
|
-
createCloudflareTfOutput(`${id}-argoTieredCachingFriendlyUniqueId`, scope, argoTieredCaching.friendlyUniqueId);
|
|
61
|
-
createCloudflareTfOutput(`${id}-argoTieredCachingId`, scope, argoTieredCaching.id);
|
|
62
|
-
return argoTieredCaching;
|
|
63
55
|
}
|
|
64
56
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface ArgoSmartRoutingProps extends ArgoSmartRoutingConfig {
|
|
1
|
+
import { ArgoSmartRoutingArgs, ArgoTieredCachingArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface ArgoSmartRoutingProps extends ArgoSmartRoutingArgs {
|
|
4
3
|
}
|
|
5
|
-
export interface ArgoTieredCachingProps extends
|
|
4
|
+
export interface ArgoTieredCachingProps extends ArgoTieredCachingArgs {
|
|
6
5
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Filter } from '@cdktf/provider-cloudflare/lib/filter/index.js';
|
|
2
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
3
2
|
import { FilterProps } from './types.js';
|
|
4
3
|
/**
|
|
@@ -13,7 +12,7 @@ import { FilterProps } from './types.js';
|
|
|
13
12
|
* constructor(parent: Construct, id: string, props: CommonCloudflareStackProps) {
|
|
14
13
|
* super(parent, id, props)
|
|
15
14
|
* this.props = props
|
|
16
|
-
* this.filterManager.
|
|
15
|
+
* this.filterManager.createFilter('MyFilter', this, props)
|
|
17
16
|
* }
|
|
18
17
|
* }
|
|
19
18
|
* ```
|
|
@@ -24,7 +23,7 @@ export declare class CloudflareFilterManager {
|
|
|
24
23
|
* @param id scoped id of the resource
|
|
25
24
|
* @param scope scope in which this resource is defined
|
|
26
25
|
* @param props filter properties
|
|
27
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare Filter]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/filter/}
|
|
28
27
|
*/
|
|
29
|
-
|
|
28
|
+
createFilter(id: string, scope: CommonCloudflareConstruct, props: FilterProps): import("@pulumi/cloudflare/filter.js").Filter;
|
|
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 Filters
|
|
5
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -12,7 +11,7 @@ import { createCloudflareTfOutput } from '../../utils/index.js';
|
|
|
12
11
|
* constructor(parent: Construct, id: string, props: CommonCloudflareStackProps) {
|
|
13
12
|
* super(parent, id, props)
|
|
14
13
|
* this.props = props
|
|
15
|
-
* this.filterManager.
|
|
14
|
+
* this.filterManager.createFilter('MyFilter', this, props)
|
|
16
15
|
* }
|
|
17
16
|
* }
|
|
18
17
|
* ```
|
|
@@ -23,20 +22,17 @@ export class CloudflareFilterManager {
|
|
|
23
22
|
* @param id scoped id of the resource
|
|
24
23
|
* @param scope scope in which this resource is defined
|
|
25
24
|
* @param props filter properties
|
|
26
|
-
* @see [
|
|
25
|
+
* @see [Pulumi Cloudflare Filter]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/filter/}
|
|
27
26
|
*/
|
|
28
|
-
|
|
27
|
+
createFilter(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.Filter(`${id}`, {
|
|
35
34
|
...props,
|
|
36
35
|
zoneId,
|
|
37
36
|
});
|
|
38
|
-
createCloudflareTfOutput(`${id}-filterFriendlyUniqueId`, scope, filter.friendlyUniqueId);
|
|
39
|
-
createCloudflareTfOutput(`${id}-filterId`, scope, filter.id);
|
|
40
|
-
return filter;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface FilterProps extends
|
|
1
|
+
import { FilterArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface FilterProps extends FilterArgs {
|
|
3
3
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FirewallRule } from '@cdktf/provider-cloudflare/lib/firewall-rule/index.js';
|
|
2
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
3
2
|
import { FirewallRuleProps } from './types.js';
|
|
4
3
|
/**
|
|
@@ -24,7 +23,7 @@ export declare class CloudflareFirewallManager {
|
|
|
24
23
|
* @param id scoped id of the resource
|
|
25
24
|
* @param scope scope in which this resource is defined
|
|
26
25
|
* @param props firewall rule properties
|
|
27
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare Firewall Rule]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/firewallrule/}
|
|
28
27
|
*/
|
|
29
|
-
createFirewallRule(id: string, scope: CommonCloudflareConstruct, props: FirewallRuleProps): FirewallRule;
|
|
28
|
+
createFirewallRule(id: string, scope: CommonCloudflareConstruct, props: FirewallRuleProps): import("@pulumi/cloudflare/firewallRule.js").FirewallRule;
|
|
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 Firewall Rules
|
|
5
4
|
* - A new instance of this class is injected into {@link CommonCloudflareConstruct} constructor.
|
|
@@ -23,20 +22,17 @@ export class CloudflareFirewallManager {
|
|
|
23
22
|
* @param id scoped id of the resource
|
|
24
23
|
* @param scope scope in which this resource is defined
|
|
25
24
|
* @param props firewall rule properties
|
|
26
|
-
* @see [
|
|
25
|
+
* @see [Pulumi Cloudflare Firewall Rule]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/firewallrule/}
|
|
27
26
|
*/
|
|
28
27
|
createFirewallRule(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.FirewallRule(`${id}`, {
|
|
35
34
|
...props,
|
|
36
35
|
zoneId,
|
|
37
36
|
});
|
|
38
|
-
createCloudflareTfOutput(`${id}-firewallRuleFriendlyUniqueId`, scope, firewallRule.friendlyUniqueId);
|
|
39
|
-
createCloudflareTfOutput(`${id}-firewallRuleId`, scope, firewallRule.id);
|
|
40
|
-
return firewallRule;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface FirewallRuleProps extends
|
|
1
|
+
import { FirewallRuleArgs } from '@pulumi/cloudflare';
|
|
2
|
+
export interface FirewallRuleProps extends FirewallRuleArgs {
|
|
3
3
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { PageRule } from '@cdktf/provider-cloudflare/lib/page-rule/index.js';
|
|
2
|
-
import { PagesDomain } from '@cdktf/provider-cloudflare/lib/pages-domain/index.js';
|
|
3
|
-
import { PagesProject } from '@cdktf/provider-cloudflare/lib/pages-project/index.js';
|
|
4
|
-
import { LocalExec } from 'cdktf-local-exec';
|
|
5
1
|
import { CommonCloudflareConstruct } from '../../common/index.js';
|
|
6
2
|
import { PageRuleProps, PagesDomainProps, PagesProjectDeployProps, PagesProjectProps } from './types.js';
|
|
7
3
|
/**
|
|
@@ -27,24 +23,24 @@ export declare class CloudflarePageManager {
|
|
|
27
23
|
* @param id scoped id of the resource
|
|
28
24
|
* @param scope scope in which this resource is defined
|
|
29
25
|
* @param props pages project properties
|
|
30
|
-
* @see [
|
|
26
|
+
* @see [Pulumi Cloudflare Pages Project]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagesproject/}
|
|
31
27
|
*/
|
|
32
|
-
createPagesProject(id: string, scope: CommonCloudflareConstruct, props: PagesProjectProps): PagesProject;
|
|
28
|
+
createPagesProject(id: string, scope: CommonCloudflareConstruct, props: PagesProjectProps): import("@pulumi/cloudflare/pagesProject.js").PagesProject;
|
|
33
29
|
/**
|
|
34
30
|
* @summary Method to create a new Cloudflare Pages Domain
|
|
35
31
|
* @param id scoped id of the resource
|
|
36
32
|
* @param scope scope in which this resource is defined
|
|
37
33
|
* @param props pages domain properties
|
|
38
|
-
* @see [
|
|
34
|
+
* @see [Pulumi Cloudflare Pages Domain]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagesdomain/}
|
|
39
35
|
*/
|
|
40
|
-
createPagesDomain(id: string, scope: CommonCloudflareConstruct, props: PagesDomainProps): PagesDomain;
|
|
36
|
+
createPagesDomain(id: string, scope: CommonCloudflareConstruct, props: PagesDomainProps): import("@pulumi/cloudflare/pagesDomain.js").PagesDomain;
|
|
41
37
|
/**
|
|
42
38
|
* @summary Method to create a new Cloudflare Page Rule
|
|
43
39
|
* @param id scoped id of the resource
|
|
44
40
|
* @param scope scope in which this resource is defined
|
|
45
41
|
* @param props page rule properties
|
|
46
|
-
* @see [
|
|
42
|
+
* @see [Pulumi Cloudflare Page Rule]{@link https://www.pulumi.com/registry/packages/cloudflare/api-docs/pagerule/}
|
|
47
43
|
*/
|
|
48
|
-
createPageRule(id: string, scope: CommonCloudflareConstruct, props: PageRuleProps): PageRule;
|
|
49
|
-
deployPagesProject(id: string, scope: CommonCloudflareConstruct, props: PagesProjectDeployProps):
|
|
44
|
+
createPageRule(id: string, scope: CommonCloudflareConstruct, props: PageRuleProps): import("@pulumi/cloudflare/pageRule.js").PageRule;
|
|
45
|
+
deployPagesProject(id: string, scope: CommonCloudflareConstruct, props: PagesProjectDeployProps): import("@pulumi/command/local/command.js").Command;
|
|
50
46
|
}
|