LocalRulestackRuleArgs

data class LocalRulestackRuleArgs(val action: Output<String>? = null, val applications: Output<List<String>>? = null, val auditComment: Output<String>? = null, val category: Output<LocalRulestackRuleCategoryArgs>? = null, val decryptionRuleType: Output<String>? = null, val description: Output<String>? = null, val destination: Output<LocalRulestackRuleDestinationArgs>? = null, val enabled: Output<Boolean>? = null, val inspectionCertificateId: Output<String>? = null, val loggingEnabled: Output<Boolean>? = null, val name: Output<String>? = null, val negateDestination: Output<Boolean>? = null, val negateSource: Output<Boolean>? = null, val priority: Output<Int>? = null, val protocol: Output<String>? = null, val protocolPorts: Output<List<String>>? = null, val rulestackId: Output<String>? = null, val source: Output<LocalRulestackRuleSourceArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LocalRulestackRuleArgs>

Manages a Palo Alto Local Rulestack Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.paloalto.LocalRulestack;
import com.pulumi.azure.paloalto.LocalRulestackArgs;
import com.pulumi.azure.paloalto.LocalRulestackRule;
import com.pulumi.azure.paloalto.LocalRulestackRuleArgs;
import com.pulumi.azure.paloalto.inputs.LocalRulestackRuleSourceArgs;
import com.pulumi.azure.paloalto.inputs.LocalRulestackRuleDestinationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleLocalRulestack = new LocalRulestack("exampleLocalRulestack", LocalRulestackArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleLocalRulestackRule = new LocalRulestackRule("exampleLocalRulestackRule", LocalRulestackRuleArgs.builder()
.rulestackId(exampleLocalRulestack.id())
.priority(1000)
.action("Allow")
.applications("any")
.source(LocalRulestackRuleSourceArgs.builder()
.cidrs("10.0.0.0/8")
.build())
.destination(LocalRulestackRuleDestinationArgs.builder()
.cidrs("192.168.16.0/24")
.build())
.build());
}
}

Import

Palo Alto Local Rulestack Rules can be imported using the resource id, e.g.

$ pulumi import azure:paloalto/localRulestackRule:LocalRulestackRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/myLocalRulestack/localRules/myRule1

Constructors

Link copied to clipboard
fun LocalRulestackRuleArgs(action: Output<String>? = null, applications: Output<List<String>>? = null, auditComment: Output<String>? = null, category: Output<LocalRulestackRuleCategoryArgs>? = null, decryptionRuleType: Output<String>? = null, description: Output<String>? = null, destination: Output<LocalRulestackRuleDestinationArgs>? = null, enabled: Output<Boolean>? = null, inspectionCertificateId: Output<String>? = null, loggingEnabled: Output<Boolean>? = null, name: Output<String>? = null, negateDestination: Output<Boolean>? = null, negateSource: Output<Boolean>? = null, priority: Output<Int>? = null, protocol: Output<String>? = null, protocolPorts: Output<List<String>>? = null, rulestackId: Output<String>? = null, source: Output<LocalRulestackRuleSourceArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

The action to take on the rule being triggered.

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

Specifies a list of Applications.

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

The comment for Audit purposes.

Link copied to clipboard

A category block as defined below.

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

The type of Decryption to perform on the rule. Possible values include SSLInboundInspection, SSLOutboundInspection, and None Defaults to None.

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

The description for the rule.

Link copied to clipboard

One or more destination blocks as defined below.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Should this Rule be enabled? Defaults to true.

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

The ID of the certificate for inbound inspection. Only valid when decryption_rule_type is set to SSLInboundInspection.

Link copied to clipboard
val loggingEnabled: Output<Boolean>? = null

Should Logging be enabled? Defaults to false.

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

The name which should be used for this Palo Alto Local Rulestack Rule.

Link copied to clipboard
val negateDestination: Output<Boolean>? = null

Should the inverse of the Destination configuration be used. Defaults to false.

Link copied to clipboard
val negateSource: Output<Boolean>? = null

Should the inverse of the Source configuration be used. Defaults to false.

Link copied to clipboard
val priority: Output<Int>? = null

The Priority of this rule. Rules are executed in numerical order. Changing this forces a new Palo Alto Local Rulestack Rule to be created.

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

The Protocol and port to use in the form [protocol]:[port_number] e.g. TCP:8080 or UDP:53. Conflicts with protocol_ports. Defaults to application-default.

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

Specifies a list of Protocol:Port entries. E.g. [ "TCP:80", "UDP:5431" ]. Conflicts with protocol.

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

The ID of the Local Rulestack in which to create this Rule. Changing this forces a new Palo Alto Local Rulestack Rule to be created.

Link copied to clipboard

One or more source blocks as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Palo Alto Local Rulestack Rule.