@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
package/getZone.d.ts CHANGED
@@ -1,99 +1,27 @@
1
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
2
  export declare function getZone(args?: GetZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetZoneResult>;
44
3
  /**
45
4
  * A collection of arguments for invoking getZone.
46
5
  */
47
6
  export interface GetZoneArgs {
48
- /**
49
- * The account ID associated with the zone.
50
- */
51
7
  accountId?: string;
52
- /**
53
- * The name of the zone. Conflicts with `"zoneId"`.
54
- */
55
8
  name?: string;
56
- /**
57
- * The zone ID. Conflicts with `"name"`.
58
- */
59
9
  zoneId?: string;
60
10
  }
61
11
  /**
62
12
  * A collection of values returned by getZone.
63
13
  */
64
14
  export interface GetZoneResult {
65
- /**
66
- * The account ID associated with the zone.
67
- */
68
15
  readonly accountId: string;
69
16
  /**
70
17
  * The provider-assigned unique ID for this managed resource.
71
18
  */
72
19
  readonly id: string;
73
- /**
74
- * The name of the zone.
75
- */
76
20
  readonly name: string;
77
- /**
78
- * Cloudflare assigned name servers. This is only populated for zones that use Cloudflare DNS.
79
- */
80
21
  readonly nameServers: string[];
81
- /**
82
- * `true` if cloudflare is enabled on the zone, otherwise `false`.
83
- */
84
22
  readonly paused: boolean;
85
- /**
86
- * The name of the plan associated with the zone.
87
- */
88
23
  readonly plan: string;
89
- /**
90
- * Status of the zone. Values can be: `"active"`, `"pending"`, `"initializing"`, `"moved"`, `"deleted"`,
91
- * or `"deactivated"`.
92
- */
93
24
  readonly status: string;
94
- /**
95
- * List of Vanity Nameservers (if set).
96
- */
97
25
  readonly vanityNameServers: string[];
98
26
  readonly zoneId: string;
99
27
  }
@@ -102,16 +30,7 @@ export declare function getZoneOutput(args?: GetZoneOutputArgs, opts?: pulumi.In
102
30
  * A collection of arguments for invoking getZone.
103
31
  */
104
32
  export interface GetZoneOutputArgs {
105
- /**
106
- * The account ID associated with the zone.
107
- */
108
33
  accountId?: pulumi.Input<string>;
109
- /**
110
- * The name of the zone. Conflicts with `"zoneId"`.
111
- */
112
34
  name?: pulumi.Input<string>;
113
- /**
114
- * The zone ID. Conflicts with `"name"`.
115
- */
116
35
  zoneId?: pulumi.Input<string>;
117
36
  }
package/getZone.js CHANGED
@@ -5,47 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getZoneOutput = exports.getZone = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Use this data source to look up [zone] info. This is the singular alternative
10
- * to `cloudflare.getZones`.
11
- *
12
- * > **Note** Cloudflare zone names **are not unique**. It is possible for multiple
13
- * accounts to have the same zone created but in different states. If you are
14
- * using this setup, it is advised to use the `accountId` attribute on this
15
- * resource or swap to `cloudflare.getZones` to further filter the results.
16
- *
17
- * ## Example Usage
18
- *
19
- * ```typescript
20
- * import * as pulumi from "@pulumi/pulumi";
21
- * import * as cloudflare from "@pulumi/cloudflare";
22
- *
23
- * // You can also lookup by zone_id if you prefer.
24
- * const example = pulumi.output(cloudflare.getZone({
25
- * zoneId: "0b6d347b01d437a092be84c2edfce72c",
26
- * }));
27
- * ```
28
- * ### Example usage with other resources
29
- *
30
- * The example below fetches the zone information for example.com and then is
31
- * referenced in the `cloudflare.Record` section.
32
- *
33
- * ```typescript
34
- * import * as pulumi from "@pulumi/pulumi";
35
- * import * as cloudflare from "@pulumi/cloudflare";
36
- *
37
- * const exampleZone = cloudflare.getZone({
38
- * name: "example.com",
39
- * });
40
- * const exampleRecord = new cloudflare.Record("exampleRecord", {
41
- * zoneId: exampleZone.then(exampleZone => exampleZone.id),
42
- * name: "www",
43
- * value: "203.0.113.1",
44
- * type: "A",
45
- * proxied: true,
46
- * });
47
- * ```
48
- */
49
8
  function getZone(args, opts) {
50
9
  args = args || {};
51
10
  if (!opts) {
package/getZone.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getZone.js","sourceRoot":"","sources":["../getZone.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;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AAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,0BAYC;AA6BD,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3D,CAAC;AAFD,sCAEC"}
@@ -1,75 +1,28 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * Use this data source to look up [Zone][1] DNSSEC 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 = pulumi.output(cloudflare.getZoneDnssec({
12
- * zoneId: "<zone_id>",
13
- * }));
14
- * ```
15
- */
16
2
  export declare function getZoneDnssec(args: GetZoneDnssecArgs, opts?: pulumi.InvokeOptions): Promise<GetZoneDnssecResult>;
17
3
  /**
18
4
  * A collection of arguments for invoking getZoneDnssec.
19
5
  */
20
6
  export interface GetZoneDnssecArgs {
21
- /**
22
- * The zone id for the zone.
23
- */
24
7
  zoneId: string;
25
8
  }
26
9
  /**
27
10
  * A collection of values returned by getZoneDnssec.
28
11
  */
29
12
  export interface GetZoneDnssecResult {
30
- /**
31
- * Zone DNSSEC algorithm.
32
- */
33
13
  readonly algorithm: string;
34
- /**
35
- * Zone DNSSEC digest.
36
- */
37
14
  readonly digest: string;
38
- /**
39
- * Digest algorithm use for Zone DNSSEC.
40
- */
41
15
  readonly digestAlgorithm: string;
42
- /**
43
- * Digest Type for Zone DNSSEC.
44
- */
45
16
  readonly digestType: string;
46
- /**
47
- * DS for the Zone DNSSEC.
48
- */
49
17
  readonly ds: string;
50
- /**
51
- * Zone DNSSEC flags.
52
- */
53
18
  readonly flags: number;
54
19
  /**
55
20
  * The provider-assigned unique ID for this managed resource.
56
21
  */
57
22
  readonly id: string;
58
- /**
59
- * Key Tag for the Zone DNSSEC.
60
- */
61
23
  readonly keyTag: number;
62
- /**
63
- * Key type used for Zone DNSSEC.
64
- */
65
24
  readonly keyType: string;
66
- /**
67
- * Public Key for the Zone DNSSEC.
68
- */
69
25
  readonly publicKey: string;
70
- /**
71
- * The status of the Zone DNSSEC.
72
- */
73
26
  readonly status: string;
74
27
  readonly zoneId: string;
75
28
  }
@@ -78,8 +31,5 @@ export declare function getZoneDnssecOutput(args: GetZoneDnssecOutputArgs, opts?
78
31
  * A collection of arguments for invoking getZoneDnssec.
79
32
  */
80
33
  export interface GetZoneDnssecOutputArgs {
81
- /**
82
- * The zone id for the zone.
83
- */
84
34
  zoneId: pulumi.Input<string>;
85
35
  }
package/getZoneDnssec.js CHANGED
@@ -5,20 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getZoneDnssecOutput = exports.getZoneDnssec = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Use this data source to look up [Zone][1] DNSSEC 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 = pulumi.output(cloudflare.getZoneDnssec({
18
- * zoneId: "<zone_id>",
19
- * }));
20
- * ```
21
- */
22
8
  function getZoneDnssec(args, opts) {
23
9
  if (!opts) {
24
10
  opts = {};
@@ -1 +1 @@
1
- {"version":3,"file":"getZoneDnssec.js","sourceRoot":"","sources":["../getZoneDnssec.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,sCASC;AA+DD,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,kDAEC"}
1
+ {"version":3,"file":"getZoneDnssec.js","sourceRoot":"","sources":["../getZoneDnssec.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,sCASC;AA8BD,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,kDAEC"}
package/getZones.d.ts CHANGED
@@ -1,84 +1,10 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
- /**
4
- * Use this data source to look up [Zone](https://api.cloudflare.com/#zone-properties) records.
5
- *
6
- * ## Example Usage
7
- *
8
- * Given you have the following zones in Cloudflare.
9
- *
10
- * - example.com
11
- * - example.net
12
- * - not-example.com
13
- *
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as cloudflare from "@pulumi/cloudflare";
17
- *
18
- * // Look for a single zone that you know exists using an exact match.
19
- * // API request will be for zones?name=example.com. Will not match not-example.com
20
- * // or example.net.
21
- * const example = pulumi.output(cloudflare.getZones({
22
- * filter: {
23
- * name: "example.com",
24
- * },
25
- * }));
26
- * ```
27
- *
28
- * ```typescript
29
- * import * as pulumi from "@pulumi/pulumi";
30
- * import * as cloudflare from "@pulumi/cloudflare";
31
- *
32
- * // Look for all zones which include "example".
33
- * // API request will be for zones?name=contains:example. Will return all three
34
- * // zones.
35
- * const example = pulumi.output(cloudflare.getZones({
36
- * filter: {
37
- * lookupType: "contains",
38
- * name: "example",
39
- * },
40
- * }));
41
- * ```
42
- *
43
- * ```typescript
44
- * import * as pulumi from "@pulumi/pulumi";
45
- * import * as cloudflare from "@pulumi/cloudflare";
46
- *
47
- * // Look for all zones which include "example" but start with "not-".
48
- * // API request will be for zones?name=contains:example. Will perform client side
49
- * // filtering using the provided regex and will only match the single zone,
50
- * // not-example.com.
51
- * const example = pulumi.output(cloudflare.getZones({
52
- * filter: {
53
- * lookupType: "contains",
54
- * match: "^not-",
55
- * name: "example",
56
- * },
57
- * }));
58
- * ```
59
- *
60
- * ```typescript
61
- * import * as pulumi from "@pulumi/pulumi";
62
- * import * as cloudflare from "@pulumi/cloudflare";
63
- *
64
- * // Look for all active zones in an account
65
- * const example = pulumi.output(cloudflare.getZones({
66
- * filter: {
67
- * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
68
- * status: "active",
69
- * },
70
- * }));
71
- * ```
72
- */
73
3
  export declare function getZones(args: GetZonesArgs, opts?: pulumi.InvokeOptions): Promise<GetZonesResult>;
74
4
  /**
75
5
  * A collection of arguments for invoking getZones.
76
6
  */
77
7
  export interface GetZonesArgs {
78
- /**
79
- * One or more values used to look up zone records. If more than one value is given all
80
- * values must match in order to be included, see below for full list.
81
- */
82
8
  filter: inputs.GetZonesFilter;
83
9
  }
84
10
  /**
@@ -90,9 +16,6 @@ export interface GetZonesResult {
90
16
  * The provider-assigned unique ID for this managed resource.
91
17
  */
92
18
  readonly id: string;
93
- /**
94
- * A list of zone objects. Object format:
95
- */
96
19
  readonly zones: outputs.GetZonesZone[];
97
20
  }
98
21
  export declare function getZonesOutput(args: GetZonesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetZonesResult>;
@@ -100,9 +23,5 @@ export declare function getZonesOutput(args: GetZonesOutputArgs, opts?: pulumi.I
100
23
  * A collection of arguments for invoking getZones.
101
24
  */
102
25
  export interface GetZonesOutputArgs {
103
- /**
104
- * One or more values used to look up zone records. If more than one value is given all
105
- * values must match in order to be included, see below for full list.
106
- */
107
26
  filter: pulumi.Input<inputs.GetZonesFilterArgs>;
108
27
  }
package/getZones.js CHANGED
@@ -5,76 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getZonesOutput = exports.getZones = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * Use this data source to look up [Zone](https://api.cloudflare.com/#zone-properties) records.
10
- *
11
- * ## Example Usage
12
- *
13
- * Given you have the following zones in Cloudflare.
14
- *
15
- * - example.com
16
- * - example.net
17
- * - not-example.com
18
- *
19
- * ```typescript
20
- * import * as pulumi from "@pulumi/pulumi";
21
- * import * as cloudflare from "@pulumi/cloudflare";
22
- *
23
- * // Look for a single zone that you know exists using an exact match.
24
- * // API request will be for zones?name=example.com. Will not match not-example.com
25
- * // or example.net.
26
- * const example = pulumi.output(cloudflare.getZones({
27
- * filter: {
28
- * name: "example.com",
29
- * },
30
- * }));
31
- * ```
32
- *
33
- * ```typescript
34
- * import * as pulumi from "@pulumi/pulumi";
35
- * import * as cloudflare from "@pulumi/cloudflare";
36
- *
37
- * // Look for all zones which include "example".
38
- * // API request will be for zones?name=contains:example. Will return all three
39
- * // zones.
40
- * const example = pulumi.output(cloudflare.getZones({
41
- * filter: {
42
- * lookupType: "contains",
43
- * name: "example",
44
- * },
45
- * }));
46
- * ```
47
- *
48
- * ```typescript
49
- * import * as pulumi from "@pulumi/pulumi";
50
- * import * as cloudflare from "@pulumi/cloudflare";
51
- *
52
- * // Look for all zones which include "example" but start with "not-".
53
- * // API request will be for zones?name=contains:example. Will perform client side
54
- * // filtering using the provided regex and will only match the single zone,
55
- * // not-example.com.
56
- * const example = pulumi.output(cloudflare.getZones({
57
- * filter: {
58
- * lookupType: "contains",
59
- * match: "^not-",
60
- * name: "example",
61
- * },
62
- * }));
63
- * ```
64
- *
65
- * ```typescript
66
- * import * as pulumi from "@pulumi/pulumi";
67
- * import * as cloudflare from "@pulumi/cloudflare";
68
- *
69
- * // Look for all active zones in an account
70
- * const example = pulumi.output(cloudflare.getZones({
71
- * filter: {
72
- * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
73
- * status: "active",
74
- * },
75
- * }));
76
- * ```
77
- */
78
8
  function getZones(args, opts) {
79
9
  if (!opts) {
80
10
  opts = {};
package/getZones.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getZones.js","sourceRoot":"","sources":["../getZones.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IACpE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oB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