import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Enables you to manage DNS zones within Azure DNS. These zones are hosted on Azure's name servers to which you can delegate the zone from the parent domain. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const example_public = new azure.dns.Zone("example-public", { * name: "mydomain.com", * resourceGroupName: example.name, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2018-05-01 * * ## Import * * DNS Zones can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:dns/zone:Zone zone1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/dnsZones/zone1 * ``` */ export declare class Zone extends pulumi.CustomResource { /** * Get an existing Zone 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?: ZoneState, opts?: pulumi.CustomResourceOptions): Zone; /** * Returns true if the given object is an instance of Zone. 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 Zone; /** * Maximum number of Records in the zone. */ readonly maxNumberOfRecordSets: pulumi.Output; /** * The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A list of values that make up the NS record for the zone. */ readonly nameServers: pulumi.Output; /** * The number of records already in the zone. */ readonly numberOfRecordSets: pulumi.Output; /** * Specifies the resource group where the resource exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `soaRecord` block as defined below. */ readonly soaRecord: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Zone 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: ZoneArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Zone resources. */ export interface ZoneState { /** * Maximum number of Records in the zone. */ maxNumberOfRecordSets?: pulumi.Input; /** * The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A list of values that make up the NS record for the zone. */ nameServers?: pulumi.Input[]>; /** * The number of records already in the zone. */ numberOfRecordSets?: pulumi.Input; /** * Specifies the resource group where the resource exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `soaRecord` block as defined below. */ soaRecord?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Zone resource. */ export interface ZoneArgs { /** * The name of the DNS Zone. Must be a valid domain name. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the resource group where the resource exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `soaRecord` block as defined below. */ soaRecord?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }