import * as pulumi from "@pulumi/pulumi"; /** * Manages a Private DNS Resolver Dns Forwarding Ruleset. * * ## 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 exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-vnet", * resourceGroupName: example.name, * location: example.location, * addressSpaces: ["10.0.0.0/16"], * }); * const exampleSubnet = new azure.network.Subnet("example", { * name: "outbounddns", * resourceGroupName: example.name, * virtualNetworkName: exampleVirtualNetwork.name, * addressPrefixes: ["10.0.0.64/28"], * delegations: [{ * name: "Microsoft.Network.dnsResolvers", * serviceDelegation: { * actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"], * name: "Microsoft.Network/dnsResolvers", * }, * }], * }); * const exampleResolver = new azure.privatedns.Resolver("example", { * name: "example-resolver", * resourceGroupName: example.name, * location: example.location, * virtualNetworkId: exampleVirtualNetwork.id, * }); * const exampleResolverOutboundEndpoint = new azure.privatedns.ResolverOutboundEndpoint("example", { * name: "example-endpoint", * privateDnsResolverId: exampleResolver.id, * location: exampleResolver.location, * subnetId: exampleSubnet.id, * tags: { * key: "value", * }, * }); * const exampleResolverDnsForwardingRuleset = new azure.privatedns.ResolverDnsForwardingRuleset("example", { * name: "example-ruleset", * resourceGroupName: example.name, * location: example.location, * privateDnsResolverOutboundEndpointIds: [exampleResolverOutboundEndpoint.id], * tags: { * key: "value", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2022-07-01 * * ## Import * * Private DNS Resolver Dns Forwarding Ruleset can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:privatedns/resolverDnsForwardingRuleset:ResolverDnsForwardingRuleset example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/dnsForwardingRulesets/dnsForwardingRuleset1 * ``` */ export declare class ResolverDnsForwardingRuleset extends pulumi.CustomResource { /** * Get an existing ResolverDnsForwardingRuleset 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?: ResolverDnsForwardingRulesetState, opts?: pulumi.CustomResourceOptions): ResolverDnsForwardingRuleset; /** * Returns true if the given object is an instance of ResolverDnsForwardingRuleset. 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 ResolverDnsForwardingRuleset; /** * Specifies the Azure Region where the Private DNS Resolver Dns Forwarding Ruleset should exist. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ readonly location: pulumi.Output; /** * Specifies the name which should be used for this Private DNS Resolver Dns Forwarding Ruleset. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ readonly name: pulumi.Output; /** * The list of IDs of the Private DNS Resolver Outbound Endpoint that is linked to the Private DNS Resolver Dns Forwarding Ruleset. */ readonly privateDnsResolverOutboundEndpointIds: pulumi.Output; /** * Specifies the name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset should exist. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the Private DNS Resolver Dns Forwarding Ruleset. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a ResolverDnsForwardingRuleset 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: ResolverDnsForwardingRulesetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResolverDnsForwardingRuleset resources. */ export interface ResolverDnsForwardingRulesetState { /** * Specifies the Azure Region where the Private DNS Resolver Dns Forwarding Ruleset should exist. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Private DNS Resolver Dns Forwarding Ruleset. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ name?: pulumi.Input; /** * The list of IDs of the Private DNS Resolver Outbound Endpoint that is linked to the Private DNS Resolver Dns Forwarding Ruleset. */ privateDnsResolverOutboundEndpointIds?: pulumi.Input[]>; /** * Specifies the name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset should exist. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the Private DNS Resolver Dns Forwarding Ruleset. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a ResolverDnsForwardingRuleset resource. */ export interface ResolverDnsForwardingRulesetArgs { /** * Specifies the Azure Region where the Private DNS Resolver Dns Forwarding Ruleset should exist. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Private DNS Resolver Dns Forwarding Ruleset. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ name?: pulumi.Input; /** * The list of IDs of the Private DNS Resolver Outbound Endpoint that is linked to the Private DNS Resolver Dns Forwarding Ruleset. */ privateDnsResolverOutboundEndpointIds: pulumi.Input[]>; /** * Specifies the name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset should exist. Changing this forces a new Private DNS Resolver Dns Forwarding Ruleset to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the Private DNS Resolver Dns Forwarding Ruleset. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }