import * as pulumi from "@pulumi/pulumi"; /** * Allows you to Manages a Synapse 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 exampleAccount = new azure.storage.Account("example", { * name: "examplestorageacc", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * accountKind: "StorageV2", * isHnsEnabled: true, * }); * const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", { * name: "example", * storageAccountId: exampleAccount.id, * }); * const exampleWorkspace = new azure.synapse.Workspace("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id, * sqlAdministratorLogin: "sqladminuser", * sqlAdministratorLoginPassword: "H@Sh1CoR3!", * identity: { * type: "SystemAssigned", * }, * }); * const exampleFirewallRule = new azure.synapse.FirewallRule("example", { * name: "AllowAll", * synapseWorkspaceId: exampleWorkspace.id, * startIpAddress: "0.0.0.0", * endIpAddress: "255.255.255.255", * }); * ``` * * ## Import * * Synapse Firewall Rule can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:synapse/firewallRule:FirewallRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.Synapse/workspaces/workspace1/firewallRules/rule1 * ``` */ export declare class FirewallRule extends pulumi.CustomResource { /** * Get an existing FirewallRule 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?: FirewallRuleState, opts?: pulumi.CustomResourceOptions): FirewallRule; /** * Returns true if the given object is an instance of FirewallRule. 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 FirewallRule; /** * The ending IP address to allow through the firewall for this rule. * * > **Note:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0`. * * > **Note:** The Azure feature `Allow access to Azure services` requires the `name` to be `AllowAllWindowsAzureIps`. */ readonly endIpAddress: pulumi.Output; /** * The Name of the firewall rule. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The starting IP address to allow through the firewall for this rule. */ readonly startIpAddress: pulumi.Output; /** * The ID of the Synapse Workspace on which to create the Firewall Rule. Changing this forces a new resource to be created. */ readonly synapseWorkspaceId: pulumi.Output; /** * Create a FirewallRule 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: FirewallRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FirewallRule resources. */ export interface FirewallRuleState { /** * The ending IP address to allow through the firewall for this rule. * * > **Note:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0`. * * > **Note:** The Azure feature `Allow access to Azure services` requires the `name` to be `AllowAllWindowsAzureIps`. */ endIpAddress?: pulumi.Input; /** * The Name of the firewall rule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The starting IP address to allow through the firewall for this rule. */ startIpAddress?: pulumi.Input; /** * The ID of the Synapse Workspace on which to create the Firewall Rule. Changing this forces a new resource to be created. */ synapseWorkspaceId?: pulumi.Input; } /** * The set of arguments for constructing a FirewallRule resource. */ export interface FirewallRuleArgs { /** * The ending IP address to allow through the firewall for this rule. * * > **Note:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0`. * * > **Note:** The Azure feature `Allow access to Azure services` requires the `name` to be `AllowAllWindowsAzureIps`. */ endIpAddress: pulumi.Input; /** * The Name of the firewall rule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The starting IP address to allow through the firewall for this rule. */ startIpAddress: pulumi.Input; /** * The ID of the Synapse Workspace on which to create the Firewall Rule. Changing this forces a new resource to be created. */ synapseWorkspaceId: pulumi.Input; }