FirewallNatRuleCollection
Manages a NAT Rule Collection within an Azure Firewall.
Create a FirewallNatRuleCollection Resource
new FirewallNatRuleCollection(name: string, args: FirewallNatRuleCollectionArgs, opts?: CustomResourceOptions);def FirewallNatRuleCollection(resource_name, opts=None, action=None, azure_firewall_name=None, name=None, priority=None, resource_group_name=None, rules=None, __props__=None);func NewFirewallNatRuleCollection(ctx *Context, name string, args FirewallNatRuleCollectionArgs, opts ...ResourceOption) (*FirewallNatRuleCollection, error)public FirewallNatRuleCollection(string name, FirewallNatRuleCollectionArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FirewallNatRuleCollectionArgs
- 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 FirewallNatRuleCollectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallNatRuleCollectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
FirewallNatRuleCollection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The FirewallNatRuleCollection resource accepts the following input properties:
- Action string
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- Azure
Firewall stringName Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of the rule collection. Possible values are between
100-65000.- Resource
Group stringName Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- Rules
List<Firewall
Nat Rule Collection Rule Args> One or more
ruleblocks as defined below.- Name string
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- Action string
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- Azure
Firewall stringName Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of the rule collection. Possible values are between
100-65000.- Resource
Group stringName Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- Rules
[]Firewall
Nat Rule Collection Rule One or more
ruleblocks as defined below.- Name string
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- action string
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- azure
Firewall stringName Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- priority number
Specifies the priority of the rule collection. Possible values are between
100-65000.- resource
Group stringName Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- rules
Firewall
Nat Rule Collection Rule[] One or more
ruleblocks as defined below.- name string
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- action str
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- azure_
firewall_ strname Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- priority float
Specifies the priority of the rule collection. Possible values are between
100-65000.- resource_
group_ strname Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- rules
List[Firewall
Nat Rule Collection Rule] One or more
ruleblocks as defined below.- name str
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallNatRuleCollection resource produces the following output properties:
Look up an Existing FirewallNatRuleCollection Resource
Get an existing FirewallNatRuleCollection 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?: FirewallNatRuleCollectionState, opts?: CustomResourceOptions): FirewallNatRuleCollectionstatic get(resource_name, id, opts=None, action=None, azure_firewall_name=None, name=None, priority=None, resource_group_name=None, rules=None, __props__=None);func GetFirewallNatRuleCollection(ctx *Context, name string, id IDInput, state *FirewallNatRuleCollectionState, opts ...ResourceOption) (*FirewallNatRuleCollection, error)public static FirewallNatRuleCollection Get(string name, Input<string> id, FirewallNatRuleCollectionState? 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:
- Action string
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- Azure
Firewall stringName Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- Name string
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of the rule collection. Possible values are between
100-65000.- Resource
Group stringName Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- Rules
List<Firewall
Nat Rule Collection Rule Args> One or more
ruleblocks as defined below.
- Action string
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- Azure
Firewall stringName Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- Name string
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- Priority int
Specifies the priority of the rule collection. Possible values are between
100-65000.- Resource
Group stringName Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- Rules
[]Firewall
Nat Rule Collection Rule One or more
ruleblocks as defined below.
- action string
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- azure
Firewall stringName Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- name string
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- priority number
Specifies the priority of the rule collection. Possible values are between
100-65000.- resource
Group stringName Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- rules
Firewall
Nat Rule Collection Rule[] One or more
ruleblocks as defined below.
- action str
Specifies the action the rule will apply to matching traffic. Possible values are
DnatandSnat.- azure_
firewall_ strname Specifies the name of the Firewall in which the NAT Rule Collection should be created. Changing this forces a new resource to be created.
- name str
Specifies the name of the NAT Rule Collection which must be unique within the Firewall. Changing this forces a new resource to be created.
- priority float
Specifies the priority of the rule collection. Possible values are between
100-65000.- resource_
group_ strname Specifies the name of the Resource Group in which the Firewall exists. Changing this forces a new resource to be created.
- rules
List[Firewall
Nat Rule Collection Rule] One or more
ruleblocks as defined below.
Supporting Types
FirewallNatRuleCollectionRule
- Destination
Addresses List<string> A list of destination IP addresses and/or IP ranges.
- Destination
Ports List<string> A list of destination ports.
- Name string
Specifies the name of the rule.
- Protocols List<string>
A list of protocols. Possible values are
Any,ICMP,TCPandUDP. IfactionisDnat, protocols can only beTCPandUDP.- Source
Addresses List<string> A list of source IP addresses and/or IP ranges.
- Translated
Address string The address of the service behind the Firewall.
- Translated
Port string The port of the service behind the Firewall.
- Description string
Specifies a description for the rule.
- Destination
Addresses []string A list of destination IP addresses and/or IP ranges.
- Destination
Ports []string A list of destination ports.
- Name string
Specifies the name of the rule.
- Protocols []string
A list of protocols. Possible values are
Any,ICMP,TCPandUDP. IfactionisDnat, protocols can only beTCPandUDP.- Source
Addresses []string A list of source IP addresses and/or IP ranges.
- Translated
Address string The address of the service behind the Firewall.
- Translated
Port string The port of the service behind the Firewall.
- Description string
Specifies a description for the rule.
- destination
Addresses string[] A list of destination IP addresses and/or IP ranges.
- destination
Ports string[] A list of destination ports.
- name string
Specifies the name of the rule.
- protocols string[]
A list of protocols. Possible values are
Any,ICMP,TCPandUDP. IfactionisDnat, protocols can only beTCPandUDP.- source
Addresses string[] A list of source IP addresses and/or IP ranges.
- translated
Address string The address of the service behind the Firewall.
- translated
Port string The port of the service behind the Firewall.
- description string
Specifies a description for the rule.
- destination
Addresses List[str] A list of destination IP addresses and/or IP ranges.
- destination
Ports List[str] A list of destination ports.
- name str
Specifies the name of the rule.
- protocols List[str]
A list of protocols. Possible values are
Any,ICMP,TCPandUDP. IfactionisDnat, protocols can only beTCPandUDP.- source
Addresses List[str] A list of source IP addresses and/or IP ranges.
- translated
Address str The address of the service behind the Firewall.
- translated
Port str The port of the service behind the Firewall.
- description str
Specifies a description for the rule.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.