@pulumi/cloudflare 3.5.0 → 4.0.0-alpha.1632753168

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.
package/teamsLocation.js CHANGED
@@ -4,6 +4,39 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
6
6
  const utilities = require("./utilities");
7
+ /**
8
+ * Provides a Cloudflare Teams Location resource. Teams Locations are referenced
9
+ * when creating secure web gateway policies.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as cloudflare from "@pulumi/cloudflare";
16
+ *
17
+ * const corporateOffice = new cloudflare.TeamsLocation("corporate_office", {
18
+ * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
19
+ * clientDefault: true,
20
+ * name: "office",
21
+ * networks: [
22
+ * {
23
+ * network: "203.0.113.1/32",
24
+ * },
25
+ * {
26
+ * network: "203.0.113.2/32",
27
+ * },
28
+ * ],
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * Teams locations can be imported using a composite ID formed of account ID and teams location ID.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import cloudflare:index/teamsLocation:TeamsLocation corporate_office cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
38
+ * ```
39
+ */
7
40
  class TeamsLocation extends pulumi.CustomResource {
8
41
  constructor(name, argsOrState, opts) {
9
42
  let inputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"teamsLocation.js","sourceRoot":"","sources":["../teamsLocation.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IA8CpD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC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AC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AA1BL,sCA2GC;AA7FG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
package/teamsRule.d.ts ADDED
@@ -0,0 +1,195 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * Provides a Cloudflare Teams rule resource. Teams rules comprise secure web gateway policies.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as cloudflare from "@pulumi/cloudflare";
11
+ *
12
+ * const rule1 = new cloudflare.TeamsRule("rule1", {
13
+ * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
14
+ * action: "l4_override",
15
+ * description: "desc",
16
+ * filters: ["l4"],
17
+ * name: "office",
18
+ * precedence: 1,
19
+ * ruleSettings: {
20
+ * blockPageEnabled: false,
21
+ * blockPageReason: "access not permitted",
22
+ * l4override: {
23
+ * ip: "192.0.2.1",
24
+ * port: 1234,
25
+ * },
26
+ * },
27
+ * traffic: "any(dns.domains[*] == \"com.example\")",
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Teams Rules can be imported using a composite ID formed of account ID and teams rule ID.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import cloudflare:index/teamsRule:TeamsRule rule1 cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
37
+ * ```
38
+ */
39
+ export declare class TeamsRule extends pulumi.CustomResource {
40
+ /**
41
+ * Get an existing TeamsRule resource's state with the given name, ID, and optional extra
42
+ * properties used to qualify the lookup.
43
+ *
44
+ * @param name The _unique_ name of the resulting resource.
45
+ * @param id The _unique_ provider ID of the resource to lookup.
46
+ * @param state Any extra arguments used during the lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamsRuleState, opts?: pulumi.CustomResourceOptions): TeamsRule;
50
+ /**
51
+ * Returns true if the given object is an instance of TeamsRule. This is designed to work even
52
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
53
+ */
54
+ static isInstance(obj: any): obj is TeamsRule;
55
+ /**
56
+ * The account to which the teams rule should be added.
57
+ */
58
+ readonly accountId: pulumi.Output<string>;
59
+ /**
60
+ * The action executed by matched teams rule.
61
+ */
62
+ readonly action: pulumi.Output<string>;
63
+ /**
64
+ * The description of the teams rule.
65
+ */
66
+ readonly description: pulumi.Output<string>;
67
+ /**
68
+ * Indicator of rule enablement.
69
+ */
70
+ readonly enabled: pulumi.Output<boolean | undefined>;
71
+ /**
72
+ * The protocol or layer to evaluate the traffic and identity expressions.
73
+ */
74
+ readonly filters: pulumi.Output<string[] | undefined>;
75
+ /**
76
+ * The wirefilter expression to be used for identity matching.
77
+ */
78
+ readonly identity: pulumi.Output<string | undefined>;
79
+ /**
80
+ * The name of the teams rule.
81
+ */
82
+ readonly name: pulumi.Output<string>;
83
+ /**
84
+ * The evaluation precedence of the teams rule.
85
+ */
86
+ readonly precedence: pulumi.Output<number>;
87
+ /**
88
+ * Additional rule settings.
89
+ */
90
+ readonly ruleSettings: pulumi.Output<outputs.TeamsRuleRuleSettings | undefined>;
91
+ /**
92
+ * The wirefilter expression to be used for traffic matching.
93
+ */
94
+ readonly traffic: pulumi.Output<string | undefined>;
95
+ readonly version: pulumi.Output<number>;
96
+ /**
97
+ * Create a TeamsRule resource with the given unique name, arguments, and options.
98
+ *
99
+ * @param name The _unique_ name of the resource.
100
+ * @param args The arguments to use to populate this resource's properties.
101
+ * @param opts A bag of options that control this resource's behavior.
102
+ */
103
+ constructor(name: string, args: TeamsRuleArgs, opts?: pulumi.CustomResourceOptions);
104
+ }
105
+ /**
106
+ * Input properties used for looking up and filtering TeamsRule resources.
107
+ */
108
+ export interface TeamsRuleState {
109
+ /**
110
+ * The account to which the teams rule should be added.
111
+ */
112
+ accountId?: pulumi.Input<string>;
113
+ /**
114
+ * The action executed by matched teams rule.
115
+ */
116
+ action?: pulumi.Input<string>;
117
+ /**
118
+ * The description of the teams rule.
119
+ */
120
+ description?: pulumi.Input<string>;
121
+ /**
122
+ * Indicator of rule enablement.
123
+ */
124
+ enabled?: pulumi.Input<boolean>;
125
+ /**
126
+ * The protocol or layer to evaluate the traffic and identity expressions.
127
+ */
128
+ filters?: pulumi.Input<pulumi.Input<string>[]>;
129
+ /**
130
+ * The wirefilter expression to be used for identity matching.
131
+ */
132
+ identity?: pulumi.Input<string>;
133
+ /**
134
+ * The name of the teams rule.
135
+ */
136
+ name?: pulumi.Input<string>;
137
+ /**
138
+ * The evaluation precedence of the teams rule.
139
+ */
140
+ precedence?: pulumi.Input<number>;
141
+ /**
142
+ * Additional rule settings.
143
+ */
144
+ ruleSettings?: pulumi.Input<inputs.TeamsRuleRuleSettings>;
145
+ /**
146
+ * The wirefilter expression to be used for traffic matching.
147
+ */
148
+ traffic?: pulumi.Input<string>;
149
+ version?: pulumi.Input<number>;
150
+ }
151
+ /**
152
+ * The set of arguments for constructing a TeamsRule resource.
153
+ */
154
+ export interface TeamsRuleArgs {
155
+ /**
156
+ * The account to which the teams rule should be added.
157
+ */
158
+ accountId: pulumi.Input<string>;
159
+ /**
160
+ * The action executed by matched teams rule.
161
+ */
162
+ action: pulumi.Input<string>;
163
+ /**
164
+ * The description of the teams rule.
165
+ */
166
+ description: pulumi.Input<string>;
167
+ /**
168
+ * Indicator of rule enablement.
169
+ */
170
+ enabled?: pulumi.Input<boolean>;
171
+ /**
172
+ * The protocol or layer to evaluate the traffic and identity expressions.
173
+ */
174
+ filters?: pulumi.Input<pulumi.Input<string>[]>;
175
+ /**
176
+ * The wirefilter expression to be used for identity matching.
177
+ */
178
+ identity?: pulumi.Input<string>;
179
+ /**
180
+ * The name of the teams rule.
181
+ */
182
+ name: pulumi.Input<string>;
183
+ /**
184
+ * The evaluation precedence of the teams rule.
185
+ */
186
+ precedence: pulumi.Input<number>;
187
+ /**
188
+ * Additional rule settings.
189
+ */
190
+ ruleSettings?: pulumi.Input<inputs.TeamsRuleRuleSettings>;
191
+ /**
192
+ * The wirefilter expression to be used for traffic matching.
193
+ */
194
+ traffic?: pulumi.Input<string>;
195
+ }
package/teamsRule.js ADDED
@@ -0,0 +1,121 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const utilities = require("./utilities");
7
+ /**
8
+ * Provides a Cloudflare Teams rule resource. Teams rules comprise secure web gateway policies.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as cloudflare from "@pulumi/cloudflare";
15
+ *
16
+ * const rule1 = new cloudflare.TeamsRule("rule1", {
17
+ * accountId: "1d5fdc9e88c8a8c4518b068cd94331fe",
18
+ * action: "l4_override",
19
+ * description: "desc",
20
+ * filters: ["l4"],
21
+ * name: "office",
22
+ * precedence: 1,
23
+ * ruleSettings: {
24
+ * blockPageEnabled: false,
25
+ * blockPageReason: "access not permitted",
26
+ * l4override: {
27
+ * ip: "192.0.2.1",
28
+ * port: 1234,
29
+ * },
30
+ * },
31
+ * traffic: "any(dns.domains[*] == \"com.example\")",
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * Teams Rules can be imported using a composite ID formed of account ID and teams rule ID.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import cloudflare:index/teamsRule:TeamsRule rule1 cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e
41
+ * ```
42
+ */
43
+ class TeamsRule extends pulumi.CustomResource {
44
+ constructor(name, argsOrState, opts) {
45
+ let inputs = {};
46
+ opts = opts || {};
47
+ if (opts.id) {
48
+ const state = argsOrState;
49
+ inputs["accountId"] = state ? state.accountId : undefined;
50
+ inputs["action"] = state ? state.action : undefined;
51
+ inputs["description"] = state ? state.description : undefined;
52
+ inputs["enabled"] = state ? state.enabled : undefined;
53
+ inputs["filters"] = state ? state.filters : undefined;
54
+ inputs["identity"] = state ? state.identity : undefined;
55
+ inputs["name"] = state ? state.name : undefined;
56
+ inputs["precedence"] = state ? state.precedence : undefined;
57
+ inputs["ruleSettings"] = state ? state.ruleSettings : undefined;
58
+ inputs["traffic"] = state ? state.traffic : undefined;
59
+ inputs["version"] = state ? state.version : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ if ((!args || args.accountId === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'accountId'");
65
+ }
66
+ if ((!args || args.action === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'action'");
68
+ }
69
+ if ((!args || args.description === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'description'");
71
+ }
72
+ if ((!args || args.name === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'name'");
74
+ }
75
+ if ((!args || args.precedence === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'precedence'");
77
+ }
78
+ inputs["accountId"] = args ? args.accountId : undefined;
79
+ inputs["action"] = args ? args.action : undefined;
80
+ inputs["description"] = args ? args.description : undefined;
81
+ inputs["enabled"] = args ? args.enabled : undefined;
82
+ inputs["filters"] = args ? args.filters : undefined;
83
+ inputs["identity"] = args ? args.identity : undefined;
84
+ inputs["name"] = args ? args.name : undefined;
85
+ inputs["precedence"] = args ? args.precedence : undefined;
86
+ inputs["ruleSettings"] = args ? args.ruleSettings : undefined;
87
+ inputs["traffic"] = args ? args.traffic : undefined;
88
+ inputs["version"] = undefined /*out*/;
89
+ }
90
+ if (!opts.version) {
91
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
92
+ }
93
+ super(TeamsRule.__pulumiType, name, inputs, opts);
94
+ }
95
+ /**
96
+ * Get an existing TeamsRule resource's state with the given name, ID, and optional extra
97
+ * properties used to qualify the lookup.
98
+ *
99
+ * @param name The _unique_ name of the resulting resource.
100
+ * @param id The _unique_ provider ID of the resource to lookup.
101
+ * @param state Any extra arguments used during the lookup.
102
+ * @param opts Optional settings to control the behavior of the CustomResource.
103
+ */
104
+ static get(name, id, state, opts) {
105
+ return new TeamsRule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
106
+ }
107
+ /**
108
+ * Returns true if the given object is an instance of TeamsRule. This is designed to work even
109
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
110
+ */
111
+ static isInstance(obj) {
112
+ if (obj === undefined || obj === null) {
113
+ return false;
114
+ }
115
+ return obj['__pulumiType'] === TeamsRule.__pulumiType;
116
+ }
117
+ }
118
+ exports.TeamsRule = TeamsRule;
119
+ /** @internal */
120
+ TeamsRule.__pulumiType = 'cloudflare:index/teamsRule:TeamsRule';
121
+ //# sourceMappingURL=teamsRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamsRule.js","sourceRoot":"","sources":["../teamsRule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IA8EhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC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