Firewall
NOTICE: The Firewall feature is currently available through early access.
Manages a Linode Firewall.
Create a Firewall Resource
new Firewall(name: string, args: FirewallArgs, opts?: CustomResourceOptions);def Firewall(resource_name, opts=None, disabled=None, inbounds=None, label=None, linodes=None, outbounds=None, tags=None, __props__=None);func NewFirewall(ctx *Context, name string, args FirewallArgs, opts ...ResourceOption) (*Firewall, error)public Firewall(string name, FirewallArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FirewallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FirewallArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Firewall Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Firewall resource accepts the following input properties:
- Linodes List<int>
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- Disabled bool
If
true, the Firewall’s rules are not enforced (defaults tofalse).- Inbounds
List<Firewall
Inbound Args> A firewall rule that specifies what inbound network traffic is allowed.
- Label string
This Firewall’s unique label.
- Outbounds
List<Firewall
Outbound Args> A firewall rule that specifies what outbound network traffic is allowed.
- List<string>
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- Linodes []int
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- Disabled bool
If
true, the Firewall’s rules are not enforced (defaults tofalse).- Inbounds
[]Firewall
Inbound A firewall rule that specifies what inbound network traffic is allowed.
- Label string
This Firewall’s unique label.
- Outbounds
[]Firewall
Outbound A firewall rule that specifies what outbound network traffic is allowed.
- []string
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- linodes number[]
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- disabled boolean
If
true, the Firewall’s rules are not enforced (defaults tofalse).- inbounds
Firewall
Inbound[] A firewall rule that specifies what inbound network traffic is allowed.
- label string
This Firewall’s unique label.
- outbounds
Firewall
Outbound[] A firewall rule that specifies what outbound network traffic is allowed.
- string[]
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- linodes List[Integer]
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- disabled bool
If
true, the Firewall’s rules are not enforced (defaults tofalse).- inbounds
List[Firewall
Inbound] A firewall rule that specifies what inbound network traffic is allowed.
- label str
This Firewall’s unique label.
- outbounds
List[Firewall
Outbound] A firewall rule that specifies what outbound network traffic is allowed.
- List[str]
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
Outputs
All input properties are implicitly available as output properties. Additionally, the Firewall resource produces the following output properties:
Look up an Existing Firewall Resource
Get an existing Firewall resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FirewallState, opts?: CustomResourceOptions): Firewallstatic get(resource_name, id, opts=None, devices=None, disabled=None, inbounds=None, label=None, linodes=None, outbounds=None, status=None, tags=None, __props__=None);func GetFirewall(ctx *Context, name string, id IDInput, state *FirewallState, opts ...ResourceOption) (*Firewall, error)public static Firewall Get(string name, Input<string> id, FirewallState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Devices
List<Firewall
Device Args> The devices associated with this firewall.
- Disabled bool
If
true, the Firewall’s rules are not enforced (defaults tofalse).- Inbounds
List<Firewall
Inbound Args> A firewall rule that specifies what inbound network traffic is allowed.
- Label string
This Firewall’s unique label.
- Linodes List<int>
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- Outbounds
List<Firewall
Outbound Args> A firewall rule that specifies what outbound network traffic is allowed.
- Status string
The status of the Firewall.
- List<string>
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- Devices
[]Firewall
Device The devices associated with this firewall.
- Disabled bool
If
true, the Firewall’s rules are not enforced (defaults tofalse).- Inbounds
[]Firewall
Inbound A firewall rule that specifies what inbound network traffic is allowed.
- Label string
This Firewall’s unique label.
- Linodes []int
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- Outbounds
[]Firewall
Outbound A firewall rule that specifies what outbound network traffic is allowed.
- Status string
The status of the Firewall.
- []string
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- devices
Firewall
Device[] The devices associated with this firewall.
- disabled boolean
If
true, the Firewall’s rules are not enforced (defaults tofalse).- inbounds
Firewall
Inbound[] A firewall rule that specifies what inbound network traffic is allowed.
- label string
This Firewall’s unique label.
- linodes number[]
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- outbounds
Firewall
Outbound[] A firewall rule that specifies what outbound network traffic is allowed.
- status string
The status of the Firewall.
- string[]
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- devices
List[Firewall
Device] The devices associated with this firewall.
- disabled bool
If
true, the Firewall’s rules are not enforced (defaults tofalse).- inbounds
List[Firewall
Inbound] A firewall rule that specifies what inbound network traffic is allowed.
- label str
This Firewall’s unique label.
- linodes List[Integer]
A list of IDs of Linodes this Firewall should govern it’s network traffic for.
- outbounds
List[Firewall
Outbound] A firewall rule that specifies what outbound network traffic is allowed.
- status str
The status of the Firewall.
- List[str]
A list of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
Supporting Types
FirewallDevice
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
FirewallInbound
- Addresses List<string>
A list of IP addresses, CIDR blocks, or
0.0.0.0/0(to whitelist all) this rule applies to.- Ports List<string>
A list of ports and/or port ranges (i.e. “443” or “80-90”).
- Protocol string
The network protocol this rule controls.
FirewallOutbound
- Addresses List<string>
A list of IP addresses, CIDR blocks, or
0.0.0.0/0(to whitelist all) this rule applies to.- Ports List<string>
A list of ports and/or port ranges (i.e. “443” or “80-90”).
- Protocol string
The network protocol this rule controls.
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.