@pulumi/cloudflare 4.13.0 → 4.14.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 (114) hide show
  1. package/accessGroup.d.ts +3 -3
  2. package/accessIdentityProvider.d.ts +6 -6
  3. package/accessRule.d.ts +9 -9
  4. package/accessServiceToken.d.ts +4 -4
  5. package/account.d.ts +3 -3
  6. package/apiShield.d.ts +3 -3
  7. package/byoIpPrefix.d.ts +3 -3
  8. package/certificatePack.d.ts +24 -24
  9. package/customHostname.d.ts +6 -6
  10. package/deviceSettingsPolicy.d.ts +265 -0
  11. package/deviceSettingsPolicy.js +122 -0
  12. package/deviceSettingsPolicy.js.map +1 -0
  13. package/dlpProfile.d.ts +9 -9
  14. package/emailRoutingAddress.d.ts +6 -6
  15. package/emailRoutingSettings.d.ts +6 -6
  16. package/fallbackDomain.d.ts +18 -12
  17. package/fallbackDomain.js +8 -3
  18. package/fallbackDomain.js.map +1 -1
  19. package/filter.d.ts +3 -3
  20. package/firewallRule.d.ts +3 -3
  21. package/getAccessIdentityProvider.d.ts +24 -0
  22. package/getAccessIdentityProvider.js +25 -1
  23. package/getAccessIdentityProvider.js.map +1 -1
  24. package/getAccountRoles.d.ts +3 -0
  25. package/getAccountRoles.js +4 -1
  26. package/getAccountRoles.js.map +1 -1
  27. package/getAccounts.d.ts +14 -0
  28. package/getAccounts.js +15 -1
  29. package/getAccounts.js.map +1 -1
  30. package/getApiTokenPermissionGroups.d.ts +27 -5
  31. package/getApiTokenPermissionGroups.js +6 -3
  32. package/getApiTokenPermissionGroups.js.map +1 -1
  33. package/getDevices.d.ts +14 -0
  34. package/getDevices.js +15 -1
  35. package/getDevices.js.map +1 -1
  36. package/getLoadBalancerPools.d.ts +94 -0
  37. package/getLoadBalancerPools.js +55 -0
  38. package/getLoadBalancerPools.js.map +1 -0
  39. package/getOriginCaRootCertificate.d.ts +14 -0
  40. package/getOriginCaRootCertificate.js +15 -1
  41. package/getOriginCaRootCertificate.js.map +1 -1
  42. package/getRecord.d.ts +15 -0
  43. package/getRecord.js +16 -1
  44. package/getRecord.js.map +1 -1
  45. package/getWafGroups.d.ts +20 -0
  46. package/getWafGroups.js +21 -1
  47. package/getWafGroups.js.map +1 -1
  48. package/getWafPackages.d.ts +22 -0
  49. package/getWafPackages.js +23 -1
  50. package/getWafPackages.js.map +1 -1
  51. package/getWafRules.d.ts +23 -0
  52. package/getWafRules.js +24 -1
  53. package/getWafRules.js.map +1 -1
  54. package/getZone.d.ts +40 -0
  55. package/getZone.js +41 -1
  56. package/getZone.js.map +1 -1
  57. package/getZoneDnssec.d.ts +14 -0
  58. package/getZoneDnssec.js +15 -1
  59. package/getZoneDnssec.js.map +1 -1
  60. package/getZones.d.ts +59 -0
  61. package/getZones.js +60 -1
  62. package/getZones.js.map +1 -1
  63. package/healthcheck.d.ts +3 -3
  64. package/index.d.ts +12 -0
  65. package/index.js +21 -3
  66. package/index.js.map +1 -1
  67. package/ipsecTunnel.d.ts +3 -3
  68. package/list.d.ts +3 -3
  69. package/loadBalancer.d.ts +3 -3
  70. package/logpushJob.d.ts +3 -3
  71. package/originCaCertificate.d.ts +29 -18
  72. package/originCaCertificate.js +5 -4
  73. package/originCaCertificate.js.map +1 -1
  74. package/package.json +2 -2
  75. package/package.json.dev +2 -2
  76. package/pagesDomain.d.ts +11 -9
  77. package/pagesDomain.js +2 -0
  78. package/pagesDomain.js.map +1 -1
  79. package/pagesProject.d.ts +6 -0
  80. package/pagesProject.js +6 -0
  81. package/pagesProject.js.map +1 -1
  82. package/ruleset.d.ts +14 -4
  83. package/ruleset.js +11 -1
  84. package/ruleset.js.map +1 -1
  85. package/splitTunnel.d.ts +23 -37
  86. package/splitTunnel.js +4 -28
  87. package/splitTunnel.js.map +1 -1
  88. package/totalTls.d.ts +3 -3
  89. package/tunnelConfig.d.ts +136 -0
  90. package/tunnelConfig.js +124 -0
  91. package/tunnelConfig.js.map +1 -0
  92. package/tunnelRoute.d.ts +7 -9
  93. package/tunnelRoute.js +1 -3
  94. package/tunnelRoute.js.map +1 -1
  95. package/tunnelVirtualNetwork.d.ts +3 -3
  96. package/types/input.d.ts +224 -10
  97. package/types/output.d.ts +143 -10
  98. package/urlNormalizationSettings.d.ts +88 -0
  99. package/urlNormalizationSettings.js +78 -0
  100. package/urlNormalizationSettings.js.map +1 -0
  101. package/userAgentBlockingRule.d.ts +3 -3
  102. package/waitingRoom.d.ts +6 -6
  103. package/waitingRoomEvent.d.ts +15 -15
  104. package/waitingRoomRules.d.ts +6 -6
  105. package/workerScript.d.ts +10 -3
  106. package/workerScript.js +6 -0
  107. package/workerScript.js.map +1 -1
  108. package/workersKv.d.ts +32 -14
  109. package/workersKv.js +13 -5
  110. package/workersKv.js.map +1 -1
  111. package/workersKvNamespace.d.ts +15 -10
  112. package/workersKvNamespace.js +11 -7
  113. package/workersKvNamespace.js.map +1 -1
  114. package/zone.d.ts +3 -3
@@ -0,0 +1,88 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource to manage URL Normalization Settings.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as cloudflare from "@pulumi/cloudflare";
10
+ *
11
+ * const example = new cloudflare.UrlNormalizationSettings("example", {
12
+ * scope: "incoming",
13
+ * type: "cloudflare",
14
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
15
+ * });
16
+ * ```
17
+ */
18
+ export declare class UrlNormalizationSettings extends pulumi.CustomResource {
19
+ /**
20
+ * Get an existing UrlNormalizationSettings resource's state with the given name, ID, and optional extra
21
+ * properties used to qualify the lookup.
22
+ *
23
+ * @param name The _unique_ name of the resulting resource.
24
+ * @param id The _unique_ provider ID of the resource to lookup.
25
+ * @param state Any extra arguments used during the lookup.
26
+ * @param opts Optional settings to control the behavior of the CustomResource.
27
+ */
28
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UrlNormalizationSettingsState, opts?: pulumi.CustomResourceOptions): UrlNormalizationSettings;
29
+ /**
30
+ * Returns true if the given object is an instance of UrlNormalizationSettings. This is designed to work even
31
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
32
+ */
33
+ static isInstance(obj: any): obj is UrlNormalizationSettings;
34
+ /**
35
+ * The scope of the URL normalization.
36
+ */
37
+ readonly scope: pulumi.Output<string>;
38
+ /**
39
+ * The type of URL normalization performed by Cloudflare.
40
+ */
41
+ readonly type: pulumi.Output<string>;
42
+ /**
43
+ * The zone identifier to target for the resource.
44
+ */
45
+ readonly zoneId: pulumi.Output<string>;
46
+ /**
47
+ * Create a UrlNormalizationSettings resource with the given unique name, arguments, and options.
48
+ *
49
+ * @param name The _unique_ name of the resource.
50
+ * @param args The arguments to use to populate this resource's properties.
51
+ * @param opts A bag of options that control this resource's behavior.
52
+ */
53
+ constructor(name: string, args: UrlNormalizationSettingsArgs, opts?: pulumi.CustomResourceOptions);
54
+ }
55
+ /**
56
+ * Input properties used for looking up and filtering UrlNormalizationSettings resources.
57
+ */
58
+ export interface UrlNormalizationSettingsState {
59
+ /**
60
+ * The scope of the URL normalization.
61
+ */
62
+ scope?: pulumi.Input<string>;
63
+ /**
64
+ * The type of URL normalization performed by Cloudflare.
65
+ */
66
+ type?: pulumi.Input<string>;
67
+ /**
68
+ * The zone identifier to target for the resource.
69
+ */
70
+ zoneId?: pulumi.Input<string>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a UrlNormalizationSettings resource.
74
+ */
75
+ export interface UrlNormalizationSettingsArgs {
76
+ /**
77
+ * The scope of the URL normalization.
78
+ */
79
+ scope: pulumi.Input<string>;
80
+ /**
81
+ * The type of URL normalization performed by Cloudflare.
82
+ */
83
+ type: pulumi.Input<string>;
84
+ /**
85
+ * The zone identifier to target for the resource.
86
+ */
87
+ zoneId: pulumi.Input<string>;
88
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.UrlNormalizationSettings = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a resource to manage URL Normalization Settings.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as cloudflare from "@pulumi/cloudflare";
16
+ *
17
+ * const example = new cloudflare.UrlNormalizationSettings("example", {
18
+ * scope: "incoming",
19
+ * type: "cloudflare",
20
+ * zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
21
+ * });
22
+ * ```
23
+ */
24
+ class UrlNormalizationSettings extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing UrlNormalizationSettings resource's state with the given name, ID, and optional extra
27
+ * properties used to qualify the lookup.
28
+ *
29
+ * @param name The _unique_ name of the resulting resource.
30
+ * @param id The _unique_ provider ID of the resource to lookup.
31
+ * @param state Any extra arguments used during the lookup.
32
+ * @param opts Optional settings to control the behavior of the CustomResource.
33
+ */
34
+ static get(name, id, state, opts) {
35
+ return new UrlNormalizationSettings(name, state, Object.assign(Object.assign({}, opts), { id: id }));
36
+ }
37
+ /**
38
+ * Returns true if the given object is an instance of UrlNormalizationSettings. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj) {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === UrlNormalizationSettings.__pulumiType;
46
+ }
47
+ constructor(name, argsOrState, opts) {
48
+ let resourceInputs = {};
49
+ opts = opts || {};
50
+ if (opts.id) {
51
+ const state = argsOrState;
52
+ resourceInputs["scope"] = state ? state.scope : undefined;
53
+ resourceInputs["type"] = state ? state.type : undefined;
54
+ resourceInputs["zoneId"] = state ? state.zoneId : undefined;
55
+ }
56
+ else {
57
+ const args = argsOrState;
58
+ if ((!args || args.scope === undefined) && !opts.urn) {
59
+ throw new Error("Missing required property 'scope'");
60
+ }
61
+ if ((!args || args.type === undefined) && !opts.urn) {
62
+ throw new Error("Missing required property 'type'");
63
+ }
64
+ if ((!args || args.zoneId === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'zoneId'");
66
+ }
67
+ resourceInputs["scope"] = args ? args.scope : undefined;
68
+ resourceInputs["type"] = args ? args.type : undefined;
69
+ resourceInputs["zoneId"] = args ? args.zoneId : undefined;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(UrlNormalizationSettings.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ }
75
+ exports.UrlNormalizationSettings = UrlNormalizationSettings;
76
+ /** @internal */
77
+ UrlNormalizationSettings.__pulumiType = 'cloudflare:index/urlNormalizationSettings:UrlNormalizationSettings';
78
+ //# sourceMappingURL=urlNormalizationSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlNormalizationSettings.js","sourceRoot":"","sources":["../urlNormalizationSettings.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,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,wBAAwB,CAAC,YAAY,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AAI,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;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AA1EL,4DA2EC;AA7DG,gBAAgB;AACO,qCAAY,GAAG,oEAAoE,CAAC"}
@@ -65,7 +65,7 @@ export declare class UserAgentBlockingRule extends pulumi.CustomResource {
65
65
  */
66
66
  readonly paused: pulumi.Output<boolean>;
67
67
  /**
68
- * The zone identifier to target for the resource.
68
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
69
69
  */
70
70
  readonly zoneId: pulumi.Output<string>;
71
71
  /**
@@ -98,7 +98,7 @@ export interface UserAgentBlockingRuleState {
98
98
  */
99
99
  paused?: pulumi.Input<boolean>;
100
100
  /**
101
- * The zone identifier to target for the resource.
101
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
102
102
  */
103
103
  zoneId?: pulumi.Input<string>;
104
104
  }
@@ -123,7 +123,7 @@ export interface UserAgentBlockingRuleArgs {
123
123
  */
124
124
  paused: pulumi.Input<boolean>;
125
125
  /**
126
- * The zone identifier to target for the resource.
126
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
127
127
  */
128
128
  zoneId: pulumi.Input<string>;
129
129
  }
package/waitingRoom.d.ts CHANGED
@@ -68,7 +68,7 @@ export declare class WaitingRoom extends pulumi.CustomResource {
68
68
  */
69
69
  readonly jsonResponseEnabled: pulumi.Output<boolean | undefined>;
70
70
  /**
71
- * A unique name to identify the waiting room.
71
+ * A unique name to identify the waiting room. **Modifying this attribute will force creation of a new resource.**
72
72
  */
73
73
  readonly name: pulumi.Output<string>;
74
74
  /**
@@ -100,7 +100,7 @@ export declare class WaitingRoom extends pulumi.CustomResource {
100
100
  */
101
101
  readonly totalActiveUsers: pulumi.Output<number>;
102
102
  /**
103
- * The zone identifier to target for the resource.
103
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
104
104
  */
105
105
  readonly zoneId: pulumi.Output<string>;
106
106
  /**
@@ -141,7 +141,7 @@ export interface WaitingRoomState {
141
141
  */
142
142
  jsonResponseEnabled?: pulumi.Input<boolean>;
143
143
  /**
144
- * A unique name to identify the waiting room.
144
+ * A unique name to identify the waiting room. **Modifying this attribute will force creation of a new resource.**
145
145
  */
146
146
  name?: pulumi.Input<string>;
147
147
  /**
@@ -173,7 +173,7 @@ export interface WaitingRoomState {
173
173
  */
174
174
  totalActiveUsers?: pulumi.Input<number>;
175
175
  /**
176
- * The zone identifier to target for the resource.
176
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
177
177
  */
178
178
  zoneId?: pulumi.Input<string>;
179
179
  }
@@ -206,7 +206,7 @@ export interface WaitingRoomArgs {
206
206
  */
207
207
  jsonResponseEnabled?: pulumi.Input<boolean>;
208
208
  /**
209
- * A unique name to identify the waiting room.
209
+ * A unique name to identify the waiting room. **Modifying this attribute will force creation of a new resource.**
210
210
  */
211
211
  name: pulumi.Input<string>;
212
212
  /**
@@ -238,7 +238,7 @@ export interface WaitingRoomArgs {
238
238
  */
239
239
  totalActiveUsers: pulumi.Input<number>;
240
240
  /**
241
- * The zone identifier to target for the resource.
241
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
242
242
  */
243
243
  zoneId: pulumi.Input<string>;
244
244
  }
@@ -59,11 +59,11 @@ export declare class WaitingRoomEvent extends pulumi.CustomResource {
59
59
  */
60
60
  readonly disableSessionRenewal: pulumi.Output<boolean | undefined>;
61
61
  /**
62
- * ISO 8601 timestamp that marks the end of the event.
62
+ * ISO 8601 timestamp that marks the end of the event. **Modifying this attribute will force creation of a new resource.**
63
63
  */
64
64
  readonly eventEndTime: pulumi.Output<string>;
65
65
  /**
66
- * ISO 8601 timestamp that marks the start of the event. Must occur at least 1 minute before `eventEndTime`.
66
+ * ISO 8601 timestamp that marks the start of the event. Must occur at least 1 minute before `eventEndTime`. **Modifying this attribute will force creation of a new resource.**
67
67
  */
68
68
  readonly eventStartTime: pulumi.Output<string>;
69
69
  /**
@@ -71,7 +71,7 @@ export declare class WaitingRoomEvent extends pulumi.CustomResource {
71
71
  */
72
72
  readonly modifiedOn: pulumi.Output<string>;
73
73
  /**
74
- * A unique name to identify the event. Only alphanumeric characters, hyphens, and underscores are allowed.
74
+ * A unique name to identify the event. Only alphanumeric characters, hyphens, and underscores are allowed. **Modifying this attribute will force creation of a new resource.**
75
75
  */
76
76
  readonly name: pulumi.Output<string>;
77
77
  /**
@@ -103,11 +103,11 @@ export declare class WaitingRoomEvent extends pulumi.CustomResource {
103
103
  */
104
104
  readonly totalActiveUsers: pulumi.Output<number | undefined>;
105
105
  /**
106
- * The Waiting Room ID the event should apply to.
106
+ * The Waiting Room ID the event should apply to. **Modifying this attribute will force creation of a new resource.**
107
107
  */
108
108
  readonly waitingRoomId: pulumi.Output<string>;
109
109
  /**
110
- * The zone identifier to target for the resource.
110
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
111
111
  */
112
112
  readonly zoneId: pulumi.Output<string>;
113
113
  /**
@@ -140,11 +140,11 @@ export interface WaitingRoomEventState {
140
140
  */
141
141
  disableSessionRenewal?: pulumi.Input<boolean>;
142
142
  /**
143
- * ISO 8601 timestamp that marks the end of the event.
143
+ * ISO 8601 timestamp that marks the end of the event. **Modifying this attribute will force creation of a new resource.**
144
144
  */
145
145
  eventEndTime?: pulumi.Input<string>;
146
146
  /**
147
- * ISO 8601 timestamp that marks the start of the event. Must occur at least 1 minute before `eventEndTime`.
147
+ * ISO 8601 timestamp that marks the start of the event. Must occur at least 1 minute before `eventEndTime`. **Modifying this attribute will force creation of a new resource.**
148
148
  */
149
149
  eventStartTime?: pulumi.Input<string>;
150
150
  /**
@@ -152,7 +152,7 @@ export interface WaitingRoomEventState {
152
152
  */
153
153
  modifiedOn?: pulumi.Input<string>;
154
154
  /**
155
- * A unique name to identify the event. Only alphanumeric characters, hyphens, and underscores are allowed.
155
+ * A unique name to identify the event. Only alphanumeric characters, hyphens, and underscores are allowed. **Modifying this attribute will force creation of a new resource.**
156
156
  */
157
157
  name?: pulumi.Input<string>;
158
158
  /**
@@ -184,11 +184,11 @@ export interface WaitingRoomEventState {
184
184
  */
185
185
  totalActiveUsers?: pulumi.Input<number>;
186
186
  /**
187
- * The Waiting Room ID the event should apply to.
187
+ * The Waiting Room ID the event should apply to. **Modifying this attribute will force creation of a new resource.**
188
188
  */
189
189
  waitingRoomId?: pulumi.Input<string>;
190
190
  /**
191
- * The zone identifier to target for the resource.
191
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
192
192
  */
193
193
  zoneId?: pulumi.Input<string>;
194
194
  }
@@ -209,15 +209,15 @@ export interface WaitingRoomEventArgs {
209
209
  */
210
210
  disableSessionRenewal?: pulumi.Input<boolean>;
211
211
  /**
212
- * ISO 8601 timestamp that marks the end of the event.
212
+ * ISO 8601 timestamp that marks the end of the event. **Modifying this attribute will force creation of a new resource.**
213
213
  */
214
214
  eventEndTime: pulumi.Input<string>;
215
215
  /**
216
- * ISO 8601 timestamp that marks the start of the event. Must occur at least 1 minute before `eventEndTime`.
216
+ * ISO 8601 timestamp that marks the start of the event. Must occur at least 1 minute before `eventEndTime`. **Modifying this attribute will force creation of a new resource.**
217
217
  */
218
218
  eventStartTime: pulumi.Input<string>;
219
219
  /**
220
- * A unique name to identify the event. Only alphanumeric characters, hyphens, and underscores are allowed.
220
+ * A unique name to identify the event. Only alphanumeric characters, hyphens, and underscores are allowed. **Modifying this attribute will force creation of a new resource.**
221
221
  */
222
222
  name: pulumi.Input<string>;
223
223
  /**
@@ -249,11 +249,11 @@ export interface WaitingRoomEventArgs {
249
249
  */
250
250
  totalActiveUsers?: pulumi.Input<number>;
251
251
  /**
252
- * The Waiting Room ID the event should apply to.
252
+ * The Waiting Room ID the event should apply to. **Modifying this attribute will force creation of a new resource.**
253
253
  */
254
254
  waitingRoomId: pulumi.Input<string>;
255
255
  /**
256
- * The zone identifier to target for the resource.
256
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
257
257
  */
258
258
  zoneId: pulumi.Input<string>;
259
259
  }
@@ -57,11 +57,11 @@ export declare class WaitingRoomRules extends pulumi.CustomResource {
57
57
  */
58
58
  readonly rules: pulumi.Output<outputs.WaitingRoomRulesRule[] | undefined>;
59
59
  /**
60
- * The Waiting Room ID the rules should apply to.
60
+ * The Waiting Room ID the rules should apply to. **Modifying this attribute will force creation of a new resource.**
61
61
  */
62
62
  readonly waitingRoomId: pulumi.Output<string>;
63
63
  /**
64
- * The zone identifier to target for the resource.
64
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
65
65
  */
66
66
  readonly zoneId: pulumi.Output<string>;
67
67
  /**
@@ -82,11 +82,11 @@ export interface WaitingRoomRulesState {
82
82
  */
83
83
  rules?: pulumi.Input<pulumi.Input<inputs.WaitingRoomRulesRule>[]>;
84
84
  /**
85
- * The Waiting Room ID the rules should apply to.
85
+ * The Waiting Room ID the rules should apply to. **Modifying this attribute will force creation of a new resource.**
86
86
  */
87
87
  waitingRoomId?: pulumi.Input<string>;
88
88
  /**
89
- * The zone identifier to target for the resource.
89
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
90
90
  */
91
91
  zoneId?: pulumi.Input<string>;
92
92
  }
@@ -99,11 +99,11 @@ export interface WaitingRoomRulesArgs {
99
99
  */
100
100
  rules?: pulumi.Input<pulumi.Input<inputs.WaitingRoomRulesRule>[]>;
101
101
  /**
102
- * The Waiting Room ID the rules should apply to.
102
+ * The Waiting Room ID the rules should apply to. **Modifying this attribute will force creation of a new resource.**
103
103
  */
104
104
  waitingRoomId: pulumi.Input<string>;
105
105
  /**
106
- * The zone identifier to target for the resource.
106
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
107
107
  */
108
108
  zoneId: pulumi.Input<string>;
109
109
  }
package/workerScript.d.ts CHANGED
@@ -44,6 +44,10 @@ import * as outputs from "./types/output";
44
44
  * name: "MY_BUCKET",
45
45
  * bucketName: "MY_BUCKET_NAME",
46
46
  * }],
47
+ * analyticsEngineBindings: [{
48
+ * name: "MY_DATASET",
49
+ * dataset: "dataset1",
50
+ * }],
47
51
  * });
48
52
  * ```
49
53
  *
@@ -69,6 +73,7 @@ export declare class WorkerScript extends pulumi.CustomResource {
69
73
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
70
74
  */
71
75
  static isInstance(obj: any): obj is WorkerScript;
76
+ readonly analyticsEngineBindings: pulumi.Output<outputs.WorkerScriptAnalyticsEngineBinding[] | undefined>;
72
77
  /**
73
78
  * The script content.
74
79
  */
@@ -79,7 +84,7 @@ export declare class WorkerScript extends pulumi.CustomResource {
79
84
  */
80
85
  readonly module: pulumi.Output<boolean | undefined>;
81
86
  /**
82
- * The name for the script.
87
+ * The name for the script. **Modifying this attribute will force creation of a new resource.**
83
88
  */
84
89
  readonly name: pulumi.Output<string>;
85
90
  readonly plainTextBindings: pulumi.Output<outputs.WorkerScriptPlainTextBinding[] | undefined>;
@@ -100,6 +105,7 @@ export declare class WorkerScript extends pulumi.CustomResource {
100
105
  * Input properties used for looking up and filtering WorkerScript resources.
101
106
  */
102
107
  export interface WorkerScriptState {
108
+ analyticsEngineBindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptAnalyticsEngineBinding>[]>;
103
109
  /**
104
110
  * The script content.
105
111
  */
@@ -110,7 +116,7 @@ export interface WorkerScriptState {
110
116
  */
111
117
  module?: pulumi.Input<boolean>;
112
118
  /**
113
- * The name for the script.
119
+ * The name for the script. **Modifying this attribute will force creation of a new resource.**
114
120
  */
115
121
  name?: pulumi.Input<string>;
116
122
  plainTextBindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptPlainTextBinding>[]>;
@@ -123,6 +129,7 @@ export interface WorkerScriptState {
123
129
  * The set of arguments for constructing a WorkerScript resource.
124
130
  */
125
131
  export interface WorkerScriptArgs {
132
+ analyticsEngineBindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptAnalyticsEngineBinding>[]>;
126
133
  /**
127
134
  * The script content.
128
135
  */
@@ -133,7 +140,7 @@ export interface WorkerScriptArgs {
133
140
  */
134
141
  module?: pulumi.Input<boolean>;
135
142
  /**
136
- * The name for the script.
143
+ * The name for the script. **Modifying this attribute will force creation of a new resource.**
137
144
  */
138
145
  name: pulumi.Input<string>;
139
146
  plainTextBindings?: pulumi.Input<pulumi.Input<inputs.WorkerScriptPlainTextBinding>[]>;
package/workerScript.js CHANGED
@@ -48,6 +48,10 @@ const utilities = require("./utilities");
48
48
  * name: "MY_BUCKET",
49
49
  * bucketName: "MY_BUCKET_NAME",
50
50
  * }],
51
+ * analyticsEngineBindings: [{
52
+ * name: "MY_DATASET",
53
+ * dataset: "dataset1",
54
+ * }],
51
55
  * });
52
56
  * ```
53
57
  *
@@ -85,6 +89,7 @@ class WorkerScript extends pulumi.CustomResource {
85
89
  opts = opts || {};
86
90
  if (opts.id) {
87
91
  const state = argsOrState;
92
+ resourceInputs["analyticsEngineBindings"] = state ? state.analyticsEngineBindings : undefined;
88
93
  resourceInputs["content"] = state ? state.content : undefined;
89
94
  resourceInputs["kvNamespaceBindings"] = state ? state.kvNamespaceBindings : undefined;
90
95
  resourceInputs["module"] = state ? state.module : undefined;
@@ -103,6 +108,7 @@ class WorkerScript extends pulumi.CustomResource {
103
108
  if ((!args || args.name === undefined) && !opts.urn) {
104
109
  throw new Error("Missing required property 'name'");
105
110
  }
111
+ resourceInputs["analyticsEngineBindings"] = args ? args.analyticsEngineBindings : undefined;
106
112
  resourceInputs["content"] = args ? args.content : undefined;
107
113
  resourceInputs["kvNamespaceBindings"] = args ? args.kvNamespaceBindings : undefined;
108
114
  resourceInputs["module"] = args ? args.module : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"workerScript.js","sourceRoot":"","sources":["../workerScript.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;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;IA6BD,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,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,QAAQ,CAAC,G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v.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Provides a Workers KV Pair. _NOTE:_ This resource uses the Cloudflare account APIs. This requires setting the `CLOUDFLARE_ACCOUNT_ID` environment variable or `accountId` provider argument.
3
+ * Provides a resource to manage a Cloudflare Workers KV Pair.
4
+ *
5
+ * > This resource uses the Cloudflare account APIs. This requires setting the
6
+ * `CLOUDFLARE_ACCOUNT_ID` environment variable or `accountId` provider argument
7
+ * if you do not explicitly set the resource level `accountId` value.
4
8
  *
5
9
  * ## Example Usage
6
10
  *
@@ -8,8 +12,12 @@ import * as pulumi from "@pulumi/pulumi";
8
12
  * import * as pulumi from "@pulumi/pulumi";
9
13
  * import * as cloudflare from "@pulumi/cloudflare";
10
14
  *
11
- * const exampleNs = new cloudflare.WorkersKvNamespace("exampleNs", {title: "test-namespace"});
15
+ * const exampleNs = new cloudflare.WorkersKvNamespace("exampleNs", {
16
+ * accountId: "f037e56e89293a057740de681ac9abbe",
17
+ * title: "test-namespace",
18
+ * });
12
19
  * const example = new cloudflare.WorkersKv("example", {
20
+ * accountId: "f037e56e89293a057740de681ac9abbe",
13
21
  * namespaceId: exampleNs.id,
14
22
  * key: "test-key",
15
23
  * value: "test value",
@@ -19,10 +27,8 @@ import * as pulumi from "@pulumi/pulumi";
19
27
  * ## Import
20
28
  *
21
29
  * ```sh
22
- * $ pulumi import cloudflare:index/workersKv:WorkersKv example beaeb6716c9443eaa4deef11763ccca6/test-key
30
+ * $ pulumi import cloudflare:index/workersKv:WorkersKv example <namespace_id>/<key_name>
23
31
  * ```
24
- *
25
- * where- `beaeb6716c9443eaa4deef11763ccca6` is the ID of the namespace and `test-key` is the key
26
32
  */
27
33
  export declare class WorkersKv extends pulumi.CustomResource {
28
34
  /**
@@ -41,15 +47,19 @@ export declare class WorkersKv extends pulumi.CustomResource {
41
47
  */
42
48
  static isInstance(obj: any): obj is WorkersKv;
43
49
  /**
44
- * The key name
50
+ * The account identifier to target for the resource.
51
+ */
52
+ readonly accountId: pulumi.Output<string>;
53
+ /**
54
+ * Name of the KV pair. **Modifying this attribute will force creation of a new resource.**
45
55
  */
46
56
  readonly key: pulumi.Output<string>;
47
57
  /**
48
- * The ID of the Workers KV namespace in which you want to create the KV pair
58
+ * The ID of the Workers KV namespace in which you want to create the KV pair. **Modifying this attribute will force creation of a new resource.**
49
59
  */
50
60
  readonly namespaceId: pulumi.Output<string>;
51
61
  /**
52
- * The string value to be stored in the key
62
+ * Value of the KV pair.
53
63
  */
54
64
  readonly value: pulumi.Output<string>;
55
65
  /**
@@ -66,15 +76,19 @@ export declare class WorkersKv extends pulumi.CustomResource {
66
76
  */
67
77
  export interface WorkersKvState {
68
78
  /**
69
- * The key name
79
+ * The account identifier to target for the resource.
80
+ */
81
+ accountId?: pulumi.Input<string>;
82
+ /**
83
+ * Name of the KV pair. **Modifying this attribute will force creation of a new resource.**
70
84
  */
71
85
  key?: pulumi.Input<string>;
72
86
  /**
73
- * The ID of the Workers KV namespace in which you want to create the KV pair
87
+ * The ID of the Workers KV namespace in which you want to create the KV pair. **Modifying this attribute will force creation of a new resource.**
74
88
  */
75
89
  namespaceId?: pulumi.Input<string>;
76
90
  /**
77
- * The string value to be stored in the key
91
+ * Value of the KV pair.
78
92
  */
79
93
  value?: pulumi.Input<string>;
80
94
  }
@@ -83,15 +97,19 @@ export interface WorkersKvState {
83
97
  */
84
98
  export interface WorkersKvArgs {
85
99
  /**
86
- * The key name
100
+ * The account identifier to target for the resource.
101
+ */
102
+ accountId?: pulumi.Input<string>;
103
+ /**
104
+ * Name of the KV pair. **Modifying this attribute will force creation of a new resource.**
87
105
  */
88
106
  key: pulumi.Input<string>;
89
107
  /**
90
- * The ID of the Workers KV namespace in which you want to create the KV pair
108
+ * The ID of the Workers KV namespace in which you want to create the KV pair. **Modifying this attribute will force creation of a new resource.**
91
109
  */
92
110
  namespaceId: pulumi.Input<string>;
93
111
  /**
94
- * The string value to be stored in the key
112
+ * Value of the KV pair.
95
113
  */
96
114
  value: pulumi.Input<string>;
97
115
  }
package/workersKv.js CHANGED
@@ -6,7 +6,11 @@ exports.WorkersKv = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Provides a Workers KV Pair. _NOTE:_ This resource uses the Cloudflare account APIs. This requires setting the `CLOUDFLARE_ACCOUNT_ID` environment variable or `accountId` provider argument.
9
+ * Provides a resource to manage a Cloudflare Workers KV Pair.
10
+ *
11
+ * > This resource uses the Cloudflare account APIs. This requires setting the
12
+ * `CLOUDFLARE_ACCOUNT_ID` environment variable or `accountId` provider argument
13
+ * if you do not explicitly set the resource level `accountId` value.
10
14
  *
11
15
  * ## Example Usage
12
16
  *
@@ -14,8 +18,12 @@ const utilities = require("./utilities");
14
18
  * import * as pulumi from "@pulumi/pulumi";
15
19
  * import * as cloudflare from "@pulumi/cloudflare";
16
20
  *
17
- * const exampleNs = new cloudflare.WorkersKvNamespace("exampleNs", {title: "test-namespace"});
21
+ * const exampleNs = new cloudflare.WorkersKvNamespace("exampleNs", {
22
+ * accountId: "f037e56e89293a057740de681ac9abbe",
23
+ * title: "test-namespace",
24
+ * });
18
25
  * const example = new cloudflare.WorkersKv("example", {
26
+ * accountId: "f037e56e89293a057740de681ac9abbe",
19
27
  * namespaceId: exampleNs.id,
20
28
  * key: "test-key",
21
29
  * value: "test value",
@@ -25,10 +33,8 @@ const utilities = require("./utilities");
25
33
  * ## Import
26
34
  *
27
35
  * ```sh
28
- * $ pulumi import cloudflare:index/workersKv:WorkersKv example beaeb6716c9443eaa4deef11763ccca6/test-key
36
+ * $ pulumi import cloudflare:index/workersKv:WorkersKv example <namespace_id>/<key_name>
29
37
  * ```
30
- *
31
- * where- `beaeb6716c9443eaa4deef11763ccca6` is the ID of the namespace and `test-key` is the key
32
38
  */
33
39
  class WorkersKv extends pulumi.CustomResource {
34
40
  /**
@@ -58,6 +64,7 @@ class WorkersKv extends pulumi.CustomResource {
58
64
  opts = opts || {};
59
65
  if (opts.id) {
60
66
  const state = argsOrState;
67
+ resourceInputs["accountId"] = state ? state.accountId : undefined;
61
68
  resourceInputs["key"] = state ? state.key : undefined;
62
69
  resourceInputs["namespaceId"] = state ? state.namespaceId : undefined;
63
70
  resourceInputs["value"] = state ? state.value : undefined;
@@ -73,6 +80,7 @@ class WorkersKv extends pulumi.CustomResource {
73
80
  if ((!args || args.value === undefined) && !opts.urn) {
74
81
  throw new Error("Missing required property 'value'");
75
82
  }
83
+ resourceInputs["accountId"] = args ? args.accountId : undefined;
76
84
  resourceInputs["key"] = args ? args.key : undefined;
77
85
  resourceInputs["namespaceId"] = args ? args.namespaceId : undefined;
78
86
  resourceInputs["value"] = args ? args.value : undefined;