import * as pulumi from "@pulumi/pulumi"; /** * Allows you to manage an Azure SQL Outbound Firewall Rule. * * ## 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 exampleServer = new azure.mssql.Server("example", { * name: "mysqlserver", * resourceGroupName: example.name, * location: example.location, * version: "12.0", * administratorLogin: "4dm1n157r470r", * administratorLoginPassword: "4-v3ry-53cr37-p455w0rd", * outboundNetworkRestrictionEnabled: true, * }); * const exampleOutboundFirewallRule = new azure.mssql.OutboundFirewallRule("example", { * name: "sqlexamplefdqn.database.windows.net", * serverId: exampleServer.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Sql` - 2023-08-01-preview * * ## Import * * SQL Outbound Firewall Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:mssql/outboundFirewallRule:OutboundFirewallRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/outboundFirewallRules/fqdn1 * ``` */ export declare class OutboundFirewallRule extends pulumi.CustomResource { /** * Get an existing OutboundFirewallRule 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?: OutboundFirewallRuleState, opts?: pulumi.CustomResourceOptions): OutboundFirewallRule; /** * Returns true if the given object is an instance of OutboundFirewallRule. 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 OutboundFirewallRule; /** * The name of the outbound firewall rule. This should be a FQDN. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The resource ID of the SQL Server on which to create the Outbound Firewall Rule. Changing this forces a new resource to be created. */ readonly serverId: pulumi.Output; /** * Create a OutboundFirewallRule 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: OutboundFirewallRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OutboundFirewallRule resources. */ export interface OutboundFirewallRuleState { /** * The name of the outbound firewall rule. This should be a FQDN. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The resource ID of the SQL Server on which to create the Outbound Firewall Rule. Changing this forces a new resource to be created. */ serverId?: pulumi.Input; } /** * The set of arguments for constructing a OutboundFirewallRule resource. */ export interface OutboundFirewallRuleArgs { /** * The name of the outbound firewall rule. This should be a FQDN. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The resource ID of the SQL Server on which to create the Outbound Firewall Rule. Changing this forces a new resource to be created. */ serverId: pulumi.Input; }