firewall

package
v0.0.0-...-ac9024e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	pulumi.CustomResourceState

	// The members of the firewall group.
	Members pulumi.StringArrayOutput `pulumi:"members"`
	// The name of the firewall group.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the site to associate the firewall group with.
	Site pulumi.StringOutput `pulumi:"site"`
	// The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.
	Type pulumi.StringOutput `pulumi:"type"`
}

`firewall.Group` manages groups of addresses or ports for use in firewall rules (`firewall.Rule`).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi/firewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		laptopIps := cfg.Require("laptopIps")
		_, err := firewall.NewGroup(ctx, "canPrint", &firewall.GroupArgs{
			Type:    pulumi.String("address-group"),
			Members: laptopIps,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetGroup

func GetGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)

GetGroup gets an existing Group resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGroup

func NewGroup(ctx *pulumi.Context,
	name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)

NewGroup registers a new resource with the given unique name, arguments, and options.

func (*Group) ElementType

func (*Group) ElementType() reflect.Type

func (*Group) ToGroupOutput

func (i *Group) ToGroupOutput() GroupOutput

func (*Group) ToGroupOutputWithContext

func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput

func (*Group) ToOutput

func (i *Group) ToOutput(ctx context.Context) pulumix.Output[*Group]

type GroupArgs

type GroupArgs struct {
	// The members of the firewall group.
	Members pulumi.StringArrayInput
	// The name of the firewall group.
	Name pulumi.StringPtrInput
	// The name of the site to associate the firewall group with.
	Site pulumi.StringPtrInput
	// The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.
	Type pulumi.StringInput
}

The set of arguments for constructing a Group resource.

func (GroupArgs) ElementType

func (GroupArgs) ElementType() reflect.Type

type GroupArray

type GroupArray []GroupInput

func (GroupArray) ElementType

func (GroupArray) ElementType() reflect.Type

func (GroupArray) ToGroupArrayOutput

func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput

func (GroupArray) ToGroupArrayOutputWithContext

func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

func (GroupArray) ToOutput

func (i GroupArray) ToOutput(ctx context.Context) pulumix.Output[[]*Group]

type GroupArrayInput

type GroupArrayInput interface {
	pulumi.Input

	ToGroupArrayOutput() GroupArrayOutput
	ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput
}

GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:

GroupArray{ GroupArgs{...} }

type GroupArrayOutput

type GroupArrayOutput struct{ *pulumi.OutputState }

func (GroupArrayOutput) ElementType

func (GroupArrayOutput) ElementType() reflect.Type

func (GroupArrayOutput) Index

func (GroupArrayOutput) ToGroupArrayOutput

func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput

func (GroupArrayOutput) ToGroupArrayOutputWithContext

func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

func (GroupArrayOutput) ToOutput

func (o GroupArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Group]

type GroupInput

type GroupInput interface {
	pulumi.Input

	ToGroupOutput() GroupOutput
	ToGroupOutputWithContext(ctx context.Context) GroupOutput
}

type GroupMap

type GroupMap map[string]GroupInput

func (GroupMap) ElementType

func (GroupMap) ElementType() reflect.Type

func (GroupMap) ToGroupMapOutput

func (i GroupMap) ToGroupMapOutput() GroupMapOutput

func (GroupMap) ToGroupMapOutputWithContext

func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

func (GroupMap) ToOutput

func (i GroupMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Group]

type GroupMapInput

type GroupMapInput interface {
	pulumi.Input

	ToGroupMapOutput() GroupMapOutput
	ToGroupMapOutputWithContext(context.Context) GroupMapOutput
}

GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:

GroupMap{ "key": GroupArgs{...} }

type GroupMapOutput

type GroupMapOutput struct{ *pulumi.OutputState }

func (GroupMapOutput) ElementType

func (GroupMapOutput) ElementType() reflect.Type

func (GroupMapOutput) MapIndex

func (GroupMapOutput) ToGroupMapOutput

func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput

func (GroupMapOutput) ToGroupMapOutputWithContext

func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

func (GroupMapOutput) ToOutput

func (o GroupMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Group]

type GroupOutput

type GroupOutput struct{ *pulumi.OutputState }

func (GroupOutput) ElementType

func (GroupOutput) ElementType() reflect.Type

func (GroupOutput) Members

func (o GroupOutput) Members() pulumi.StringArrayOutput

The members of the firewall group.

func (GroupOutput) Name

func (o GroupOutput) Name() pulumi.StringOutput

The name of the firewall group.

func (GroupOutput) Site

func (o GroupOutput) Site() pulumi.StringOutput

The name of the site to associate the firewall group with.

func (GroupOutput) ToGroupOutput

func (o GroupOutput) ToGroupOutput() GroupOutput

func (GroupOutput) ToGroupOutputWithContext

func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput

func (GroupOutput) ToOutput

func (o GroupOutput) ToOutput(ctx context.Context) pulumix.Output[*Group]

func (GroupOutput) Type

func (o GroupOutput) Type() pulumi.StringOutput

The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.

type GroupState

type GroupState struct {
	// The members of the firewall group.
	Members pulumi.StringArrayInput
	// The name of the firewall group.
	Name pulumi.StringPtrInput
	// The name of the site to associate the firewall group with.
	Site pulumi.StringPtrInput
	// The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`.
	Type pulumi.StringPtrInput
}

func (GroupState) ElementType

func (GroupState) ElementType() reflect.Type

type Rule

type Rule struct {
	pulumi.CustomResourceState

	// The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.
	Action pulumi.StringOutput `pulumi:"action"`
	// The destination address of the firewall rule.
	DstAddress pulumi.StringPtrOutput `pulumi:"dstAddress"`
	// The IPv6 destination address of the firewall rule.
	DstAddressIpv6 pulumi.StringPtrOutput `pulumi:"dstAddressIpv6"`
	// The destination firewall group IDs of the firewall rule.
	DstFirewallGroupIds pulumi.StringArrayOutput `pulumi:"dstFirewallGroupIds"`
	// The destination network ID of the firewall rule.
	DstNetworkId pulumi.StringPtrOutput `pulumi:"dstNetworkId"`
	// The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
	DstNetworkType pulumi.StringPtrOutput `pulumi:"dstNetworkType"`
	// The destination port of the firewall rule.
	DstPort pulumi.StringPtrOutput `pulumi:"dstPort"`
	// Specifies whether the rule should be enabled. Defaults to `true`.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// ICMP type name.
	IcmpTypename pulumi.StringPtrOutput `pulumi:"icmpTypename"`
	// ICMPv6 type name.
	IcmpV6Typename pulumi.StringPtrOutput `pulumi:"icmpV6Typename"`
	// Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.
	IpSec pulumi.StringPtrOutput `pulumi:"ipSec"`
	// Enable logging for the firewall rule.
	Logging pulumi.BoolPtrOutput `pulumi:"logging"`
	// The name of the firewall rule.
	Name pulumi.StringOutput `pulumi:"name"`
	// The protocol of the rule.
	Protocol pulumi.StringPtrOutput `pulumi:"protocol"`
	// The IPv6 protocol of the rule.
	ProtocolV6 pulumi.StringPtrOutput `pulumi:"protocolV6"`
	// The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.
	RuleIndex pulumi.IntOutput `pulumi:"ruleIndex"`
	// The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.
	Ruleset pulumi.StringOutput `pulumi:"ruleset"`
	// The name of the site to associate the firewall rule with.
	Site pulumi.StringOutput `pulumi:"site"`
	// The source address for the firewall rule.
	SrcAddress pulumi.StringPtrOutput `pulumi:"srcAddress"`
	// The IPv6 source address for the firewall rule.
	SrcAddressIpv6 pulumi.StringPtrOutput `pulumi:"srcAddressIpv6"`
	// The source firewall group IDs for the firewall rule.
	SrcFirewallGroupIds pulumi.StringArrayOutput `pulumi:"srcFirewallGroupIds"`
	// The source MAC address of the firewall rule.
	SrcMac pulumi.StringPtrOutput `pulumi:"srcMac"`
	// The source network ID for the firewall rule.
	SrcNetworkId pulumi.StringPtrOutput `pulumi:"srcNetworkId"`
	// The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
	SrcNetworkType pulumi.StringPtrOutput `pulumi:"srcNetworkType"`
	// The source port of the firewall rule.
	SrcPort pulumi.StringPtrOutput `pulumi:"srcPort"`
	// Match where the state is established.
	StateEstablished pulumi.BoolPtrOutput `pulumi:"stateEstablished"`
	// Match where the state is invalid.
	StateInvalid pulumi.BoolPtrOutput `pulumi:"stateInvalid"`
	// Match where the state is new.
	StateNew pulumi.BoolPtrOutput `pulumi:"stateNew"`
	// Match where the state is related.
	StateRelated pulumi.BoolPtrOutput `pulumi:"stateRelated"`
}

`firewall.Rule` manages an individual firewall rule on the gateway.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi/firewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		ipAddress := cfg.Require("ipAddress")
		_, err := firewall.NewRule(ctx, "dropAll", &firewall.RuleArgs{
			Action:     pulumi.String("drop"),
			Ruleset:    pulumi.String("LAN_IN"),
			RuleIndex:  pulumi.Int(2011),
			Protocol:   pulumi.String("all"),
			DstAddress: pulumi.String(ipAddress),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

import using the ID from the controller API/UI

```sh

$ pulumi import unifi:firewall/rule:Rule my_rule 5f7080eb6b8969064f80494f

```

func GetRule

func GetRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RuleState, opts ...pulumi.ResourceOption) (*Rule, error)

GetRule gets an existing Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRule

func NewRule(ctx *pulumi.Context,
	name string, args *RuleArgs, opts ...pulumi.ResourceOption) (*Rule, error)

NewRule registers a new resource with the given unique name, arguments, and options.

func (*Rule) ElementType

func (*Rule) ElementType() reflect.Type

func (*Rule) ToOutput

func (i *Rule) ToOutput(ctx context.Context) pulumix.Output[*Rule]

func (*Rule) ToRuleOutput

func (i *Rule) ToRuleOutput() RuleOutput

func (*Rule) ToRuleOutputWithContext

func (i *Rule) ToRuleOutputWithContext(ctx context.Context) RuleOutput

type RuleArgs

type RuleArgs struct {
	// The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.
	Action pulumi.StringInput
	// The destination address of the firewall rule.
	DstAddress pulumi.StringPtrInput
	// The IPv6 destination address of the firewall rule.
	DstAddressIpv6 pulumi.StringPtrInput
	// The destination firewall group IDs of the firewall rule.
	DstFirewallGroupIds pulumi.StringArrayInput
	// The destination network ID of the firewall rule.
	DstNetworkId pulumi.StringPtrInput
	// The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
	DstNetworkType pulumi.StringPtrInput
	// The destination port of the firewall rule.
	DstPort pulumi.StringPtrInput
	// Specifies whether the rule should be enabled. Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// ICMP type name.
	IcmpTypename pulumi.StringPtrInput
	// ICMPv6 type name.
	IcmpV6Typename pulumi.StringPtrInput
	// Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.
	IpSec pulumi.StringPtrInput
	// Enable logging for the firewall rule.
	Logging pulumi.BoolPtrInput
	// The name of the firewall rule.
	Name pulumi.StringPtrInput
	// The protocol of the rule.
	Protocol pulumi.StringPtrInput
	// The IPv6 protocol of the rule.
	ProtocolV6 pulumi.StringPtrInput
	// The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.
	RuleIndex pulumi.IntInput
	// The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.
	Ruleset pulumi.StringInput
	// The name of the site to associate the firewall rule with.
	Site pulumi.StringPtrInput
	// The source address for the firewall rule.
	SrcAddress pulumi.StringPtrInput
	// The IPv6 source address for the firewall rule.
	SrcAddressIpv6 pulumi.StringPtrInput
	// The source firewall group IDs for the firewall rule.
	SrcFirewallGroupIds pulumi.StringArrayInput
	// The source MAC address of the firewall rule.
	SrcMac pulumi.StringPtrInput
	// The source network ID for the firewall rule.
	SrcNetworkId pulumi.StringPtrInput
	// The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
	SrcNetworkType pulumi.StringPtrInput
	// The source port of the firewall rule.
	SrcPort pulumi.StringPtrInput
	// Match where the state is established.
	StateEstablished pulumi.BoolPtrInput
	// Match where the state is invalid.
	StateInvalid pulumi.BoolPtrInput
	// Match where the state is new.
	StateNew pulumi.BoolPtrInput
	// Match where the state is related.
	StateRelated pulumi.BoolPtrInput
}

The set of arguments for constructing a Rule resource.

func (RuleArgs) ElementType

func (RuleArgs) ElementType() reflect.Type

type RuleArray

type RuleArray []RuleInput

func (RuleArray) ElementType

func (RuleArray) ElementType() reflect.Type

func (RuleArray) ToOutput

func (i RuleArray) ToOutput(ctx context.Context) pulumix.Output[[]*Rule]

func (RuleArray) ToRuleArrayOutput

func (i RuleArray) ToRuleArrayOutput() RuleArrayOutput

func (RuleArray) ToRuleArrayOutputWithContext

func (i RuleArray) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleArrayInput

type RuleArrayInput interface {
	pulumi.Input

	ToRuleArrayOutput() RuleArrayOutput
	ToRuleArrayOutputWithContext(context.Context) RuleArrayOutput
}

RuleArrayInput is an input type that accepts RuleArray and RuleArrayOutput values. You can construct a concrete instance of `RuleArrayInput` via:

RuleArray{ RuleArgs{...} }

type RuleArrayOutput

type RuleArrayOutput struct{ *pulumi.OutputState }

func (RuleArrayOutput) ElementType

func (RuleArrayOutput) ElementType() reflect.Type

func (RuleArrayOutput) Index

func (RuleArrayOutput) ToOutput

func (o RuleArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Rule]

func (RuleArrayOutput) ToRuleArrayOutput

func (o RuleArrayOutput) ToRuleArrayOutput() RuleArrayOutput

func (RuleArrayOutput) ToRuleArrayOutputWithContext

func (o RuleArrayOutput) ToRuleArrayOutputWithContext(ctx context.Context) RuleArrayOutput

type RuleInput

type RuleInput interface {
	pulumi.Input

	ToRuleOutput() RuleOutput
	ToRuleOutputWithContext(ctx context.Context) RuleOutput
}

type RuleMap

type RuleMap map[string]RuleInput

func (RuleMap) ElementType

func (RuleMap) ElementType() reflect.Type

func (RuleMap) ToOutput

func (i RuleMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Rule]

func (RuleMap) ToRuleMapOutput

func (i RuleMap) ToRuleMapOutput() RuleMapOutput

func (RuleMap) ToRuleMapOutputWithContext

func (i RuleMap) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleMapInput

type RuleMapInput interface {
	pulumi.Input

	ToRuleMapOutput() RuleMapOutput
	ToRuleMapOutputWithContext(context.Context) RuleMapOutput
}

RuleMapInput is an input type that accepts RuleMap and RuleMapOutput values. You can construct a concrete instance of `RuleMapInput` via:

RuleMap{ "key": RuleArgs{...} }

type RuleMapOutput

type RuleMapOutput struct{ *pulumi.OutputState }

func (RuleMapOutput) ElementType

func (RuleMapOutput) ElementType() reflect.Type

func (RuleMapOutput) MapIndex

func (RuleMapOutput) ToOutput

func (o RuleMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Rule]

func (RuleMapOutput) ToRuleMapOutput

func (o RuleMapOutput) ToRuleMapOutput() RuleMapOutput

func (RuleMapOutput) ToRuleMapOutputWithContext

func (o RuleMapOutput) ToRuleMapOutputWithContext(ctx context.Context) RuleMapOutput

type RuleOutput

type RuleOutput struct{ *pulumi.OutputState }

func (RuleOutput) Action

func (o RuleOutput) Action() pulumi.StringOutput

The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.

func (RuleOutput) DstAddress

func (o RuleOutput) DstAddress() pulumi.StringPtrOutput

The destination address of the firewall rule.

func (RuleOutput) DstAddressIpv6

func (o RuleOutput) DstAddressIpv6() pulumi.StringPtrOutput

The IPv6 destination address of the firewall rule.

func (RuleOutput) DstFirewallGroupIds

func (o RuleOutput) DstFirewallGroupIds() pulumi.StringArrayOutput

The destination firewall group IDs of the firewall rule.

func (RuleOutput) DstNetworkId

func (o RuleOutput) DstNetworkId() pulumi.StringPtrOutput

The destination network ID of the firewall rule.

func (RuleOutput) DstNetworkType

func (o RuleOutput) DstNetworkType() pulumi.StringPtrOutput

The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.

func (RuleOutput) DstPort

func (o RuleOutput) DstPort() pulumi.StringPtrOutput

The destination port of the firewall rule.

func (RuleOutput) ElementType

func (RuleOutput) ElementType() reflect.Type

func (RuleOutput) Enabled

func (o RuleOutput) Enabled() pulumi.BoolPtrOutput

Specifies whether the rule should be enabled. Defaults to `true`.

func (RuleOutput) IcmpTypename

func (o RuleOutput) IcmpTypename() pulumi.StringPtrOutput

ICMP type name.

func (RuleOutput) IcmpV6Typename

func (o RuleOutput) IcmpV6Typename() pulumi.StringPtrOutput

ICMPv6 type name.

func (RuleOutput) IpSec

func (o RuleOutput) IpSec() pulumi.StringPtrOutput

Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.

func (RuleOutput) Logging

func (o RuleOutput) Logging() pulumi.BoolPtrOutput

Enable logging for the firewall rule.

func (RuleOutput) Name

func (o RuleOutput) Name() pulumi.StringOutput

The name of the firewall rule.

func (RuleOutput) Protocol

func (o RuleOutput) Protocol() pulumi.StringPtrOutput

The protocol of the rule.

func (RuleOutput) ProtocolV6

func (o RuleOutput) ProtocolV6() pulumi.StringPtrOutput

The IPv6 protocol of the rule.

func (RuleOutput) RuleIndex

func (o RuleOutput) RuleIndex() pulumi.IntOutput

The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.

func (RuleOutput) Ruleset

func (o RuleOutput) Ruleset() pulumi.StringOutput

The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.

func (RuleOutput) Site

func (o RuleOutput) Site() pulumi.StringOutput

The name of the site to associate the firewall rule with.

func (RuleOutput) SrcAddress

func (o RuleOutput) SrcAddress() pulumi.StringPtrOutput

The source address for the firewall rule.

func (RuleOutput) SrcAddressIpv6

func (o RuleOutput) SrcAddressIpv6() pulumi.StringPtrOutput

The IPv6 source address for the firewall rule.

func (RuleOutput) SrcFirewallGroupIds

func (o RuleOutput) SrcFirewallGroupIds() pulumi.StringArrayOutput

The source firewall group IDs for the firewall rule.

func (RuleOutput) SrcMac

func (o RuleOutput) SrcMac() pulumi.StringPtrOutput

The source MAC address of the firewall rule.

func (RuleOutput) SrcNetworkId

func (o RuleOutput) SrcNetworkId() pulumi.StringPtrOutput

The source network ID for the firewall rule.

func (RuleOutput) SrcNetworkType

func (o RuleOutput) SrcNetworkType() pulumi.StringPtrOutput

The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.

func (RuleOutput) SrcPort

func (o RuleOutput) SrcPort() pulumi.StringPtrOutput

The source port of the firewall rule.

func (RuleOutput) StateEstablished

func (o RuleOutput) StateEstablished() pulumi.BoolPtrOutput

Match where the state is established.

func (RuleOutput) StateInvalid

func (o RuleOutput) StateInvalid() pulumi.BoolPtrOutput

Match where the state is invalid.

func (RuleOutput) StateNew

func (o RuleOutput) StateNew() pulumi.BoolPtrOutput

Match where the state is new.

func (RuleOutput) StateRelated

func (o RuleOutput) StateRelated() pulumi.BoolPtrOutput

Match where the state is related.

func (RuleOutput) ToOutput

func (o RuleOutput) ToOutput(ctx context.Context) pulumix.Output[*Rule]

func (RuleOutput) ToRuleOutput

func (o RuleOutput) ToRuleOutput() RuleOutput

func (RuleOutput) ToRuleOutputWithContext

func (o RuleOutput) ToRuleOutputWithContext(ctx context.Context) RuleOutput

type RuleState

type RuleState struct {
	// The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`.
	Action pulumi.StringPtrInput
	// The destination address of the firewall rule.
	DstAddress pulumi.StringPtrInput
	// The IPv6 destination address of the firewall rule.
	DstAddressIpv6 pulumi.StringPtrInput
	// The destination firewall group IDs of the firewall rule.
	DstFirewallGroupIds pulumi.StringArrayInput
	// The destination network ID of the firewall rule.
	DstNetworkId pulumi.StringPtrInput
	// The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
	DstNetworkType pulumi.StringPtrInput
	// The destination port of the firewall rule.
	DstPort pulumi.StringPtrInput
	// Specifies whether the rule should be enabled. Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// ICMP type name.
	IcmpTypename pulumi.StringPtrInput
	// ICMPv6 type name.
	IcmpV6Typename pulumi.StringPtrInput
	// Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.
	IpSec pulumi.StringPtrInput
	// Enable logging for the firewall rule.
	Logging pulumi.BoolPtrInput
	// The name of the firewall rule.
	Name pulumi.StringPtrInput
	// The protocol of the rule.
	Protocol pulumi.StringPtrInput
	// The IPv6 protocol of the rule.
	ProtocolV6 pulumi.StringPtrInput
	// The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000.
	RuleIndex pulumi.IntPtrInput
	// The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`.
	Ruleset pulumi.StringPtrInput
	// The name of the site to associate the firewall rule with.
	Site pulumi.StringPtrInput
	// The source address for the firewall rule.
	SrcAddress pulumi.StringPtrInput
	// The IPv6 source address for the firewall rule.
	SrcAddressIpv6 pulumi.StringPtrInput
	// The source firewall group IDs for the firewall rule.
	SrcFirewallGroupIds pulumi.StringArrayInput
	// The source MAC address of the firewall rule.
	SrcMac pulumi.StringPtrInput
	// The source network ID for the firewall rule.
	SrcNetworkId pulumi.StringPtrInput
	// The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
	SrcNetworkType pulumi.StringPtrInput
	// The source port of the firewall rule.
	SrcPort pulumi.StringPtrInput
	// Match where the state is established.
	StateEstablished pulumi.BoolPtrInput
	// Match where the state is invalid.
	StateInvalid pulumi.BoolPtrInput
	// Match where the state is new.
	StateNew pulumi.BoolPtrInput
	// Match where the state is related.
	StateRelated pulumi.BoolPtrInput
}

func (RuleState) ElementType

func (RuleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL