import * as pulumi from "@pulumi/pulumi"; /** * Manages a Mongo Cluster 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 exampleMongoCluster = new azure.mongocluster.MongoCluster("example", { * name: "example-mongocluster", * resourceGroupName: example.name, * location: example.location, * administratorUsername: "adminuser", * administratorPassword: "P@ssw0rd1234!", * shardCount: 1, * computeTier: "M30", * highAvailabilityMode: "Disabled", * storageSizeInGb: 32, * version: "7.0", * }); * const exampleFirewallRule = new azure.mongocluster.FirewallRule("example", { * name: "example-firewall-rule", * mongoClusterId: exampleMongoCluster.id, * startIpAddress: "10.0.0.1", * endIpAddress: "10.0.0.255", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DocumentDB` - 2025-09-01 * * ## Import * * Mongo Cluster Firewall Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:mongocluster/firewallRule:FirewallRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/mongoClusters/cluster1/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 end IP address of the Mongo Cluster Firewall Rule. */ readonly endIpAddress: pulumi.Output; /** * The ID of the Mongo Cluster. Changing this forces a new resource to be created. */ readonly mongoClusterId: pulumi.Output; /** * The name of the Mongo Cluster Firewall Rule. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The start IP address of the Mongo Cluster Firewall Rule. */ readonly startIpAddress: 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 end IP address of the Mongo Cluster Firewall Rule. */ endIpAddress?: pulumi.Input; /** * The ID of the Mongo Cluster. Changing this forces a new resource to be created. */ mongoClusterId?: pulumi.Input; /** * The name of the Mongo Cluster Firewall Rule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The start IP address of the Mongo Cluster Firewall Rule. */ startIpAddress?: pulumi.Input; } /** * The set of arguments for constructing a FirewallRule resource. */ export interface FirewallRuleArgs { /** * The end IP address of the Mongo Cluster Firewall Rule. */ endIpAddress: pulumi.Input; /** * The ID of the Mongo Cluster. Changing this forces a new resource to be created. */ mongoClusterId: pulumi.Input; /** * The name of the Mongo Cluster Firewall Rule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The start IP address of the Mongo Cluster Firewall Rule. */ startIpAddress: pulumi.Input; }