@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.
Files changed (156) hide show
  1. package/accessApplication.d.ts +54 -80
  2. package/accessApplication.js +9 -5
  3. package/accessApplication.js.map +1 -1
  4. package/accessBookmark.d.ts +21 -22
  5. package/accessBookmark.js +9 -7
  6. package/accessBookmark.js.map +1 -1
  7. package/accessCaCertificate.d.ts +21 -11
  8. package/accessCaCertificate.js +15 -5
  9. package/accessCaCertificate.js.map +1 -1
  10. package/accessGroup.d.ts +14 -92
  11. package/accessGroup.js +8 -41
  12. package/accessGroup.js.map +1 -1
  13. package/accessIdentityProvider.d.ts +26 -28
  14. package/accessIdentityProvider.js +8 -10
  15. package/accessIdentityProvider.js.map +1 -1
  16. package/accessKeysConfiguration.d.ts +18 -0
  17. package/accessKeysConfiguration.js.map +1 -1
  18. package/accessMutualTlsCertificate.d.ts +20 -8
  19. package/accessMutualTlsCertificate.js +14 -2
  20. package/accessMutualTlsCertificate.js.map +1 -1
  21. package/accessPolicy.d.ts +53 -49
  22. package/accessPolicy.js +11 -7
  23. package/accessPolicy.js.map +1 -1
  24. package/accessRule.d.ts +67 -14
  25. package/accessRule.js +55 -5
  26. package/accessRule.js.map +1 -1
  27. package/accessServiceToken.d.ts +18 -12
  28. package/accessServiceToken.js +3 -6
  29. package/accessServiceToken.js.map +1 -1
  30. package/accountMember.d.ts +10 -11
  31. package/accountMember.js +1 -5
  32. package/accountMember.js.map +1 -1
  33. package/apiToken.d.ts +11 -122
  34. package/apiToken.js +1 -109
  35. package/apiToken.js.map +1 -1
  36. package/argo.d.ts +10 -14
  37. package/argo.js +1 -5
  38. package/argo.js.map +1 -1
  39. package/argoTunnel.d.ts +8 -0
  40. package/argoTunnel.js +2 -0
  41. package/argoTunnel.js.map +1 -1
  42. package/byoIpPrefix.d.ts +9 -0
  43. package/byoIpPrefix.js.map +1 -1
  44. package/config/vars.d.ts +22 -12
  45. package/config/vars.js.map +1 -1
  46. package/customPages.d.ts +1 -1
  47. package/customPages.js +1 -1
  48. package/filter.d.ts +8 -12
  49. package/filter.js +2 -6
  50. package/filter.js.map +1 -1
  51. package/firewallRule.d.ts +37 -22
  52. package/firewallRule.js +4 -7
  53. package/firewallRule.js.map +1 -1
  54. package/getAccessIdentityProvider.d.ts +0 -48
  55. package/getAccessIdentityProvider.js +0 -24
  56. package/getAccessIdentityProvider.js.map +1 -1
  57. package/getAccountRoles.d.ts +0 -12
  58. package/getAccountRoles.js +0 -3
  59. package/getAccountRoles.js.map +1 -1
  60. package/getApiTokenPermissionGroups.d.ts +0 -17
  61. package/getApiTokenPermissionGroups.js +0 -13
  62. package/getApiTokenPermissionGroups.js.map +1 -1
  63. package/getDevices.d.ts +0 -23
  64. package/getDevices.js +0 -14
  65. package/getDevices.js.map +1 -1
  66. package/getIpRanges.d.ts +0 -36
  67. package/getIpRanges.js +0 -21
  68. package/getIpRanges.js.map +1 -1
  69. package/getOriginCaRootCertificate.d.ts +0 -23
  70. package/getOriginCaRootCertificate.js +0 -14
  71. package/getOriginCaRootCertificate.js.map +1 -1
  72. package/getWafGroups.d.ts +0 -46
  73. package/getWafGroups.js +0 -20
  74. package/getWafGroups.js.map +1 -1
  75. package/getWafPackages.d.ts +0 -39
  76. package/getWafPackages.js +0 -22
  77. package/getWafPackages.js.map +1 -1
  78. package/getWafRules.d.ts +0 -49
  79. package/getWafRules.js +0 -23
  80. package/getWafRules.js.map +1 -1
  81. package/getZone.d.ts +0 -81
  82. package/getZone.js +0 -41
  83. package/getZone.js.map +1 -1
  84. package/getZoneDnssec.d.ts +0 -50
  85. package/getZoneDnssec.js +0 -14
  86. package/getZoneDnssec.js.map +1 -1
  87. package/getZones.d.ts +0 -81
  88. package/getZones.js +0 -70
  89. package/getZones.js.map +1 -1
  90. package/healthcheck.d.ts +100 -74
  91. package/healthcheck.js +10 -14
  92. package/healthcheck.js.map +1 -1
  93. package/index.d.ts +4 -1
  94. package/index.js +20 -5
  95. package/index.js.map +1 -1
  96. package/ipsecTunnel.d.ts +107 -6
  97. package/ipsecTunnel.js +21 -3
  98. package/ipsecTunnel.js.map +1 -1
  99. package/list.d.ts +137 -0
  100. package/list.js +115 -0
  101. package/list.js.map +1 -0
  102. package/loadBalancerMonitor.d.ts +2 -0
  103. package/loadBalancerMonitor.js +2 -0
  104. package/loadBalancerMonitor.js.map +1 -1
  105. package/logpushJob.d.ts +94 -64
  106. package/logpushJob.js +10 -37
  107. package/logpushJob.js.map +1 -1
  108. package/{logPushOwnershipChallenge.d.ts → logpushOwnershipChallenge.d.ts} +13 -13
  109. package/{logPushOwnershipChallenge.js → logpushOwnershipChallenge.js} +12 -12
  110. package/{logPushOwnershipChallenge.js.map → logpushOwnershipChallenge.js.map} +1 -1
  111. package/managedHeaders.d.ts +98 -0
  112. package/managedHeaders.js +81 -0
  113. package/managedHeaders.js.map +1 -0
  114. package/notificationPolicy.d.ts +59 -78
  115. package/notificationPolicy.js +2 -57
  116. package/notificationPolicy.js.map +1 -1
  117. package/package.json +2 -2
  118. package/package.json.dev +2 -2
  119. package/provider.d.ts +38 -19
  120. package/provider.js.map +1 -1
  121. package/record.d.ts +1 -1
  122. package/record.js +1 -1
  123. package/ruleset.d.ts +147 -24
  124. package/ruleset.js +111 -3
  125. package/ruleset.js.map +1 -1
  126. package/spectrumApplication.d.ts +7 -7
  127. package/spectrumApplication.js +1 -1
  128. package/tunnelRoute.d.ts +29 -17
  129. package/tunnelRoute.js +13 -14
  130. package/tunnelRoute.js.map +1 -1
  131. package/tunnelVirtualNetwork.d.ts +111 -0
  132. package/tunnelVirtualNetwork.js +85 -0
  133. package/tunnelVirtualNetwork.js.map +1 -0
  134. package/types/input.d.ts +145 -424
  135. package/types/output.d.ts +141 -491
  136. package/waitingRoom.d.ts +48 -34
  137. package/waitingRoom.js +5 -4
  138. package/waitingRoom.js.map +1 -1
  139. package/waitingRoomEvent.d.ts +52 -35
  140. package/waitingRoomEvent.js +4 -5
  141. package/waitingRoomEvent.js.map +1 -1
  142. package/workerCronTrigger.d.ts +9 -0
  143. package/workerCronTrigger.js.map +1 -1
  144. package/workerRoute.d.ts +2 -2
  145. package/workerRoute.js +2 -2
  146. package/workerScript.d.ts +2 -2
  147. package/workerScript.js +2 -2
  148. package/workersKv.d.ts +1 -1
  149. package/workersKv.js +1 -1
  150. package/zone.d.ts +5 -5
  151. package/zone.js +1 -1
  152. package/zoneDnssec.d.ts +1 -1
  153. package/zoneDnssec.js +1 -1
  154. package/zoneLockdown.d.ts +4 -4
  155. package/zoneLockdown.js +1 -1
  156. package/zoneSettingsOverride.d.ts +4 -4
@@ -1,10 +1,16 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * Provides a Cloudflare Access Application resource. Access Applications
5
- * are used to restrict access to a whole application using an
4
+ * Provides a Cloudflare Access Application resource. Access
5
+ * Applications are used to restrict access to a whole application using an
6
6
  * authorisation gateway managed by Cloudflare.
7
7
  *
8
+ * > It's required that an `accountId` or `zoneId` is provided and in
9
+ * most cases using either is fine. However, if you're using a scoped
10
+ * access token, you must provide the argument that matches the token's
11
+ * scope. For example, an access token that is scoped to the "example.com"
12
+ * zone needs to use the `zoneId` argument.
13
+ *
8
14
  * ## Example Usage
9
15
  *
10
16
  * ```typescript
@@ -33,10 +39,8 @@ import { input as inputs, output as outputs } from "./types";
33
39
  *
34
40
  * ## Import
35
41
  *
36
- * Access Applications can be imported using a composite ID formed of account ID and application ID.
37
- *
38
42
  * ```sh
39
- * $ pulumi import cloudflare:index/accessApplication:AccessApplication staging cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
43
+ * $ pulumi import cloudflare:index/accessApplication:AccessApplication example <account_id>/<application_id>
40
44
  * ```
41
45
  */
42
46
  export declare class AccessApplication extends pulumi.CustomResource {
@@ -56,7 +60,7 @@ export declare class AccessApplication extends pulumi.CustomResource {
56
60
  */
57
61
  static isInstance(obj: any): obj is AccessApplication;
58
62
  /**
59
- * The account to which the access application should be added. Conflicts with `zoneId`.
63
+ * The account identifier to target for the resource.
60
64
  */
61
65
  readonly accountId: pulumi.Output<string>;
62
66
  /**
@@ -64,22 +68,19 @@ export declare class AccessApplication extends pulumi.CustomResource {
64
68
  */
65
69
  readonly allowedIdps: pulumi.Output<string[] | undefined>;
66
70
  /**
67
- * Option to show/hide applications in App Launcher. Defaults to `true`.
71
+ * Option to show/hide applications in App Launcher.
68
72
  */
69
73
  readonly appLauncherVisible: pulumi.Output<boolean | undefined>;
70
74
  /**
71
- * Application Audience (AUD) Tag of the application
75
+ * Application Audience (AUD) Tag of the application.
72
76
  */
73
77
  readonly aud: pulumi.Output<string>;
74
78
  /**
75
- * Option to skip identity provider
76
- * selection if only one is configured in allowed_idps. Defaults to `false`
77
- * (disabled).
79
+ * Option to skip identity provider selection if only one is configured in `allowed_idps`.
78
80
  */
79
81
  readonly autoRedirectToIdentity: pulumi.Output<boolean | undefined>;
80
82
  /**
81
- * CORS configuration for the Access Application. See
82
- * below for reference structure.
83
+ * CORS configuration for the Access Application. See below for reference structure.
83
84
  */
84
85
  readonly corsHeaders: pulumi.Output<outputs.AccessApplicationCorsHeader[] | undefined>;
85
86
  /**
@@ -91,21 +92,20 @@ export declare class AccessApplication extends pulumi.CustomResource {
91
92
  */
92
93
  readonly customDenyUrl: pulumi.Output<string | undefined>;
93
94
  /**
94
- * The complete URL of the asset you wish to put
95
- * Cloudflare Access in front of. Can include subdomains or paths. Or both.
95
+ * The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
96
96
  */
97
97
  readonly domain: pulumi.Output<string>;
98
98
  /**
99
- * Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to `false`.
99
+ * Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an
100
+ * additional "binding" cookie on requests.
100
101
  */
101
102
  readonly enableBindingCookie: pulumi.Output<boolean | undefined>;
102
103
  /**
103
104
  * Option to add the `HttpOnly` cookie flag to access tokens.
104
105
  */
105
- readonly httpOnlyCookieAttribute: pulumi.Output<boolean>;
106
+ readonly httpOnlyCookieAttribute: pulumi.Output<boolean | undefined>;
106
107
  /**
107
- * Image URL for the logo shown in the app launcher
108
- * dashboard.
108
+ * Image URL for the logo shown in the app launcher dashboard.
109
109
  */
110
110
  readonly logoUrl: pulumi.Output<string | undefined>;
111
111
  /**
@@ -113,33 +113,27 @@ export declare class AccessApplication extends pulumi.CustomResource {
113
113
  */
114
114
  readonly name: pulumi.Output<string>;
115
115
  /**
116
- * Defines the same-site cookie setting
117
- * for access tokens. Valid values are `none`, `lax`, and `strict`.
116
+ * Defines the same-site cookie setting for access tokens. Available values: `none`, `lax`, `strict`
118
117
  */
119
118
  readonly sameSiteCookieAttribute: pulumi.Output<string | undefined>;
120
119
  /**
121
- * Option to return a 401 status code in
122
- * service authentication rules on failed requests.
120
+ * Option to return a 401 status code in service authentication rules on failed requests.
123
121
  */
124
122
  readonly serviceAuth401Redirect: pulumi.Output<boolean | undefined>;
125
123
  /**
126
- * How often a user will be forced to
127
- * re-authorise. Must be in the format `"48h"` or `"2h45m"`.
128
- * Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. Defaults to `24h`.
124
+ * How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`
129
125
  */
130
126
  readonly sessionDuration: pulumi.Output<string | undefined>;
131
127
  /**
132
- * Option to skip the authorization interstitial
133
- * when using the CLI.
128
+ * Option to skip the authorization interstitial when using the CLI.
134
129
  */
135
130
  readonly skipInterstitial: pulumi.Output<boolean | undefined>;
136
131
  /**
137
- * The application type. Defaults to `selfHosted`. Valid
138
- * values are `selfHosted`, `ssh`, `vnc`, `file` or `bookmark`.
132
+ * The application type. Available values: `self_hosted`, `ssh`, `vnc`, `file`
139
133
  */
140
134
  readonly type: pulumi.Output<string | undefined>;
141
135
  /**
142
- * The DNS zone to which the access application should be added. Conflicts with `accountId`.
136
+ * The zone identifier to target for the resource.
143
137
  */
144
138
  readonly zoneId: pulumi.Output<string>;
145
139
  /**
@@ -156,7 +150,7 @@ export declare class AccessApplication extends pulumi.CustomResource {
156
150
  */
157
151
  export interface AccessApplicationState {
158
152
  /**
159
- * The account to which the access application should be added. Conflicts with `zoneId`.
153
+ * The account identifier to target for the resource.
160
154
  */
161
155
  accountId?: pulumi.Input<string>;
162
156
  /**
@@ -164,22 +158,19 @@ export interface AccessApplicationState {
164
158
  */
165
159
  allowedIdps?: pulumi.Input<pulumi.Input<string>[]>;
166
160
  /**
167
- * Option to show/hide applications in App Launcher. Defaults to `true`.
161
+ * Option to show/hide applications in App Launcher.
168
162
  */
169
163
  appLauncherVisible?: pulumi.Input<boolean>;
170
164
  /**
171
- * Application Audience (AUD) Tag of the application
165
+ * Application Audience (AUD) Tag of the application.
172
166
  */
173
167
  aud?: pulumi.Input<string>;
174
168
  /**
175
- * Option to skip identity provider
176
- * selection if only one is configured in allowed_idps. Defaults to `false`
177
- * (disabled).
169
+ * Option to skip identity provider selection if only one is configured in `allowed_idps`.
178
170
  */
179
171
  autoRedirectToIdentity?: pulumi.Input<boolean>;
180
172
  /**
181
- * CORS configuration for the Access Application. See
182
- * below for reference structure.
173
+ * CORS configuration for the Access Application. See below for reference structure.
183
174
  */
184
175
  corsHeaders?: pulumi.Input<pulumi.Input<inputs.AccessApplicationCorsHeader>[]>;
185
176
  /**
@@ -191,12 +182,12 @@ export interface AccessApplicationState {
191
182
  */
192
183
  customDenyUrl?: pulumi.Input<string>;
193
184
  /**
194
- * The complete URL of the asset you wish to put
195
- * Cloudflare Access in front of. Can include subdomains or paths. Or both.
185
+ * The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
196
186
  */
197
187
  domain?: pulumi.Input<string>;
198
188
  /**
199
- * Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to `false`.
189
+ * Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an
190
+ * additional "binding" cookie on requests.
200
191
  */
201
192
  enableBindingCookie?: pulumi.Input<boolean>;
202
193
  /**
@@ -204,8 +195,7 @@ export interface AccessApplicationState {
204
195
  */
205
196
  httpOnlyCookieAttribute?: pulumi.Input<boolean>;
206
197
  /**
207
- * Image URL for the logo shown in the app launcher
208
- * dashboard.
198
+ * Image URL for the logo shown in the app launcher dashboard.
209
199
  */
210
200
  logoUrl?: pulumi.Input<string>;
211
201
  /**
@@ -213,33 +203,27 @@ export interface AccessApplicationState {
213
203
  */
214
204
  name?: pulumi.Input<string>;
215
205
  /**
216
- * Defines the same-site cookie setting
217
- * for access tokens. Valid values are `none`, `lax`, and `strict`.
206
+ * Defines the same-site cookie setting for access tokens. Available values: `none`, `lax`, `strict`
218
207
  */
219
208
  sameSiteCookieAttribute?: pulumi.Input<string>;
220
209
  /**
221
- * Option to return a 401 status code in
222
- * service authentication rules on failed requests.
210
+ * Option to return a 401 status code in service authentication rules on failed requests.
223
211
  */
224
212
  serviceAuth401Redirect?: pulumi.Input<boolean>;
225
213
  /**
226
- * How often a user will be forced to
227
- * re-authorise. Must be in the format `"48h"` or `"2h45m"`.
228
- * Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. Defaults to `24h`.
214
+ * How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`
229
215
  */
230
216
  sessionDuration?: pulumi.Input<string>;
231
217
  /**
232
- * Option to skip the authorization interstitial
233
- * when using the CLI.
218
+ * Option to skip the authorization interstitial when using the CLI.
234
219
  */
235
220
  skipInterstitial?: pulumi.Input<boolean>;
236
221
  /**
237
- * The application type. Defaults to `selfHosted`. Valid
238
- * values are `selfHosted`, `ssh`, `vnc`, `file` or `bookmark`.
222
+ * The application type. Available values: `self_hosted`, `ssh`, `vnc`, `file`
239
223
  */
240
224
  type?: pulumi.Input<string>;
241
225
  /**
242
- * The DNS zone to which the access application should be added. Conflicts with `accountId`.
226
+ * The zone identifier to target for the resource.
243
227
  */
244
228
  zoneId?: pulumi.Input<string>;
245
229
  }
@@ -248,7 +232,7 @@ export interface AccessApplicationState {
248
232
  */
249
233
  export interface AccessApplicationArgs {
250
234
  /**
251
- * The account to which the access application should be added. Conflicts with `zoneId`.
235
+ * The account identifier to target for the resource.
252
236
  */
253
237
  accountId?: pulumi.Input<string>;
254
238
  /**
@@ -256,18 +240,15 @@ export interface AccessApplicationArgs {
256
240
  */
257
241
  allowedIdps?: pulumi.Input<pulumi.Input<string>[]>;
258
242
  /**
259
- * Option to show/hide applications in App Launcher. Defaults to `true`.
243
+ * Option to show/hide applications in App Launcher.
260
244
  */
261
245
  appLauncherVisible?: pulumi.Input<boolean>;
262
246
  /**
263
- * Option to skip identity provider
264
- * selection if only one is configured in allowed_idps. Defaults to `false`
265
- * (disabled).
247
+ * Option to skip identity provider selection if only one is configured in `allowed_idps`.
266
248
  */
267
249
  autoRedirectToIdentity?: pulumi.Input<boolean>;
268
250
  /**
269
- * CORS configuration for the Access Application. See
270
- * below for reference structure.
251
+ * CORS configuration for the Access Application. See below for reference structure.
271
252
  */
272
253
  corsHeaders?: pulumi.Input<pulumi.Input<inputs.AccessApplicationCorsHeader>[]>;
273
254
  /**
@@ -279,12 +260,12 @@ export interface AccessApplicationArgs {
279
260
  */
280
261
  customDenyUrl?: pulumi.Input<string>;
281
262
  /**
282
- * The complete URL of the asset you wish to put
283
- * Cloudflare Access in front of. Can include subdomains or paths. Or both.
263
+ * The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
284
264
  */
285
265
  domain: pulumi.Input<string>;
286
266
  /**
287
- * Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an additional "binding" cookie on requests. Defaults to `false`.
267
+ * Option to provide increased security against compromised authorization tokens and CSRF attacks by requiring an
268
+ * additional "binding" cookie on requests.
288
269
  */
289
270
  enableBindingCookie?: pulumi.Input<boolean>;
290
271
  /**
@@ -292,8 +273,7 @@ export interface AccessApplicationArgs {
292
273
  */
293
274
  httpOnlyCookieAttribute?: pulumi.Input<boolean>;
294
275
  /**
295
- * Image URL for the logo shown in the app launcher
296
- * dashboard.
276
+ * Image URL for the logo shown in the app launcher dashboard.
297
277
  */
298
278
  logoUrl?: pulumi.Input<string>;
299
279
  /**
@@ -301,33 +281,27 @@ export interface AccessApplicationArgs {
301
281
  */
302
282
  name: pulumi.Input<string>;
303
283
  /**
304
- * Defines the same-site cookie setting
305
- * for access tokens. Valid values are `none`, `lax`, and `strict`.
284
+ * Defines the same-site cookie setting for access tokens. Available values: `none`, `lax`, `strict`
306
285
  */
307
286
  sameSiteCookieAttribute?: pulumi.Input<string>;
308
287
  /**
309
- * Option to return a 401 status code in
310
- * service authentication rules on failed requests.
288
+ * Option to return a 401 status code in service authentication rules on failed requests.
311
289
  */
312
290
  serviceAuth401Redirect?: pulumi.Input<boolean>;
313
291
  /**
314
- * How often a user will be forced to
315
- * re-authorise. Must be in the format `"48h"` or `"2h45m"`.
316
- * Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. Defaults to `24h`.
292
+ * How often a user will be forced to re-authorise. Must be in the format `48h` or `2h45m`
317
293
  */
318
294
  sessionDuration?: pulumi.Input<string>;
319
295
  /**
320
- * Option to skip the authorization interstitial
321
- * when using the CLI.
296
+ * Option to skip the authorization interstitial when using the CLI.
322
297
  */
323
298
  skipInterstitial?: pulumi.Input<boolean>;
324
299
  /**
325
- * The application type. Defaults to `selfHosted`. Valid
326
- * values are `selfHosted`, `ssh`, `vnc`, `file` or `bookmark`.
300
+ * The application type. Available values: `self_hosted`, `ssh`, `vnc`, `file`
327
301
  */
328
302
  type?: pulumi.Input<string>;
329
303
  /**
330
- * The DNS zone to which the access application should be added. Conflicts with `accountId`.
304
+ * The zone identifier to target for the resource.
331
305
  */
332
306
  zoneId?: pulumi.Input<string>;
333
307
  }
@@ -6,10 +6,16 @@ exports.AccessApplication = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Provides a Cloudflare Access Application resource. Access Applications
10
- * are used to restrict access to a whole application using an
9
+ * Provides a Cloudflare Access Application resource. Access
10
+ * Applications are used to restrict access to a whole application using an
11
11
  * authorisation gateway managed by Cloudflare.
12
12
  *
13
+ * > It's required that an `accountId` or `zoneId` is provided and in
14
+ * most cases using either is fine. However, if you're using a scoped
15
+ * access token, you must provide the argument that matches the token's
16
+ * scope. For example, an access token that is scoped to the "example.com"
17
+ * zone needs to use the `zoneId` argument.
18
+ *
13
19
  * ## Example Usage
14
20
  *
15
21
  * ```typescript
@@ -38,10 +44,8 @@ const utilities = require("./utilities");
38
44
  *
39
45
  * ## Import
40
46
  *
41
- * Access Applications can be imported using a composite ID formed of account ID and application ID.
42
- *
43
47
  * ```sh
44
- * $ pulumi import cloudflare:index/accessApplication:AccessApplication staging cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
48
+ * $ pulumi import cloudflare:index/accessApplication:AccessApplication example <account_id>/<application_id>
45
49
  * ```
46
50
  */
47
51
  class AccessApplication extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"accessApplication.js","sourceRoot":"","sources":["../accessApplication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA4HxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE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Ac,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAvKD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAyKC;AA3JG,gBAAgB;AACO,8BAAY,GAAG,sDAAsD,CAAC"}
@@ -1,8 +1,12 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Provides a Cloudflare Access Bookmark resource. Access Bookmark
4
- * applications are not protected behind Access but are displayed in the App
5
- * Launcher.
3
+ * Provides a Cloudflare Access Bookmark resource. Access Bookmark applications are not protected behind Access but are displayed in the App Launcher.
4
+ *
5
+ * > It's required that an `accountId` or `zoneId` is provided and in
6
+ * most cases using either is fine. However, if you're using a scoped
7
+ * access token, you must provide the argument that matches the token's
8
+ * scope. For example, an access token that is scoped to the "example.com"
9
+ * zone needs to use the `zoneId` argument.
6
10
  *
7
11
  * ## Example Usage
8
12
  *
@@ -14,17 +18,15 @@ import * as pulumi from "@pulumi/pulumi";
14
18
  * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
15
19
  * appLauncherVisible: true,
16
20
  * domain: "example.com",
17
- * logoUrl: "https://path-to-logo.com/example.png",
21
+ * logoUrl: "https://example.com/example.png",
18
22
  * name: "My Bookmark App",
19
23
  * });
20
24
  * ```
21
25
  *
22
26
  * ## Import
23
27
  *
24
- * Access Bookmarks can be imported using a composite ID formed of account ID and bookmark ID.
25
- *
26
28
  * ```sh
27
- * $ pulumi import cloudflare:index/accessBookmark:AccessBookmark my_bookmark cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
29
+ * $ pulumi import cloudflare:index/accessBookmark:AccessBookmark example <account_id>/<bookmark_id>
28
30
  * ```
29
31
  */
30
32
  export declare class AccessBookmark extends pulumi.CustomResource {
@@ -44,11 +46,11 @@ export declare class AccessBookmark extends pulumi.CustomResource {
44
46
  */
45
47
  static isInstance(obj: any): obj is AccessBookmark;
46
48
  /**
47
- * The account to which the Access bookmark application should be added. Conflicts with `zoneId`.
49
+ * The account identifier to target for the resource.
48
50
  */
49
51
  readonly accountId: pulumi.Output<string>;
50
52
  /**
51
- * Option to show/hide the bookmark in the app launcher. Defaults to `true`.
53
+ * Option to show/hide the bookmark in the app launcher.
52
54
  */
53
55
  readonly appLauncherVisible: pulumi.Output<boolean | undefined>;
54
56
  /**
@@ -56,8 +58,7 @@ export declare class AccessBookmark extends pulumi.CustomResource {
56
58
  */
57
59
  readonly domain: pulumi.Output<string>;
58
60
  /**
59
- * The image URL for the logo shown in the app
60
- * launcher dashboard.
61
+ * The image URL for the logo shown in the app launcher dashboard.
61
62
  */
62
63
  readonly logoUrl: pulumi.Output<string | undefined>;
63
64
  /**
@@ -65,7 +66,7 @@ export declare class AccessBookmark extends pulumi.CustomResource {
65
66
  */
66
67
  readonly name: pulumi.Output<string>;
67
68
  /**
68
- * The DNS zone to which the Access bookmark application should be added. Conflicts with `accountId`.
69
+ * The zone identifier to target for the resource.
69
70
  */
70
71
  readonly zoneId: pulumi.Output<string>;
71
72
  /**
@@ -82,11 +83,11 @@ export declare class AccessBookmark extends pulumi.CustomResource {
82
83
  */
83
84
  export interface AccessBookmarkState {
84
85
  /**
85
- * The account to which the Access bookmark application should be added. Conflicts with `zoneId`.
86
+ * The account identifier to target for the resource.
86
87
  */
87
88
  accountId?: pulumi.Input<string>;
88
89
  /**
89
- * Option to show/hide the bookmark in the app launcher. Defaults to `true`.
90
+ * Option to show/hide the bookmark in the app launcher.
90
91
  */
91
92
  appLauncherVisible?: pulumi.Input<boolean>;
92
93
  /**
@@ -94,8 +95,7 @@ export interface AccessBookmarkState {
94
95
  */
95
96
  domain?: pulumi.Input<string>;
96
97
  /**
97
- * The image URL for the logo shown in the app
98
- * launcher dashboard.
98
+ * The image URL for the logo shown in the app launcher dashboard.
99
99
  */
100
100
  logoUrl?: pulumi.Input<string>;
101
101
  /**
@@ -103,7 +103,7 @@ export interface AccessBookmarkState {
103
103
  */
104
104
  name?: pulumi.Input<string>;
105
105
  /**
106
- * The DNS zone to which the Access bookmark application should be added. Conflicts with `accountId`.
106
+ * The zone identifier to target for the resource.
107
107
  */
108
108
  zoneId?: pulumi.Input<string>;
109
109
  }
@@ -112,11 +112,11 @@ export interface AccessBookmarkState {
112
112
  */
113
113
  export interface AccessBookmarkArgs {
114
114
  /**
115
- * The account to which the Access bookmark application should be added. Conflicts with `zoneId`.
115
+ * The account identifier to target for the resource.
116
116
  */
117
117
  accountId?: pulumi.Input<string>;
118
118
  /**
119
- * Option to show/hide the bookmark in the app launcher. Defaults to `true`.
119
+ * Option to show/hide the bookmark in the app launcher.
120
120
  */
121
121
  appLauncherVisible?: pulumi.Input<boolean>;
122
122
  /**
@@ -124,8 +124,7 @@ export interface AccessBookmarkArgs {
124
124
  */
125
125
  domain: pulumi.Input<string>;
126
126
  /**
127
- * The image URL for the logo shown in the app
128
- * launcher dashboard.
127
+ * The image URL for the logo shown in the app launcher dashboard.
129
128
  */
130
129
  logoUrl?: pulumi.Input<string>;
131
130
  /**
@@ -133,7 +132,7 @@ export interface AccessBookmarkArgs {
133
132
  */
134
133
  name: pulumi.Input<string>;
135
134
  /**
136
- * The DNS zone to which the Access bookmark application should be added. Conflicts with `accountId`.
135
+ * The zone identifier to target for the resource.
137
136
  */
138
137
  zoneId?: pulumi.Input<string>;
139
138
  }
package/accessBookmark.js CHANGED
@@ -6,9 +6,13 @@ exports.AccessBookmark = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Provides a Cloudflare Access Bookmark resource. Access Bookmark
10
- * applications are not protected behind Access but are displayed in the App
11
- * Launcher.
9
+ * Provides a Cloudflare Access Bookmark resource. Access Bookmark applications are not protected behind Access but are displayed in the App Launcher.
10
+ *
11
+ * > It's required that an `accountId` or `zoneId` is provided and in
12
+ * most cases using either is fine. However, if you're using a scoped
13
+ * access token, you must provide the argument that matches the token's
14
+ * scope. For example, an access token that is scoped to the "example.com"
15
+ * zone needs to use the `zoneId` argument.
12
16
  *
13
17
  * ## Example Usage
14
18
  *
@@ -20,17 +24,15 @@ const utilities = require("./utilities");
20
24
  * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
21
25
  * appLauncherVisible: true,
22
26
  * domain: "example.com",
23
- * logoUrl: "https://path-to-logo.com/example.png",
27
+ * logoUrl: "https://example.com/example.png",
24
28
  * name: "My Bookmark App",
25
29
  * });
26
30
  * ```
27
31
  *
28
32
  * ## Import
29
33
  *
30
- * Access Bookmarks can be imported using a composite ID formed of account ID and bookmark ID.
31
- *
32
34
  * ```sh
33
- * $ pulumi import cloudflare:index/accessBookmark:AccessBookmark my_bookmark cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
35
+ * $ pulumi import cloudflare:index/accessBookmark:AccessBookmark example <account_id>/<bookmark_id>
34
36
  * ```
35
37
  */
36
38
  class AccessBookmark extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"accessBookmark.js","sourceRoot":"","sources":["../accessBookmark.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA8DrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC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AC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,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,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAxFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCA0FC;AA5EG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
@@ -1,8 +1,12 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Cloudflare Access can replace traditional SSH key models with short-lived
4
- * certificates issued to your users based on the token generated by their Access
5
- * login.
3
+ * Cloudflare Access can replace traditional SSH key models with short-lived certificates issued to your users based on the token generated by their Access login.
4
+ *
5
+ * > It's required that an `accountId` or `zoneId` is provided and in
6
+ * most cases using either is fine. However, if you're using a scoped
7
+ * access token, you must provide the argument that matches the token's
8
+ * scope. For example, an access token that is scoped to the "example.com"
9
+ * zone needs to use the `zoneId` argument.
6
10
  *
7
11
  * ## Example Usage
8
12
  *
@@ -24,10 +28,16 @@ import * as pulumi from "@pulumi/pulumi";
24
28
  *
25
29
  * ## Import
26
30
  *
27
- * Access CA certificates can be imported using a composite ID formed of identifer ("account" or "zone"), identifier ID and the CA certificate ID.
31
+ * # Account level CA certificate import.
32
+ *
33
+ * ```sh
34
+ * $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<account_id>/<certificate_id>
35
+ * ```
36
+ *
37
+ * # Zone level CA certificate import.
28
38
  *
29
39
  * ```sh
30
- * $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/1d5fdc9e88c8a8c4518b068cd94331fe/edc1e4e24567217764b4322669c44df985dddffdf03ac781
40
+ * $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<zone_id>/<certificate_id>
31
41
  * ```
32
42
  */
33
43
  export declare class AccessCaCertificate extends pulumi.CustomResource {
@@ -47,7 +57,7 @@ export declare class AccessCaCertificate extends pulumi.CustomResource {
47
57
  */
48
58
  static isInstance(obj: any): obj is AccessCaCertificate;
49
59
  /**
50
- * The account to which the Access CA certificate should be added. Conflicts with `zoneId`.
60
+ * The account identifier to target for the resource.
51
61
  */
52
62
  readonly accountId: pulumi.Output<string>;
53
63
  /**
@@ -63,7 +73,7 @@ export declare class AccessCaCertificate extends pulumi.CustomResource {
63
73
  */
64
74
  readonly publicKey: pulumi.Output<string>;
65
75
  /**
66
- * The DNS zone to which the Access CA certificate should be added. Conflicts with `accountId`.
76
+ * The zone identifier to target for the resource.
67
77
  */
68
78
  readonly zoneId: pulumi.Output<string>;
69
79
  /**
@@ -80,7 +90,7 @@ export declare class AccessCaCertificate extends pulumi.CustomResource {
80
90
  */
81
91
  export interface AccessCaCertificateState {
82
92
  /**
83
- * The account to which the Access CA certificate should be added. Conflicts with `zoneId`.
93
+ * The account identifier to target for the resource.
84
94
  */
85
95
  accountId?: pulumi.Input<string>;
86
96
  /**
@@ -96,7 +106,7 @@ export interface AccessCaCertificateState {
96
106
  */
97
107
  publicKey?: pulumi.Input<string>;
98
108
  /**
99
- * The DNS zone to which the Access CA certificate should be added. Conflicts with `accountId`.
109
+ * The zone identifier to target for the resource.
100
110
  */
101
111
  zoneId?: pulumi.Input<string>;
102
112
  }
@@ -105,7 +115,7 @@ export interface AccessCaCertificateState {
105
115
  */
106
116
  export interface AccessCaCertificateArgs {
107
117
  /**
108
- * The account to which the Access CA certificate should be added. Conflicts with `zoneId`.
118
+ * The account identifier to target for the resource.
109
119
  */
110
120
  accountId?: pulumi.Input<string>;
111
121
  /**
@@ -113,7 +123,7 @@ export interface AccessCaCertificateArgs {
113
123
  */
114
124
  applicationId: pulumi.Input<string>;
115
125
  /**
116
- * The DNS zone to which the Access CA certificate should be added. Conflicts with `accountId`.
126
+ * The zone identifier to target for the resource.
117
127
  */
118
128
  zoneId?: pulumi.Input<string>;
119
129
  }