// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; export class NetworkZoneRecord extends pulumi.CustomResource { /** * Get an existing NetworkZoneRecord 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. */ public static get(name: string, id: pulumi.Input, state?: NetworkZoneRecordState, opts?: pulumi.CustomResourceOptions): NetworkZoneRecord { return new NetworkZoneRecord(name, state, { ...opts, id: id }); } /** @internal */ public static readonly __pulumiType = 'incus:index/networkZoneRecord:NetworkZoneRecord'; /** * Returns true if the given object is an instance of NetworkZoneRecord. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ public static isInstance(obj: any): obj is NetworkZoneRecord { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === NetworkZoneRecord.__pulumiType; } /** * *Optional* - Map of key/value pairs of * [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options). */ public readonly config!: pulumi.Output<{[key: string]: string}>; /** * *Optional* - Description of the network zone. */ public readonly description!: pulumi.Output; /** * *Optional* - Entry in network zone record - see below. */ public readonly entries!: pulumi.Output; /** * **Required** - Name of the network zone record. */ public readonly name!: pulumi.Output; /** * *Optional* - Name of the project where the network zone record will be created. */ public readonly project!: pulumi.Output; /** * *Optional* - The remote in which the resource will be created. If * not provided, the provider's default remote will be used. */ public readonly remote!: pulumi.Output; /** * **Required** - Name of the zone to add the entries of this record. */ public readonly zone!: pulumi.Output; /** * Create a NetworkZoneRecord 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: NetworkZoneRecordArgs, opts?: pulumi.CustomResourceOptions) constructor(name: string, argsOrState?: NetworkZoneRecordArgs | NetworkZoneRecordState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState as NetworkZoneRecordState | undefined; resourceInputs["config"] = state ? state.config : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["entries"] = state ? state.entries : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["project"] = state ? state.project : undefined; resourceInputs["remote"] = state ? state.remote : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { const args = argsOrState as NetworkZoneRecordArgs | undefined; if ((!args || args.zone === undefined) && !opts.urn) { throw new Error("Missing required property 'zone'"); } resourceInputs["config"] = args ? args.config : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["entries"] = args ? args.entries : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["project"] = (args ? args.project : undefined) ?? "default"; resourceInputs["remote"] = args ? args.remote : undefined; resourceInputs["zone"] = args ? args.zone : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(NetworkZoneRecord.__pulumiType, name, resourceInputs, opts); } } /** * Input properties used for looking up and filtering NetworkZoneRecord resources. */ export interface NetworkZoneRecordState { /** * *Optional* - Map of key/value pairs of * [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options). */ config?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * *Optional* - Description of the network zone. */ description?: pulumi.Input; /** * *Optional* - Entry in network zone record - see below. */ entries?: pulumi.Input[]>; /** * **Required** - Name of the network zone record. */ name?: pulumi.Input; /** * *Optional* - Name of the project where the network zone record will be created. */ project?: pulumi.Input; /** * *Optional* - The remote in which the resource will be created. If * not provided, the provider's default remote will be used. */ remote?: pulumi.Input; /** * **Required** - Name of the zone to add the entries of this record. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a NetworkZoneRecord resource. */ export interface NetworkZoneRecordArgs { /** * *Optional* - Map of key/value pairs of * [network zoneConfig settings](https://linuxcontainers.org/incus/docs/main/howto/network_zones/#configuration-options). */ config?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * *Optional* - Description of the network zone. */ description?: pulumi.Input; /** * *Optional* - Entry in network zone record - see below. */ entries?: pulumi.Input[]>; /** * **Required** - Name of the network zone record. */ name?: pulumi.Input; /** * *Optional* - Name of the project where the network zone record will be created. */ project?: pulumi.Input; /** * *Optional* - The remote in which the resource will be created. If * not provided, the provider's default remote will be used. */ remote?: pulumi.Input; /** * **Required** - Name of the zone to add the entries of this record. */ zone: pulumi.Input; }