import * as pulumi from "@pulumi/pulumi"; /** * Manages a Network Security Perimeter Access 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 exampleNetworkSecurityPerimeter = new azure.network.NetworkSecurityPerimeter("example", { * name: "example", * resourceGroupName: example.name, * location: "West Europe", * }); * const exampleNetworkSecurityPerimeterProfile = new azure.network.NetworkSecurityPerimeterProfile("example", { * name: "example", * networkSecurityPerimeterId: exampleNetworkSecurityPerimeter.id, * }); * const exampleNetworkSecurityPerimeterAccessRule = new azure.network.NetworkSecurityPerimeterAccessRule("example", { * name: "example", * networkSecurityPerimeterProfileId: exampleNetworkSecurityPerimeterProfile.id, * direction: "Inbound", * addressPrefixes: ["8.8.8.8/32"], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Network Security Perimeter Access Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/networkSecurityPerimeterAccessRule:NetworkSecurityPerimeterAccessRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/networkSecurityPerimeters/example-nsp/profiles/defaultProfile/accessRules/example-accessrule * ``` */ export declare class NetworkSecurityPerimeterAccessRule extends pulumi.CustomResource { /** * Get an existing NetworkSecurityPerimeterAccessRule 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?: NetworkSecurityPerimeterAccessRuleState, opts?: pulumi.CustomResourceOptions): NetworkSecurityPerimeterAccessRule; /** * Returns true if the given object is an instance of NetworkSecurityPerimeterAccessRule. 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 NetworkSecurityPerimeterAccessRule; /** * Specifies a list of CIDRs. Can only be specified when direction is set to `Inbound`. Conflicts with `fqdns`, `serviceTags`, `subscriptionIds`. */ readonly addressPrefixes: pulumi.Output; /** * The direction of the rule. Possible values are `Inbound` and `Outbound`. Changing this forces a new Network Security Perimeter Access Rule to be created. */ readonly direction: pulumi.Output; /** * Specifies a list of fully qualified domain names. Can only be specified when direction is set to `Outbound`. Conflicts with `addressPrefixes`, `serviceTags`, and `subscriptionIds`. */ readonly fqdns: pulumi.Output; /** * The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created. */ readonly name: pulumi.Output; /** * The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created. */ readonly networkSecurityPerimeterProfileId: pulumi.Output; /** * Specifies a list of service tags. Can only be specified when direction is set to `Inbound`. Conflicts with `addressPrefixes`, `fqdns`, and `subscriptionIds`. */ readonly serviceTags: pulumi.Output; /** * Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to `Inbound`. Conflicts with `addressPrefixes`, `fqdns`, and `serviceTags`. */ readonly subscriptionIds: pulumi.Output; /** * Create a NetworkSecurityPerimeterAccessRule 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: NetworkSecurityPerimeterAccessRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkSecurityPerimeterAccessRule resources. */ export interface NetworkSecurityPerimeterAccessRuleState { /** * Specifies a list of CIDRs. Can only be specified when direction is set to `Inbound`. Conflicts with `fqdns`, `serviceTags`, `subscriptionIds`. */ addressPrefixes?: pulumi.Input[]>; /** * The direction of the rule. Possible values are `Inbound` and `Outbound`. Changing this forces a new Network Security Perimeter Access Rule to be created. */ direction?: pulumi.Input; /** * Specifies a list of fully qualified domain names. Can only be specified when direction is set to `Outbound`. Conflicts with `addressPrefixes`, `serviceTags`, and `subscriptionIds`. */ fqdns?: pulumi.Input[]>; /** * The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created. */ name?: pulumi.Input; /** * The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created. */ networkSecurityPerimeterProfileId?: pulumi.Input; /** * Specifies a list of service tags. Can only be specified when direction is set to `Inbound`. Conflicts with `addressPrefixes`, `fqdns`, and `subscriptionIds`. */ serviceTags?: pulumi.Input[]>; /** * Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to `Inbound`. Conflicts with `addressPrefixes`, `fqdns`, and `serviceTags`. */ subscriptionIds?: pulumi.Input[]>; } /** * The set of arguments for constructing a NetworkSecurityPerimeterAccessRule resource. */ export interface NetworkSecurityPerimeterAccessRuleArgs { /** * Specifies a list of CIDRs. Can only be specified when direction is set to `Inbound`. Conflicts with `fqdns`, `serviceTags`, `subscriptionIds`. */ addressPrefixes?: pulumi.Input[]>; /** * The direction of the rule. Possible values are `Inbound` and `Outbound`. Changing this forces a new Network Security Perimeter Access Rule to be created. */ direction: pulumi.Input; /** * Specifies a list of fully qualified domain names. Can only be specified when direction is set to `Outbound`. Conflicts with `addressPrefixes`, `serviceTags`, and `subscriptionIds`. */ fqdns?: pulumi.Input[]>; /** * The name which should be used for this Network Security Perimeter Access Rule. Changing this forces a new Network Security Perimeter Access Rule to be created. */ name?: pulumi.Input; /** * The ID of the Network Security Perimeter Profile within which this Access Rule is created. Changing this forces a new Network Security Perimeter Access Rule to be created. */ networkSecurityPerimeterProfileId: pulumi.Input; /** * Specifies a list of service tags. Can only be specified when direction is set to `Inbound`. Conflicts with `addressPrefixes`, `fqdns`, and `subscriptionIds`. */ serviceTags?: pulumi.Input[]>; /** * Specifies a list of subscription IDs this rule applies to. Can only be specified when direction is set to `Inbound`. Conflicts with `addressPrefixes`, `fqdns`, and `serviceTags`. */ subscriptionIds?: pulumi.Input[]>; }