import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages the Network ACL for a Web Pubsub. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "terraform-webpubsub", * location: "east us", * }); * const exampleService = new azure.webpubsub.Service("example", { * name: "tfex-webpubsub", * location: example.location, * resourceGroupName: example.name, * sku: "Standard_S1", * capacity: 1, * }); * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", { * name: "example-vnet", * resourceGroupName: example.name, * location: example.location, * addressSpaces: ["10.5.0.0/16"], * }); * const exampleSubnet = new azure.network.Subnet("example", { * name: "example-subnet", * resourceGroupName: example.name, * virtualNetworkName: exampleVirtualNetwork.name, * addressPrefixes: ["10.5.2.0/24"], * enforcePrivateLinkEndpointNetworkPolicies: true, * }); * const exampleEndpoint = new azure.privatelink.Endpoint("example", { * name: "example-privateendpoint", * resourceGroupName: example.name, * location: example.location, * subnetId: exampleSubnet.id, * privateServiceConnection: { * name: "psc-sig-test", * isManualConnection: false, * privateConnectionResourceId: exampleService.id, * subresourceNames: ["webpubsub"], * }, * }); * const exampleNetworkAcl = new azure.webpubsub.NetworkAcl("example", { * webPubsubId: exampleService.id, * defaultAction: "Allow", * publicNetwork: { * deniedRequestTypes: ["ClientConnection"], * }, * privateEndpoints: [{ * id: exampleEndpoint.id, * deniedRequestTypes: [ * "RESTAPI", * "ClientConnection", * ], * }], * }, { * dependsOn: [exampleEndpoint], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.SignalRService` - 2024-03-01 * * ## Import * * Network ACLs for a Web Pubsub service can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:webpubsub/networkAcl:NetworkAcl example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/webpubsub1 * ``` */ export declare class NetworkAcl extends pulumi.CustomResource { /** * Get an existing NetworkAcl 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?: NetworkAclState, opts?: pulumi.CustomResourceOptions): NetworkAcl; /** * Returns true if the given object is an instance of NetworkAcl. 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 NetworkAcl; /** * The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`. Defaults to `Deny`. */ readonly defaultAction: pulumi.Output; /** * A `privateEndpoint` block as defined below. */ readonly privateEndpoints: pulumi.Output; /** * A `publicNetwork` block as defined below. */ readonly publicNetwork: pulumi.Output; /** * The ID of the Web Pubsub service. Changing this forces a new resource to be created. */ readonly webPubsubId: pulumi.Output; /** * Create a NetworkAcl 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: NetworkAclArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkAcl resources. */ export interface NetworkAclState { /** * The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`. Defaults to `Deny`. */ defaultAction?: pulumi.Input; /** * A `privateEndpoint` block as defined below. */ privateEndpoints?: pulumi.Input[]>; /** * A `publicNetwork` block as defined below. */ publicNetwork?: pulumi.Input; /** * The ID of the Web Pubsub service. Changing this forces a new resource to be created. */ webPubsubId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkAcl resource. */ export interface NetworkAclArgs { /** * The default action to control the network access when no other rule matches. Possible values are `Allow` and `Deny`. Defaults to `Deny`. */ defaultAction?: pulumi.Input; /** * A `privateEndpoint` block as defined below. */ privateEndpoints?: pulumi.Input[]>; /** * A `publicNetwork` block as defined below. */ publicNetwork: pulumi.Input; /** * The ID of the Web Pubsub service. Changing this forces a new resource to be created. */ webPubsubId: pulumi.Input; }