import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Enables you to manage DNS MX Records within Azure Private DNS. * * ## 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 exampleZone = new azure.privatedns.Zone("example", { * name: "contoso.com", * resourceGroupName: example.name, * }); * const exampleMxRecord = new azure.privatedns.MxRecord("example", { * name: "example", * resourceGroupName: example.name, * zoneName: exampleZone.name, * ttl: 300, * records: [ * { * preference: 10, * exchange: "mx1.contoso.com", * }, * { * preference: 20, * exchange: "backupmx.contoso.com", * }, * ], * tags: { * Environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2024-06-01 * * ## Import * * Private DNS MX Records can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:privatedns/mxRecord:MxRecord example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/privateDnsZones/contoso.com/MX/@ * ``` */ export declare class MxRecord extends pulumi.CustomResource { /** * Get an existing MxRecord 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?: MxRecordState, opts?: pulumi.CustomResourceOptions): MxRecord; /** * Returns true if the given object is an instance of MxRecord. 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 MxRecord; /** * The FQDN of the DNS MX Record. */ readonly fqdn: pulumi.Output; /** * The name of the DNS MX Record. Changing this forces a new resource to be created. Default to '@' for root zone entry. */ readonly name: pulumi.Output; /** * One or more `record` blocks as defined below. */ readonly records: pulumi.Output; /** * Specifies the resource group where the resource exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The Time To Live (TTL) of the DNS record in seconds. */ readonly ttl: pulumi.Output; /** * Specifies the Private DNS Zone where the resource exists. Changing this forces a new resource to be created. */ readonly zoneName: pulumi.Output; /** * Create a MxRecord 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: MxRecordArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MxRecord resources. */ export interface MxRecordState { /** * The FQDN of the DNS MX Record. */ fqdn?: pulumi.Input; /** * The name of the DNS MX Record. Changing this forces a new resource to be created. Default to '@' for root zone entry. */ name?: pulumi.Input; /** * One or more `record` blocks as defined below. */ records?: pulumi.Input[]>; /** * Specifies the resource group where the resource exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The Time To Live (TTL) of the DNS record in seconds. */ ttl?: pulumi.Input; /** * Specifies the Private DNS Zone where the resource exists. Changing this forces a new resource to be created. */ zoneName?: pulumi.Input; } /** * The set of arguments for constructing a MxRecord resource. */ export interface MxRecordArgs { /** * The name of the DNS MX Record. Changing this forces a new resource to be created. Default to '@' for root zone entry. */ name?: pulumi.Input; /** * One or more `record` blocks as defined below. */ records: pulumi.Input[]>; /** * Specifies the resource group where the resource exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The Time To Live (TTL) of the DNS record in seconds. */ ttl: pulumi.Input; /** * Specifies the Private DNS Zone where the resource exists. Changing this forces a new resource to be created. */ zoneName: pulumi.Input; }