@pulumiverse/unifi 0.0.1-alpha.1664258586

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 (102) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +56 -0
  3. package/config/index.d.ts +1 -0
  4. package/config/index.js +21 -0
  5. package/config/index.js.map +1 -0
  6. package/config/vars.d.ts +24 -0
  7. package/config/vars.js +43 -0
  8. package/config/vars.js.map +1 -0
  9. package/device.d.ts +128 -0
  10. package/device.js +91 -0
  11. package/device.js.map +1 -0
  12. package/dynamicDNS.d.ts +138 -0
  13. package/dynamicDNS.js +85 -0
  14. package/dynamicDNS.js.map +1 -0
  15. package/firewall/group.d.ts +101 -0
  16. package/firewall/group.js +78 -0
  17. package/firewall/group.js.map +1 -0
  18. package/firewall/index.d.ts +6 -0
  19. package/firewall/index.js +27 -0
  20. package/firewall/index.js.map +1 -0
  21. package/firewall/rule.d.ts +340 -0
  22. package/firewall/rule.js +133 -0
  23. package/firewall/rule.js.map +1 -0
  24. package/getApGroup.d.ts +58 -0
  25. package/getApGroup.js +36 -0
  26. package/getApGroup.js.map +1 -0
  27. package/getNetwork.d.ts +186 -0
  28. package/getNetwork.js +45 -0
  29. package/getNetwork.js.map +1 -0
  30. package/getRadiusProfile.d.ts +49 -0
  31. package/getRadiusProfile.js +27 -0
  32. package/getRadiusProfile.js.map +1 -0
  33. package/iam/getGroup.d.ts +51 -0
  34. package/iam/getGroup.js +27 -0
  35. package/iam/getGroup.js.map +1 -0
  36. package/iam/getUser.d.ts +96 -0
  37. package/iam/getUser.js +37 -0
  38. package/iam/getUser.js.map +1 -0
  39. package/iam/group.d.ts +107 -0
  40. package/iam/group.js +78 -0
  41. package/iam/group.js.map +1 -0
  42. package/iam/index.d.ts +12 -0
  43. package/iam/index.js +33 -0
  44. package/iam/index.js.map +1 -0
  45. package/iam/user.d.ts +203 -0
  46. package/iam/user.js +95 -0
  47. package/iam/user.js.map +1 -0
  48. package/index.d.ts +37 -0
  49. package/index.js +80 -0
  50. package/index.js.map +1 -0
  51. package/network.d.ts +458 -0
  52. package/network.js +162 -0
  53. package/network.js.map +1 -0
  54. package/package.json +30 -0
  55. package/package.json.bak +30 -0
  56. package/package.json.dev +30 -0
  57. package/port/forward.d.ts +165 -0
  58. package/port/forward.js +70 -0
  59. package/port/forward.js.map +1 -0
  60. package/port/getProfile.d.ts +58 -0
  61. package/port/getProfile.js +36 -0
  62. package/port/getProfile.js.map +1 -0
  63. package/port/index.d.ts +9 -0
  64. package/port/index.js +30 -0
  65. package/port/index.js.map +1 -0
  66. package/port/profile.d.ts +481 -0
  67. package/port/profile.js +142 -0
  68. package/port/profile.js.map +1 -0
  69. package/provider.d.ts +70 -0
  70. package/provider.js +50 -0
  71. package/provider.js.map +1 -0
  72. package/scripts/install-pulumi-plugin.js +21 -0
  73. package/setting/index.d.ts +6 -0
  74. package/setting/index.js +27 -0
  75. package/setting/index.js.map +1 -0
  76. package/setting/mgmt.d.ts +102 -0
  77. package/setting/mgmt.js +71 -0
  78. package/setting/mgmt.js.map +1 -0
  79. package/setting/usg.d.ts +111 -0
  80. package/setting/usg.js +62 -0
  81. package/setting/usg.js.map +1 -0
  82. package/site.d.ts +84 -0
  83. package/site.js +82 -0
  84. package/site.js.map +1 -0
  85. package/staticRoute.d.ts +148 -0
  86. package/staticRoute.js +98 -0
  87. package/staticRoute.js.map +1 -0
  88. package/types/index.d.ts +3 -0
  89. package/types/index.js +11 -0
  90. package/types/index.js.map +1 -0
  91. package/types/input.d.ts +49 -0
  92. package/types/input.js +5 -0
  93. package/types/input.js.map +1 -0
  94. package/types/output.d.ts +48 -0
  95. package/types/output.js +5 -0
  96. package/types/output.js.map +1 -0
  97. package/utilities.d.ts +4 -0
  98. package/utilities.js +69 -0
  99. package/utilities.js.map +1 -0
  100. package/wlan.d.ts +374 -0
  101. package/wlan.js +149 -0
  102. package/wlan.js.map +1 -0
package/wlan.d.ts ADDED
@@ -0,0 +1,374 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * `unifi.Wlan` manages a WiFi network / SSID.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as unifi from "@pulumi/unifi";
12
+ * import * as unifi from "@pulumiverse/unifi";
13
+ *
14
+ * const config = new pulumi.Config();
15
+ * const vlanId = config.getNumber("vlanId") || 10;
16
+ * const defaultApGroup = unifi.getApGroup({});
17
+ * const defaultGroup = unifi.iam.getGroup({});
18
+ * const vlan = new unifi.Network("vlan", {
19
+ * purpose: "corporate",
20
+ * subnet: "10.0.0.1/24",
21
+ * vlanId: vlanId,
22
+ * dhcpStart: "10.0.0.6",
23
+ * dhcpStop: "10.0.0.254",
24
+ * dhcpEnabled: true,
25
+ * });
26
+ * const wifi = new unifi.Wlan("wifi", {
27
+ * passphrase: "12345678",
28
+ * security: "wpapsk",
29
+ * wpa3Support: true,
30
+ * wpa3Transition: true,
31
+ * pmfMode: "optional",
32
+ * networkId: vlan.id,
33
+ * apGroupIds: [defaultApGroup.then(defaultApGroup => defaultApGroup.id)],
34
+ * userGroupId: defaultGroup.then(defaultGroup => defaultGroup.id),
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * # import from provider configured site
41
+ *
42
+ * ```sh
43
+ * $ pulumi import unifi:index/wlan:Wlan mywlan 5dc28e5e9106d105bdc87217
44
+ * ```
45
+ *
46
+ * # import from another site
47
+ *
48
+ * ```sh
49
+ * $ pulumi import unifi:index/wlan:Wlan mywlan bfa2l6i7:5dc28e5e9106d105bdc87217
50
+ * ```
51
+ */
52
+ export declare class Wlan extends pulumi.CustomResource {
53
+ /**
54
+ * Get an existing Wlan resource's state with the given name, ID, and optional extra
55
+ * properties used to qualify the lookup.
56
+ *
57
+ * @param name The _unique_ name of the resulting resource.
58
+ * @param id The _unique_ provider ID of the resource to lookup.
59
+ * @param state Any extra arguments used during the lookup.
60
+ * @param opts Optional settings to control the behavior of the CustomResource.
61
+ */
62
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WlanState, opts?: pulumi.CustomResourceOptions): Wlan;
63
+ /**
64
+ * Returns true if the given object is an instance of Wlan. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj: any): obj is Wlan;
68
+ /**
69
+ * IDs of the AP groups to use for this network.
70
+ */
71
+ readonly apGroupIds: pulumi.Output<string[] | undefined>;
72
+ /**
73
+ * Indicates whether or not to hide the SSID from broadcast.
74
+ */
75
+ readonly hideSsid: pulumi.Output<boolean | undefined>;
76
+ /**
77
+ * Indicates that this is a guest WLAN and should use guest behaviors.
78
+ */
79
+ readonly isGuest: pulumi.Output<boolean | undefined>;
80
+ /**
81
+ * Isolates stations on layer 2 (ethernet) level Defaults to `false`.
82
+ */
83
+ readonly l2Isolation: pulumi.Output<boolean | undefined>;
84
+ /**
85
+ * Indicates whether or not the MAC filter is turned of for the network.
86
+ */
87
+ readonly macFilterEnabled: pulumi.Output<boolean | undefined>;
88
+ /**
89
+ * List of MAC addresses to filter (only valid if `macFilterEnabled` is `true`).
90
+ */
91
+ readonly macFilterLists: pulumi.Output<string[] | undefined>;
92
+ /**
93
+ * MAC address filter policy (only valid if `macFilterEnabled` is `true`). Defaults to `deny`.
94
+ */
95
+ readonly macFilterPolicy: pulumi.Output<string | undefined>;
96
+ /**
97
+ * Set minimum data rate control for 2G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `1000`, `2000`, `5500`, `6000`, `9000`, `11000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`.
98
+ */
99
+ readonly minimumDataRate2gKbps: pulumi.Output<number | undefined>;
100
+ /**
101
+ * Set minimum data rate control for 5G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `6000`, `9000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`.
102
+ */
103
+ readonly minimumDataRate5gKbps: pulumi.Output<number | undefined>;
104
+ /**
105
+ * Indicates whether or not Multicast Enhance is turned of for the network.
106
+ */
107
+ readonly multicastEnhance: pulumi.Output<boolean | undefined>;
108
+ /**
109
+ * The SSID of the network.
110
+ */
111
+ readonly name: pulumi.Output<string>;
112
+ /**
113
+ * ID of the network for this SSID
114
+ */
115
+ readonly networkId: pulumi.Output<string | undefined>;
116
+ /**
117
+ * Connect high performance clients to 5 GHz only Defaults to `true`.
118
+ */
119
+ readonly no2ghzOui: pulumi.Output<boolean | undefined>;
120
+ /**
121
+ * The passphrase for the network, this is only required if `security` is not set to `open`.
122
+ */
123
+ readonly passphrase: pulumi.Output<string | undefined>;
124
+ /**
125
+ * Enable Protected Management Frames. This cannot be disabled if using WPA 3. Valid values are `required`, `optional` and `disabled`. Defaults to `disabled`.
126
+ */
127
+ readonly pmfMode: pulumi.Output<string | undefined>;
128
+ /**
129
+ * ID of the RADIUS profile to use when security `wpaeap`. You can query this via the `unifi.getRadiusProfile` data source.
130
+ */
131
+ readonly radiusProfileId: pulumi.Output<string | undefined>;
132
+ /**
133
+ * Start and stop schedules for the WLAN
134
+ */
135
+ readonly schedules: pulumi.Output<outputs.WlanSchedule[] | undefined>;
136
+ /**
137
+ * The type of WiFi security for this network. Valid values are: `wpapsk`, `wpaeap`, and `open`.
138
+ */
139
+ readonly security: pulumi.Output<string>;
140
+ /**
141
+ * The name of the site to associate the wlan with.
142
+ */
143
+ readonly site: pulumi.Output<string>;
144
+ /**
145
+ * Enable Unscheduled Automatic Power Save Delivery Defaults to `false`.
146
+ */
147
+ readonly uapsd: pulumi.Output<boolean | undefined>;
148
+ /**
149
+ * ID of the user group to use for this network.
150
+ */
151
+ readonly userGroupId: pulumi.Output<string>;
152
+ /**
153
+ * Radio band your WiFi network will use.
154
+ */
155
+ readonly wlanBand: pulumi.Output<string | undefined>;
156
+ /**
157
+ * Enable WPA 3 support (security must be `wpapsk` and PMF must be turned on).
158
+ */
159
+ readonly wpa3Support: pulumi.Output<boolean | undefined>;
160
+ /**
161
+ * Enable WPA 3 and WPA 2 support (security must be `wpapsk` and `wpa3Support` must be true).
162
+ */
163
+ readonly wpa3Transition: pulumi.Output<boolean | undefined>;
164
+ /**
165
+ * Create a Wlan resource with the given unique name, arguments, and options.
166
+ *
167
+ * @param name The _unique_ name of the resource.
168
+ * @param args The arguments to use to populate this resource's properties.
169
+ * @param opts A bag of options that control this resource's behavior.
170
+ */
171
+ constructor(name: string, args: WlanArgs, opts?: pulumi.CustomResourceOptions);
172
+ }
173
+ /**
174
+ * Input properties used for looking up and filtering Wlan resources.
175
+ */
176
+ export interface WlanState {
177
+ /**
178
+ * IDs of the AP groups to use for this network.
179
+ */
180
+ apGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
181
+ /**
182
+ * Indicates whether or not to hide the SSID from broadcast.
183
+ */
184
+ hideSsid?: pulumi.Input<boolean>;
185
+ /**
186
+ * Indicates that this is a guest WLAN and should use guest behaviors.
187
+ */
188
+ isGuest?: pulumi.Input<boolean>;
189
+ /**
190
+ * Isolates stations on layer 2 (ethernet) level Defaults to `false`.
191
+ */
192
+ l2Isolation?: pulumi.Input<boolean>;
193
+ /**
194
+ * Indicates whether or not the MAC filter is turned of for the network.
195
+ */
196
+ macFilterEnabled?: pulumi.Input<boolean>;
197
+ /**
198
+ * List of MAC addresses to filter (only valid if `macFilterEnabled` is `true`).
199
+ */
200
+ macFilterLists?: pulumi.Input<pulumi.Input<string>[]>;
201
+ /**
202
+ * MAC address filter policy (only valid if `macFilterEnabled` is `true`). Defaults to `deny`.
203
+ */
204
+ macFilterPolicy?: pulumi.Input<string>;
205
+ /**
206
+ * Set minimum data rate control for 2G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `1000`, `2000`, `5500`, `6000`, `9000`, `11000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`.
207
+ */
208
+ minimumDataRate2gKbps?: pulumi.Input<number>;
209
+ /**
210
+ * Set minimum data rate control for 5G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `6000`, `9000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`.
211
+ */
212
+ minimumDataRate5gKbps?: pulumi.Input<number>;
213
+ /**
214
+ * Indicates whether or not Multicast Enhance is turned of for the network.
215
+ */
216
+ multicastEnhance?: pulumi.Input<boolean>;
217
+ /**
218
+ * The SSID of the network.
219
+ */
220
+ name?: pulumi.Input<string>;
221
+ /**
222
+ * ID of the network for this SSID
223
+ */
224
+ networkId?: pulumi.Input<string>;
225
+ /**
226
+ * Connect high performance clients to 5 GHz only Defaults to `true`.
227
+ */
228
+ no2ghzOui?: pulumi.Input<boolean>;
229
+ /**
230
+ * The passphrase for the network, this is only required if `security` is not set to `open`.
231
+ */
232
+ passphrase?: pulumi.Input<string>;
233
+ /**
234
+ * Enable Protected Management Frames. This cannot be disabled if using WPA 3. Valid values are `required`, `optional` and `disabled`. Defaults to `disabled`.
235
+ */
236
+ pmfMode?: pulumi.Input<string>;
237
+ /**
238
+ * ID of the RADIUS profile to use when security `wpaeap`. You can query this via the `unifi.getRadiusProfile` data source.
239
+ */
240
+ radiusProfileId?: pulumi.Input<string>;
241
+ /**
242
+ * Start and stop schedules for the WLAN
243
+ */
244
+ schedules?: pulumi.Input<pulumi.Input<inputs.WlanSchedule>[]>;
245
+ /**
246
+ * The type of WiFi security for this network. Valid values are: `wpapsk`, `wpaeap`, and `open`.
247
+ */
248
+ security?: pulumi.Input<string>;
249
+ /**
250
+ * The name of the site to associate the wlan with.
251
+ */
252
+ site?: pulumi.Input<string>;
253
+ /**
254
+ * Enable Unscheduled Automatic Power Save Delivery Defaults to `false`.
255
+ */
256
+ uapsd?: pulumi.Input<boolean>;
257
+ /**
258
+ * ID of the user group to use for this network.
259
+ */
260
+ userGroupId?: pulumi.Input<string>;
261
+ /**
262
+ * Radio band your WiFi network will use.
263
+ */
264
+ wlanBand?: pulumi.Input<string>;
265
+ /**
266
+ * Enable WPA 3 support (security must be `wpapsk` and PMF must be turned on).
267
+ */
268
+ wpa3Support?: pulumi.Input<boolean>;
269
+ /**
270
+ * Enable WPA 3 and WPA 2 support (security must be `wpapsk` and `wpa3Support` must be true).
271
+ */
272
+ wpa3Transition?: pulumi.Input<boolean>;
273
+ }
274
+ /**
275
+ * The set of arguments for constructing a Wlan resource.
276
+ */
277
+ export interface WlanArgs {
278
+ /**
279
+ * IDs of the AP groups to use for this network.
280
+ */
281
+ apGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
282
+ /**
283
+ * Indicates whether or not to hide the SSID from broadcast.
284
+ */
285
+ hideSsid?: pulumi.Input<boolean>;
286
+ /**
287
+ * Indicates that this is a guest WLAN and should use guest behaviors.
288
+ */
289
+ isGuest?: pulumi.Input<boolean>;
290
+ /**
291
+ * Isolates stations on layer 2 (ethernet) level Defaults to `false`.
292
+ */
293
+ l2Isolation?: pulumi.Input<boolean>;
294
+ /**
295
+ * Indicates whether or not the MAC filter is turned of for the network.
296
+ */
297
+ macFilterEnabled?: pulumi.Input<boolean>;
298
+ /**
299
+ * List of MAC addresses to filter (only valid if `macFilterEnabled` is `true`).
300
+ */
301
+ macFilterLists?: pulumi.Input<pulumi.Input<string>[]>;
302
+ /**
303
+ * MAC address filter policy (only valid if `macFilterEnabled` is `true`). Defaults to `deny`.
304
+ */
305
+ macFilterPolicy?: pulumi.Input<string>;
306
+ /**
307
+ * Set minimum data rate control for 2G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `1000`, `2000`, `5500`, `6000`, `9000`, `11000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`.
308
+ */
309
+ minimumDataRate2gKbps?: pulumi.Input<number>;
310
+ /**
311
+ * Set minimum data rate control for 5G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `6000`, `9000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`.
312
+ */
313
+ minimumDataRate5gKbps?: pulumi.Input<number>;
314
+ /**
315
+ * Indicates whether or not Multicast Enhance is turned of for the network.
316
+ */
317
+ multicastEnhance?: pulumi.Input<boolean>;
318
+ /**
319
+ * The SSID of the network.
320
+ */
321
+ name?: pulumi.Input<string>;
322
+ /**
323
+ * ID of the network for this SSID
324
+ */
325
+ networkId?: pulumi.Input<string>;
326
+ /**
327
+ * Connect high performance clients to 5 GHz only Defaults to `true`.
328
+ */
329
+ no2ghzOui?: pulumi.Input<boolean>;
330
+ /**
331
+ * The passphrase for the network, this is only required if `security` is not set to `open`.
332
+ */
333
+ passphrase?: pulumi.Input<string>;
334
+ /**
335
+ * Enable Protected Management Frames. This cannot be disabled if using WPA 3. Valid values are `required`, `optional` and `disabled`. Defaults to `disabled`.
336
+ */
337
+ pmfMode?: pulumi.Input<string>;
338
+ /**
339
+ * ID of the RADIUS profile to use when security `wpaeap`. You can query this via the `unifi.getRadiusProfile` data source.
340
+ */
341
+ radiusProfileId?: pulumi.Input<string>;
342
+ /**
343
+ * Start and stop schedules for the WLAN
344
+ */
345
+ schedules?: pulumi.Input<pulumi.Input<inputs.WlanSchedule>[]>;
346
+ /**
347
+ * The type of WiFi security for this network. Valid values are: `wpapsk`, `wpaeap`, and `open`.
348
+ */
349
+ security: pulumi.Input<string>;
350
+ /**
351
+ * The name of the site to associate the wlan with.
352
+ */
353
+ site?: pulumi.Input<string>;
354
+ /**
355
+ * Enable Unscheduled Automatic Power Save Delivery Defaults to `false`.
356
+ */
357
+ uapsd?: pulumi.Input<boolean>;
358
+ /**
359
+ * ID of the user group to use for this network.
360
+ */
361
+ userGroupId: pulumi.Input<string>;
362
+ /**
363
+ * Radio band your WiFi network will use.
364
+ */
365
+ wlanBand?: pulumi.Input<string>;
366
+ /**
367
+ * Enable WPA 3 support (security must be `wpapsk` and PMF must be turned on).
368
+ */
369
+ wpa3Support?: pulumi.Input<boolean>;
370
+ /**
371
+ * Enable WPA 3 and WPA 2 support (security must be `wpapsk` and `wpa3Support` must be true).
372
+ */
373
+ wpa3Transition?: pulumi.Input<boolean>;
374
+ }
package/wlan.js ADDED
@@ -0,0 +1,149 @@
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.Wlan = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * `unifi.Wlan` manages a WiFi network / SSID.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as unifi from "@pulumi/unifi";
16
+ * import * as unifi from "@pulumiverse/unifi";
17
+ *
18
+ * const config = new pulumi.Config();
19
+ * const vlanId = config.getNumber("vlanId") || 10;
20
+ * const defaultApGroup = unifi.getApGroup({});
21
+ * const defaultGroup = unifi.iam.getGroup({});
22
+ * const vlan = new unifi.Network("vlan", {
23
+ * purpose: "corporate",
24
+ * subnet: "10.0.0.1/24",
25
+ * vlanId: vlanId,
26
+ * dhcpStart: "10.0.0.6",
27
+ * dhcpStop: "10.0.0.254",
28
+ * dhcpEnabled: true,
29
+ * });
30
+ * const wifi = new unifi.Wlan("wifi", {
31
+ * passphrase: "12345678",
32
+ * security: "wpapsk",
33
+ * wpa3Support: true,
34
+ * wpa3Transition: true,
35
+ * pmfMode: "optional",
36
+ * networkId: vlan.id,
37
+ * apGroupIds: [defaultApGroup.then(defaultApGroup => defaultApGroup.id)],
38
+ * userGroupId: defaultGroup.then(defaultGroup => defaultGroup.id),
39
+ * });
40
+ * ```
41
+ *
42
+ * ## Import
43
+ *
44
+ * # import from provider configured site
45
+ *
46
+ * ```sh
47
+ * $ pulumi import unifi:index/wlan:Wlan mywlan 5dc28e5e9106d105bdc87217
48
+ * ```
49
+ *
50
+ * # import from another site
51
+ *
52
+ * ```sh
53
+ * $ pulumi import unifi:index/wlan:Wlan mywlan bfa2l6i7:5dc28e5e9106d105bdc87217
54
+ * ```
55
+ */
56
+ class Wlan extends pulumi.CustomResource {
57
+ constructor(name, argsOrState, opts) {
58
+ let resourceInputs = {};
59
+ opts = opts || {};
60
+ if (opts.id) {
61
+ const state = argsOrState;
62
+ resourceInputs["apGroupIds"] = state ? state.apGroupIds : undefined;
63
+ resourceInputs["hideSsid"] = state ? state.hideSsid : undefined;
64
+ resourceInputs["isGuest"] = state ? state.isGuest : undefined;
65
+ resourceInputs["l2Isolation"] = state ? state.l2Isolation : undefined;
66
+ resourceInputs["macFilterEnabled"] = state ? state.macFilterEnabled : undefined;
67
+ resourceInputs["macFilterLists"] = state ? state.macFilterLists : undefined;
68
+ resourceInputs["macFilterPolicy"] = state ? state.macFilterPolicy : undefined;
69
+ resourceInputs["minimumDataRate2gKbps"] = state ? state.minimumDataRate2gKbps : undefined;
70
+ resourceInputs["minimumDataRate5gKbps"] = state ? state.minimumDataRate5gKbps : undefined;
71
+ resourceInputs["multicastEnhance"] = state ? state.multicastEnhance : undefined;
72
+ resourceInputs["name"] = state ? state.name : undefined;
73
+ resourceInputs["networkId"] = state ? state.networkId : undefined;
74
+ resourceInputs["no2ghzOui"] = state ? state.no2ghzOui : undefined;
75
+ resourceInputs["passphrase"] = state ? state.passphrase : undefined;
76
+ resourceInputs["pmfMode"] = state ? state.pmfMode : undefined;
77
+ resourceInputs["radiusProfileId"] = state ? state.radiusProfileId : undefined;
78
+ resourceInputs["schedules"] = state ? state.schedules : undefined;
79
+ resourceInputs["security"] = state ? state.security : undefined;
80
+ resourceInputs["site"] = state ? state.site : undefined;
81
+ resourceInputs["uapsd"] = state ? state.uapsd : undefined;
82
+ resourceInputs["userGroupId"] = state ? state.userGroupId : undefined;
83
+ resourceInputs["wlanBand"] = state ? state.wlanBand : undefined;
84
+ resourceInputs["wpa3Support"] = state ? state.wpa3Support : undefined;
85
+ resourceInputs["wpa3Transition"] = state ? state.wpa3Transition : undefined;
86
+ }
87
+ else {
88
+ const args = argsOrState;
89
+ if ((!args || args.security === undefined) && !opts.urn) {
90
+ throw new Error("Missing required property 'security'");
91
+ }
92
+ if ((!args || args.userGroupId === undefined) && !opts.urn) {
93
+ throw new Error("Missing required property 'userGroupId'");
94
+ }
95
+ resourceInputs["apGroupIds"] = args ? args.apGroupIds : undefined;
96
+ resourceInputs["hideSsid"] = args ? args.hideSsid : undefined;
97
+ resourceInputs["isGuest"] = args ? args.isGuest : undefined;
98
+ resourceInputs["l2Isolation"] = args ? args.l2Isolation : undefined;
99
+ resourceInputs["macFilterEnabled"] = args ? args.macFilterEnabled : undefined;
100
+ resourceInputs["macFilterLists"] = args ? args.macFilterLists : undefined;
101
+ resourceInputs["macFilterPolicy"] = args ? args.macFilterPolicy : undefined;
102
+ resourceInputs["minimumDataRate2gKbps"] = args ? args.minimumDataRate2gKbps : undefined;
103
+ resourceInputs["minimumDataRate5gKbps"] = args ? args.minimumDataRate5gKbps : undefined;
104
+ resourceInputs["multicastEnhance"] = args ? args.multicastEnhance : undefined;
105
+ resourceInputs["name"] = args ? args.name : undefined;
106
+ resourceInputs["networkId"] = args ? args.networkId : undefined;
107
+ resourceInputs["no2ghzOui"] = args ? args.no2ghzOui : undefined;
108
+ resourceInputs["passphrase"] = args ? args.passphrase : undefined;
109
+ resourceInputs["pmfMode"] = args ? args.pmfMode : undefined;
110
+ resourceInputs["radiusProfileId"] = args ? args.radiusProfileId : undefined;
111
+ resourceInputs["schedules"] = args ? args.schedules : undefined;
112
+ resourceInputs["security"] = args ? args.security : undefined;
113
+ resourceInputs["site"] = args ? args.site : undefined;
114
+ resourceInputs["uapsd"] = args ? args.uapsd : undefined;
115
+ resourceInputs["userGroupId"] = args ? args.userGroupId : undefined;
116
+ resourceInputs["wlanBand"] = args ? args.wlanBand : undefined;
117
+ resourceInputs["wpa3Support"] = args ? args.wpa3Support : undefined;
118
+ resourceInputs["wpa3Transition"] = args ? args.wpa3Transition : undefined;
119
+ }
120
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
121
+ super(Wlan.__pulumiType, name, resourceInputs, opts);
122
+ }
123
+ /**
124
+ * Get an existing Wlan resource's state with the given name, ID, and optional extra
125
+ * properties used to qualify the lookup.
126
+ *
127
+ * @param name The _unique_ name of the resulting resource.
128
+ * @param id The _unique_ provider ID of the resource to lookup.
129
+ * @param state Any extra arguments used during the lookup.
130
+ * @param opts Optional settings to control the behavior of the CustomResource.
131
+ */
132
+ static get(name, id, state, opts) {
133
+ return new Wlan(name, state, Object.assign(Object.assign({}, opts), { id: id }));
134
+ }
135
+ /**
136
+ * Returns true if the given object is an instance of Wlan. This is designed to work even
137
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
138
+ */
139
+ static isInstance(obj) {
140
+ if (obj === undefined || obj === null) {
141
+ return false;
142
+ }
143
+ return obj['__pulumiType'] === Wlan.__pulumiType;
144
+ }
145
+ }
146
+ exports.Wlan = Wlan;
147
+ /** @internal */
148
+ Wlan.__pulumiType = 'unifi:index/wlan:Wlan';
149
+ //# sourceMappingURL=wlan.js.map
package/wlan.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wlan.js","sourceRoot":"","sources":["../wlan.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAqI3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ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