Network Acl Args
data class NetworkAclArgs(val defaultAction: Output<String>? = null, val privateEndpoints: Output<List<NetworkAclPrivateEndpointArgs>>? = null, val publicNetwork: Output<NetworkAclPublicNetworkArgs>? = null, val webPubsubId: Output<String>? = null) : ConvertibleToJava<NetworkAclArgs>
Manages the Network ACL for a Web Pubsub.
Example Usage
resources:
example:
type: azure:core:ResourceGroup
properties:
name: terraform-webpubsub
location: east us
exampleService:
type: azure:webpubsub:Service
name: example
properties:
name: tfex-webpubsub
location: ${example.location}
resourceGroupName: ${example.name}
sku: Standard_S1
capacity: 1
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-vnet
resourceGroupName: ${example.name}
location: ${example.location}
addressSpaces:
- 10.5.0.0/16
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: example-subnet
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.5.2.0/24
enforcePrivateLinkEndpointNetworkPolicies: true
exampleEndpoint:
type: azure:privatelink:Endpoint
name: example
properties:
name: example-privateendpoint
resourceGroupName: ${example.name}
location: ${example.location}
subnetId: ${exampleSubnet.id}
privateServiceConnection:
name: psc-sig-test
isManualConnection: false
privateConnectionResourceId: ${exampleService.id}
subresourceNames:
- webpubsub
exampleNetworkAcl:
type: azure:webpubsub:NetworkAcl
name: example
properties:
webPubsubId: ${exampleService.id}
defaultAction: Allow
publicNetwork:
deniedRequestTypes:
- ClientConnection
privateEndpoints:
- id: ${exampleEndpoint.id}
deniedRequestTypes:
- RESTAPI
- ClientConnection
options:
dependsOn:
- ${exampleEndpoint}
Content copied to clipboard
Import
Network ACLs for a Web Pubsub service can be imported using the resource id
, e.g.
$ pulumi import azure:webpubsub/networkAcl:NetworkAcl example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/webpubsub1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(defaultAction: Output<String>? = null, privateEndpoints: Output<List<NetworkAclPrivateEndpointArgs>>? = null, publicNetwork: Output<NetworkAclPublicNetworkArgs>? = null, webPubsubId: Output<String>? = null)
Properties
Link copied to clipboard
The default action to control the network access when no other rule matches. Possible values are Allow
and Deny
. Defaults to Deny
.
Link copied to clipboard
A private_endpoint
block as defined below.
Link copied to clipboard
A public_network
block as defined below.
Link copied to clipboard
The ID of the Web Pubsub service. Changing this forces a new resource to be created.