@pulumi/tailscale
Version:
A Pulumi package for creating and managing Tailscale cloud resources.
69 lines (68 loc) • 2.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The dnsPreferences resource allows you to configure DNS preferences for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as tailscale from "@pulumi/tailscale";
*
* const samplePreferences = new tailscale.DnsPreferences("sample_preferences", {magicDns: true});
* ```
*
* ## Import
*
* ID doesn't matter.
*
* ```sh
* $ pulumi import tailscale:index/dnsPreferences:DnsPreferences sample_preferences dns_preferences
* ```
*/
export declare class DnsPreferences extends pulumi.CustomResource {
/**
* Get an existing DnsPreferences resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DnsPreferencesState, opts?: pulumi.CustomResourceOptions): DnsPreferences;
/**
* Returns true if the given object is an instance of DnsPreferences. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is DnsPreferences;
/**
* Whether or not to enable magic DNS
*/
readonly magicDns: pulumi.Output<boolean>;
/**
* Create a DnsPreferences resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: DnsPreferencesArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DnsPreferences resources.
*/
export interface DnsPreferencesState {
/**
* Whether or not to enable magic DNS
*/
magicDns?: pulumi.Input<boolean>;
}
/**
* The set of arguments for constructing a DnsPreferences resource.
*/
export interface DnsPreferencesArgs {
/**
* Whether or not to enable magic DNS
*/
magicDns: pulumi.Input<boolean>;
}