NetworkSecurityRuleArgs

data class NetworkSecurityRuleArgs(val access: Output<Either<String, Access>>, val description: Output<String>? = null, val destinationAddressPrefix: Output<String>? = null, val destinationAddressPrefixes: Output<List<String>>? = null, val destinationPortRange: Output<String>? = null, val destinationPortRanges: Output<List<String>>? = null, val direction: Output<Either<String, Direction>>, val name: Output<String>, val priority: Output<Int>, val protocol: Output<Either<String, NsgProtocol>>, val sourceAddressPrefix: Output<String>? = null, val sourceAddressPrefixes: Output<List<String>>? = null, val sourcePortRange: Output<String>? = null, val sourcePortRanges: Output<List<String>>? = null) : ConvertibleToJava<NetworkSecurityRuleArgs>

Describes a network security rule.

Constructors

Link copied to clipboard
constructor(access: Output<Either<String, Access>>, description: Output<String>? = null, destinationAddressPrefix: Output<String>? = null, destinationAddressPrefixes: Output<List<String>>? = null, destinationPortRange: Output<String>? = null, destinationPortRanges: Output<List<String>>? = null, direction: Output<Either<String, Direction>>, name: Output<String>, priority: Output<Int>, protocol: Output<Either<String, NsgProtocol>>, sourceAddressPrefix: Output<String>? = null, sourceAddressPrefixes: Output<List<String>>? = null, sourcePortRange: Output<String>? = null, sourcePortRanges: Output<List<String>>? = null)

Properties

Link copied to clipboard
val access: Output<Either<String, Access>>

The network traffic is allowed or denied.

Link copied to clipboard
val description: Output<String>? = null

Network security rule description.

Link copied to clipboard
val destinationAddressPrefix: Output<String>? = null

The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.

Link copied to clipboard
val destinationAddressPrefixes: Output<List<String>>? = null

The destination address prefixes. CIDR or destination IP ranges.

Link copied to clipboard
val destinationPortRange: Output<String>? = null

he destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

Link copied to clipboard
val destinationPortRanges: Output<List<String>>? = null

The destination port ranges.

Link copied to clipboard
val direction: Output<Either<String, Direction>>

Network security rule direction.

Link copied to clipboard
val name: Output<String>

Network security rule name.

Link copied to clipboard
val priority: Output<Int>

The priority of the rule. The value can be in the range 1000 to 3000. Values outside this range are reserved for Service Fabric ManagerCluster Resource Provider. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.

Link copied to clipboard
val protocol: Output<Either<String, NsgProtocol>>

Network protocol this rule applies to.

Link copied to clipboard
val sourceAddressPrefix: Output<String>? = null

The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.

Link copied to clipboard
val sourceAddressPrefixes: Output<List<String>>? = null

The CIDR or source IP ranges.

Link copied to clipboard
val sourcePortRange: Output<String>? = null

The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

Link copied to clipboard
val sourcePortRanges: Output<List<String>>? = null

The source port ranges.

Functions

Link copied to clipboard
open override fun toJava(): NetworkSecurityRuleArgs