Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.paloalto.kotlin
import com.pulumi.azure.paloalto.LocalRulestackRuleArgs.builder
import com.pulumi.azure.paloalto.kotlin.inputs.LocalRulestackRuleCategoryArgs
import com.pulumi.azure.paloalto.kotlin.inputs.LocalRulestackRuleCategoryArgsBuilder
import com.pulumi.azure.paloalto.kotlin.inputs.LocalRulestackRuleDestinationArgs
import com.pulumi.azure.paloalto.kotlin.inputs.LocalRulestackRuleDestinationArgsBuilder
import com.pulumi.azure.paloalto.kotlin.inputs.LocalRulestackRuleSourceArgs
import com.pulumi.azure.paloalto.kotlin.inputs.LocalRulestackRuleSourceArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Palo Alto Local Rulestack Rule.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "rg-example",
* location: "West Europe",
* });
* const exampleLocalRulestack = new azure.paloalto.LocalRulestack("example", {
* name: "lrs-example",
* resourceGroupName: example.name,
* location: example.location,
* });
* const exampleLocalRulestackRule = new azure.paloalto.LocalRulestackRule("example", {
* name: "example-rule",
* rulestackId: exampleLocalRulestack.id,
* priority: 1000,
* action: "Allow",
* protocol: "application-default",
* applications: ["any"],
* source: {
* cidrs: ["10.0.0.0/8"],
* },
* destination: {
* cidrs: ["192.168.16.0/24"],
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="rg-example",
* location="West Europe")
* example_local_rulestack = azure.paloalto.LocalRulestack("example",
* name="lrs-example",
* resource_group_name=example.name,
* location=example.location)
* example_local_rulestack_rule = azure.paloalto.LocalRulestackRule("example",
* name="example-rule",
* rulestack_id=example_local_rulestack.id,
* priority=1000,
* action="Allow",
* protocol="application-default",
* applications=["any"],
* source={
* "cidrs": ["10.0.0.0/8"],
* },
* destination={
* "cidrs": ["192.168.16.0/24"],
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "rg-example",
* Location = "West Europe",
* });
* var exampleLocalRulestack = new Azure.PaloAlto.LocalRulestack("example", new()
* {
* Name = "lrs-example",
* ResourceGroupName = example.Name,
* Location = example.Location,
* });
* var exampleLocalRulestackRule = new Azure.PaloAlto.LocalRulestackRule("example", new()
* {
* Name = "example-rule",
* RulestackId = exampleLocalRulestack.Id,
* Priority = 1000,
* Action = "Allow",
* Protocol = "application-default",
* Applications = new[]
* {
* "any",
* },
* Source = new Azure.PaloAlto.Inputs.LocalRulestackRuleSourceArgs
* {
* Cidrs = new[]
* {
* "10.0.0.0/8",
* },
* },
* Destination = new Azure.PaloAlto.Inputs.LocalRulestackRuleDestinationArgs
* {
* Cidrs = new[]
* {
* "192.168.16.0/24",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/paloalto"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("rg-example"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleLocalRulestack, err := paloalto.NewLocalRulestack(ctx, "example", &paloalto.LocalRulestackArgs{
* Name: pulumi.String("lrs-example"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* })
* if err != nil {
* return err
* }
* _, err = paloalto.NewLocalRulestackRule(ctx, "example", &paloalto.LocalRulestackRuleArgs{
* Name: pulumi.String("example-rule"),
* RulestackId: exampleLocalRulestack.ID(),
* Priority: pulumi.Int(1000),
* Action: pulumi.String("Allow"),
* Protocol: pulumi.String("application-default"),
* Applications: pulumi.StringArray{
* pulumi.String("any"),
* },
* Source: &paloalto.LocalRulestackRuleSourceArgs{
* Cidrs: pulumi.StringArray{
* pulumi.String("10.0.0.0/8"),
* },
* },
* Destination: &paloalto.LocalRulestackRuleDestinationArgs{
* Cidrs: pulumi.StringArray{
* pulumi.String("192.168.16.0/24"),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("rg-example")
* .location("West Europe")
* .build());
* var exampleLocalRulestack = new LocalRulestack("exampleLocalRulestack", LocalRulestackArgs.builder()
* .name("lrs-example")
* .resourceGroupName(example.name())
* .location(example.location())
* .build());
* var exampleLocalRulestackRule = new LocalRulestackRule("exampleLocalRulestackRule", LocalRulestackRuleArgs.builder()
* .name("example-rule")
* .rulestackId(exampleLocalRulestack.id())
* .priority(1000)
* .action("Allow")
* .protocol("application-default")
* .applications("any")
* .source(LocalRulestackRuleSourceArgs.builder()
* .cidrs("10.0.0.0/8")
* .build())
* .destination(LocalRulestackRuleDestinationArgs.builder()
* .cidrs("192.168.16.0/24")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: rg-example
* location: West Europe
* exampleLocalRulestack:
* type: azure:paloalto:LocalRulestack
* name: example
* properties:
* name: lrs-example
* resourceGroupName: ${example.name}
* location: ${example.location}
* exampleLocalRulestackRule:
* type: azure:paloalto:LocalRulestackRule
* name: example
* properties:
* name: example-rule
* rulestackId: ${exampleLocalRulestack.id}
* priority: 1000
* action: Allow
* protocol: application-default
* applications:
* - any
* source:
* cidrs:
* - 10.0.0.0/8
* destination:
* cidrs:
* - 192.168.16.0/24
* ```
*
* ## Import
* Palo Alto Local Rulestack Rules can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:paloalto/localRulestackRule:LocalRulestackRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/myLocalRulestack/localRules/myRule1
* ```
* @property action The action to take on the rule being triggered. Possible values are `Allow`, `DenyResetBoth`, `DenyResetServer` and `DenySilent`.
* @property applications Specifies a list of Applications.
* @property auditComment The comment for Audit purposes.
* @property category A `category` block as defined below.
* @property decryptionRuleType The type of Decryption to perform on the rule. Possible values include `SSLInboundInspection`, `SSLOutboundInspection`, and `None`. Defaults to `None`.
* @property description The description for the rule.
* @property destination One or more `destination` blocks as defined below.
* @property enabled Should this Rule be enabled? Defaults to `true`.
* @property inspectionCertificateId The ID of the certificate for inbound inspection. Only valid when `decryption_rule_type` is set to `SSLInboundInspection`.
* @property loggingEnabled Should Logging be enabled? Defaults to `false`.
* @property name The name which should be used for this Palo Alto Local Rulestack Rule.
* @property negateDestination Should the inverse of the Destination configuration be used. Defaults to `false`.
* @property negateSource Should the inverse of the Source configuration be used. Defaults to `false`.
* @property priority The Priority of this rule. Rules are executed in numerical order. Changing this forces a new Palo Alto Local Rulestack Rule to be created.
* > **NOTE:** This is the primary identifier of a rule, as such it is not possible to change the Priority of a rule once created.
* @property protocol 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`.
* > **NOTE** In 4.0 or later versions, the default of `protocol` will no longer be set by provider, exactly one of `protocol` and `protocol_ports` must be specified. You need to explicitly specify `protocol="application-default"` to keep the the current default of the `protocol`.
* @property protocolPorts Specifies a list of Protocol:Port entries. E.g. `[ "TCP:80", "UDP:5431" ]`. Conflicts with `protocol`.
* @property rulestackId 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.
* @property source One or more `source` blocks as defined below.
* @property tags A mapping of tags which should be assigned to the Palo Alto Local Rulestack Rule.
*/
public data class LocalRulestackRuleArgs(
public val action: Output? = null,
public val applications: Output>? = null,
public val auditComment: Output? = null,
public val category: Output? = null,
public val decryptionRuleType: Output? = null,
public val description: Output? = null,
public val destination: Output? = null,
public val enabled: Output? = null,
public val inspectionCertificateId: Output? = null,
public val loggingEnabled: Output? = null,
public val name: Output? = null,
public val negateDestination: Output? = null,
public val negateSource: Output? = null,
public val priority: Output? = null,
public val protocol: Output? = null,
public val protocolPorts: Output>? = null,
public val rulestackId: Output? = null,
public val source: Output? = null,
public val tags: Output