@pulumi/cloudflare 4.0.0 → 4.1.0-alpha.1640022855

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 (186) hide show
  1. package/README.md +1 -1
  2. package/accessApplication.d.ts +24 -0
  3. package/accessApplication.js +11 -0
  4. package/accessApplication.js.map +1 -1
  5. package/accessCaCertificate.js +1 -0
  6. package/accessCaCertificate.js.map +1 -1
  7. package/accessGroup.js +1 -0
  8. package/accessGroup.js.map +1 -1
  9. package/accessIdentityProvider.js +1 -0
  10. package/accessIdentityProvider.js.map +1 -1
  11. package/accessKeysConfiguration.js +1 -0
  12. package/accessKeysConfiguration.js.map +1 -1
  13. package/accessMutualTlsCertificate.js +1 -0
  14. package/accessMutualTlsCertificate.js.map +1 -1
  15. package/accessPolicy.d.ts +3 -0
  16. package/accessPolicy.js +3 -0
  17. package/accessPolicy.js.map +1 -1
  18. package/accessRule.js +1 -0
  19. package/accessRule.js.map +1 -1
  20. package/accessServiceToken.js +1 -0
  21. package/accessServiceToken.js.map +1 -1
  22. package/accountMember.js +1 -0
  23. package/accountMember.js.map +1 -1
  24. package/apiToken.d.ts +8 -8
  25. package/apiToken.js +9 -8
  26. package/apiToken.js.map +1 -1
  27. package/argo.js +1 -0
  28. package/argo.js.map +1 -1
  29. package/argoTunnel.d.ts +8 -0
  30. package/argoTunnel.js +3 -0
  31. package/argoTunnel.js.map +1 -1
  32. package/authenticatedOriginPulls.js +1 -0
  33. package/authenticatedOriginPulls.js.map +1 -1
  34. package/authenticatedOriginPullsCertificate.js +1 -0
  35. package/authenticatedOriginPullsCertificate.js.map +1 -1
  36. package/byoIpPrefix.js +1 -0
  37. package/byoIpPrefix.js.map +1 -1
  38. package/certificatePack.js +1 -0
  39. package/certificatePack.js.map +1 -1
  40. package/config/index.js +11 -4
  41. package/config/index.js.map +1 -1
  42. package/config/vars.d.ts +18 -10
  43. package/config/vars.js +78 -41
  44. package/config/vars.js.map +1 -1
  45. package/customHostname.js +1 -0
  46. package/customHostname.js.map +1 -1
  47. package/customHostnameFallbackOrigin.js +1 -0
  48. package/customHostnameFallbackOrigin.js.map +1 -1
  49. package/customPages.js +1 -0
  50. package/customPages.js.map +1 -1
  51. package/customSsl.js +1 -0
  52. package/customSsl.js.map +1 -1
  53. package/devicePostureRule.js +1 -0
  54. package/devicePostureRule.js.map +1 -1
  55. package/filter.js +1 -0
  56. package/filter.js.map +1 -1
  57. package/firewallRule.d.ts +3 -0
  58. package/firewallRule.js +4 -0
  59. package/firewallRule.js.map +1 -1
  60. package/getAccessIdentityProvider.d.ts +80 -0
  61. package/getAccessIdentityProvider.js +50 -0
  62. package/getAccessIdentityProvider.js.map +1 -0
  63. package/getAccountRoles.d.ts +39 -0
  64. package/getAccountRoles.js +27 -0
  65. package/getAccountRoles.js.map +1 -0
  66. package/getApiTokenPermissionGroups.d.ts +1 -1
  67. package/getApiTokenPermissionGroups.js +2 -1
  68. package/getApiTokenPermissionGroups.js.map +1 -1
  69. package/getIpRanges.js +1 -0
  70. package/getIpRanges.js.map +1 -1
  71. package/getOriginCaRootCertificate.d.ts +10 -0
  72. package/getOriginCaRootCertificate.js +5 -0
  73. package/getOriginCaRootCertificate.js.map +1 -1
  74. package/getWafGroups.d.ts +36 -0
  75. package/getWafGroups.js +22 -0
  76. package/getWafGroups.js.map +1 -1
  77. package/getWafPackages.d.ts +34 -0
  78. package/getWafPackages.js +24 -0
  79. package/getWafPackages.js.map +1 -1
  80. package/getWafRules.d.ts +19 -0
  81. package/getWafRules.js +5 -0
  82. package/getWafRules.js.map +1 -1
  83. package/getZone.d.ts +117 -0
  84. package/getZone.js +68 -0
  85. package/getZone.js.map +1 -0
  86. package/getZoneDnssec.d.ts +10 -0
  87. package/getZoneDnssec.js +5 -0
  88. package/getZoneDnssec.js.map +1 -1
  89. package/getZones.d.ts +11 -36
  90. package/getZones.js +5 -36
  91. package/getZones.js.map +1 -1
  92. package/healthcheck.js +1 -0
  93. package/healthcheck.js.map +1 -1
  94. package/index.d.ts +4 -0
  95. package/index.js +88 -72
  96. package/index.js.map +1 -1
  97. package/ipList.js +1 -0
  98. package/ipList.js.map +1 -1
  99. package/loadBalancer.js +1 -0
  100. package/loadBalancer.js.map +1 -1
  101. package/loadBalancerMonitor.js +1 -0
  102. package/loadBalancerMonitor.js.map +1 -1
  103. package/loadBalancerPool.d.ts +15 -0
  104. package/loadBalancerPool.js +6 -0
  105. package/loadBalancerPool.js.map +1 -1
  106. package/logPushOwnershipChallenge.js +1 -0
  107. package/logPushOwnershipChallenge.js.map +1 -1
  108. package/logpullRetention.js +1 -0
  109. package/logpullRetention.js.map +1 -1
  110. package/logpushJob.js +1 -0
  111. package/logpushJob.js.map +1 -1
  112. package/magicFirewallRuleset.js +1 -0
  113. package/magicFirewallRuleset.js.map +1 -1
  114. package/notificationPolicy.js +1 -0
  115. package/notificationPolicy.js.map +1 -1
  116. package/notificationPolicyWebhooks.js +1 -0
  117. package/notificationPolicyWebhooks.js.map +1 -1
  118. package/originCaCertificate.d.ts +1 -1
  119. package/originCaCertificate.js +1 -0
  120. package/originCaCertificate.js.map +1 -1
  121. package/package.json +4 -3
  122. package/package.json.bak +3 -2
  123. package/package.json.dev +4 -3
  124. package/pageRule.js +1 -0
  125. package/pageRule.js.map +1 -1
  126. package/provider.d.ts +16 -0
  127. package/provider.js +8 -5
  128. package/provider.js.map +1 -1
  129. package/rateLimit.js +1 -0
  130. package/rateLimit.js.map +1 -1
  131. package/record.js +1 -0
  132. package/record.js.map +1 -1
  133. package/ruleset.d.ts +3 -176
  134. package/ruleset.js +1 -173
  135. package/ruleset.js.map +1 -1
  136. package/spectrumApplication.js +1 -0
  137. package/spectrumApplication.js.map +1 -1
  138. package/splitTunnel.d.ts +111 -0
  139. package/splitTunnel.js +102 -0
  140. package/splitTunnel.js.map +1 -0
  141. package/staticRoute.js +1 -0
  142. package/staticRoute.js.map +1 -1
  143. package/teamsAccount.js +1 -0
  144. package/teamsAccount.js.map +1 -1
  145. package/teamsList.js +1 -0
  146. package/teamsList.js.map +1 -1
  147. package/teamsLocation.js +1 -0
  148. package/teamsLocation.js.map +1 -1
  149. package/teamsRule.js +1 -0
  150. package/teamsRule.js.map +1 -1
  151. package/types/index.js +1 -0
  152. package/types/index.js.map +1 -1
  153. package/types/input.d.ts +195 -0
  154. package/types/output.d.ts +138 -0
  155. package/utilities.js +1 -0
  156. package/utilities.js.map +1 -1
  157. package/wafGroup.js +1 -0
  158. package/wafGroup.js.map +1 -1
  159. package/wafOverride.js +1 -0
  160. package/wafOverride.js.map +1 -1
  161. package/wafPackage.js +1 -0
  162. package/wafPackage.js.map +1 -1
  163. package/wafRule.js +1 -0
  164. package/wafRule.js.map +1 -1
  165. package/waitingRoom.js +1 -0
  166. package/waitingRoom.js.map +1 -1
  167. package/workerCronTrigger.js +1 -0
  168. package/workerCronTrigger.js.map +1 -1
  169. package/workerRoute.js +1 -0
  170. package/workerRoute.js.map +1 -1
  171. package/workerScript.d.ts +31 -0
  172. package/workerScript.js +32 -0
  173. package/workerScript.js.map +1 -1
  174. package/workersKv.js +1 -0
  175. package/workersKv.js.map +1 -1
  176. package/workersKvNamespace.js +1 -0
  177. package/workersKvNamespace.js.map +1 -1
  178. package/zone.js +1 -0
  179. package/zone.js.map +1 -1
  180. package/zoneDnssec.js +1 -0
  181. package/zoneDnssec.js.map +1 -1
  182. package/zoneLockdown.js +1 -0
  183. package/zoneLockdown.js.map +1 -1
  184. package/zoneSettingsOverride.d.ts +6 -0
  185. package/zoneSettingsOverride.js +1 -0
  186. package/zoneSettingsOverride.js.map +1 -1
@@ -0,0 +1,80 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to lookup a single [Access Identity Provider][accessIdentityProviderGuide] by name.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as cloudflare from "@pulumi/cloudflare";
10
+ *
11
+ * const mainAccessIdentityProvider = cloudflare.getAccessIdentityProvider({
12
+ * name: "Google SSO",
13
+ * accountId: "example-account-id",
14
+ * });
15
+ * const mainAccessApplication = new cloudflare.AccessApplication("mainAccessApplication", {
16
+ * zoneId: "example.com",
17
+ * name: "name",
18
+ * domain: "name.example.com",
19
+ * type: "self_hosted",
20
+ * sessionDuration: "24h",
21
+ * allowedIdps: [mainAccessIdentityProvider.then(mainAccessIdentityProvider => mainAccessIdentityProvider.id)],
22
+ * autoRedirectToIdentity: true,
23
+ * });
24
+ * ```
25
+ */
26
+ export declare function getAccessIdentityProvider(args: GetAccessIdentityProviderArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessIdentityProviderResult>;
27
+ /**
28
+ * A collection of arguments for invoking getAccessIdentityProvider.
29
+ */
30
+ export interface GetAccessIdentityProviderArgs {
31
+ /**
32
+ * The account for which to look for an Access Identity Provider. Conflicts with `zoneId`.
33
+ */
34
+ accountId?: string;
35
+ /**
36
+ * Access Identity Provider name to search for.
37
+ */
38
+ name: string;
39
+ /**
40
+ * The Zone's ID. Conflicts with `accountId`.
41
+ */
42
+ zoneId?: string;
43
+ }
44
+ /**
45
+ * A collection of values returned by getAccessIdentityProvider.
46
+ */
47
+ export interface GetAccessIdentityProviderResult {
48
+ readonly accountId?: string;
49
+ /**
50
+ * The provider-assigned unique ID for this managed resource.
51
+ */
52
+ readonly id: string;
53
+ /**
54
+ * Access Identity Provider Name
55
+ */
56
+ readonly name: string;
57
+ /**
58
+ * Access Identity Provider Type
59
+ */
60
+ readonly type: string;
61
+ readonly zoneId?: string;
62
+ }
63
+ export declare function getAccessIdentityProviderOutput(args: GetAccessIdentityProviderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccessIdentityProviderResult>;
64
+ /**
65
+ * A collection of arguments for invoking getAccessIdentityProvider.
66
+ */
67
+ export interface GetAccessIdentityProviderOutputArgs {
68
+ /**
69
+ * The account for which to look for an Access Identity Provider. Conflicts with `zoneId`.
70
+ */
71
+ accountId?: pulumi.Input<string>;
72
+ /**
73
+ * Access Identity Provider name to search for.
74
+ */
75
+ name: pulumi.Input<string>;
76
+ /**
77
+ * The Zone's ID. Conflicts with `accountId`.
78
+ */
79
+ zoneId?: pulumi.Input<string>;
80
+ }
@@ -0,0 +1,50 @@
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.getAccessIdentityProviderOutput = exports.getAccessIdentityProvider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to lookup a single [Access Identity Provider][accessIdentityProviderGuide] by name.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as cloudflare from "@pulumi/cloudflare";
16
+ *
17
+ * const mainAccessIdentityProvider = cloudflare.getAccessIdentityProvider({
18
+ * name: "Google SSO",
19
+ * accountId: "example-account-id",
20
+ * });
21
+ * const mainAccessApplication = new cloudflare.AccessApplication("mainAccessApplication", {
22
+ * zoneId: "example.com",
23
+ * name: "name",
24
+ * domain: "name.example.com",
25
+ * type: "self_hosted",
26
+ * sessionDuration: "24h",
27
+ * allowedIdps: [mainAccessIdentityProvider.then(mainAccessIdentityProvider => mainAccessIdentityProvider.id)],
28
+ * autoRedirectToIdentity: true,
29
+ * });
30
+ * ```
31
+ */
32
+ function getAccessIdentityProvider(args, opts) {
33
+ if (!opts) {
34
+ opts = {};
35
+ }
36
+ if (!opts.version) {
37
+ opts.version = utilities.getVersion();
38
+ }
39
+ return pulumi.runtime.invoke("cloudflare:index/getAccessIdentityProvider:getAccessIdentityProvider", {
40
+ "accountId": args.accountId,
41
+ "name": args.name,
42
+ "zoneId": args.zoneId,
43
+ }, opts);
44
+ }
45
+ exports.getAccessIdentityProvider = getAccessIdentityProvider;
46
+ function getAccessIdentityProviderOutput(args, opts) {
47
+ return pulumi.output(args).apply(a => getAccessIdentityProvider(a, opts));
48
+ }
49
+ exports.getAccessIdentityProviderOutput = getAccessIdentityProviderOutput;
50
+ //# sourceMappingURL=getAccessIdentityProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccessIdentityProvider.js","sourceRoot":"","sources":["../getAccessIdentityProvider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sEAAsE,EAAE;QACjG,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,8DAaC;AAwCD,SAAgB,+BAA+B,CAAC,IAAyC,EAAE,IAA2B;IAClH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,0EAEC"}
@@ -0,0 +1,39 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { output as outputs } from "./types";
3
+ /**
4
+ * Use this data source to lookup [Account Roles](https://api.cloudflare.com/#account-roles-properties).
5
+ */
6
+ export declare function getAccountRoles(args: GetAccountRolesArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountRolesResult>;
7
+ /**
8
+ * A collection of arguments for invoking getAccountRoles.
9
+ */
10
+ export interface GetAccountRolesArgs {
11
+ /**
12
+ * The account for which to list the roles.
13
+ */
14
+ accountId: string;
15
+ }
16
+ /**
17
+ * A collection of values returned by getAccountRoles.
18
+ */
19
+ export interface GetAccountRolesResult {
20
+ readonly accountId: string;
21
+ /**
22
+ * The provider-assigned unique ID for this managed resource.
23
+ */
24
+ readonly id: string;
25
+ /**
26
+ * A list of roles object. See below for nested attributes.
27
+ */
28
+ readonly roles: outputs.GetAccountRolesRole[];
29
+ }
30
+ export declare function getAccountRolesOutput(args: GetAccountRolesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountRolesResult>;
31
+ /**
32
+ * A collection of arguments for invoking getAccountRoles.
33
+ */
34
+ export interface GetAccountRolesOutputArgs {
35
+ /**
36
+ * The account for which to list the roles.
37
+ */
38
+ accountId: pulumi.Input<string>;
39
+ }
@@ -0,0 +1,27 @@
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.getAccountRolesOutput = exports.getAccountRoles = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to lookup [Account Roles](https://api.cloudflare.com/#account-roles-properties).
10
+ */
11
+ function getAccountRoles(args, opts) {
12
+ if (!opts) {
13
+ opts = {};
14
+ }
15
+ if (!opts.version) {
16
+ opts.version = utilities.getVersion();
17
+ }
18
+ return pulumi.runtime.invoke("cloudflare:index/getAccountRoles:getAccountRoles", {
19
+ "accountId": args.accountId,
20
+ }, opts);
21
+ }
22
+ exports.getAccountRoles = getAccountRoles;
23
+ function getAccountRolesOutput(args, opts) {
24
+ return pulumi.output(args).apply(a => getAccountRoles(a, opts));
25
+ }
26
+ exports.getAccountRolesOutput = getAccountRolesOutput;
27
+ //# sourceMappingURL=getAccountRoles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountRoles.js","sourceRoot":"","sources":["../getAccountRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,0CAWC;AA2BD,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,sDAEC"}
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as cloudflare from "@pulumi/cloudflare";
10
10
  *
11
11
  * const test = cloudflare.getApiTokenPermissionGroups({});
12
- * export const dnsReadPermissionId = test.then(test => test.permissions["DNS Read"]);
12
+ * export const dnsReadPermissionId = test.then(test => test.permissions?["DNS Read"]);
13
13
  * ```
14
14
  */
15
15
  export declare function getApiTokenPermissionGroups(opts?: pulumi.InvokeOptions): Promise<GetApiTokenPermissionGroupsResult>;
@@ -2,6 +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.getApiTokenPermissionGroups = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -14,7 +15,7 @@ const utilities = require("./utilities");
14
15
  * import * as cloudflare from "@pulumi/cloudflare";
15
16
  *
16
17
  * const test = cloudflare.getApiTokenPermissionGroups({});
17
- * export const dnsReadPermissionId = test.then(test => test.permissions["DNS Read"]);
18
+ * export const dnsReadPermissionId = test.then(test => test.permissions?["DNS Read"]);
18
19
  * ```
19
20
  */
20
21
  function getApiTokenPermissionGroups(opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"getApiTokenPermissionGroups.js","sourceRoot":"","sources":["../getApiTokenPermissionGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,SAAgB,2BAA2B,CAAC,IAA2B;IACnE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kEAUC"}
1
+ {"version":3,"file":"getApiTokenPermissionGroups.js","sourceRoot":"","sources":["../getApiTokenPermissionGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,SAAgB,2BAA2B,CAAC,IAA2B;IACnE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kEAUC"}
package/getIpRanges.js CHANGED
@@ -2,6 +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.getIpRanges = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"getIpRanges.js","sourceRoot":"","sources":["../getIpRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,WAAW,CAAC,IAA2B;IACnD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE,EACxE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kCAUC"}
1
+ {"version":3,"file":"getIpRanges.js","sourceRoot":"","sources":["../getIpRanges.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,WAAW,CAAC,IAA2B;IACnD,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE,EACxE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,kCAUC"}
@@ -37,3 +37,13 @@ export interface GetOriginCaRootCertificateResult {
37
37
  */
38
38
  readonly id: string;
39
39
  }
40
+ export declare function getOriginCaRootCertificateOutput(args: GetOriginCaRootCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOriginCaRootCertificateResult>;
41
+ /**
42
+ * A collection of arguments for invoking getOriginCaRootCertificate.
43
+ */
44
+ export interface GetOriginCaRootCertificateOutputArgs {
45
+ /**
46
+ * The name of the algorithm used when creating an Origin CA certificate. Currently-supported values are "rsa" and "ecc" (case-insensitive).
47
+ */
48
+ algorithm: pulumi.Input<string>;
49
+ }
@@ -2,6 +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.getOriginCaRootCertificateOutput = exports.getOriginCaRootCertificate = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -30,4 +31,8 @@ function getOriginCaRootCertificate(args, opts) {
30
31
  }, opts);
31
32
  }
32
33
  exports.getOriginCaRootCertificate = getOriginCaRootCertificate;
34
+ function getOriginCaRootCertificateOutput(args, opts) {
35
+ return pulumi.output(args).apply(a => getOriginCaRootCertificate(a, opts));
36
+ }
37
+ exports.getOriginCaRootCertificateOutput = getOriginCaRootCertificateOutput;
33
38
  //# sourceMappingURL=getOriginCaRootCertificate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOriginCaRootCertificate.js","sourceRoot":"","sources":["../getOriginCaRootCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAA2B;IACxG,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wEAAwE,EAAE;QACnG,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gEAWC"}
1
+ {"version":3,"file":"getOriginCaRootCertificate.js","sourceRoot":"","sources":["../getOriginCaRootCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAA2B;IACxG,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wEAAwE,EAAE;QACnG,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gEAWC;AA2BD,SAAgB,gCAAgC,CAAC,IAA0C,EAAE,IAA2B;IACpH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,0BAA0B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,4EAEC"}
package/getWafGroups.d.ts CHANGED
@@ -2,6 +2,23 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
4
  * Use this data source to look up [WAF Rule Groups](https://api.cloudflare.com/#waf-rule-groups-properties).
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * The example below matches all WAF Rule Groups that contain the word `example` and are currently `on`. The matched WAF Rule Groups are then returned as output.
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as cloudflare from "@pulumi/cloudflare";
13
+ *
14
+ * const test = cloudflare.getWafGroups({
15
+ * filter: {
16
+ * name: ".*example.*",
17
+ * mode: "on",
18
+ * },
19
+ * });
20
+ * export const wafGroups = test.then(test => test.groups);
21
+ * ```
5
22
  */
6
23
  export declare function getWafGroups(args: GetWafGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetWafGroupsResult>;
7
24
  /**
@@ -41,3 +58,22 @@ export interface GetWafGroupsResult {
41
58
  readonly packageId?: string;
42
59
  readonly zoneId: string;
43
60
  }
61
+ export declare function getWafGroupsOutput(args: GetWafGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWafGroupsResult>;
62
+ /**
63
+ * A collection of arguments for invoking getWafGroups.
64
+ */
65
+ export interface GetWafGroupsOutputArgs {
66
+ /**
67
+ * One or more values used to look up WAF Rule Groups. If more than one value is given all
68
+ * values must match in order to be included, see below for full list.
69
+ */
70
+ filter?: pulumi.Input<inputs.GetWafGroupsFilterArgs>;
71
+ /**
72
+ * The ID of the WAF Rule Package in which to search for the WAF Rule Groups.
73
+ */
74
+ packageId?: pulumi.Input<string>;
75
+ /**
76
+ * The ID of the DNS zone in which to search for the WAF Rule Groups.
77
+ */
78
+ zoneId: pulumi.Input<string>;
79
+ }
package/getWafGroups.js CHANGED
@@ -2,10 +2,28 @@
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.getWafGroupsOutput = exports.getWafGroups = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
8
9
  * Use this data source to look up [WAF Rule Groups](https://api.cloudflare.com/#waf-rule-groups-properties).
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * The example below matches all WAF Rule Groups that contain the word `example` and are currently `on`. The matched WAF Rule Groups are then returned as output.
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as cloudflare from "@pulumi/cloudflare";
18
+ *
19
+ * const test = cloudflare.getWafGroups({
20
+ * filter: {
21
+ * name: ".*example.*",
22
+ * mode: "on",
23
+ * },
24
+ * });
25
+ * export const wafGroups = test.then(test => test.groups);
26
+ * ```
9
27
  */
10
28
  function getWafGroups(args, opts) {
11
29
  if (!opts) {
@@ -21,4 +39,8 @@ function getWafGroups(args, opts) {
21
39
  }, opts);
22
40
  }
23
41
  exports.getWafGroups = getWafGroups;
42
+ function getWafGroupsOutput(args, opts) {
43
+ return pulumi.output(args).apply(a => getWafGroups(a, opts));
44
+ }
45
+ exports.getWafGroupsOutput = getWafGroupsOutput;
24
46
  //# sourceMappingURL=getWafGroups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWafGroups.js","sourceRoot":"","sources":["../getWafGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,oCAaC"}
1
+ {"version":3,"file":"getWafGroups.js","sourceRoot":"","sources":["../getWafGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4CAA4C,EAAE;QACvE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,oCAaC;AAyCD,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
@@ -2,6 +2,25 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
4
  * Use this data source to look up [WAF Rule Packages](https://api.cloudflare.com/#waf-rule-packages-properties).
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * The example below matches all `high` sensitivity WAF Rule Packages, with a `challenge` action mode and an `anomaly` detection mode, that contain the word `example`. The matched WAF Rule Packages are then returned as output.
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as cloudflare from "@pulumi/cloudflare";
13
+ *
14
+ * const test = cloudflare.getWafPackages({
15
+ * filter: {
16
+ * name: ".*example.*",
17
+ * detectionMode: "anomaly",
18
+ * sensitivity: "high",
19
+ * actionMode: "challenge",
20
+ * },
21
+ * });
22
+ * export const wafPackages = test.then(test => test.packages);
23
+ * ```
5
24
  */
6
25
  export declare function getWafPackages(args: GetWafPackagesArgs, opts?: pulumi.InvokeOptions): Promise<GetWafPackagesResult>;
7
26
  /**
@@ -33,3 +52,18 @@ export interface GetWafPackagesResult {
33
52
  readonly packages: outputs.GetWafPackagesPackage[];
34
53
  readonly zoneId: string;
35
54
  }
55
+ export declare function getWafPackagesOutput(args: GetWafPackagesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWafPackagesResult>;
56
+ /**
57
+ * A collection of arguments for invoking getWafPackages.
58
+ */
59
+ export interface GetWafPackagesOutputArgs {
60
+ /**
61
+ * One or more values used to look up WAF Rule Packages. If more than one value is given all
62
+ * values must match in order to be included, see below for full list.
63
+ */
64
+ filter?: pulumi.Input<inputs.GetWafPackagesFilterArgs>;
65
+ /**
66
+ * The ID of the DNS zone in which to search for the WAF Rule Packages.
67
+ */
68
+ zoneId: pulumi.Input<string>;
69
+ }
package/getWafPackages.js CHANGED
@@ -2,10 +2,30 @@
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.getWafPackagesOutput = exports.getWafPackages = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
8
9
  * Use this data source to look up [WAF Rule Packages](https://api.cloudflare.com/#waf-rule-packages-properties).
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * The example below matches all `high` sensitivity WAF Rule Packages, with a `challenge` action mode and an `anomaly` detection mode, that contain the word `example`. The matched WAF Rule Packages are then returned as output.
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as cloudflare from "@pulumi/cloudflare";
18
+ *
19
+ * const test = cloudflare.getWafPackages({
20
+ * filter: {
21
+ * name: ".*example.*",
22
+ * detectionMode: "anomaly",
23
+ * sensitivity: "high",
24
+ * actionMode: "challenge",
25
+ * },
26
+ * });
27
+ * export const wafPackages = test.then(test => test.packages);
28
+ * ```
9
29
  */
10
30
  function getWafPackages(args, opts) {
11
31
  if (!opts) {
@@ -20,4 +40,8 @@ function getWafPackages(args, opts) {
20
40
  }, opts);
21
41
  }
22
42
  exports.getWafPackages = getWafPackages;
43
+ function getWafPackagesOutput(args, opts) {
44
+ return pulumi.output(args).apply(a => getWafPackages(a, opts));
45
+ }
46
+ exports.getWafPackagesOutput = getWafPackagesOutput;
23
47
  //# sourceMappingURL=getWafPackages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWafPackages.js","sourceRoot":"","sources":["../getWafPackages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,wCAYC"}
1
+ {"version":3,"file":"getWafPackages.js","sourceRoot":"","sources":["../getWafPackages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,wCAYC;AAiCD,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oDAEC"}
package/getWafRules.d.ts CHANGED
@@ -61,3 +61,22 @@ export interface GetWafRulesResult {
61
61
  readonly rules: outputs.GetWafRulesRule[];
62
62
  readonly zoneId: string;
63
63
  }
64
+ export declare function getWafRulesOutput(args: GetWafRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWafRulesResult>;
65
+ /**
66
+ * A collection of arguments for invoking getWafRules.
67
+ */
68
+ export interface GetWafRulesOutputArgs {
69
+ /**
70
+ * One or more values used to look up WAF Rules. If more than one value is given all
71
+ * values must match in order to be included, see below for full list.
72
+ */
73
+ filter?: pulumi.Input<inputs.GetWafRulesFilterArgs>;
74
+ /**
75
+ * The ID of the WAF Rule Package in which to search for the WAF Rules.
76
+ */
77
+ packageId?: pulumi.Input<string>;
78
+ /**
79
+ * The ID of the DNS zone in which to search for the WAF Rules.
80
+ */
81
+ zoneId: pulumi.Input<string>;
82
+ }
package/getWafRules.js CHANGED
@@ -2,6 +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.getWafRulesOutput = exports.getWafRules = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
@@ -41,4 +42,8 @@ function getWafRules(args, opts) {
41
42
  }, opts);
42
43
  }
43
44
  exports.getWafRules = getWafRules;
45
+ function getWafRulesOutput(args, opts) {
46
+ return pulumi.output(args).apply(a => getWafRules(a, opts));
47
+ }
48
+ exports.getWafRulesOutput = getWafRulesOutput;
44
49
  //# sourceMappingURL=getWafRules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWafRules.js","sourceRoot":"","sources":["../getWafRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,kCAaC"}
1
+ {"version":3,"file":"getWafRules.js","sourceRoot":"","sources":["../getWafRules.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,kCAaC;AAyCD,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
package/getZone.d.ts ADDED
@@ -0,0 +1,117 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to look up [zone] info. This is the singular alternative
4
+ * to `cloudflare.getZones`.
5
+ *
6
+ * > **Note** Cloudflare zone names **are not unique**. It is possible for multiple
7
+ * accounts to have the same zone created but in different states. If you are
8
+ * using this setup, it is advised to use the `accountId` attribute on this
9
+ * resource or swap to `cloudflare.getZones` to further filter the results.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as cloudflare from "@pulumi/cloudflare";
16
+ *
17
+ * // You can also lookup by zone_id if you prefer.
18
+ * const example = pulumi.output(cloudflare.getZone({
19
+ * zoneId: "0b6d347b01d437a092be84c2edfce72c",
20
+ * }));
21
+ * ```
22
+ * ### Example usage with other resources
23
+ *
24
+ * The example below fetches the zone information for example.com and then is
25
+ * referenced in the `cloudflare.Record` section.
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as cloudflare from "@pulumi/cloudflare";
30
+ *
31
+ * const exampleZone = cloudflare.getZone({
32
+ * name: "example.com",
33
+ * });
34
+ * const exampleRecord = new cloudflare.Record("exampleRecord", {
35
+ * zoneId: exampleZone.then(exampleZone => exampleZone.id),
36
+ * name: "www",
37
+ * value: "203.0.113.1",
38
+ * type: "A",
39
+ * proxied: true,
40
+ * });
41
+ * ```
42
+ */
43
+ export declare function getZone(args?: GetZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetZoneResult>;
44
+ /**
45
+ * A collection of arguments for invoking getZone.
46
+ */
47
+ export interface GetZoneArgs {
48
+ /**
49
+ * The account ID associated with the zone.
50
+ */
51
+ accountId?: string;
52
+ /**
53
+ * The name of the zone. Conflicts with `"zoneId"`.
54
+ */
55
+ name?: string;
56
+ /**
57
+ * The zone ID. Conflicts with `"name"`.
58
+ */
59
+ zoneId?: string;
60
+ }
61
+ /**
62
+ * A collection of values returned by getZone.
63
+ */
64
+ export interface GetZoneResult {
65
+ /**
66
+ * The account ID associated with the zone.
67
+ */
68
+ readonly accountId: string;
69
+ /**
70
+ * The provider-assigned unique ID for this managed resource.
71
+ */
72
+ readonly id: string;
73
+ /**
74
+ * The name of the zone.
75
+ */
76
+ readonly name: string;
77
+ /**
78
+ * Cloudflare assigned name servers. This is only populated for zones that use Cloudflare DNS.
79
+ */
80
+ readonly nameServers: string[];
81
+ /**
82
+ * `true` if cloudflare is enabled on the zone, otherwise `false`.
83
+ */
84
+ readonly paused: boolean;
85
+ /**
86
+ * The name of the plan associated with the zone.
87
+ */
88
+ readonly plan: string;
89
+ /**
90
+ * Status of the zone. Values can be: `"active"`, `"pending"`, `"initializing"`, `"moved"`, `"deleted"`,
91
+ * or `"deactivated"`.
92
+ */
93
+ readonly status: string;
94
+ /**
95
+ * List of Vanity Nameservers (if set).
96
+ */
97
+ readonly vanityNameServers: string[];
98
+ readonly zoneId: string;
99
+ }
100
+ export declare function getZoneOutput(args?: GetZoneOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetZoneResult>;
101
+ /**
102
+ * A collection of arguments for invoking getZone.
103
+ */
104
+ export interface GetZoneOutputArgs {
105
+ /**
106
+ * The account ID associated with the zone.
107
+ */
108
+ accountId?: pulumi.Input<string>;
109
+ /**
110
+ * The name of the zone. Conflicts with `"zoneId"`.
111
+ */
112
+ name?: pulumi.Input<string>;
113
+ /**
114
+ * The zone ID. Conflicts with `"name"`.
115
+ */
116
+ zoneId?: pulumi.Input<string>;
117
+ }