@pulumi/cloudflare 4.7.0 → 4.8.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/accessApplication.d.ts +54 -80
- package/accessApplication.js +9 -5
- package/accessApplication.js.map +1 -1
- package/accessBookmark.d.ts +21 -22
- package/accessBookmark.js +9 -7
- package/accessBookmark.js.map +1 -1
- package/accessCaCertificate.d.ts +21 -11
- package/accessCaCertificate.js +15 -5
- package/accessCaCertificate.js.map +1 -1
- package/accessGroup.d.ts +14 -92
- package/accessGroup.js +8 -41
- package/accessGroup.js.map +1 -1
- package/accessIdentityProvider.d.ts +26 -28
- package/accessIdentityProvider.js +8 -10
- package/accessIdentityProvider.js.map +1 -1
- package/accessKeysConfiguration.d.ts +18 -0
- package/accessKeysConfiguration.js.map +1 -1
- package/accessMutualTlsCertificate.d.ts +20 -8
- package/accessMutualTlsCertificate.js +14 -2
- package/accessMutualTlsCertificate.js.map +1 -1
- package/accessPolicy.d.ts +53 -49
- package/accessPolicy.js +11 -7
- package/accessPolicy.js.map +1 -1
- package/accessRule.d.ts +67 -14
- package/accessRule.js +55 -5
- package/accessRule.js.map +1 -1
- package/accessServiceToken.d.ts +18 -12
- package/accessServiceToken.js +3 -6
- package/accessServiceToken.js.map +1 -1
- package/accountMember.d.ts +10 -11
- package/accountMember.js +1 -5
- package/accountMember.js.map +1 -1
- package/apiToken.d.ts +11 -122
- package/apiToken.js +1 -109
- package/apiToken.js.map +1 -1
- package/argo.d.ts +10 -14
- package/argo.js +1 -5
- package/argo.js.map +1 -1
- package/argoTunnel.d.ts +8 -0
- package/argoTunnel.js +2 -0
- package/argoTunnel.js.map +1 -1
- package/byoIpPrefix.d.ts +9 -0
- package/byoIpPrefix.js.map +1 -1
- package/config/vars.d.ts +22 -12
- package/config/vars.js.map +1 -1
- package/customPages.d.ts +1 -1
- package/customPages.js +1 -1
- package/filter.d.ts +8 -12
- package/filter.js +2 -6
- package/filter.js.map +1 -1
- package/firewallRule.d.ts +37 -22
- package/firewallRule.js +4 -7
- package/firewallRule.js.map +1 -1
- package/getAccessIdentityProvider.d.ts +0 -48
- package/getAccessIdentityProvider.js +0 -24
- package/getAccessIdentityProvider.js.map +1 -1
- package/getAccountRoles.d.ts +0 -12
- package/getAccountRoles.js +0 -3
- package/getAccountRoles.js.map +1 -1
- package/getApiTokenPermissionGroups.d.ts +0 -17
- package/getApiTokenPermissionGroups.js +0 -13
- package/getApiTokenPermissionGroups.js.map +1 -1
- package/getDevices.d.ts +0 -23
- package/getDevices.js +0 -14
- package/getDevices.js.map +1 -1
- package/getIpRanges.d.ts +0 -36
- package/getIpRanges.js +0 -21
- package/getIpRanges.js.map +1 -1
- package/getOriginCaRootCertificate.d.ts +0 -23
- package/getOriginCaRootCertificate.js +0 -14
- package/getOriginCaRootCertificate.js.map +1 -1
- package/getWafGroups.d.ts +0 -46
- package/getWafGroups.js +0 -20
- package/getWafGroups.js.map +1 -1
- package/getWafPackages.d.ts +0 -39
- package/getWafPackages.js +0 -22
- package/getWafPackages.js.map +1 -1
- package/getWafRules.d.ts +0 -49
- package/getWafRules.js +0 -23
- package/getWafRules.js.map +1 -1
- package/getZone.d.ts +0 -81
- package/getZone.js +0 -41
- package/getZone.js.map +1 -1
- package/getZoneDnssec.d.ts +0 -50
- package/getZoneDnssec.js +0 -14
- package/getZoneDnssec.js.map +1 -1
- package/getZones.d.ts +0 -81
- package/getZones.js +0 -70
- package/getZones.js.map +1 -1
- package/healthcheck.d.ts +100 -74
- package/healthcheck.js +10 -14
- package/healthcheck.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +20 -5
- package/index.js.map +1 -1
- package/ipsecTunnel.d.ts +107 -6
- package/ipsecTunnel.js +21 -3
- package/ipsecTunnel.js.map +1 -1
- package/list.d.ts +137 -0
- package/list.js +115 -0
- package/list.js.map +1 -0
- package/loadBalancerMonitor.d.ts +2 -0
- package/loadBalancerMonitor.js +2 -0
- package/loadBalancerMonitor.js.map +1 -1
- package/logpushJob.d.ts +94 -64
- package/logpushJob.js +10 -37
- package/logpushJob.js.map +1 -1
- package/{logPushOwnershipChallenge.d.ts → logpushOwnershipChallenge.d.ts} +13 -13
- package/{logPushOwnershipChallenge.js → logpushOwnershipChallenge.js} +12 -12
- package/{logPushOwnershipChallenge.js.map → logpushOwnershipChallenge.js.map} +1 -1
- package/managedHeaders.d.ts +98 -0
- package/managedHeaders.js +81 -0
- package/managedHeaders.js.map +1 -0
- package/notificationPolicy.d.ts +59 -78
- package/notificationPolicy.js +2 -57
- package/notificationPolicy.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +38 -19
- package/provider.js.map +1 -1
- package/record.d.ts +1 -1
- package/record.js +1 -1
- package/ruleset.d.ts +147 -24
- package/ruleset.js +111 -3
- package/ruleset.js.map +1 -1
- package/spectrumApplication.d.ts +7 -7
- package/spectrumApplication.js +1 -1
- package/tunnelRoute.d.ts +29 -17
- package/tunnelRoute.js +13 -14
- package/tunnelRoute.js.map +1 -1
- package/tunnelVirtualNetwork.d.ts +111 -0
- package/tunnelVirtualNetwork.js +85 -0
- package/tunnelVirtualNetwork.js.map +1 -0
- package/types/input.d.ts +145 -424
- package/types/output.d.ts +141 -491
- package/waitingRoom.d.ts +48 -34
- package/waitingRoom.js +5 -4
- package/waitingRoom.js.map +1 -1
- package/waitingRoomEvent.d.ts +52 -35
- package/waitingRoomEvent.js +4 -5
- package/waitingRoomEvent.js.map +1 -1
- package/workerCronTrigger.d.ts +9 -0
- package/workerCronTrigger.js.map +1 -1
- package/workerRoute.d.ts +2 -2
- package/workerRoute.js +2 -2
- package/workerScript.d.ts +2 -2
- package/workerScript.js +2 -2
- package/workersKv.d.ts +1 -1
- package/workersKv.js +1 -1
- package/zone.d.ts +5 -5
- package/zone.js +1 -1
- package/zoneDnssec.d.ts +1 -1
- package/zoneDnssec.js +1 -1
- package/zoneLockdown.d.ts +4 -4
- package/zoneLockdown.js +1 -1
- package/zoneSettingsOverride.d.ts +4 -4
package/config/vars.d.ts
CHANGED
|
@@ -1,48 +1,58 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Configure API client to always use
|
|
2
|
+
* Configure API client to always use a specific account. Alternatively, can be configured using the
|
|
3
|
+
* `CLOUDFLARE_ACCOUNT_ID` environment variable.
|
|
3
4
|
*/
|
|
4
5
|
export declare const accountId: string | undefined;
|
|
5
6
|
/**
|
|
6
|
-
* Configure the base path used by the API client
|
|
7
|
+
* Configure the base path used by the API client. Alternatively, can be configured using the `CLOUDFLARE_API_BASE_PATH`
|
|
8
|
+
* environment variable.
|
|
7
9
|
*/
|
|
8
10
|
export declare const apiBasePath: string | undefined;
|
|
9
11
|
/**
|
|
10
|
-
* Whether to print logs from the API client (using the default log library logger)
|
|
12
|
+
* Whether to print logs from the API client (using the default log library logger). Alternatively, can be configured using
|
|
13
|
+
* the `CLOUDFLARE_API_CLIENT_LOGGING` environment variable.
|
|
11
14
|
*/
|
|
12
15
|
export declare const apiClientLogging: boolean;
|
|
13
16
|
/**
|
|
14
|
-
* Configure the hostname used by the API client
|
|
17
|
+
* Configure the hostname used by the API client. Alternatively, can be configured using the `CLOUDFLARE_API_HOSTNAME`
|
|
18
|
+
* environment variable.
|
|
15
19
|
*/
|
|
16
20
|
export declare const apiHostname: string | undefined;
|
|
17
21
|
/**
|
|
18
|
-
* The API key for operations.
|
|
22
|
+
* The API key for operations. Alternatively, can be configured using the `CLOUDFLARE_API_KEY` environment variable.
|
|
19
23
|
*/
|
|
20
24
|
export declare const apiKey: string | undefined;
|
|
21
25
|
/**
|
|
22
|
-
* The API Token for operations.
|
|
26
|
+
* The API Token for operations. Alternatively, can be configured using the `CLOUDFLARE_API_TOKEN` environment variable.
|
|
23
27
|
*/
|
|
24
28
|
export declare const apiToken: string | undefined;
|
|
25
29
|
/**
|
|
26
|
-
* A special Cloudflare API key good for a restricted set of endpoints
|
|
30
|
+
* A special Cloudflare API key good for a restricted set of endpoints. Alternatively, can be configured using the
|
|
31
|
+
* `CLOUDFLARE_API_USER_SERVICE_KEY` environment variable.
|
|
27
32
|
*/
|
|
28
33
|
export declare const apiUserServiceKey: string | undefined;
|
|
29
34
|
/**
|
|
30
|
-
* A registered Cloudflare email address
|
|
35
|
+
* A registered Cloudflare email address. Alternatively, can be configured using the `CLOUDFLARE_EMAIL` environment
|
|
36
|
+
* variable.
|
|
31
37
|
*/
|
|
32
38
|
export declare const email: string | undefined;
|
|
33
39
|
/**
|
|
34
|
-
* Maximum backoff period in seconds after failed API calls
|
|
40
|
+
* Maximum backoff period in seconds after failed API calls. Alternatively, can be configured using the
|
|
41
|
+
* `CLOUDFLARE_MAX_BACKOFF` environment variable.
|
|
35
42
|
*/
|
|
36
43
|
export declare const maxBackoff: number;
|
|
37
44
|
/**
|
|
38
|
-
* Minimum backoff period in seconds after failed API calls
|
|
45
|
+
* Minimum backoff period in seconds after failed API calls. Alternatively, can be configured using the
|
|
46
|
+
* `CLOUDFLARE_MIN_BACKOFF` environment variable.
|
|
39
47
|
*/
|
|
40
48
|
export declare const minBackoff: number;
|
|
41
49
|
/**
|
|
42
|
-
* Maximum number of retries to perform when an API request fails
|
|
50
|
+
* Maximum number of retries to perform when an API request fails. Alternatively, can be configured using the
|
|
51
|
+
* `CLOUDFLARE_RETRIES` environment variable.
|
|
43
52
|
*/
|
|
44
53
|
export declare const retries: number;
|
|
45
54
|
/**
|
|
46
|
-
* RPS limit to apply when making calls to the API
|
|
55
|
+
* RPS limit to apply when making calls to the API. Alternatively, can be configured using the `CLOUDFLARE_RPS` environment
|
|
56
|
+
* variable.
|
|
47
57
|
*/
|
|
48
58
|
export declare const rps: number;
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,M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CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE;IAClC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,SAAS,CAAS,KAAK,CAAC,mCAAI,CAAC,SAAS,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IAChG,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/customPages.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
*
|
|
19
19
|
* ## Import
|
|
20
20
|
*
|
|
21
|
-
* Custom pages can be imported using a composite ID formed of
|
|
21
|
+
* Custom pages can be imported using a composite ID formed of- `customPageLevel` - Either `account` or `zone`. - `identifier` - The ID of the account or zone you intend to manage. - `pageType` - The value from the `type` argument. Example for a zone
|
|
22
22
|
*
|
|
23
23
|
* ```sh
|
|
24
24
|
* $ pulumi import cloudflare:index/customPages:CustomPages basic_challenge zone/d41d8cd98f00b204e9800998ecf8427e/basic_challenge
|
package/customPages.js
CHANGED
|
@@ -24,7 +24,7 @@ const utilities = require("./utilities");
|
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
27
|
-
* Custom pages can be imported using a composite ID formed of
|
|
27
|
+
* Custom pages can be imported using a composite ID formed of- `customPageLevel` - Either `account` or `zone`. - `identifier` - The ID of the account or zone you intend to manage. - `pageType` - The value from the `type` argument. Example for a zone
|
|
28
28
|
*
|
|
29
29
|
* ```sh
|
|
30
30
|
* $ pulumi import cloudflare:index/customPages:CustomPages basic_challenge zone/d41d8cd98f00b204e9800998ecf8427e/basic_challenge
|
package/filter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Filter expressions that can be referenced across multiple features, e.g. Firewall
|
|
3
|
+
* Filter expressions that can be referenced across multiple features, e.g. Firewall Rules. See [what is a filter](https://developers.cloudflare.com/firewall/api/cf-filters/what-is-a-filter/) for more details and available fields and operators.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
@@ -17,13 +17,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
*
|
|
18
18
|
* ## Import
|
|
19
19
|
*
|
|
20
|
-
* Filter can be imported using a composite ID formed of zone ID and filter ID, e.g.
|
|
21
|
-
*
|
|
22
20
|
* ```sh
|
|
23
|
-
* $ pulumi import cloudflare:index/filter:Filter
|
|
21
|
+
* $ pulumi import cloudflare:index/filter:Filter example <zone_id>/<filter_id>
|
|
24
22
|
* ```
|
|
25
|
-
*
|
|
26
|
-
* where* `d41d8cd98f00b204e9800998ecf8427e` - zone ID * `9e107d9d372bb6826bd81d3542a419d6` - filter ID as returned by [API](https://api.cloudflare.com/#zone-firewall-filters)
|
|
27
23
|
*/
|
|
28
24
|
export declare class Filter extends pulumi.CustomResource {
|
|
29
25
|
/**
|
|
@@ -50,7 +46,7 @@ export declare class Filter extends pulumi.CustomResource {
|
|
|
50
46
|
*/
|
|
51
47
|
readonly expression: pulumi.Output<string>;
|
|
52
48
|
/**
|
|
53
|
-
* Whether this filter is currently paused.
|
|
49
|
+
* Whether this filter is currently paused.
|
|
54
50
|
*/
|
|
55
51
|
readonly paused: pulumi.Output<boolean | undefined>;
|
|
56
52
|
/**
|
|
@@ -58,7 +54,7 @@ export declare class Filter extends pulumi.CustomResource {
|
|
|
58
54
|
*/
|
|
59
55
|
readonly ref: pulumi.Output<string | undefined>;
|
|
60
56
|
/**
|
|
61
|
-
* The
|
|
57
|
+
* The zone identifier to target for the resource.
|
|
62
58
|
*/
|
|
63
59
|
readonly zoneId: pulumi.Output<string>;
|
|
64
60
|
/**
|
|
@@ -83,7 +79,7 @@ export interface FilterState {
|
|
|
83
79
|
*/
|
|
84
80
|
expression?: pulumi.Input<string>;
|
|
85
81
|
/**
|
|
86
|
-
* Whether this filter is currently paused.
|
|
82
|
+
* Whether this filter is currently paused.
|
|
87
83
|
*/
|
|
88
84
|
paused?: pulumi.Input<boolean>;
|
|
89
85
|
/**
|
|
@@ -91,7 +87,7 @@ export interface FilterState {
|
|
|
91
87
|
*/
|
|
92
88
|
ref?: pulumi.Input<string>;
|
|
93
89
|
/**
|
|
94
|
-
* The
|
|
90
|
+
* The zone identifier to target for the resource.
|
|
95
91
|
*/
|
|
96
92
|
zoneId?: pulumi.Input<string>;
|
|
97
93
|
}
|
|
@@ -108,7 +104,7 @@ export interface FilterArgs {
|
|
|
108
104
|
*/
|
|
109
105
|
expression: pulumi.Input<string>;
|
|
110
106
|
/**
|
|
111
|
-
* Whether this filter is currently paused.
|
|
107
|
+
* Whether this filter is currently paused.
|
|
112
108
|
*/
|
|
113
109
|
paused?: pulumi.Input<boolean>;
|
|
114
110
|
/**
|
|
@@ -116,7 +112,7 @@ export interface FilterArgs {
|
|
|
116
112
|
*/
|
|
117
113
|
ref?: pulumi.Input<string>;
|
|
118
114
|
/**
|
|
119
|
-
* The
|
|
115
|
+
* The zone identifier to target for the resource.
|
|
120
116
|
*/
|
|
121
117
|
zoneId: pulumi.Input<string>;
|
|
122
118
|
}
|
package/filter.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Filter = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Filter expressions that can be referenced across multiple features, e.g. Firewall
|
|
9
|
+
* Filter expressions that can be referenced across multiple features, e.g. Firewall Rules. See [what is a filter](https://developers.cloudflare.com/firewall/api/cf-filters/what-is-a-filter/) for more details and available fields and operators.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -23,13 +23,9 @@ const utilities = require("./utilities");
|
|
|
23
23
|
*
|
|
24
24
|
* ## Import
|
|
25
25
|
*
|
|
26
|
-
* Filter can be imported using a composite ID formed of zone ID and filter ID, e.g.
|
|
27
|
-
*
|
|
28
26
|
* ```sh
|
|
29
|
-
* $ pulumi import cloudflare:index/filter:Filter
|
|
27
|
+
* $ pulumi import cloudflare:index/filter:Filter example <zone_id>/<filter_id>
|
|
30
28
|
* ```
|
|
31
|
-
*
|
|
32
|
-
* where* `d41d8cd98f00b204e9800998ecf8427e` - zone ID * `9e107d9d372bb6826bd81d3542a419d6` - filter ID as returned by [API](https://api.cloudflare.com/#zone-firewall-filters)
|
|
33
29
|
*/
|
|
34
30
|
class Filter extends pulumi.CustomResource {
|
|
35
31
|
constructor(name, argsOrState, opts) {
|
package/filter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../filter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../filter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAyD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MA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CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAlFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAoFC;AAtEG,gBAAgB;AACO,mBAAY,GAAG,gCAAgC,CAAC"}
|
package/firewallRule.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* Define Firewall rules using filter expressions for more control over how traffic is matched to the rule.
|
|
4
4
|
* A filter expression permits selecting traffic by multiple criteria allowing greater freedom in rule creation.
|
|
5
5
|
*
|
|
6
|
-
* Filter expressions needs to be created first before using Firewall Rule.
|
|
6
|
+
* Filter expressions needs to be created first before using Firewall Rule.
|
|
7
7
|
*
|
|
8
|
-
* If you want to configure Custom Firewall rules, you need to use
|
|
8
|
+
* > If you want to configure Custom Firewall rules, you need to use
|
|
9
|
+
* `cloudflare.Ruleset`, because Custom Rules are built upon the
|
|
9
10
|
* [Cloudflare Ruleset Engine](https://developers.cloudflare.com/ruleset-engine/).
|
|
10
11
|
*
|
|
11
12
|
* ## Example Usage
|
|
@@ -29,13 +30,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
29
30
|
*
|
|
30
31
|
* ## Import
|
|
31
32
|
*
|
|
32
|
-
* Firewall Rule can be imported using a composite ID formed of zone ID and rule ID, e.g.
|
|
33
|
-
*
|
|
34
33
|
* ```sh
|
|
35
|
-
* $ pulumi import cloudflare:index/firewallRule:FirewallRule
|
|
34
|
+
* $ pulumi import cloudflare:index/firewallRule:FirewallRule example <zone_id>/<firewall_rule_id>
|
|
36
35
|
* ```
|
|
37
|
-
*
|
|
38
|
-
* where* `d41d8cd98f00b204e9800998ecf8427e` - zone ID * `9e107d9d372bb6826bd81d3542a419d6` - rule ID as returned by [API](https://api.cloudflare.com/#zone-firewall-filter-rules)
|
|
39
36
|
*/
|
|
40
37
|
export declare class FirewallRule extends pulumi.CustomResource {
|
|
41
38
|
/**
|
|
@@ -54,28 +51,34 @@ export declare class FirewallRule extends pulumi.CustomResource {
|
|
|
54
51
|
*/
|
|
55
52
|
static isInstance(obj: any): obj is FirewallRule;
|
|
56
53
|
/**
|
|
57
|
-
* The action to apply to a matched request.
|
|
54
|
+
* The action to apply to a matched request. Available values: `block`, `challenge`, `allow`, `js_challenge`,
|
|
55
|
+
* `managed_challenge`, `log`, `bypass`
|
|
58
56
|
*/
|
|
59
57
|
readonly action: pulumi.Output<string>;
|
|
60
58
|
/**
|
|
61
59
|
* A description of the rule to help identify it.
|
|
62
60
|
*/
|
|
63
61
|
readonly description: pulumi.Output<string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* The identifier of the Filter to use for determining if the Firewall Rule should be triggered.
|
|
64
|
+
*/
|
|
64
65
|
readonly filterId: pulumi.Output<string>;
|
|
65
66
|
/**
|
|
66
|
-
* Whether this filter based firewall rule is currently paused.
|
|
67
|
+
* Whether this filter based firewall rule is currently paused.
|
|
67
68
|
*/
|
|
68
69
|
readonly paused: pulumi.Output<boolean | undefined>;
|
|
69
70
|
/**
|
|
70
|
-
* The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided,
|
|
71
|
+
* The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided,
|
|
72
|
+
* any rules with a priority will be sequenced before those without.
|
|
71
73
|
*/
|
|
72
74
|
readonly priority: pulumi.Output<number | undefined>;
|
|
73
75
|
/**
|
|
74
|
-
* List of products to bypass for a request when the bypass action is used.
|
|
76
|
+
* List of products to bypass for a request when the bypass action is used. Available values: `zoneLockdown`, `uaBlock`,
|
|
77
|
+
* `bic`, `hot`, `securityLevel`, `rateLimit`, `waf`
|
|
75
78
|
*/
|
|
76
79
|
readonly products: pulumi.Output<string[] | undefined>;
|
|
77
80
|
/**
|
|
78
|
-
* The
|
|
81
|
+
* The zone identifier to target for the resource.
|
|
79
82
|
*/
|
|
80
83
|
readonly zoneId: pulumi.Output<string>;
|
|
81
84
|
/**
|
|
@@ -92,28 +95,34 @@ export declare class FirewallRule extends pulumi.CustomResource {
|
|
|
92
95
|
*/
|
|
93
96
|
export interface FirewallRuleState {
|
|
94
97
|
/**
|
|
95
|
-
* The action to apply to a matched request.
|
|
98
|
+
* The action to apply to a matched request. Available values: `block`, `challenge`, `allow`, `js_challenge`,
|
|
99
|
+
* `managed_challenge`, `log`, `bypass`
|
|
96
100
|
*/
|
|
97
101
|
action?: pulumi.Input<string>;
|
|
98
102
|
/**
|
|
99
103
|
* A description of the rule to help identify it.
|
|
100
104
|
*/
|
|
101
105
|
description?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The identifier of the Filter to use for determining if the Firewall Rule should be triggered.
|
|
108
|
+
*/
|
|
102
109
|
filterId?: pulumi.Input<string>;
|
|
103
110
|
/**
|
|
104
|
-
* Whether this filter based firewall rule is currently paused.
|
|
111
|
+
* Whether this filter based firewall rule is currently paused.
|
|
105
112
|
*/
|
|
106
113
|
paused?: pulumi.Input<boolean>;
|
|
107
114
|
/**
|
|
108
|
-
* The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided,
|
|
115
|
+
* The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided,
|
|
116
|
+
* any rules with a priority will be sequenced before those without.
|
|
109
117
|
*/
|
|
110
118
|
priority?: pulumi.Input<number>;
|
|
111
119
|
/**
|
|
112
|
-
* List of products to bypass for a request when the bypass action is used.
|
|
120
|
+
* List of products to bypass for a request when the bypass action is used. Available values: `zoneLockdown`, `uaBlock`,
|
|
121
|
+
* `bic`, `hot`, `securityLevel`, `rateLimit`, `waf`
|
|
113
122
|
*/
|
|
114
123
|
products?: pulumi.Input<pulumi.Input<string>[]>;
|
|
115
124
|
/**
|
|
116
|
-
* The
|
|
125
|
+
* The zone identifier to target for the resource.
|
|
117
126
|
*/
|
|
118
127
|
zoneId?: pulumi.Input<string>;
|
|
119
128
|
}
|
|
@@ -122,28 +131,34 @@ export interface FirewallRuleState {
|
|
|
122
131
|
*/
|
|
123
132
|
export interface FirewallRuleArgs {
|
|
124
133
|
/**
|
|
125
|
-
* The action to apply to a matched request.
|
|
134
|
+
* The action to apply to a matched request. Available values: `block`, `challenge`, `allow`, `js_challenge`,
|
|
135
|
+
* `managed_challenge`, `log`, `bypass`
|
|
126
136
|
*/
|
|
127
137
|
action: pulumi.Input<string>;
|
|
128
138
|
/**
|
|
129
139
|
* A description of the rule to help identify it.
|
|
130
140
|
*/
|
|
131
141
|
description?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The identifier of the Filter to use for determining if the Firewall Rule should be triggered.
|
|
144
|
+
*/
|
|
132
145
|
filterId: pulumi.Input<string>;
|
|
133
146
|
/**
|
|
134
|
-
* Whether this filter based firewall rule is currently paused.
|
|
147
|
+
* Whether this filter based firewall rule is currently paused.
|
|
135
148
|
*/
|
|
136
149
|
paused?: pulumi.Input<boolean>;
|
|
137
150
|
/**
|
|
138
|
-
* The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided,
|
|
151
|
+
* The priority of the rule to allow control of processing order. A lower number indicates high priority. If not provided,
|
|
152
|
+
* any rules with a priority will be sequenced before those without.
|
|
139
153
|
*/
|
|
140
154
|
priority?: pulumi.Input<number>;
|
|
141
155
|
/**
|
|
142
|
-
* List of products to bypass for a request when the bypass action is used.
|
|
156
|
+
* List of products to bypass for a request when the bypass action is used. Available values: `zoneLockdown`, `uaBlock`,
|
|
157
|
+
* `bic`, `hot`, `securityLevel`, `rateLimit`, `waf`
|
|
143
158
|
*/
|
|
144
159
|
products?: pulumi.Input<pulumi.Input<string>[]>;
|
|
145
160
|
/**
|
|
146
|
-
* The
|
|
161
|
+
* The zone identifier to target for the resource.
|
|
147
162
|
*/
|
|
148
163
|
zoneId: pulumi.Input<string>;
|
|
149
164
|
}
|
package/firewallRule.js
CHANGED
|
@@ -9,9 +9,10 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* Define Firewall rules using filter expressions for more control over how traffic is matched to the rule.
|
|
10
10
|
* A filter expression permits selecting traffic by multiple criteria allowing greater freedom in rule creation.
|
|
11
11
|
*
|
|
12
|
-
* Filter expressions needs to be created first before using Firewall Rule.
|
|
12
|
+
* Filter expressions needs to be created first before using Firewall Rule.
|
|
13
13
|
*
|
|
14
|
-
* If you want to configure Custom Firewall rules, you need to use
|
|
14
|
+
* > If you want to configure Custom Firewall rules, you need to use
|
|
15
|
+
* `cloudflare.Ruleset`, because Custom Rules are built upon the
|
|
15
16
|
* [Cloudflare Ruleset Engine](https://developers.cloudflare.com/ruleset-engine/).
|
|
16
17
|
*
|
|
17
18
|
* ## Example Usage
|
|
@@ -35,13 +36,9 @@ const utilities = require("./utilities");
|
|
|
35
36
|
*
|
|
36
37
|
* ## Import
|
|
37
38
|
*
|
|
38
|
-
* Firewall Rule can be imported using a composite ID formed of zone ID and rule ID, e.g.
|
|
39
|
-
*
|
|
40
39
|
* ```sh
|
|
41
|
-
* $ pulumi import cloudflare:index/firewallRule:FirewallRule
|
|
40
|
+
* $ pulumi import cloudflare:index/firewallRule:FirewallRule example <zone_id>/<firewall_rule_id>
|
|
42
41
|
* ```
|
|
43
|
-
*
|
|
44
|
-
* where* `d41d8cd98f00b204e9800998ecf8427e` - zone ID * `9e107d9d372bb6826bd81d3542a419d6` - rule ID as returned by [API](https://api.cloudflare.com/#zone-firewall-filter-rules)
|
|
45
42
|
*/
|
|
46
43
|
class FirewallRule extends pulumi.CustomResource {
|
|
47
44
|
constructor(name, argsOrState, opts) {
|
package/firewallRule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewallRule.js","sourceRoot":"","sources":["../firewallRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"firewallRule.js","sourceRoot":"","sources":["../firewallRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAoEnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,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AC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IApGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAsGC;AAxFG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -1,44 +1,11 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Use this data source to lookup a single [Access Identity Provider][accessIdentityProviderGuide] by name.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
-
*
|
|
11
|
-
* const mainAccessIdentityProvider = cloudflare.getAccessIdentityProvider({
|
|
12
|
-
* name: "Google SSO",
|
|
13
|
-
* accountId: "example-account-id",
|
|
14
|
-
* });
|
|
15
|
-
* const mainAccessApplication = new cloudflare.AccessApplication("mainAccessApplication", {
|
|
16
|
-
* zoneId: "example.com",
|
|
17
|
-
* name: "name",
|
|
18
|
-
* domain: "name.example.com",
|
|
19
|
-
* type: "self_hosted",
|
|
20
|
-
* sessionDuration: "24h",
|
|
21
|
-
* allowedIdps: [mainAccessIdentityProvider.then(mainAccessIdentityProvider => mainAccessIdentityProvider.id)],
|
|
22
|
-
* autoRedirectToIdentity: true,
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
2
|
export declare function getAccessIdentityProvider(args: GetAccessIdentityProviderArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessIdentityProviderResult>;
|
|
27
3
|
/**
|
|
28
4
|
* A collection of arguments for invoking getAccessIdentityProvider.
|
|
29
5
|
*/
|
|
30
6
|
export interface GetAccessIdentityProviderArgs {
|
|
31
|
-
/**
|
|
32
|
-
* The account for which to look for an Access Identity Provider. Conflicts with `zoneId`.
|
|
33
|
-
*/
|
|
34
7
|
accountId?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Access Identity Provider name to search for.
|
|
37
|
-
*/
|
|
38
8
|
name: string;
|
|
39
|
-
/**
|
|
40
|
-
* The Zone's ID. Conflicts with `accountId`.
|
|
41
|
-
*/
|
|
42
9
|
zoneId?: string;
|
|
43
10
|
}
|
|
44
11
|
/**
|
|
@@ -50,13 +17,7 @@ export interface GetAccessIdentityProviderResult {
|
|
|
50
17
|
* The provider-assigned unique ID for this managed resource.
|
|
51
18
|
*/
|
|
52
19
|
readonly id: string;
|
|
53
|
-
/**
|
|
54
|
-
* Access Identity Provider Name
|
|
55
|
-
*/
|
|
56
20
|
readonly name: string;
|
|
57
|
-
/**
|
|
58
|
-
* Access Identity Provider Type
|
|
59
|
-
*/
|
|
60
21
|
readonly type: string;
|
|
61
22
|
readonly zoneId?: string;
|
|
62
23
|
}
|
|
@@ -65,16 +26,7 @@ export declare function getAccessIdentityProviderOutput(args: GetAccessIdentityP
|
|
|
65
26
|
* A collection of arguments for invoking getAccessIdentityProvider.
|
|
66
27
|
*/
|
|
67
28
|
export interface GetAccessIdentityProviderOutputArgs {
|
|
68
|
-
/**
|
|
69
|
-
* The account for which to look for an Access Identity Provider. Conflicts with `zoneId`.
|
|
70
|
-
*/
|
|
71
29
|
accountId?: pulumi.Input<string>;
|
|
72
|
-
/**
|
|
73
|
-
* Access Identity Provider name to search for.
|
|
74
|
-
*/
|
|
75
30
|
name: pulumi.Input<string>;
|
|
76
|
-
/**
|
|
77
|
-
* The Zone's ID. Conflicts with `accountId`.
|
|
78
|
-
*/
|
|
79
31
|
zoneId?: pulumi.Input<string>;
|
|
80
32
|
}
|
|
@@ -5,30 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getAccessIdentityProviderOutput = exports.getAccessIdentityProvider = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Use this data source to lookup a single [Access Identity Provider][accessIdentityProviderGuide] by name.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
-
*
|
|
17
|
-
* const mainAccessIdentityProvider = cloudflare.getAccessIdentityProvider({
|
|
18
|
-
* name: "Google SSO",
|
|
19
|
-
* accountId: "example-account-id",
|
|
20
|
-
* });
|
|
21
|
-
* const mainAccessApplication = new cloudflare.AccessApplication("mainAccessApplication", {
|
|
22
|
-
* zoneId: "example.com",
|
|
23
|
-
* name: "name",
|
|
24
|
-
* domain: "name.example.com",
|
|
25
|
-
* type: "self_hosted",
|
|
26
|
-
* sessionDuration: "24h",
|
|
27
|
-
* allowedIdps: [mainAccessIdentityProvider.then(mainAccessIdentityProvider => mainAccessIdentityProvider.id)],
|
|
28
|
-
* autoRedirectToIdentity: true,
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
8
|
function getAccessIdentityProvider(args, opts) {
|
|
33
9
|
if (!opts) {
|
|
34
10
|
opts = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccessIdentityProvider.js","sourceRoot":"","sources":["../getAccessIdentityProvider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAccessIdentityProvider.js","sourceRoot":"","sources":["../getAccessIdentityProvider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sEAAsE,EAAE;QACjG,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8DAWC;AAyBD,SAAgB,+BAA+B,CAAC,IAAyC,EAAE,IAA2B;IAClH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,0EAEC"}
|
package/getAccountRoles.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { output as outputs } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* Use this data source to lookup [Account Roles](https://api.cloudflare.com/#account-roles-properties).
|
|
5
|
-
*/
|
|
6
3
|
export declare function getAccountRoles(args: GetAccountRolesArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountRolesResult>;
|
|
7
4
|
/**
|
|
8
5
|
* A collection of arguments for invoking getAccountRoles.
|
|
9
6
|
*/
|
|
10
7
|
export interface GetAccountRolesArgs {
|
|
11
|
-
/**
|
|
12
|
-
* The account for which to list the roles.
|
|
13
|
-
*/
|
|
14
8
|
accountId: string;
|
|
15
9
|
}
|
|
16
10
|
/**
|
|
@@ -22,9 +16,6 @@ export interface GetAccountRolesResult {
|
|
|
22
16
|
* The provider-assigned unique ID for this managed resource.
|
|
23
17
|
*/
|
|
24
18
|
readonly id: string;
|
|
25
|
-
/**
|
|
26
|
-
* A list of roles object. See below for nested attributes.
|
|
27
|
-
*/
|
|
28
19
|
readonly roles: outputs.GetAccountRolesRole[];
|
|
29
20
|
}
|
|
30
21
|
export declare function getAccountRolesOutput(args: GetAccountRolesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountRolesResult>;
|
|
@@ -32,8 +23,5 @@ export declare function getAccountRolesOutput(args: GetAccountRolesOutputArgs, o
|
|
|
32
23
|
* A collection of arguments for invoking getAccountRoles.
|
|
33
24
|
*/
|
|
34
25
|
export interface GetAccountRolesOutputArgs {
|
|
35
|
-
/**
|
|
36
|
-
* The account for which to list the roles.
|
|
37
|
-
*/
|
|
38
26
|
accountId: pulumi.Input<string>;
|
|
39
27
|
}
|
package/getAccountRoles.js
CHANGED
|
@@ -5,9 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getAccountRolesOutput = exports.getAccountRoles = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Use this data source to lookup [Account Roles](https://api.cloudflare.com/#account-roles-properties).
|
|
10
|
-
*/
|
|
11
8
|
function getAccountRoles(args, opts) {
|
|
12
9
|
if (!opts) {
|
|
13
10
|
opts = {};
|
package/getAccountRoles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccountRoles.js","sourceRoot":"","sources":["../getAccountRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAccountRoles.js","sourceRoot":"","sources":["../getAccountRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,0CASC;AAqBD,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,sDAEC"}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Use this data source to look up [API Token Permission Groups](https://developers.cloudflare.com/api/tokens/create/permissions). Commonly used as references within [`cloudflare.ApiToken`](https://www.terraform.io/docs/providers/cloudflare/r/api_token.html) resources.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
10
|
-
*
|
|
11
|
-
* const test = cloudflare.getApiTokenPermissionGroups({});
|
|
12
|
-
* export const dnsReadPermissionId = test.then(test => test.permissions?["DNS Read"]);
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
2
|
export declare function getApiTokenPermissionGroups(opts?: pulumi.InvokeOptions): Promise<GetApiTokenPermissionGroupsResult>;
|
|
16
3
|
/**
|
|
17
4
|
* A collection of values returned by getApiTokenPermissionGroups.
|
|
@@ -21,10 +8,6 @@ export interface GetApiTokenPermissionGroupsResult {
|
|
|
21
8
|
* The provider-assigned unique ID for this managed resource.
|
|
22
9
|
*/
|
|
23
10
|
readonly id: string;
|
|
24
|
-
/**
|
|
25
|
-
* A map of permission groups where keys are human-readable permission names
|
|
26
|
-
* and values are permission IDs.
|
|
27
|
-
*/
|
|
28
11
|
readonly permissions: {
|
|
29
12
|
[key: string]: any;
|
|
30
13
|
};
|
|
@@ -5,19 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getApiTokenPermissionGroups = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Use this data source to look up [API Token Permission Groups](https://developers.cloudflare.com/api/tokens/create/permissions). Commonly used as references within [`cloudflare.ApiToken`](https://www.terraform.io/docs/providers/cloudflare/r/api_token.html) resources.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as cloudflare from "@pulumi/cloudflare";
|
|
16
|
-
*
|
|
17
|
-
* const test = cloudflare.getApiTokenPermissionGroups({});
|
|
18
|
-
* export const dnsReadPermissionId = test.then(test => test.permissions?["DNS Read"]);
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
8
|
function getApiTokenPermissionGroups(opts) {
|
|
22
9
|
if (!opts) {
|
|
23
10
|
opts = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApiTokenPermissionGroups.js","sourceRoot":"","sources":["../getApiTokenPermissionGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getApiTokenPermissionGroups.js","sourceRoot":"","sources":["../getApiTokenPermissionGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,2BAA2B,CAAC,IAA2B;IACnE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kEAQC"}
|