@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.
- package/LICENSE +202 -0
- package/README.md +56 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +24 -0
- package/config/vars.js +43 -0
- package/config/vars.js.map +1 -0
- package/device.d.ts +128 -0
- package/device.js +91 -0
- package/device.js.map +1 -0
- package/dynamicDNS.d.ts +138 -0
- package/dynamicDNS.js +85 -0
- package/dynamicDNS.js.map +1 -0
- package/firewall/group.d.ts +101 -0
- package/firewall/group.js +78 -0
- package/firewall/group.js.map +1 -0
- package/firewall/index.d.ts +6 -0
- package/firewall/index.js +27 -0
- package/firewall/index.js.map +1 -0
- package/firewall/rule.d.ts +340 -0
- package/firewall/rule.js +133 -0
- package/firewall/rule.js.map +1 -0
- package/getApGroup.d.ts +58 -0
- package/getApGroup.js +36 -0
- package/getApGroup.js.map +1 -0
- package/getNetwork.d.ts +186 -0
- package/getNetwork.js +45 -0
- package/getNetwork.js.map +1 -0
- package/getRadiusProfile.d.ts +49 -0
- package/getRadiusProfile.js +27 -0
- package/getRadiusProfile.js.map +1 -0
- package/iam/getGroup.d.ts +51 -0
- package/iam/getGroup.js +27 -0
- package/iam/getGroup.js.map +1 -0
- package/iam/getUser.d.ts +96 -0
- package/iam/getUser.js +37 -0
- package/iam/getUser.js.map +1 -0
- package/iam/group.d.ts +107 -0
- package/iam/group.js +78 -0
- package/iam/group.js.map +1 -0
- package/iam/index.d.ts +12 -0
- package/iam/index.js +33 -0
- package/iam/index.js.map +1 -0
- package/iam/user.d.ts +203 -0
- package/iam/user.js +95 -0
- package/iam/user.js.map +1 -0
- package/index.d.ts +37 -0
- package/index.js +80 -0
- package/index.js.map +1 -0
- package/network.d.ts +458 -0
- package/network.js +162 -0
- package/network.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +30 -0
- package/package.json.dev +30 -0
- package/port/forward.d.ts +165 -0
- package/port/forward.js +70 -0
- package/port/forward.js.map +1 -0
- package/port/getProfile.d.ts +58 -0
- package/port/getProfile.js +36 -0
- package/port/getProfile.js.map +1 -0
- package/port/index.d.ts +9 -0
- package/port/index.js +30 -0
- package/port/index.js.map +1 -0
- package/port/profile.d.ts +481 -0
- package/port/profile.js +142 -0
- package/port/profile.js.map +1 -0
- package/provider.d.ts +70 -0
- package/provider.js +50 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/setting/index.d.ts +6 -0
- package/setting/index.js +27 -0
- package/setting/index.js.map +1 -0
- package/setting/mgmt.d.ts +102 -0
- package/setting/mgmt.js +71 -0
- package/setting/mgmt.js.map +1 -0
- package/setting/usg.d.ts +111 -0
- package/setting/usg.js +62 -0
- package/setting/usg.js.map +1 -0
- package/site.d.ts +84 -0
- package/site.js +82 -0
- package/site.js.map +1 -0
- package/staticRoute.d.ts +148 -0
- package/staticRoute.js +98 -0
- package/staticRoute.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +49 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +48 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
- package/wlan.d.ts +374 -0
- package/wlan.js +149 -0
- package/wlan.js.map +1 -0
package/dynamicDNS.d.ts
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.DynamicDNS` manages dynamic DNS settings for different providers.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
10
|
+
*
|
|
11
|
+
* const test = new unifi.DynamicDNS("test", {
|
|
12
|
+
* service: "dyndns",
|
|
13
|
+
* hostName: "my-network.example.com",
|
|
14
|
+
* server: "domains.google.com",
|
|
15
|
+
* login: _var.dns_login,
|
|
16
|
+
* password: _var.dns_password,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class DynamicDNS extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing DynamicDNS resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DynamicDNSState, opts?: pulumi.CustomResourceOptions): DynamicDNS;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of DynamicDNS. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is DynamicDNS;
|
|
36
|
+
/**
|
|
37
|
+
* The host name to update in the dynamic DNS service.
|
|
38
|
+
*/
|
|
39
|
+
readonly hostName: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* The interface for the dynamic DNS. Can be `wan` or `wan2`. Defaults to `wan`.
|
|
42
|
+
*/
|
|
43
|
+
readonly interface: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* The server for the dynamic DNS service.
|
|
46
|
+
*/
|
|
47
|
+
readonly login: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The server for the dynamic DNS service.
|
|
50
|
+
*/
|
|
51
|
+
readonly password: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* The server for the dynamic DNS service.
|
|
54
|
+
*/
|
|
55
|
+
readonly server: pulumi.Output<string | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* The Dynamic DNS service provider, various values are supported (for example `dyndns`, etc.).
|
|
58
|
+
*/
|
|
59
|
+
readonly service: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the site to associate the dynamic DNS with.
|
|
62
|
+
*/
|
|
63
|
+
readonly site: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Create a DynamicDNS resource with the given unique name, arguments, and options.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resource.
|
|
68
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
+
*/
|
|
71
|
+
constructor(name: string, args: DynamicDNSArgs, opts?: pulumi.CustomResourceOptions);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Input properties used for looking up and filtering DynamicDNS resources.
|
|
75
|
+
*/
|
|
76
|
+
export interface DynamicDNSState {
|
|
77
|
+
/**
|
|
78
|
+
* The host name to update in the dynamic DNS service.
|
|
79
|
+
*/
|
|
80
|
+
hostName?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The interface for the dynamic DNS. Can be `wan` or `wan2`. Defaults to `wan`.
|
|
83
|
+
*/
|
|
84
|
+
interface?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The server for the dynamic DNS service.
|
|
87
|
+
*/
|
|
88
|
+
login?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The server for the dynamic DNS service.
|
|
91
|
+
*/
|
|
92
|
+
password?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The server for the dynamic DNS service.
|
|
95
|
+
*/
|
|
96
|
+
server?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The Dynamic DNS service provider, various values are supported (for example `dyndns`, etc.).
|
|
99
|
+
*/
|
|
100
|
+
service?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The name of the site to associate the dynamic DNS with.
|
|
103
|
+
*/
|
|
104
|
+
site?: pulumi.Input<string>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The set of arguments for constructing a DynamicDNS resource.
|
|
108
|
+
*/
|
|
109
|
+
export interface DynamicDNSArgs {
|
|
110
|
+
/**
|
|
111
|
+
* The host name to update in the dynamic DNS service.
|
|
112
|
+
*/
|
|
113
|
+
hostName: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The interface for the dynamic DNS. Can be `wan` or `wan2`. Defaults to `wan`.
|
|
116
|
+
*/
|
|
117
|
+
interface?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The server for the dynamic DNS service.
|
|
120
|
+
*/
|
|
121
|
+
login?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The server for the dynamic DNS service.
|
|
124
|
+
*/
|
|
125
|
+
password?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The server for the dynamic DNS service.
|
|
128
|
+
*/
|
|
129
|
+
server?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The Dynamic DNS service provider, various values are supported (for example `dyndns`, etc.).
|
|
132
|
+
*/
|
|
133
|
+
service: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The name of the site to associate the dynamic DNS with.
|
|
136
|
+
*/
|
|
137
|
+
site?: pulumi.Input<string>;
|
|
138
|
+
}
|
package/dynamicDNS.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
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.DynamicDNS = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.DynamicDNS` manages dynamic DNS settings for different providers.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
16
|
+
*
|
|
17
|
+
* const test = new unifi.DynamicDNS("test", {
|
|
18
|
+
* service: "dyndns",
|
|
19
|
+
* hostName: "my-network.example.com",
|
|
20
|
+
* server: "domains.google.com",
|
|
21
|
+
* login: _var.dns_login,
|
|
22
|
+
* password: _var.dns_password,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class DynamicDNS extends pulumi.CustomResource {
|
|
27
|
+
constructor(name, argsOrState, opts) {
|
|
28
|
+
let resourceInputs = {};
|
|
29
|
+
opts = opts || {};
|
|
30
|
+
if (opts.id) {
|
|
31
|
+
const state = argsOrState;
|
|
32
|
+
resourceInputs["hostName"] = state ? state.hostName : undefined;
|
|
33
|
+
resourceInputs["interface"] = state ? state.interface : undefined;
|
|
34
|
+
resourceInputs["login"] = state ? state.login : undefined;
|
|
35
|
+
resourceInputs["password"] = state ? state.password : undefined;
|
|
36
|
+
resourceInputs["server"] = state ? state.server : undefined;
|
|
37
|
+
resourceInputs["service"] = state ? state.service : undefined;
|
|
38
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.hostName === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'hostName'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.service === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'service'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["hostName"] = args ? args.hostName : undefined;
|
|
49
|
+
resourceInputs["interface"] = args ? args.interface : undefined;
|
|
50
|
+
resourceInputs["login"] = args ? args.login : undefined;
|
|
51
|
+
resourceInputs["password"] = args ? args.password : undefined;
|
|
52
|
+
resourceInputs["server"] = args ? args.server : undefined;
|
|
53
|
+
resourceInputs["service"] = args ? args.service : undefined;
|
|
54
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
55
|
+
}
|
|
56
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
57
|
+
super(DynamicDNS.__pulumiType, name, resourceInputs, opts);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get an existing DynamicDNS resource's state with the given name, ID, and optional extra
|
|
61
|
+
* properties used to qualify the lookup.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resulting resource.
|
|
64
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
65
|
+
* @param state Any extra arguments used during the lookup.
|
|
66
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
|
+
*/
|
|
68
|
+
static get(name, id, state, opts) {
|
|
69
|
+
return new DynamicDNS(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of DynamicDNS. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj) {
|
|
76
|
+
if (obj === undefined || obj === null) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return obj['__pulumiType'] === DynamicDNS.__pulumiType;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.DynamicDNS = DynamicDNS;
|
|
83
|
+
/** @internal */
|
|
84
|
+
DynamicDNS.__pulumiType = 'unifi:index/dynamicDNS:DynamicDNS';
|
|
85
|
+
//# sourceMappingURL=dynamicDNS.js.map
|
|
@@ -0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,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IA9FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCAgGC;AAlFG,gBAAgB;AACO,uBAAY,GAAG,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.firewall.Group` manages groups of addresses or ports for use in firewall rules (`unifi.firewall.Rule`).
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
10
|
+
*
|
|
11
|
+
* const config = new pulumi.Config();
|
|
12
|
+
* const laptopIps = config.requireObject("laptopIps");
|
|
13
|
+
* const canPrint = new unifi.firewall.Group("canPrint", {
|
|
14
|
+
* type: "address-group",
|
|
15
|
+
* members: laptopIps,
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class Group extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupState, opts?: pulumi.CustomResourceOptions): Group;
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj: any): obj is Group;
|
|
35
|
+
/**
|
|
36
|
+
* The members of the firewall group.
|
|
37
|
+
*/
|
|
38
|
+
readonly members: pulumi.Output<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the firewall group.
|
|
41
|
+
*/
|
|
42
|
+
readonly name: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the site to associate the firewall group with.
|
|
45
|
+
*/
|
|
46
|
+
readonly site: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.
|
|
49
|
+
*/
|
|
50
|
+
readonly type: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a Group resource with the given unique name, arguments, and options.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resource.
|
|
55
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
56
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
57
|
+
*/
|
|
58
|
+
constructor(name: string, args: GroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Input properties used for looking up and filtering Group resources.
|
|
62
|
+
*/
|
|
63
|
+
export interface GroupState {
|
|
64
|
+
/**
|
|
65
|
+
* The members of the firewall group.
|
|
66
|
+
*/
|
|
67
|
+
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
68
|
+
/**
|
|
69
|
+
* The name of the firewall group.
|
|
70
|
+
*/
|
|
71
|
+
name?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The name of the site to associate the firewall group with.
|
|
74
|
+
*/
|
|
75
|
+
site?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.
|
|
78
|
+
*/
|
|
79
|
+
type?: pulumi.Input<string>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The set of arguments for constructing a Group resource.
|
|
83
|
+
*/
|
|
84
|
+
export interface GroupArgs {
|
|
85
|
+
/**
|
|
86
|
+
* The members of the firewall group.
|
|
87
|
+
*/
|
|
88
|
+
members: pulumi.Input<pulumi.Input<string>[]>;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the firewall group.
|
|
91
|
+
*/
|
|
92
|
+
name?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The name of the site to associate the firewall group with.
|
|
95
|
+
*/
|
|
96
|
+
site?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.
|
|
99
|
+
*/
|
|
100
|
+
type: pulumi.Input<string>;
|
|
101
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.firewall.Group` manages groups of addresses or ports for use in firewall rules (`unifi.firewall.Rule`).
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
16
|
+
*
|
|
17
|
+
* const config = new pulumi.Config();
|
|
18
|
+
* const laptopIps = config.requireObject("laptopIps");
|
|
19
|
+
* const canPrint = new unifi.firewall.Group("canPrint", {
|
|
20
|
+
* type: "address-group",
|
|
21
|
+
* members: laptopIps,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
class Group extends pulumi.CustomResource {
|
|
26
|
+
constructor(name, argsOrState, opts) {
|
|
27
|
+
let resourceInputs = {};
|
|
28
|
+
opts = opts || {};
|
|
29
|
+
if (opts.id) {
|
|
30
|
+
const state = argsOrState;
|
|
31
|
+
resourceInputs["members"] = state ? state.members : undefined;
|
|
32
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
33
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
34
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
const args = argsOrState;
|
|
38
|
+
if ((!args || args.members === undefined) && !opts.urn) {
|
|
39
|
+
throw new Error("Missing required property 'members'");
|
|
40
|
+
}
|
|
41
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
42
|
+
throw new Error("Missing required property 'type'");
|
|
43
|
+
}
|
|
44
|
+
resourceInputs["members"] = args ? args.members : undefined;
|
|
45
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
46
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
47
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
48
|
+
}
|
|
49
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
50
|
+
super(Group.__pulumiType, name, resourceInputs, opts);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name, id, state, opts) {
|
|
62
|
+
return new Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj) {
|
|
69
|
+
if (obj === undefined || obj === null) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
return obj['__pulumiType'] === Group.__pulumiType;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.Group = Group;
|
|
76
|
+
/** @internal */
|
|
77
|
+
Group.__pulumiType = 'unifi:firewall/group:Group';
|
|
78
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../firewall/group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAqD5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAA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E,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;;AA1BL,sBA8EC;AAhEG,gBAAgB;AACO,kBAAY,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { GroupArgs, GroupState } from "./group";
|
|
2
|
+
export declare type Group = import("./group").Group;
|
|
3
|
+
export declare const Group: typeof import("./group").Group;
|
|
4
|
+
export { RuleArgs, RuleState } from "./rule";
|
|
5
|
+
export declare type Rule = import("./rule").Rule;
|
|
6
|
+
export declare const Rule: typeof import("./rule").Rule;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Rule = exports.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.Group = null;
|
|
9
|
+
exports.Rule = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["Group"], () => require("./group"));
|
|
11
|
+
utilities.lazyLoad(exports, ["Rule"], () => require("./rule"));
|
|
12
|
+
const _module = {
|
|
13
|
+
version: utilities.getVersion(),
|
|
14
|
+
construct: (name, type, urn) => {
|
|
15
|
+
switch (type) {
|
|
16
|
+
case "unifi:firewall/group:Group":
|
|
17
|
+
return new exports.Group(name, undefined, { urn });
|
|
18
|
+
case "unifi:firewall/rule:Rule":
|
|
19
|
+
return new exports.Rule(name, undefined, { urn });
|
|
20
|
+
default:
|
|
21
|
+
throw new Error(`unknown resource type ${type}`);
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
pulumi.runtime.registerResourceModule("unifi", "firewall/group", _module);
|
|
26
|
+
pulumi.runtime.registerResourceModule("unifi", "firewall/rule", _module);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../firewall/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,KAAK,GAAmC,IAAW,CAAC;AAIpD,QAAA,IAAI,GAAiC,IAAW,CAAC;AAE9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE/D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,4BAA4B;gBAC7B,OAAO,IAAI,aAAK,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACnD,KAAK,0BAA0B;gBAC3B,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACzE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA"}
|