@pulumi/tailscale 0.21.1 → 0.22.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.
- package/acl.d.ts +2 -0
- package/acl.js +10 -8
- package/acl.js.map +1 -1
- package/awsExternalId.js +3 -3
- package/awsExternalId.js.map +1 -1
- package/config/vars.d.ts +6 -13
- package/config/vars.js.map +1 -1
- package/contacts.d.ts +2 -0
- package/contacts.js +12 -10
- package/contacts.js.map +1 -1
- package/deviceAuthorization.d.ts +2 -0
- package/deviceAuthorization.js +9 -7
- package/deviceAuthorization.js.map +1 -1
- package/deviceKey.d.ts +2 -0
- package/deviceKey.js +8 -6
- package/deviceKey.js.map +1 -1
- package/deviceSubnetRoutes.d.ts +2 -0
- package/deviceSubnetRoutes.js +9 -7
- package/deviceSubnetRoutes.js.map +1 -1
- package/deviceTags.d.ts +2 -0
- package/deviceTags.js +9 -7
- package/deviceTags.js.map +1 -1
- package/dnsConfiguration.d.ts +153 -0
- package/dnsConfiguration.js +112 -0
- package/dnsConfiguration.js.map +1 -0
- package/dnsNameservers.d.ts +2 -0
- package/dnsNameservers.js +6 -4
- package/dnsNameservers.js.map +1 -1
- package/dnsPreferences.d.ts +2 -0
- package/dnsPreferences.js +6 -4
- package/dnsPreferences.js.map +1 -1
- package/dnsSearchPaths.d.ts +2 -0
- package/dnsSearchPaths.js +6 -4
- package/dnsSearchPaths.js.map +1 -1
- package/dnsSplitNameservers.d.ts +2 -0
- package/dnsSplitNameservers.js +9 -7
- package/dnsSplitNameservers.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/logstreamConfiguration.d.ts +2 -0
- package/logstreamConfiguration.js +35 -33
- package/logstreamConfiguration.js.map +1 -1
- package/oauthClient.d.ts +2 -0
- package/oauthClient.js +13 -11
- package/oauthClient.js.map +1 -1
- package/package.json +2 -2
- package/postureIntegration.d.ts +2 -0
- package/postureIntegration.js +15 -13
- package/postureIntegration.js.map +1 -1
- package/provider.d.ts +11 -23
- package/provider.js +7 -7
- package/provider.js.map +1 -1
- package/tailnetKey.js +21 -21
- package/tailnetKey.js.map +1 -1
- package/tailnetSettings.d.ts +2 -0
- package/tailnetSettings.js +23 -21
- package/tailnetSettings.js.map +1 -1
- package/types/input.d.ts +31 -0
- package/types/output.d.ts +31 -0
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/webhook.d.ts +2 -0
- package/webhook.js +12 -10
- package/webhook.js.map +1 -1
package/acl.d.ts
CHANGED
package/acl.js
CHANGED
|
@@ -39,6 +39,8 @@ const utilities = require("./utilities");
|
|
|
39
39
|
*
|
|
40
40
|
* ## Import
|
|
41
41
|
*
|
|
42
|
+
* The `pulumi import` command can be used, for example:
|
|
43
|
+
*
|
|
42
44
|
* ID doesn't matter.
|
|
43
45
|
*
|
|
44
46
|
* ```sh
|
|
@@ -56,7 +58,7 @@ class Acl extends pulumi.CustomResource {
|
|
|
56
58
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
59
|
*/
|
|
58
60
|
static get(name, id, state, opts) {
|
|
59
|
-
return new Acl(name, state,
|
|
61
|
+
return new Acl(name, state, { ...opts, id: id });
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
64
|
* Returns true if the given object is an instance of Acl. This is designed to work even
|
|
@@ -73,18 +75,18 @@ class Acl extends pulumi.CustomResource {
|
|
|
73
75
|
opts = opts || {};
|
|
74
76
|
if (opts.id) {
|
|
75
77
|
const state = argsOrState;
|
|
76
|
-
resourceInputs["acl"] = state
|
|
77
|
-
resourceInputs["overwriteExistingContent"] = state
|
|
78
|
-
resourceInputs["resetAclOnDestroy"] = state
|
|
78
|
+
resourceInputs["acl"] = state?.acl;
|
|
79
|
+
resourceInputs["overwriteExistingContent"] = state?.overwriteExistingContent;
|
|
80
|
+
resourceInputs["resetAclOnDestroy"] = state?.resetAclOnDestroy;
|
|
79
81
|
}
|
|
80
82
|
else {
|
|
81
83
|
const args = argsOrState;
|
|
82
|
-
if (
|
|
84
|
+
if (args?.acl === undefined && !opts.urn) {
|
|
83
85
|
throw new Error("Missing required property 'acl'");
|
|
84
86
|
}
|
|
85
|
-
resourceInputs["acl"] = args
|
|
86
|
-
resourceInputs["overwriteExistingContent"] = args
|
|
87
|
-
resourceInputs["resetAclOnDestroy"] = args
|
|
87
|
+
resourceInputs["acl"] = args?.acl;
|
|
88
|
+
resourceInputs["overwriteExistingContent"] = args?.overwriteExistingContent;
|
|
89
|
+
resourceInputs["resetAclOnDestroy"] = args?.resetAclOnDestroy;
|
|
88
90
|
}
|
|
89
91
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
92
|
super(Acl.__pulumiType, name, resourceInputs, opts);
|
package/acl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acl.js","sourceRoot":"","sources":["../acl.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"acl.js","sourceRoot":"","sources":["../acl.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,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,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;YACnC,cAAc,CAAC,0BAA0B,CAAC,GAAG,KAAK,EAAE,wBAAwB,CAAC;YAC7E,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;SAClE;aAAM;YACH,MAAM,IAAI,GAAG,WAAkC,CAAC;YAChD,IAAI,IAAI,EAAE,GAAG,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,EAAE,wBAAwB,CAAC;YAC5E,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AApEL,kBAqEC;AAvDG,gBAAgB;AACO,gBAAY,GAAG,yBAAyB,CAAC"}
|
package/awsExternalId.js
CHANGED
|
@@ -19,7 +19,7 @@ class AwsExternalId extends pulumi.CustomResource {
|
|
|
19
19
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
20
|
*/
|
|
21
21
|
static get(name, id, state, opts) {
|
|
22
|
-
return new AwsExternalId(name, state,
|
|
22
|
+
return new AwsExternalId(name, state, { ...opts, id: id });
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Returns true if the given object is an instance of AwsExternalId. This is designed to work even
|
|
@@ -36,8 +36,8 @@ class AwsExternalId extends pulumi.CustomResource {
|
|
|
36
36
|
opts = opts || {};
|
|
37
37
|
if (opts.id) {
|
|
38
38
|
const state = argsOrState;
|
|
39
|
-
resourceInputs["externalId"] = state
|
|
40
|
-
resourceInputs["tailscaleAwsAccountId"] = state
|
|
39
|
+
resourceInputs["externalId"] = state?.externalId;
|
|
40
|
+
resourceInputs["tailscaleAwsAccountId"] = state?.tailscaleAwsAccountId;
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
const args = argsOrState;
|
package/awsExternalId.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"awsExternalId.js","sourceRoot":"","sources":["../awsExternalId.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"awsExternalId.js","sourceRoot":"","sources":["../awsExternalId.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;SAC1E;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA3DL,sCA4DC;AA9CG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
3
|
-
* Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
2
|
+
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable. Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
4
3
|
*/
|
|
5
4
|
export declare const apiKey: string | undefined;
|
|
6
5
|
/**
|
|
7
|
-
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
8
|
-
* environment variable.
|
|
6
|
+
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL environment variable.
|
|
9
7
|
*/
|
|
10
8
|
export declare const baseUrl: string | undefined;
|
|
11
9
|
/**
|
|
12
|
-
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment
|
|
13
|
-
* variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
10
|
+
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
14
11
|
*/
|
|
15
12
|
export declare const oauthClientId: string | undefined;
|
|
16
13
|
/**
|
|
17
|
-
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET
|
|
18
|
-
* environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
14
|
+
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
19
15
|
*/
|
|
20
16
|
export declare const oauthClientSecret: string | undefined;
|
|
21
17
|
/**
|
|
22
|
-
* The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See
|
|
23
|
-
* https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both 'oauth_client_id' and
|
|
24
|
-
* 'oauth_client_secret' are set.
|
|
18
|
+
* The OAuth 2.0 scopes to request when for the access token generated using the supplied OAuth client credentials. See https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both 'oauth_client_id' and 'oauth_client_secret' are set.
|
|
25
19
|
*/
|
|
26
20
|
export declare const scopes: string[] | undefined;
|
|
27
21
|
/**
|
|
28
|
-
* The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment
|
|
29
|
-
* variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
22
|
+
* The organization name of the Tailnet in which to perform actions. Can be set via the TAILSCALE_TAILNET environment variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
30
23
|
*/
|
|
31
24
|
export declare const tailnet: string | undefined;
|
|
32
25
|
/**
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IAC5C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACzC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE;IAChD,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC7C,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAW,QAAQ,CAAC,CAAC;IAClD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/contacts.d.ts
CHANGED
package/contacts.js
CHANGED
|
@@ -27,6 +27,8 @@ const utilities = require("./utilities");
|
|
|
27
27
|
*
|
|
28
28
|
* ## Import
|
|
29
29
|
*
|
|
30
|
+
* The `pulumi import` command can be used, for example:
|
|
31
|
+
*
|
|
30
32
|
* ID doesn't matter.
|
|
31
33
|
*
|
|
32
34
|
* ```sh
|
|
@@ -44,7 +46,7 @@ class Contacts extends pulumi.CustomResource {
|
|
|
44
46
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
47
|
*/
|
|
46
48
|
static get(name, id, state, opts) {
|
|
47
|
-
return new Contacts(name, state,
|
|
49
|
+
return new Contacts(name, state, { ...opts, id: id });
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Returns true if the given object is an instance of Contacts. This is designed to work even
|
|
@@ -61,24 +63,24 @@ class Contacts extends pulumi.CustomResource {
|
|
|
61
63
|
opts = opts || {};
|
|
62
64
|
if (opts.id) {
|
|
63
65
|
const state = argsOrState;
|
|
64
|
-
resourceInputs["account"] = state
|
|
65
|
-
resourceInputs["security"] = state
|
|
66
|
-
resourceInputs["support"] = state
|
|
66
|
+
resourceInputs["account"] = state?.account;
|
|
67
|
+
resourceInputs["security"] = state?.security;
|
|
68
|
+
resourceInputs["support"] = state?.support;
|
|
67
69
|
}
|
|
68
70
|
else {
|
|
69
71
|
const args = argsOrState;
|
|
70
|
-
if (
|
|
72
|
+
if (args?.account === undefined && !opts.urn) {
|
|
71
73
|
throw new Error("Missing required property 'account'");
|
|
72
74
|
}
|
|
73
|
-
if (
|
|
75
|
+
if (args?.security === undefined && !opts.urn) {
|
|
74
76
|
throw new Error("Missing required property 'security'");
|
|
75
77
|
}
|
|
76
|
-
if (
|
|
78
|
+
if (args?.support === undefined && !opts.urn) {
|
|
77
79
|
throw new Error("Missing required property 'support'");
|
|
78
80
|
}
|
|
79
|
-
resourceInputs["account"] = args
|
|
80
|
-
resourceInputs["security"] = args
|
|
81
|
-
resourceInputs["support"] = args
|
|
81
|
+
resourceInputs["account"] = args?.account;
|
|
82
|
+
resourceInputs["security"] = args?.security;
|
|
83
|
+
resourceInputs["support"] = args?.support;
|
|
82
84
|
}
|
|
83
85
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
86
|
super(Contacts.__pulumiType, name, resourceInputs, opts);
|
package/contacts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../contacts.ts"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CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA1EL,4BA2EC;AA7DG,gBAAgB;AACO,qBAAY,GAAG,mCAAmC,CAAC"}
|
package/deviceAuthorization.d.ts
CHANGED
package/deviceAuthorization.js
CHANGED
|
@@ -25,6 +25,8 @@ const utilities = require("./utilities");
|
|
|
25
25
|
*
|
|
26
26
|
* ## Import
|
|
27
27
|
*
|
|
28
|
+
* The `pulumi import` command can be used, for example:
|
|
29
|
+
*
|
|
28
30
|
* Device authorization can be imported using the node ID (preferred), e.g.,
|
|
29
31
|
*
|
|
30
32
|
* ```sh
|
|
@@ -48,7 +50,7 @@ class DeviceAuthorization extends pulumi.CustomResource {
|
|
|
48
50
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
51
|
*/
|
|
50
52
|
static get(name, id, state, opts) {
|
|
51
|
-
return new DeviceAuthorization(name, state,
|
|
53
|
+
return new DeviceAuthorization(name, state, { ...opts, id: id });
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Returns true if the given object is an instance of DeviceAuthorization. This is designed to work even
|
|
@@ -65,19 +67,19 @@ class DeviceAuthorization extends pulumi.CustomResource {
|
|
|
65
67
|
opts = opts || {};
|
|
66
68
|
if (opts.id) {
|
|
67
69
|
const state = argsOrState;
|
|
68
|
-
resourceInputs["authorized"] = state
|
|
69
|
-
resourceInputs["deviceId"] = state
|
|
70
|
+
resourceInputs["authorized"] = state?.authorized;
|
|
71
|
+
resourceInputs["deviceId"] = state?.deviceId;
|
|
70
72
|
}
|
|
71
73
|
else {
|
|
72
74
|
const args = argsOrState;
|
|
73
|
-
if (
|
|
75
|
+
if (args?.authorized === undefined && !opts.urn) {
|
|
74
76
|
throw new Error("Missing required property 'authorized'");
|
|
75
77
|
}
|
|
76
|
-
if (
|
|
78
|
+
if (args?.deviceId === undefined && !opts.urn) {
|
|
77
79
|
throw new Error("Missing required property 'deviceId'");
|
|
78
80
|
}
|
|
79
|
-
resourceInputs["authorized"] = args
|
|
80
|
-
resourceInputs["deviceId"] = args
|
|
81
|
+
resourceInputs["authorized"] = args?.authorized;
|
|
82
|
+
resourceInputs["deviceId"] = args?.deviceId;
|
|
81
83
|
}
|
|
82
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
85
|
super(DeviceAuthorization.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceAuthorization.js","sourceRoot":"","sources":["../deviceAuthorization.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deviceAuthorization.js","sourceRoot":"","sources":["../deviceAuthorization.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC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AC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAjEL,kDAkEC;AApDG,gBAAgB;AACO,gCAAY,GAAG,yDAAyD,CAAC"}
|
package/deviceKey.d.ts
CHANGED
package/deviceKey.js
CHANGED
|
@@ -25,6 +25,8 @@ const utilities = require("./utilities");
|
|
|
25
25
|
*
|
|
26
26
|
* ## Import
|
|
27
27
|
*
|
|
28
|
+
* The `pulumi import` command can be used, for example:
|
|
29
|
+
*
|
|
28
30
|
* Device key can be imported using the node ID (preferred), e.g.,
|
|
29
31
|
*
|
|
30
32
|
* ```sh
|
|
@@ -48,7 +50,7 @@ class DeviceKey extends pulumi.CustomResource {
|
|
|
48
50
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
51
|
*/
|
|
50
52
|
static get(name, id, state, opts) {
|
|
51
|
-
return new DeviceKey(name, state,
|
|
53
|
+
return new DeviceKey(name, state, { ...opts, id: id });
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Returns true if the given object is an instance of DeviceKey. This is designed to work even
|
|
@@ -65,16 +67,16 @@ class DeviceKey extends pulumi.CustomResource {
|
|
|
65
67
|
opts = opts || {};
|
|
66
68
|
if (opts.id) {
|
|
67
69
|
const state = argsOrState;
|
|
68
|
-
resourceInputs["deviceId"] = state
|
|
69
|
-
resourceInputs["keyExpiryDisabled"] = state
|
|
70
|
+
resourceInputs["deviceId"] = state?.deviceId;
|
|
71
|
+
resourceInputs["keyExpiryDisabled"] = state?.keyExpiryDisabled;
|
|
70
72
|
}
|
|
71
73
|
else {
|
|
72
74
|
const args = argsOrState;
|
|
73
|
-
if (
|
|
75
|
+
if (args?.deviceId === undefined && !opts.urn) {
|
|
74
76
|
throw new Error("Missing required property 'deviceId'");
|
|
75
77
|
}
|
|
76
|
-
resourceInputs["deviceId"] = args
|
|
77
|
-
resourceInputs["keyExpiryDisabled"] = args
|
|
78
|
+
resourceInputs["deviceId"] = args?.deviceId;
|
|
79
|
+
resourceInputs["keyExpiryDisabled"] = args?.keyExpiryDisabled;
|
|
78
80
|
}
|
|
79
81
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
82
|
super(DeviceKey.__pulumiType, name, resourceInputs, opts);
|
package/deviceKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceKey.js","sourceRoot":"","sources":["../deviceKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deviceKey.js","sourceRoot":"","sources":["../deviceKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;SAClE;aAAM;YACH,MAAM,IAAI,GAAG,WAAwC,CAAC;YACtD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA9DL,8BA+DC;AAjDG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
|
package/deviceSubnetRoutes.d.ts
CHANGED
package/deviceSubnetRoutes.js
CHANGED
|
@@ -34,6 +34,8 @@ const utilities = require("./utilities");
|
|
|
34
34
|
*
|
|
35
35
|
* ## Import
|
|
36
36
|
*
|
|
37
|
+
* The `pulumi import` command can be used, for example:
|
|
38
|
+
*
|
|
37
39
|
* Device subnet rules can be imported using the node ID (preferred), e.g.,
|
|
38
40
|
*
|
|
39
41
|
* ```sh
|
|
@@ -57,7 +59,7 @@ class DeviceSubnetRoutes extends pulumi.CustomResource {
|
|
|
57
59
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
60
|
*/
|
|
59
61
|
static get(name, id, state, opts) {
|
|
60
|
-
return new DeviceSubnetRoutes(name, state,
|
|
62
|
+
return new DeviceSubnetRoutes(name, state, { ...opts, id: id });
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
63
65
|
* Returns true if the given object is an instance of DeviceSubnetRoutes. This is designed to work even
|
|
@@ -74,19 +76,19 @@ class DeviceSubnetRoutes extends pulumi.CustomResource {
|
|
|
74
76
|
opts = opts || {};
|
|
75
77
|
if (opts.id) {
|
|
76
78
|
const state = argsOrState;
|
|
77
|
-
resourceInputs["deviceId"] = state
|
|
78
|
-
resourceInputs["routes"] = state
|
|
79
|
+
resourceInputs["deviceId"] = state?.deviceId;
|
|
80
|
+
resourceInputs["routes"] = state?.routes;
|
|
79
81
|
}
|
|
80
82
|
else {
|
|
81
83
|
const args = argsOrState;
|
|
82
|
-
if (
|
|
84
|
+
if (args?.deviceId === undefined && !opts.urn) {
|
|
83
85
|
throw new Error("Missing required property 'deviceId'");
|
|
84
86
|
}
|
|
85
|
-
if (
|
|
87
|
+
if (args?.routes === undefined && !opts.urn) {
|
|
86
88
|
throw new Error("Missing required property 'routes'");
|
|
87
89
|
}
|
|
88
|
-
resourceInputs["deviceId"] = args
|
|
89
|
-
resourceInputs["routes"] = args
|
|
90
|
+
resourceInputs["deviceId"] = args?.deviceId;
|
|
91
|
+
resourceInputs["routes"] = args?.routes;
|
|
90
92
|
}
|
|
91
93
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
92
94
|
super(DeviceSubnetRoutes.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceSubnetRoutes.js","sourceRoot":"","sources":["../deviceSubnetRoutes.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC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AAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAjEL,gDAkEC;AApDG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
package/deviceTags.d.ts
CHANGED
package/deviceTags.js
CHANGED
|
@@ -25,6 +25,8 @@ const utilities = require("./utilities");
|
|
|
25
25
|
*
|
|
26
26
|
* ## Import
|
|
27
27
|
*
|
|
28
|
+
* The `pulumi import` command can be used, for example:
|
|
29
|
+
*
|
|
28
30
|
* Device tags can be imported using the node ID (preferred), e.g.,
|
|
29
31
|
*
|
|
30
32
|
* ```sh
|
|
@@ -48,7 +50,7 @@ class DeviceTags extends pulumi.CustomResource {
|
|
|
48
50
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
51
|
*/
|
|
50
52
|
static get(name, id, state, opts) {
|
|
51
|
-
return new DeviceTags(name, state,
|
|
53
|
+
return new DeviceTags(name, state, { ...opts, id: id });
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Returns true if the given object is an instance of DeviceTags. This is designed to work even
|
|
@@ -65,19 +67,19 @@ class DeviceTags extends pulumi.CustomResource {
|
|
|
65
67
|
opts = opts || {};
|
|
66
68
|
if (opts.id) {
|
|
67
69
|
const state = argsOrState;
|
|
68
|
-
resourceInputs["deviceId"] = state
|
|
69
|
-
resourceInputs["tags"] = state
|
|
70
|
+
resourceInputs["deviceId"] = state?.deviceId;
|
|
71
|
+
resourceInputs["tags"] = state?.tags;
|
|
70
72
|
}
|
|
71
73
|
else {
|
|
72
74
|
const args = argsOrState;
|
|
73
|
-
if (
|
|
75
|
+
if (args?.deviceId === undefined && !opts.urn) {
|
|
74
76
|
throw new Error("Missing required property 'deviceId'");
|
|
75
77
|
}
|
|
76
|
-
if (
|
|
78
|
+
if (args?.tags === undefined && !opts.urn) {
|
|
77
79
|
throw new Error("Missing required property 'tags'");
|
|
78
80
|
}
|
|
79
|
-
resourceInputs["deviceId"] = args
|
|
80
|
-
resourceInputs["tags"] = args
|
|
81
|
+
resourceInputs["deviceId"] = args?.deviceId;
|
|
82
|
+
resourceInputs["tags"] = args?.tags;
|
|
81
83
|
}
|
|
82
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
85
|
super(DeviceTags.__pulumiType, name, resourceInputs, opts);
|
package/deviceTags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceTags.js","sourceRoot":"","sources":["../deviceTags.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"deviceTags.js","sourceRoot":"","sources":["../deviceTags.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC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AAuC,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as tailscale from "@pulumi/tailscale";
|
|
10
|
+
*
|
|
11
|
+
* const sampleConfiguration = new tailscale.DnsConfiguration("sample_configuration", {
|
|
12
|
+
* nameservers: [
|
|
13
|
+
* {
|
|
14
|
+
* address: "8.8.8.8",
|
|
15
|
+
* },
|
|
16
|
+
* {
|
|
17
|
+
* address: "1.1.1.1",
|
|
18
|
+
* useWithExitNode: true,
|
|
19
|
+
* },
|
|
20
|
+
* ],
|
|
21
|
+
* splitDns: [
|
|
22
|
+
* {
|
|
23
|
+
* domain: "foo.example.com",
|
|
24
|
+
* nameservers: [
|
|
25
|
+
* {
|
|
26
|
+
* address: "1.1.1.2",
|
|
27
|
+
* useWithExitNode: true,
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* address: "1.1.1.3",
|
|
31
|
+
* },
|
|
32
|
+
* ],
|
|
33
|
+
* },
|
|
34
|
+
* {
|
|
35
|
+
* domain: "bar.example.com",
|
|
36
|
+
* nameservers: [{
|
|
37
|
+
* address: "8.8.8.2",
|
|
38
|
+
* useWithExitNode: true,
|
|
39
|
+
* }],
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* searchPaths: [
|
|
43
|
+
* "example.com",
|
|
44
|
+
* "anotherexample.com",
|
|
45
|
+
* ],
|
|
46
|
+
* overrideLocalDns: true,
|
|
47
|
+
* magicDns: true,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Import
|
|
52
|
+
*
|
|
53
|
+
* ID doesn't matter.
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import tailscale:index/dnsConfiguration:DnsConfiguration sample_configuration dns_configuration
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare class DnsConfiguration extends pulumi.CustomResource {
|
|
60
|
+
/**
|
|
61
|
+
* Get an existing DnsConfiguration resource's state with the given name, ID, and optional extra
|
|
62
|
+
* properties used to qualify the lookup.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resulting resource.
|
|
65
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
66
|
+
* @param state Any extra arguments used during the lookup.
|
|
67
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
68
|
+
*/
|
|
69
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DnsConfigurationState, opts?: pulumi.CustomResourceOptions): DnsConfiguration;
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if the given object is an instance of DnsConfiguration. This is designed to work even
|
|
72
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
73
|
+
*/
|
|
74
|
+
static isInstance(obj: any): obj is DnsConfiguration;
|
|
75
|
+
/**
|
|
76
|
+
* Whether or not to enable MagicDNS. Defaults to true.
|
|
77
|
+
*/
|
|
78
|
+
readonly magicDns: pulumi.Output<boolean | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Set the nameservers used by devices on your network to resolve DNS queries. `overrideLocalDns` must also be true to prefer these nameservers over local DNS configuration.
|
|
81
|
+
*/
|
|
82
|
+
readonly nameservers: pulumi.Output<outputs.DnsConfigurationNameserver[] | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* When enabled, use the configured DNS servers in `nameservers` to resolve names outside the tailnet. When disabled, devices will prefer their local DNS configuration. Defaults to false.
|
|
85
|
+
*/
|
|
86
|
+
readonly overrideLocalDns: pulumi.Output<boolean | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Additional search domains. When MagicDNS is on, the tailnet domain is automatically included as the first search domain.
|
|
89
|
+
*/
|
|
90
|
+
readonly searchPaths: pulumi.Output<string[] | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Set the nameservers used by devices on your network to resolve DNS queries on specific domains (requires Tailscale v1.8 or later). Configuration does not depend on `overrideLocalDns`.
|
|
93
|
+
*/
|
|
94
|
+
readonly splitDns: pulumi.Output<outputs.DnsConfigurationSplitDn[] | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Create a DnsConfiguration resource with the given unique name, arguments, and options.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resource.
|
|
99
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
100
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
101
|
+
*/
|
|
102
|
+
constructor(name: string, args?: DnsConfigurationArgs, opts?: pulumi.CustomResourceOptions);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Input properties used for looking up and filtering DnsConfiguration resources.
|
|
106
|
+
*/
|
|
107
|
+
export interface DnsConfigurationState {
|
|
108
|
+
/**
|
|
109
|
+
* Whether or not to enable MagicDNS. Defaults to true.
|
|
110
|
+
*/
|
|
111
|
+
magicDns?: pulumi.Input<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* Set the nameservers used by devices on your network to resolve DNS queries. `overrideLocalDns` must also be true to prefer these nameservers over local DNS configuration.
|
|
114
|
+
*/
|
|
115
|
+
nameservers?: pulumi.Input<pulumi.Input<inputs.DnsConfigurationNameserver>[]>;
|
|
116
|
+
/**
|
|
117
|
+
* When enabled, use the configured DNS servers in `nameservers` to resolve names outside the tailnet. When disabled, devices will prefer their local DNS configuration. Defaults to false.
|
|
118
|
+
*/
|
|
119
|
+
overrideLocalDns?: pulumi.Input<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Additional search domains. When MagicDNS is on, the tailnet domain is automatically included as the first search domain.
|
|
122
|
+
*/
|
|
123
|
+
searchPaths?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Set the nameservers used by devices on your network to resolve DNS queries on specific domains (requires Tailscale v1.8 or later). Configuration does not depend on `overrideLocalDns`.
|
|
126
|
+
*/
|
|
127
|
+
splitDns?: pulumi.Input<pulumi.Input<inputs.DnsConfigurationSplitDn>[]>;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The set of arguments for constructing a DnsConfiguration resource.
|
|
131
|
+
*/
|
|
132
|
+
export interface DnsConfigurationArgs {
|
|
133
|
+
/**
|
|
134
|
+
* Whether or not to enable MagicDNS. Defaults to true.
|
|
135
|
+
*/
|
|
136
|
+
magicDns?: pulumi.Input<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Set the nameservers used by devices on your network to resolve DNS queries. `overrideLocalDns` must also be true to prefer these nameservers over local DNS configuration.
|
|
139
|
+
*/
|
|
140
|
+
nameservers?: pulumi.Input<pulumi.Input<inputs.DnsConfigurationNameserver>[]>;
|
|
141
|
+
/**
|
|
142
|
+
* When enabled, use the configured DNS servers in `nameservers` to resolve names outside the tailnet. When disabled, devices will prefer their local DNS configuration. Defaults to false.
|
|
143
|
+
*/
|
|
144
|
+
overrideLocalDns?: pulumi.Input<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* Additional search domains. When MagicDNS is on, the tailnet domain is automatically included as the first search domain.
|
|
147
|
+
*/
|
|
148
|
+
searchPaths?: pulumi.Input<pulumi.Input<string>[]>;
|
|
149
|
+
/**
|
|
150
|
+
* Set the nameservers used by devices on your network to resolve DNS queries on specific domains (requires Tailscale v1.8 or later). Configuration does not depend on `overrideLocalDns`.
|
|
151
|
+
*/
|
|
152
|
+
splitDns?: pulumi.Input<pulumi.Input<inputs.DnsConfigurationSplitDn>[]>;
|
|
153
|
+
}
|