@pulumi/cloudflare 4.13.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/accessGroup.d.ts +3 -3
  2. package/accessIdentityProvider.d.ts +6 -6
  3. package/accessRule.d.ts +9 -9
  4. package/accessServiceToken.d.ts +4 -4
  5. package/account.d.ts +3 -3
  6. package/apiShield.d.ts +3 -3
  7. package/byoIpPrefix.d.ts +3 -3
  8. package/certificatePack.d.ts +24 -24
  9. package/customHostname.d.ts +6 -6
  10. package/deviceSettingsPolicy.d.ts +265 -0
  11. package/deviceSettingsPolicy.js +122 -0
  12. package/deviceSettingsPolicy.js.map +1 -0
  13. package/dlpProfile.d.ts +9 -9
  14. package/emailRoutingAddress.d.ts +6 -6
  15. package/emailRoutingSettings.d.ts +6 -6
  16. package/fallbackDomain.d.ts +18 -12
  17. package/fallbackDomain.js +8 -3
  18. package/fallbackDomain.js.map +1 -1
  19. package/filter.d.ts +3 -3
  20. package/firewallRule.d.ts +3 -3
  21. package/getAccessIdentityProvider.d.ts +24 -0
  22. package/getAccessIdentityProvider.js +25 -1
  23. package/getAccessIdentityProvider.js.map +1 -1
  24. package/getAccountRoles.d.ts +3 -0
  25. package/getAccountRoles.js +4 -1
  26. package/getAccountRoles.js.map +1 -1
  27. package/getAccounts.d.ts +14 -0
  28. package/getAccounts.js +15 -1
  29. package/getAccounts.js.map +1 -1
  30. package/getApiTokenPermissionGroups.d.ts +27 -5
  31. package/getApiTokenPermissionGroups.js +6 -3
  32. package/getApiTokenPermissionGroups.js.map +1 -1
  33. package/getDevices.d.ts +14 -0
  34. package/getDevices.js +15 -1
  35. package/getDevices.js.map +1 -1
  36. package/getLoadBalancerPools.d.ts +94 -0
  37. package/getLoadBalancerPools.js +55 -0
  38. package/getLoadBalancerPools.js.map +1 -0
  39. package/getOriginCaRootCertificate.d.ts +14 -0
  40. package/getOriginCaRootCertificate.js +15 -1
  41. package/getOriginCaRootCertificate.js.map +1 -1
  42. package/getRecord.d.ts +15 -0
  43. package/getRecord.js +16 -1
  44. package/getRecord.js.map +1 -1
  45. package/getWafGroups.d.ts +20 -0
  46. package/getWafGroups.js +21 -1
  47. package/getWafGroups.js.map +1 -1
  48. package/getWafPackages.d.ts +22 -0
  49. package/getWafPackages.js +23 -1
  50. package/getWafPackages.js.map +1 -1
  51. package/getWafRules.d.ts +23 -0
  52. package/getWafRules.js +24 -1
  53. package/getWafRules.js.map +1 -1
  54. package/getZone.d.ts +40 -0
  55. package/getZone.js +41 -1
  56. package/getZone.js.map +1 -1
  57. package/getZoneDnssec.d.ts +14 -0
  58. package/getZoneDnssec.js +15 -1
  59. package/getZoneDnssec.js.map +1 -1
  60. package/getZones.d.ts +59 -0
  61. package/getZones.js +60 -1
  62. package/getZones.js.map +1 -1
  63. package/healthcheck.d.ts +3 -3
  64. package/index.d.ts +12 -0
  65. package/index.js +21 -3
  66. package/index.js.map +1 -1
  67. package/ipsecTunnel.d.ts +3 -3
  68. package/list.d.ts +3 -3
  69. package/loadBalancer.d.ts +3 -3
  70. package/logpushJob.d.ts +3 -3
  71. package/originCaCertificate.d.ts +29 -18
  72. package/originCaCertificate.js +5 -4
  73. package/originCaCertificate.js.map +1 -1
  74. package/package.json +2 -2
  75. package/package.json.dev +2 -2
  76. package/pagesDomain.d.ts +11 -9
  77. package/pagesDomain.js +2 -0
  78. package/pagesDomain.js.map +1 -1
  79. package/pagesProject.d.ts +6 -0
  80. package/pagesProject.js +6 -0
  81. package/pagesProject.js.map +1 -1
  82. package/ruleset.d.ts +14 -4
  83. package/ruleset.js +11 -1
  84. package/ruleset.js.map +1 -1
  85. package/splitTunnel.d.ts +23 -37
  86. package/splitTunnel.js +4 -28
  87. package/splitTunnel.js.map +1 -1
  88. package/totalTls.d.ts +3 -3
  89. package/tunnelConfig.d.ts +136 -0
  90. package/tunnelConfig.js +124 -0
  91. package/tunnelConfig.js.map +1 -0
  92. package/tunnelRoute.d.ts +7 -9
  93. package/tunnelRoute.js +1 -3
  94. package/tunnelRoute.js.map +1 -1
  95. package/tunnelVirtualNetwork.d.ts +3 -3
  96. package/types/input.d.ts +224 -10
  97. package/types/output.d.ts +143 -10
  98. package/urlNormalizationSettings.d.ts +88 -0
  99. package/urlNormalizationSettings.js +78 -0
  100. package/urlNormalizationSettings.js.map +1 -0
  101. package/userAgentBlockingRule.d.ts +3 -3
  102. package/waitingRoom.d.ts +6 -6
  103. package/waitingRoomEvent.d.ts +15 -15
  104. package/waitingRoomRules.d.ts +6 -6
  105. package/workerScript.d.ts +10 -3
  106. package/workerScript.js +6 -0
  107. package/workerScript.js.map +1 -1
  108. package/workersKv.d.ts +32 -14
  109. package/workersKv.js +13 -5
  110. package/workersKv.js.map +1 -1
  111. package/workersKvNamespace.d.ts +15 -10
  112. package/workersKvNamespace.js +11 -7
  113. package/workersKvNamespace.js.map +1 -1
  114. package/zone.d.ts +3 -3
package/fallbackDomain.js CHANGED
@@ -6,14 +6,17 @@ exports.FallbackDomain = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Provides a Cloudflare Fallback Domain resource. Fallback domains are used to ignore DNS requests to a given list of domains. These DNS requests will be passed back to other DNS servers configured on existing network interfaces on the device.
9
+ * Provides a Cloudflare Fallback Domain resource. Fallback domains are
10
+ * used to ignore DNS requests to a given list of domains. These DNS
11
+ * requests will be passed back to other DNS servers configured on
12
+ * existing network interfaces on the device.
10
13
  *
11
14
  * ## Import
12
15
  *
13
- * Fallback Domains can be imported using the account identifer.
16
+ * Fallback Domains for default device policies must use "default" as the policy ID.
14
17
  *
15
18
  * ```sh
16
- * $ pulumi import cloudflare:index/fallbackDomain:FallbackDomain example 1d5fdc9e88c8a8c4518b068cd94331fe
19
+ * $ pulumi import cloudflare:index/fallbackDomain:FallbackDomain example <account_id>/<policy_id>
17
20
  * ```
18
21
  */
19
22
  class FallbackDomain extends pulumi.CustomResource {
@@ -46,6 +49,7 @@ class FallbackDomain extends pulumi.CustomResource {
46
49
  const state = argsOrState;
47
50
  resourceInputs["accountId"] = state ? state.accountId : undefined;
48
51
  resourceInputs["domains"] = state ? state.domains : undefined;
52
+ resourceInputs["policyId"] = state ? state.policyId : undefined;
49
53
  }
50
54
  else {
51
55
  const args = argsOrState;
@@ -57,6 +61,7 @@ class FallbackDomain extends pulumi.CustomResource {
57
61
  }
58
62
  resourceInputs["accountId"] = args ? args.accountId : undefined;
59
63
  resourceInputs["domains"] = args ? args.domains : undefined;
64
+ resourceInputs["policyId"] = args ? args.policyId : undefined;
60
65
  }
61
66
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
62
67
  super(FallbackDomain.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"fallbackDomain.js","sourceRoot":"","sources":["../fallbackDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;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;IAmBD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;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;;AAjEL,wCAkEC;AApDG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
1
+ {"version":3,"file":"fallbackDomain.js","sourceRoot":"","sources":["../fallbackDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;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;IAoBD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;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;;AApEL,wCAqEC;AAvDG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
package/filter.d.ts CHANGED
@@ -56,7 +56,7 @@ export declare class Filter extends pulumi.CustomResource {
56
56
  */
57
57
  readonly ref: pulumi.Output<string | undefined>;
58
58
  /**
59
- * The zone identifier to target for the resource.
59
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
60
60
  */
61
61
  readonly zoneId: pulumi.Output<string>;
62
62
  /**
@@ -89,7 +89,7 @@ export interface FilterState {
89
89
  */
90
90
  ref?: pulumi.Input<string>;
91
91
  /**
92
- * The zone identifier to target for the resource.
92
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
93
93
  */
94
94
  zoneId?: pulumi.Input<string>;
95
95
  }
@@ -114,7 +114,7 @@ export interface FilterArgs {
114
114
  */
115
115
  ref?: pulumi.Input<string>;
116
116
  /**
117
- * The zone identifier to target for the resource.
117
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
118
118
  */
119
119
  zoneId: pulumi.Input<string>;
120
120
  }
package/firewallRule.d.ts CHANGED
@@ -78,7 +78,7 @@ export declare class FirewallRule extends pulumi.CustomResource {
78
78
  */
79
79
  readonly products: pulumi.Output<string[] | undefined>;
80
80
  /**
81
- * The zone identifier to target for the resource.
81
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
82
82
  */
83
83
  readonly zoneId: pulumi.Output<string>;
84
84
  /**
@@ -119,7 +119,7 @@ export interface FirewallRuleState {
119
119
  */
120
120
  products?: pulumi.Input<pulumi.Input<string>[]>;
121
121
  /**
122
- * The zone identifier to target for the resource.
122
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
123
123
  */
124
124
  zoneId?: pulumi.Input<string>;
125
125
  }
@@ -152,7 +152,7 @@ export interface FirewallRuleArgs {
152
152
  */
153
153
  products?: pulumi.Input<pulumi.Input<string>[]>;
154
154
  /**
155
- * The zone identifier to target for the resource.
155
+ * The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
156
156
  */
157
157
  zoneId: pulumi.Input<string>;
158
158
  }
@@ -60,6 +60,30 @@ export interface GetAccessIdentityProviderResult {
60
60
  readonly type: string;
61
61
  readonly zoneId?: string;
62
62
  }
63
+ /**
64
+ * Use this data source to lookup a single [Access Identity Provider][accessIdentityProviderGuide] by name.
65
+ *
66
+ * ## Example Usage
67
+ *
68
+ * ```typescript
69
+ * import * as pulumi from "@pulumi/pulumi";
70
+ * import * as cloudflare from "@pulumi/cloudflare";
71
+ *
72
+ * const mainAccessIdentityProvider = cloudflare.getAccessIdentityProvider({
73
+ * name: "Google SSO",
74
+ * accountId: "example-account-id",
75
+ * });
76
+ * const mainAccessApplication = new cloudflare.AccessApplication("mainAccessApplication", {
77
+ * zoneId: "example.com",
78
+ * name: "name",
79
+ * domain: "name.example.com",
80
+ * type: "self_hosted",
81
+ * sessionDuration: "24h",
82
+ * allowedIdps: [mainAccessIdentityProvider.then(mainAccessIdentityProvider => mainAccessIdentityProvider.id)],
83
+ * autoRedirectToIdentity: true,
84
+ * });
85
+ * ```
86
+ */
63
87
  export declare function getAccessIdentityProviderOutput(args: GetAccessIdentityProviderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccessIdentityProviderResult>;
64
88
  /**
65
89
  * A collection of arguments for invoking getAccessIdentityProvider.
@@ -38,8 +38,32 @@ function getAccessIdentityProvider(args, opts) {
38
38
  }, opts);
39
39
  }
40
40
  exports.getAccessIdentityProvider = getAccessIdentityProvider;
41
+ /**
42
+ * Use this data source to lookup a single [Access Identity Provider][accessIdentityProviderGuide] by name.
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as cloudflare from "@pulumi/cloudflare";
49
+ *
50
+ * const mainAccessIdentityProvider = cloudflare.getAccessIdentityProvider({
51
+ * name: "Google SSO",
52
+ * accountId: "example-account-id",
53
+ * });
54
+ * const mainAccessApplication = new cloudflare.AccessApplication("mainAccessApplication", {
55
+ * zoneId: "example.com",
56
+ * name: "name",
57
+ * domain: "name.example.com",
58
+ * type: "self_hosted",
59
+ * sessionDuration: "24h",
60
+ * allowedIdps: [mainAccessIdentityProvider.then(mainAccessIdentityProvider => mainAccessIdentityProvider.id)],
61
+ * autoRedirectToIdentity: true,
62
+ * });
63
+ * ```
64
+ */
41
65
  function getAccessIdentityProviderOutput(args, opts) {
42
- return pulumi.output(args).apply(a => getAccessIdentityProvider(a, opts));
66
+ return pulumi.output(args).apply((a) => getAccessIdentityProvider(a, opts));
43
67
  }
44
68
  exports.getAccessIdentityProviderOutput = getAccessIdentityProviderOutput;
45
69
  //# sourceMappingURL=getAccessIdentityProvider.js.map
@@ -1 +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;IAEtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,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;AARD,8DAQC;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"}
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;IAEtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,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;AARD,8DAQC;AAuCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,+BAA+B,CAAC,IAAyC,EAAE,IAA2B;IAClH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,yBAAyB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpF,CAAC;AAFD,0EAEC"}
@@ -27,6 +27,9 @@ export interface GetAccountRolesResult {
27
27
  */
28
28
  readonly roles: outputs.GetAccountRolesRole[];
29
29
  }
30
+ /**
31
+ * Use this data source to lookup [Account Roles](https://api.cloudflare.com/#account-roles-properties).
32
+ */
30
33
  export declare function getAccountRolesOutput(args: GetAccountRolesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountRolesResult>;
31
34
  /**
32
35
  * A collection of arguments for invoking getAccountRoles.
@@ -15,8 +15,11 @@ function getAccountRoles(args, opts) {
15
15
  }, opts);
16
16
  }
17
17
  exports.getAccountRoles = getAccountRoles;
18
+ /**
19
+ * Use this data source to lookup [Account Roles](https://api.cloudflare.com/#account-roles-properties).
20
+ */
18
21
  function getAccountRolesOutput(args, opts) {
19
- return pulumi.output(args).apply(a => getAccountRoles(a, opts));
22
+ return pulumi.output(args).apply((a) => getAccountRoles(a, opts));
20
23
  }
21
24
  exports.getAccountRolesOutput = getAccountRolesOutput;
22
25
  //# sourceMappingURL=getAccountRoles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountRoles.js","sourceRoot":"","sources":["../getAccountRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;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"}
1
+ {"version":3,"file":"getAccountRoles.js","sourceRoot":"","sources":["../getAccountRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AA0BD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
package/getAccounts.d.ts CHANGED
@@ -38,6 +38,20 @@ export interface GetAccountsResult {
38
38
  */
39
39
  readonly name?: string;
40
40
  }
41
+ /**
42
+ * Data source for looking up Cloudflare Accounts.
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as cloudflare from "@pulumi/cloudflare";
49
+ *
50
+ * const example = cloudflare.getAccounts({
51
+ * name: "example account",
52
+ * });
53
+ * ```
54
+ */
41
55
  export declare function getAccountsOutput(args?: GetAccountsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountsResult>;
42
56
  /**
43
57
  * A collection of arguments for invoking getAccounts.
package/getAccounts.js CHANGED
@@ -27,8 +27,22 @@ function getAccounts(args, opts) {
27
27
  }, opts);
28
28
  }
29
29
  exports.getAccounts = getAccounts;
30
+ /**
31
+ * Data source for looking up Cloudflare Accounts.
32
+ *
33
+ * ## Example Usage
34
+ *
35
+ * ```typescript
36
+ * import * as pulumi from "@pulumi/pulumi";
37
+ * import * as cloudflare from "@pulumi/cloudflare";
38
+ *
39
+ * const example = cloudflare.getAccounts({
40
+ * name: "example account",
41
+ * });
42
+ * ```
43
+ */
30
44
  function getAccountsOutput(args, opts) {
31
- return pulumi.output(args).apply(a => getAccounts(a, opts));
45
+ return pulumi.output(args).apply((a) => getAccounts(a, opts));
32
46
  }
33
47
  exports.getAccountsOutput = getAccountsOutput;
34
48
  //# sourceMappingURL=getAccounts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAccounts.js","sourceRoot":"","sources":["../getAccounts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AA2BD,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,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"}
1
+ {"version":3,"file":"getAccounts.js","sourceRoot":"","sources":["../getAccounts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
@@ -1,6 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Use this data source to look up [API Token Permission Groups](https://developers.cloudflare.com/api/tokens/create/permissions). Commonly used as references within [`cloudflare.ApiToken`](https://www.terraform.io/docs/providers/cloudflare/r/api_token.html) resources.
3
+ * Use this data source to look up [API Token Permission Groups](https://developers.cloudflare.com/api/tokens/create/permissions).
4
+ * Commonly used as references within [`cloudflareToken`](https://www.terraform.io/docs/providers/cloudflare/r/api_token.html) resources.
4
5
  *
5
6
  * ## Example Usage
6
7
  *
@@ -8,8 +9,10 @@ import * as pulumi from "@pulumi/pulumi";
8
9
  * import * as pulumi from "@pulumi/pulumi";
9
10
  * import * as cloudflare from "@pulumi/cloudflare";
10
11
  *
11
- * const test = cloudflare.getApiTokenPermissionGroups({});
12
- * export const dnsReadPermissionId = test.then(test => test.permissions?["DNS Read"]);
12
+ * const all = cloudflare.getApiTokenPermissionGroups({});
13
+ * export const dnsReadPermissionId = all.then(all => all.zone?.["DNS Read"]);
14
+ * export const accountLbMonitorsAndReadId = all.then(all => all.account?.["Load Balancing: Monitors and Pools Read"]);
15
+ * export const userMembershipsReadId = all.then(all => all.user?.["Memberships Read"]);
13
16
  * ```
14
17
  */
15
18
  export declare function getApiTokenPermissionGroups(opts?: pulumi.InvokeOptions): Promise<GetApiTokenPermissionGroupsResult>;
@@ -17,15 +20,34 @@ export declare function getApiTokenPermissionGroups(opts?: pulumi.InvokeOptions)
17
20
  * A collection of values returned by getApiTokenPermissionGroups.
18
21
  */
19
22
  export interface GetApiTokenPermissionGroupsResult {
23
+ /**
24
+ * Map of permissions for account level resources.
25
+ */
26
+ readonly account: {
27
+ [key: string]: any;
28
+ };
20
29
  /**
21
30
  * The provider-assigned unique ID for this managed resource.
22
31
  */
23
32
  readonly id: string;
24
33
  /**
25
- * A map of permission groups where keys are human-readable permission names
26
- * and values are permission IDs.
34
+ * Map of all permissions available. Should not be used as some permissions will overlap resource scope. Instead, use resource level specific attributes.
35
+ *
36
+ * @deprecated Use specific account, zone or user attributes instead.
27
37
  */
28
38
  readonly permissions: {
29
39
  [key: string]: any;
30
40
  };
41
+ /**
42
+ * Map of permissions for user level resources.
43
+ */
44
+ readonly user: {
45
+ [key: string]: any;
46
+ };
47
+ /**
48
+ * Map of permissions for zone level resources.
49
+ */
50
+ readonly zone: {
51
+ [key: string]: any;
52
+ };
31
53
  }
@@ -6,7 +6,8 @@ exports.getApiTokenPermissionGroups = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * Use this data source to look up [API Token Permission Groups](https://developers.cloudflare.com/api/tokens/create/permissions). Commonly used as references within [`cloudflare.ApiToken`](https://www.terraform.io/docs/providers/cloudflare/r/api_token.html) resources.
9
+ * Use this data source to look up [API Token Permission Groups](https://developers.cloudflare.com/api/tokens/create/permissions).
10
+ * Commonly used as references within [`cloudflareToken`](https://www.terraform.io/docs/providers/cloudflare/r/api_token.html) resources.
10
11
  *
11
12
  * ## Example Usage
12
13
  *
@@ -14,8 +15,10 @@ const utilities = require("./utilities");
14
15
  * import * as pulumi from "@pulumi/pulumi";
15
16
  * import * as cloudflare from "@pulumi/cloudflare";
16
17
  *
17
- * const test = cloudflare.getApiTokenPermissionGroups({});
18
- * export const dnsReadPermissionId = test.then(test => test.permissions?["DNS Read"]);
18
+ * const all = cloudflare.getApiTokenPermissionGroups({});
19
+ * export const dnsReadPermissionId = all.then(all => all.zone?.["DNS Read"]);
20
+ * export const accountLbMonitorsAndReadId = all.then(all => all.account?.["Load Balancing: Monitors and Pools Read"]);
21
+ * export const userMembershipsReadId = all.then(all => all.user?.["Memberships Read"]);
19
22
  * ```
20
23
  */
21
24
  function getApiTokenPermissionGroups(opts) {
@@ -1 +1 @@
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;IAEnE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kEAKC"}
1
+ {"version":3,"file":"getApiTokenPermissionGroups.js","sourceRoot":"","sources":["../getApiTokenPermissionGroups.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,2BAA2B,CAAC,IAA2B;IAEnE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kEAKC"}
package/getDevices.d.ts CHANGED
@@ -38,6 +38,20 @@ export interface GetDevicesResult {
38
38
  */
39
39
  readonly id: string;
40
40
  }
41
+ /**
42
+ * Use this data source to lookup [Devices](https://api.cloudflare.com/#devices-list-devices).
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as cloudflare from "@pulumi/cloudflare";
49
+ *
50
+ * const devices = cloudflare.getDevices({
51
+ * accountId: "c68973221045fe805dfb9aa520153148",
52
+ * });
53
+ * ```
54
+ */
41
55
  export declare function getDevicesOutput(args: GetDevicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDevicesResult>;
42
56
  /**
43
57
  * A collection of arguments for invoking getDevices.
package/getDevices.js CHANGED
@@ -26,8 +26,22 @@ function getDevices(args, opts) {
26
26
  }, opts);
27
27
  }
28
28
  exports.getDevices = getDevices;
29
+ /**
30
+ * Use this data source to lookup [Devices](https://api.cloudflare.com/#devices-list-devices).
31
+ *
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as cloudflare from "@pulumi/cloudflare";
37
+ *
38
+ * const devices = cloudflare.getDevices({
39
+ * accountId: "c68973221045fe805dfb9aa520153148",
40
+ * });
41
+ * ```
42
+ */
29
43
  function getDevicesOutput(args, opts) {
30
- return pulumi.output(args).apply(a => getDevices(a, opts));
44
+ return pulumi.output(args).apply((a) => getDevices(a, opts));
31
45
  }
32
46
  exports.getDevicesOutput = getDevicesOutput;
33
47
  //# sourceMappingURL=getDevices.js.map
package/getDevices.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AA2BD,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,4CAEC"}
@@ -0,0 +1,94 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * A datasource to find Load Balancer Pools.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as cloudflare from "@pulumi/cloudflare";
12
+ *
13
+ * const example = cloudflare.getLoadBalancerPools({
14
+ * accountId: "f037e56e89293a057740de681ac9abbe",
15
+ * filter: {
16
+ * name: "example-lb-pool",
17
+ * },
18
+ * });
19
+ * ```
20
+ */
21
+ export declare function getLoadBalancerPools(args: GetLoadBalancerPoolsArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadBalancerPoolsResult>;
22
+ /**
23
+ * A collection of arguments for invoking getLoadBalancerPools.
24
+ */
25
+ export interface GetLoadBalancerPoolsArgs {
26
+ /**
27
+ * The account identifier to target for the datasource lookups.
28
+ */
29
+ accountId: string;
30
+ /**
31
+ * One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
32
+ */
33
+ filter?: inputs.GetLoadBalancerPoolsFilter;
34
+ /**
35
+ * A list of Load Balancer Pools details.
36
+ */
37
+ pools?: inputs.GetLoadBalancerPoolsPool[];
38
+ }
39
+ /**
40
+ * A collection of values returned by getLoadBalancerPools.
41
+ */
42
+ export interface GetLoadBalancerPoolsResult {
43
+ /**
44
+ * The account identifier to target for the datasource lookups.
45
+ */
46
+ readonly accountId: string;
47
+ /**
48
+ * One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
49
+ */
50
+ readonly filter?: outputs.GetLoadBalancerPoolsFilter;
51
+ /**
52
+ * The provider-assigned unique ID for this managed resource.
53
+ */
54
+ readonly id: string;
55
+ /**
56
+ * A list of Load Balancer Pools details.
57
+ */
58
+ readonly pools: outputs.GetLoadBalancerPoolsPool[];
59
+ }
60
+ /**
61
+ * A datasource to find Load Balancer Pools.
62
+ *
63
+ * ## Example Usage
64
+ *
65
+ * ```typescript
66
+ * import * as pulumi from "@pulumi/pulumi";
67
+ * import * as cloudflare from "@pulumi/cloudflare";
68
+ *
69
+ * const example = cloudflare.getLoadBalancerPools({
70
+ * accountId: "f037e56e89293a057740de681ac9abbe",
71
+ * filter: {
72
+ * name: "example-lb-pool",
73
+ * },
74
+ * });
75
+ * ```
76
+ */
77
+ export declare function getLoadBalancerPoolsOutput(args: GetLoadBalancerPoolsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLoadBalancerPoolsResult>;
78
+ /**
79
+ * A collection of arguments for invoking getLoadBalancerPools.
80
+ */
81
+ export interface GetLoadBalancerPoolsOutputArgs {
82
+ /**
83
+ * The account identifier to target for the datasource lookups.
84
+ */
85
+ accountId: pulumi.Input<string>;
86
+ /**
87
+ * One or more values used to look up Load Balancer pools. If more than one value is given all values must match in order to be included.
88
+ */
89
+ filter?: pulumi.Input<inputs.GetLoadBalancerPoolsFilterArgs>;
90
+ /**
91
+ * A list of Load Balancer Pools details.
92
+ */
93
+ pools?: pulumi.Input<pulumi.Input<inputs.GetLoadBalancerPoolsPoolArgs>[]>;
94
+ }
@@ -0,0 +1,55 @@
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.getLoadBalancerPoolsOutput = exports.getLoadBalancerPools = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * A datasource to find Load Balancer Pools.
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 = cloudflare.getLoadBalancerPools({
18
+ * accountId: "f037e56e89293a057740de681ac9abbe",
19
+ * filter: {
20
+ * name: "example-lb-pool",
21
+ * },
22
+ * });
23
+ * ```
24
+ */
25
+ function getLoadBalancerPools(args, opts) {
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
+ return pulumi.runtime.invoke("cloudflare:index/getLoadBalancerPools:getLoadBalancerPools", {
28
+ "accountId": args.accountId,
29
+ "filter": args.filter,
30
+ "pools": args.pools,
31
+ }, opts);
32
+ }
33
+ exports.getLoadBalancerPools = getLoadBalancerPools;
34
+ /**
35
+ * A datasource to find Load Balancer Pools.
36
+ *
37
+ * ## Example Usage
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as cloudflare from "@pulumi/cloudflare";
42
+ *
43
+ * const example = cloudflare.getLoadBalancerPools({
44
+ * accountId: "f037e56e89293a057740de681ac9abbe",
45
+ * filter: {
46
+ * name: "example-lb-pool",
47
+ * },
48
+ * });
49
+ * ```
50
+ */
51
+ function getLoadBalancerPoolsOutput(args, opts) {
52
+ return pulumi.output(args).apply((a) => getLoadBalancerPools(a, opts));
53
+ }
54
+ exports.getLoadBalancerPoolsOutput = getLoadBalancerPoolsOutput;
55
+ //# sourceMappingURL=getLoadBalancerPools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLoadBalancerPools.js","sourceRoot":"","sources":["../getLoadBalancerPools.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAE5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EAAE;QACvF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,oDAQC;AAyCD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAA2B;IACxG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/E,CAAC;AAFD,gEAEC"}
@@ -37,6 +37,20 @@ export interface GetOriginCaRootCertificateResult {
37
37
  */
38
38
  readonly id: string;
39
39
  }
40
+ /**
41
+ * Use this data source to get the [Origin CA root certificate](https://developers.cloudflare.com/ssl/origin-configuration/origin-ca#4-required-for-some-add-cloudflare-origin-ca-root-certificates) for a given algorithm.
42
+ *
43
+ * ## Example Usage
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as cloudflare from "@pulumi/cloudflare";
48
+ *
49
+ * const originCa = cloudflare.getOriginCaRootCertificate({
50
+ * algorithm: "<algorithm>",
51
+ * });
52
+ * ```
53
+ */
40
54
  export declare function getOriginCaRootCertificateOutput(args: GetOriginCaRootCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOriginCaRootCertificateResult>;
41
55
  /**
42
56
  * A collection of arguments for invoking getOriginCaRootCertificate.
@@ -26,8 +26,22 @@ function getOriginCaRootCertificate(args, opts) {
26
26
  }, opts);
27
27
  }
28
28
  exports.getOriginCaRootCertificate = getOriginCaRootCertificate;
29
+ /**
30
+ * Use this data source to get the [Origin CA root certificate](https://developers.cloudflare.com/ssl/origin-configuration/origin-ca#4-required-for-some-add-cloudflare-origin-ca-root-certificates) for a given algorithm.
31
+ *
32
+ * ## Example Usage
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as cloudflare from "@pulumi/cloudflare";
37
+ *
38
+ * const originCa = cloudflare.getOriginCaRootCertificate({
39
+ * algorithm: "<algorithm>",
40
+ * });
41
+ * ```
42
+ */
29
43
  function getOriginCaRootCertificateOutput(args, opts) {
30
- return pulumi.output(args).apply(a => getOriginCaRootCertificate(a, opts));
44
+ return pulumi.output(args).apply((a) => getOriginCaRootCertificate(a, opts));
31
45
  }
32
46
  exports.getOriginCaRootCertificateOutput = getOriginCaRootCertificateOutput;
33
47
  //# sourceMappingURL=getOriginCaRootCertificate.js.map
@@ -1 +1 @@
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;IAExG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wEAAwE,EAAE;QACnG,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gEAMC;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"}
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;IAExG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wEAAwE,EAAE;QACnG,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gEAMC;AA0BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,gCAAgC,CAAC,IAA0C,EAAE,IAA2B;IACpH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrF,CAAC;AAFD,4EAEC"}
package/getRecord.d.ts CHANGED
@@ -85,6 +85,21 @@ export interface GetRecordResult {
85
85
  */
86
86
  readonly zoneName: string;
87
87
  }
88
+ /**
89
+ * Use this data source to lookup a single [DNS Record](https://api.cloudflare.com/#dns-records-for-a-zone-properties).
90
+ *
91
+ * ## Example Usage
92
+ *
93
+ * ```typescript
94
+ * import * as pulumi from "@pulumi/pulumi";
95
+ * import * as cloudflare from "@pulumi/cloudflare";
96
+ *
97
+ * const example = cloudflare.getRecord({
98
+ * zoneId: _var.zone_id,
99
+ * hostname: "example.com",
100
+ * });
101
+ * ```
102
+ */
88
103
  export declare function getRecordOutput(args: GetRecordOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRecordResult>;
89
104
  /**
90
105
  * A collection of arguments for invoking getRecord.