import * as pulumi from "@pulumi/pulumi"; /** * The deviceTags resource is used to apply tags to Tailscale devices. See https://tailscale.com/kb/1068/acl-tags/ for more details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tailscale from "@pulumi/tailscale"; * * const sampleDevice = tailscale.getDevice({ * name: "device.example.com", * }); * const sampleTags = new tailscale.DeviceTags("sample_tags", { * deviceId: sampleDevice.then(sampleDevice => sampleDevice.nodeId), * tags: ["room:bedroom"], * }); * ``` * * ## Import * * Device tags can be imported using the node ID (preferred), e.g., * * ```sh * $ pulumi import tailscale:index/deviceTags:DeviceTags sample nodeidCNTRL * ``` * * Device tags can be imported using the legacy ID, e.g., * * ```sh * $ pulumi import tailscale:index/deviceTags:DeviceTags sample 123456789 * ``` */ export declare class DeviceTags extends pulumi.CustomResource { /** * Get an existing DeviceTags 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, state?: DeviceTagsState, opts?: pulumi.CustomResourceOptions): DeviceTags; /** * Returns true if the given object is an instance of DeviceTags. 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 DeviceTags; /** * The device to set tags for */ readonly deviceId: pulumi.Output; /** * The tags to apply to the device */ readonly tags: pulumi.Output; /** * Create a DeviceTags 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: DeviceTagsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DeviceTags resources. */ export interface DeviceTagsState { /** * The device to set tags for */ deviceId?: pulumi.Input; /** * The tags to apply to the device */ tags?: pulumi.Input[]>; } /** * The set of arguments for constructing a DeviceTags resource. */ export interface DeviceTagsArgs { /** * The device to set tags for */ deviceId: pulumi.Input; /** * The tags to apply to the device */ tags: pulumi.Input[]>; }