@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
@@ -2,7 +2,7 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.LogPushOwnershipChallenge = void 0;
5
+ exports.LogpushOwnershipChallenge = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
@@ -16,7 +16,7 @@ const utilities = require("./utilities");
16
16
  * import * as pulumi from "@pulumi/pulumi";
17
17
  * import * as cloudflare from "@pulumi/cloudflare";
18
18
  *
19
- * const example = new cloudflare.LogPushOwnershipChallenge("example", {
19
+ * const example = new cloudflare.LogpushOwnershipChallenge("example", {
20
20
  * destinationConf: "s3://my-bucket-path?region=us-west-2",
21
21
  * zoneId: "d41d8cd98f00b204e9800998ecf8427e",
22
22
  * });
@@ -26,13 +26,13 @@ const utilities = require("./utilities");
26
26
  * import * as pulumi from "@pulumi/pulumi";
27
27
  * import * as cloudflare from "@pulumi/cloudflare";
28
28
  *
29
- * const example = new cloudflare.LogPushOwnershipChallenge("example", {
29
+ * const example = new cloudflare.LogpushOwnershipChallenge("example", {
30
30
  * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
31
31
  * destinationConf: "s3://my-bucket-path?region=us-west-2",
32
32
  * });
33
33
  * ```
34
34
  */
35
- class LogPushOwnershipChallenge extends pulumi.CustomResource {
35
+ class LogpushOwnershipChallenge extends pulumi.CustomResource {
36
36
  constructor(name, argsOrState, opts) {
37
37
  let resourceInputs = {};
38
38
  opts = opts || {};
@@ -54,10 +54,10 @@ class LogPushOwnershipChallenge extends pulumi.CustomResource {
54
54
  resourceInputs["ownershipChallengeFilename"] = undefined /*out*/;
55
55
  }
56
56
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
57
- super(LogPushOwnershipChallenge.__pulumiType, name, resourceInputs, opts);
57
+ super(LogpushOwnershipChallenge.__pulumiType, name, resourceInputs, opts);
58
58
  }
59
59
  /**
60
- * Get an existing LogPushOwnershipChallenge resource's state with the given name, ID, and optional extra
60
+ * Get an existing LogpushOwnershipChallenge resource's state with the given name, ID, and optional extra
61
61
  * properties used to qualify the lookup.
62
62
  *
63
63
  * @param name The _unique_ name of the resulting resource.
@@ -66,20 +66,20 @@ class LogPushOwnershipChallenge extends pulumi.CustomResource {
66
66
  * @param opts Optional settings to control the behavior of the CustomResource.
67
67
  */
68
68
  static get(name, id, state, opts) {
69
- return new LogPushOwnershipChallenge(name, state, Object.assign(Object.assign({}, opts), { id: id }));
69
+ return new LogpushOwnershipChallenge(name, state, Object.assign(Object.assign({}, opts), { id: id }));
70
70
  }
71
71
  /**
72
- * Returns true if the given object is an instance of LogPushOwnershipChallenge. This is designed to work even
72
+ * Returns true if the given object is an instance of LogpushOwnershipChallenge. This is designed to work even
73
73
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
74
74
  */
75
75
  static isInstance(obj) {
76
76
  if (obj === undefined || obj === null) {
77
77
  return false;
78
78
  }
79
- return obj['__pulumiType'] === LogPushOwnershipChallenge.__pulumiType;
79
+ return obj['__pulumiType'] === LogpushOwnershipChallenge.__pulumiType;
80
80
  }
81
81
  }
82
- exports.LogPushOwnershipChallenge = LogPushOwnershipChallenge;
82
+ exports.LogpushOwnershipChallenge = LogpushOwnershipChallenge;
83
83
  /** @internal */
84
- LogPushOwnershipChallenge.__pulumiType = 'cloudflare:index/logPushOwnershipChallenge:LogPushOwnershipChallenge';
85
- //# sourceMappingURL=logPushOwnershipChallenge.js.map
84
+ LogpushOwnershipChallenge.__pulumiType = 'cloudflare:index/logpushOwnershipChallenge:LogpushOwnershipChallenge';
85
+ //# sourceMappingURL=logpushOwnershipChallenge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logPushOwnershipChallenge.js","sourceRoot":"","sources":["../logPushOwnershipChallenge.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAsDhE,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,4BAA4B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,CAAC;YACpG,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAwD,CAAC;YACtE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI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,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;IA1ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChF,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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;;AA1BL,8DA4EC;AA9DG,gBAAgB;AACO,sCAAY,GAAG,sEAAsE,CAAC"}
@@ -0,0 +1,98 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as cloudflare from "@pulumi/cloudflare";
9
+ *
10
+ * // Enable security headers using Managed Meaders
11
+ * const example = new cloudflare.ManagedHeaders("example", {
12
+ * managedRequestHeaders: [{
13
+ * enabled: true,
14
+ * id: "add_true_client_ip_headers",
15
+ * }],
16
+ * managedResponseHeaders: [{
17
+ * enabled: true,
18
+ * id: "remove_x-powered-by_header",
19
+ * }],
20
+ * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * Import is not supported for this resource.
27
+ */
28
+ export declare class ManagedHeaders extends pulumi.CustomResource {
29
+ /**
30
+ * Get an existing ManagedHeaders resource's state with the given name, ID, and optional extra
31
+ * properties used to qualify the lookup.
32
+ *
33
+ * @param name The _unique_ name of the resulting resource.
34
+ * @param id The _unique_ provider ID of the resource to lookup.
35
+ * @param state Any extra arguments used during the lookup.
36
+ * @param opts Optional settings to control the behavior of the CustomResource.
37
+ */
38
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedHeadersState, opts?: pulumi.CustomResourceOptions): ManagedHeaders;
39
+ /**
40
+ * Returns true if the given object is an instance of ManagedHeaders. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj: any): obj is ManagedHeaders;
44
+ /**
45
+ * The list of managed request headers
46
+ */
47
+ readonly managedRequestHeaders: pulumi.Output<outputs.ManagedHeadersManagedRequestHeader[] | undefined>;
48
+ /**
49
+ * The list of managed response headers
50
+ */
51
+ readonly managedResponseHeaders: pulumi.Output<outputs.ManagedHeadersManagedResponseHeader[] | undefined>;
52
+ /**
53
+ * The zone identifier to target for the resource.
54
+ */
55
+ readonly zoneId: pulumi.Output<string>;
56
+ /**
57
+ * Create a ManagedHeaders resource with the given unique name, arguments, and options.
58
+ *
59
+ * @param name The _unique_ name of the resource.
60
+ * @param args The arguments to use to populate this resource's properties.
61
+ * @param opts A bag of options that control this resource's behavior.
62
+ */
63
+ constructor(name: string, args: ManagedHeadersArgs, opts?: pulumi.CustomResourceOptions);
64
+ }
65
+ /**
66
+ * Input properties used for looking up and filtering ManagedHeaders resources.
67
+ */
68
+ export interface ManagedHeadersState {
69
+ /**
70
+ * The list of managed request headers
71
+ */
72
+ managedRequestHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedRequestHeader>[]>;
73
+ /**
74
+ * The list of managed response headers
75
+ */
76
+ managedResponseHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedResponseHeader>[]>;
77
+ /**
78
+ * The zone identifier to target for the resource.
79
+ */
80
+ zoneId?: pulumi.Input<string>;
81
+ }
82
+ /**
83
+ * The set of arguments for constructing a ManagedHeaders resource.
84
+ */
85
+ export interface ManagedHeadersArgs {
86
+ /**
87
+ * The list of managed request headers
88
+ */
89
+ managedRequestHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedRequestHeader>[]>;
90
+ /**
91
+ * The list of managed response headers
92
+ */
93
+ managedResponseHeaders?: pulumi.Input<pulumi.Input<inputs.ManagedHeadersManagedResponseHeader>[]>;
94
+ /**
95
+ * The zone identifier to target for the resource.
96
+ */
97
+ zoneId: pulumi.Input<string>;
98
+ }
@@ -0,0 +1,81 @@
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.ManagedHeaders = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as cloudflare from "@pulumi/cloudflare";
14
+ *
15
+ * // Enable security headers using Managed Meaders
16
+ * const example = new cloudflare.ManagedHeaders("example", {
17
+ * managedRequestHeaders: [{
18
+ * enabled: true,
19
+ * id: "add_true_client_ip_headers",
20
+ * }],
21
+ * managedResponseHeaders: [{
22
+ * enabled: true,
23
+ * id: "remove_x-powered-by_header",
24
+ * }],
25
+ * zoneId: "cb029e245cfdd66dc8d2e570d5dd3322",
26
+ * });
27
+ * ```
28
+ *
29
+ * ## Import
30
+ *
31
+ * Import is not supported for this resource.
32
+ */
33
+ class ManagedHeaders extends pulumi.CustomResource {
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["managedRequestHeaders"] = state ? state.managedRequestHeaders : undefined;
40
+ resourceInputs["managedResponseHeaders"] = state ? state.managedResponseHeaders : undefined;
41
+ resourceInputs["zoneId"] = state ? state.zoneId : undefined;
42
+ }
43
+ else {
44
+ const args = argsOrState;
45
+ if ((!args || args.zoneId === undefined) && !opts.urn) {
46
+ throw new Error("Missing required property 'zoneId'");
47
+ }
48
+ resourceInputs["managedRequestHeaders"] = args ? args.managedRequestHeaders : undefined;
49
+ resourceInputs["managedResponseHeaders"] = args ? args.managedResponseHeaders : undefined;
50
+ resourceInputs["zoneId"] = args ? args.zoneId : undefined;
51
+ }
52
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
53
+ super(ManagedHeaders.__pulumiType, name, resourceInputs, opts);
54
+ }
55
+ /**
56
+ * Get an existing ManagedHeaders resource's state with the given name, ID, and optional extra
57
+ * properties used to qualify the lookup.
58
+ *
59
+ * @param name The _unique_ name of the resulting resource.
60
+ * @param id The _unique_ provider ID of the resource to lookup.
61
+ * @param state Any extra arguments used during the lookup.
62
+ * @param opts Optional settings to control the behavior of the CustomResource.
63
+ */
64
+ static get(name, id, state, opts) {
65
+ return new ManagedHeaders(name, state, Object.assign(Object.assign({}, opts), { id: id }));
66
+ }
67
+ /**
68
+ * Returns true if the given object is an instance of ManagedHeaders. This is designed to work even
69
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
70
+ */
71
+ static isInstance(obj) {
72
+ if (obj === undefined || obj === null) {
73
+ return false;
74
+ }
75
+ return obj['__pulumiType'] === ManagedHeaders.__pulumiType;
76
+ }
77
+ }
78
+ exports.ManagedHeaders = ManagedHeaders;
79
+ /** @internal */
80
+ ManagedHeaders.__pulumiType = 'cloudflare:index/managedHeaders:ManagedHeaders';
81
+ //# sourceMappingURL=managedHeaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managedHeaders.js","sourceRoot":"","sources":["../managedHeaders.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAiDrD,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,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,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;IAnED;;;;;;;;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,wCAqEC;AAvDG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
@@ -1,67 +1,12 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * Provides a resource, that manages a notification policy for Cloudflare's products. The delivery
5
- * mechanisms supported are email, webhooks, and PagerDuty.
6
- *
7
- * ## Example Usage
8
- * ### Basic Example
9
- *
10
- * ```typescript
11
- * import * as pulumi from "@pulumi/pulumi";
12
- * import * as cloudflare from "@pulumi/cloudflare";
13
- *
14
- * const example = new cloudflare.NotificationPolicy("example", {
15
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
16
- * alertType: "universal_ssl_event_type",
17
- * description: "Notification policy to alert when my SSL certificates are modified",
18
- * emailIntegrations: [{
19
- * id: "myemail@example.com",
20
- * }],
21
- * enabled: true,
22
- * name: "Policy for SSL notification events",
23
- * pagerdutyIntegrations: [{
24
- * id: "850129d136459401860572c5d964d27k",
25
- * }],
26
- * webhooksIntegrations: [{
27
- * id: "1860572c5d964d27aa0f379d13645940",
28
- * }],
29
- * });
30
- * ```
31
- * ### With Filters
32
- *
33
- * ```typescript
34
- * import * as pulumi from "@pulumi/pulumi";
35
- * import * as cloudflare from "@pulumi/cloudflare";
36
- *
37
- * const example = new cloudflare.NotificationPolicy("example", {
38
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
39
- * alertType: "health_check_status_notification",
40
- * description: "Notification policy to alert on unhealthy Healthcheck status",
41
- * emailIntegrations: [{
42
- * id: "myemail@example.com",
43
- * }],
44
- * enabled: true,
45
- * filters: {
46
- * healthCheckIds: ["699d98642c564d2e855e9661899b7252"],
47
- * statuses: ["Unhealthy"],
48
- * },
49
- * name: "Policy for Healthcheck notification",
50
- * pagerdutyIntegrations: [{
51
- * id: "850129d136459401860572c5d964d27k",
52
- * }],
53
- * webhooksIntegrations: [{
54
- * id: "1860572c5d964d27aa0f379d13645940",
55
- * }],
56
- * });
57
- * ```
4
+ * Provides a resource, that manages a notification policy for Cloudflare's products. The delivery mechanisms supported are email, webhooks, and PagerDuty.
58
5
  *
59
6
  * ## Import
60
7
  *
61
- * An existing notification policy can be imported using the account ID and the policy ID
62
- *
63
8
  * ```sh
64
- * $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example 72c379d136459405d964d27aa0f18605/c4a7362d577a6c3019a474fd6f485821
9
+ * $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example <account_id>/<policy_id>
65
10
  * ```
66
11
  */
67
12
  export declare class NotificationPolicy extends pulumi.CustomResource {
@@ -81,41 +26,55 @@ export declare class NotificationPolicy extends pulumi.CustomResource {
81
26
  */
82
27
  static isInstance(obj: any): obj is NotificationPolicy;
83
28
  /**
84
- * The ID of the account for which the notification policy has to be created.
29
+ * The account identifier to target for the resource.
85
30
  */
86
31
  readonly accountId: pulumi.Output<string>;
87
32
  /**
88
- * The event type that will trigger the dispatch of a notification (refer to the nested schema).
33
+ * The event type that will trigger the dispatch of a notification. See the developer documentation for descriptions of
34
+ * [available alert types](https://developers.cloudflare.com/fundamentals/notifications/notification-available/) Available
35
+ * values: `billing_usage_alert`, `health_check_status_notification`, `g6_pool_toggle_alert`, `real_origin_monitoring`,
36
+ * `universal_ssl_event_type`, `bgp_hijack_notification`, `http_alert_origin_error`, `workers_alert`,
37
+ * `weekly_account_overview`
89
38
  */
90
39
  readonly alertType: pulumi.Output<string>;
40
+ /**
41
+ * When the notification policy was created.
42
+ */
91
43
  readonly created: pulumi.Output<string>;
92
44
  /**
93
45
  * Description of the notification policy.
94
46
  */
95
47
  readonly description: pulumi.Output<string | undefined>;
96
48
  /**
97
- * The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
49
+ * The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
50
+ * required.
98
51
  */
99
52
  readonly emailIntegrations: pulumi.Output<outputs.NotificationPolicyEmailIntegration[] | undefined>;
100
53
  /**
101
- * State of the pool to alert on. Example: `"true"`, `"false"`.
54
+ * The status of the notification policy.
102
55
  */
103
56
  readonly enabled: pulumi.Output<boolean>;
104
57
  /**
105
- * An optional nested block of filters that applies to the selected `alertType`. A key-value map that specifies the type of filter and the values to match against (refer to the alert type block for available fields).
58
+ * An optional nested block of filters that applies to the selected `alert_type`. A key-value map that specifies the type
59
+ * of filter and the values to match against (refer to the alert type block for available fields).
106
60
  */
107
61
  readonly filters: pulumi.Output<outputs.NotificationPolicyFilters | undefined>;
62
+ /**
63
+ * When the notification policy was last modified.
64
+ */
108
65
  readonly modified: pulumi.Output<string>;
109
66
  /**
110
67
  * The name of the notification policy.
111
68
  */
112
69
  readonly name: pulumi.Output<string>;
113
70
  /**
114
- * The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
71
+ * The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
72
+ * or PagerDuty mechanisms is required.
115
73
  */
116
74
  readonly pagerdutyIntegrations: pulumi.Output<outputs.NotificationPolicyPagerdutyIntegration[] | undefined>;
117
75
  /**
118
- * The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
76
+ * The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
77
+ * or PagerDuty mechanisms is required.
119
78
  */
120
79
  readonly webhooksIntegrations: pulumi.Output<outputs.NotificationPolicyWebhooksIntegration[] | undefined>;
121
80
  /**
@@ -132,41 +91,55 @@ export declare class NotificationPolicy extends pulumi.CustomResource {
132
91
  */
133
92
  export interface NotificationPolicyState {
134
93
  /**
135
- * The ID of the account for which the notification policy has to be created.
94
+ * The account identifier to target for the resource.
136
95
  */
137
96
  accountId?: pulumi.Input<string>;
138
97
  /**
139
- * The event type that will trigger the dispatch of a notification (refer to the nested schema).
98
+ * The event type that will trigger the dispatch of a notification. See the developer documentation for descriptions of
99
+ * [available alert types](https://developers.cloudflare.com/fundamentals/notifications/notification-available/) Available
100
+ * values: `billing_usage_alert`, `health_check_status_notification`, `g6_pool_toggle_alert`, `real_origin_monitoring`,
101
+ * `universal_ssl_event_type`, `bgp_hijack_notification`, `http_alert_origin_error`, `workers_alert`,
102
+ * `weekly_account_overview`
140
103
  */
141
104
  alertType?: pulumi.Input<string>;
105
+ /**
106
+ * When the notification policy was created.
107
+ */
142
108
  created?: pulumi.Input<string>;
143
109
  /**
144
110
  * Description of the notification policy.
145
111
  */
146
112
  description?: pulumi.Input<string>;
147
113
  /**
148
- * The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
114
+ * The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
115
+ * required.
149
116
  */
150
117
  emailIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyEmailIntegration>[]>;
151
118
  /**
152
- * State of the pool to alert on. Example: `"true"`, `"false"`.
119
+ * The status of the notification policy.
153
120
  */
154
121
  enabled?: pulumi.Input<boolean>;
155
122
  /**
156
- * An optional nested block of filters that applies to the selected `alertType`. A key-value map that specifies the type of filter and the values to match against (refer to the alert type block for available fields).
123
+ * An optional nested block of filters that applies to the selected `alert_type`. A key-value map that specifies the type
124
+ * of filter and the values to match against (refer to the alert type block for available fields).
157
125
  */
158
126
  filters?: pulumi.Input<inputs.NotificationPolicyFilters>;
127
+ /**
128
+ * When the notification policy was last modified.
129
+ */
159
130
  modified?: pulumi.Input<string>;
160
131
  /**
161
132
  * The name of the notification policy.
162
133
  */
163
134
  name?: pulumi.Input<string>;
164
135
  /**
165
- * The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
136
+ * The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
137
+ * or PagerDuty mechanisms is required.
166
138
  */
167
139
  pagerdutyIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyPagerdutyIntegration>[]>;
168
140
  /**
169
- * The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
141
+ * The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
142
+ * or PagerDuty mechanisms is required.
170
143
  */
171
144
  webhooksIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyWebhooksIntegration>[]>;
172
145
  }
@@ -175,11 +148,15 @@ export interface NotificationPolicyState {
175
148
  */
176
149
  export interface NotificationPolicyArgs {
177
150
  /**
178
- * The ID of the account for which the notification policy has to be created.
151
+ * The account identifier to target for the resource.
179
152
  */
180
153
  accountId: pulumi.Input<string>;
181
154
  /**
182
- * The event type that will trigger the dispatch of a notification (refer to the nested schema).
155
+ * The event type that will trigger the dispatch of a notification. See the developer documentation for descriptions of
156
+ * [available alert types](https://developers.cloudflare.com/fundamentals/notifications/notification-available/) Available
157
+ * values: `billing_usage_alert`, `health_check_status_notification`, `g6_pool_toggle_alert`, `real_origin_monitoring`,
158
+ * `universal_ssl_event_type`, `bgp_hijack_notification`, `http_alert_origin_error`, `workers_alert`,
159
+ * `weekly_account_overview`
183
160
  */
184
161
  alertType: pulumi.Input<string>;
185
162
  /**
@@ -187,15 +164,17 @@ export interface NotificationPolicyArgs {
187
164
  */
188
165
  description?: pulumi.Input<string>;
189
166
  /**
190
- * The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
167
+ * The email id to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is
168
+ * required.
191
169
  */
192
170
  emailIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyEmailIntegration>[]>;
193
171
  /**
194
- * State of the pool to alert on. Example: `"true"`, `"false"`.
172
+ * The status of the notification policy.
195
173
  */
196
174
  enabled: pulumi.Input<boolean>;
197
175
  /**
198
- * An optional nested block of filters that applies to the selected `alertType`. A key-value map that specifies the type of filter and the values to match against (refer to the alert type block for available fields).
176
+ * An optional nested block of filters that applies to the selected `alert_type`. A key-value map that specifies the type
177
+ * of filter and the values to match against (refer to the alert type block for available fields).
199
178
  */
200
179
  filters?: pulumi.Input<inputs.NotificationPolicyFilters>;
201
180
  /**
@@ -203,11 +182,13 @@ export interface NotificationPolicyArgs {
203
182
  */
204
183
  name: pulumi.Input<string>;
205
184
  /**
206
- * The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
185
+ * The unique id of a configured pagerduty endpoint to which the notification should be dispatched. One of email, webhooks,
186
+ * or PagerDuty mechanisms is required.
207
187
  */
208
188
  pagerdutyIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyPagerdutyIntegration>[]>;
209
189
  /**
210
- * The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks, or PagerDuty mechanisms is required.
190
+ * The unique id of a configured webhooks endpoint to which the notification should be dispatched. One of email, webhooks,
191
+ * or PagerDuty mechanisms is required.
211
192
  */
212
193
  webhooksIntegrations?: pulumi.Input<pulumi.Input<inputs.NotificationPolicyWebhooksIntegration>[]>;
213
194
  }
@@ -6,67 +6,12 @@ exports.NotificationPolicy = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Provides a resource, that manages a notification policy for Cloudflare's products. The delivery
10
- * mechanisms supported are email, webhooks, and PagerDuty.
11
- *
12
- * ## Example Usage
13
- * ### Basic Example
14
- *
15
- * ```typescript
16
- * import * as pulumi from "@pulumi/pulumi";
17
- * import * as cloudflare from "@pulumi/cloudflare";
18
- *
19
- * const example = new cloudflare.NotificationPolicy("example", {
20
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
21
- * alertType: "universal_ssl_event_type",
22
- * description: "Notification policy to alert when my SSL certificates are modified",
23
- * emailIntegrations: [{
24
- * id: "myemail@example.com",
25
- * }],
26
- * enabled: true,
27
- * name: "Policy for SSL notification events",
28
- * pagerdutyIntegrations: [{
29
- * id: "850129d136459401860572c5d964d27k",
30
- * }],
31
- * webhooksIntegrations: [{
32
- * id: "1860572c5d964d27aa0f379d13645940",
33
- * }],
34
- * });
35
- * ```
36
- * ### With Filters
37
- *
38
- * ```typescript
39
- * import * as pulumi from "@pulumi/pulumi";
40
- * import * as cloudflare from "@pulumi/cloudflare";
41
- *
42
- * const example = new cloudflare.NotificationPolicy("example", {
43
- * accountId: "c4a7362d577a6c3019a474fd6f485821",
44
- * alertType: "health_check_status_notification",
45
- * description: "Notification policy to alert on unhealthy Healthcheck status",
46
- * emailIntegrations: [{
47
- * id: "myemail@example.com",
48
- * }],
49
- * enabled: true,
50
- * filters: {
51
- * healthCheckIds: ["699d98642c564d2e855e9661899b7252"],
52
- * statuses: ["Unhealthy"],
53
- * },
54
- * name: "Policy for Healthcheck notification",
55
- * pagerdutyIntegrations: [{
56
- * id: "850129d136459401860572c5d964d27k",
57
- * }],
58
- * webhooksIntegrations: [{
59
- * id: "1860572c5d964d27aa0f379d13645940",
60
- * }],
61
- * });
62
- * ```
9
+ * Provides a resource, that manages a notification policy for Cloudflare's products. The delivery mechanisms supported are email, webhooks, and PagerDuty.
63
10
  *
64
11
  * ## Import
65
12
  *
66
- * An existing notification policy can be imported using the account ID and the policy ID
67
- *
68
13
  * ```sh
69
- * $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example 72c379d136459405d964d27aa0f18605/c4a7362d577a6c3019a474fd6f485821
14
+ * $ pulumi import cloudflare:index/notificationPolicy:NotificationPolicy example <account_id>/<policy_id>
70
15
  * ```
71
16
  */
72
17
  class NotificationPolicy extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"notificationPolicy.js","sourceRoot":"","sources":["../notificationPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA2EzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAsIC;AAxHG,gBAAgB;AACO,+BAAY,GAAG,wDAAwD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/cloudflare",
3
- "version": "v4.7.0",
3
+ "version": "v4.8.0",
4
4
  "description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.7.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.8.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/cloudflare",
3
- "version": "v4.7.0",
3
+ "version": "v4.8.0",
4
4
  "description": "A Pulumi package for creating and managing Cloudflare cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.7.0"
14
+ "install": "node scripts/install-pulumi-plugin.js resource cloudflare v4.8.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"