1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. NetworkFirewallPolicyNatRule
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

oci.NetworkFirewall.NetworkFirewallPolicyNatRule

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi

    This resource provides the Network Firewall Policy Nat Rule resource in Oracle Cloud Infrastructure Network Firewall service.

    Creates a new NAT Rule for the Network Firewall Policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkFirewallPolicyNatRule = new oci.networkfirewall.NetworkFirewallPolicyNatRule("test_network_firewall_policy_nat_rule", {
        action: networkFirewallPolicyNatRuleAction,
        condition: {
            destinationAddresses: networkFirewallPolicyNatRuleConditionDestinationAddress,
            service: networkFirewallPolicyNatRuleConditionService,
            sourceAddresses: networkFirewallPolicyNatRuleConditionSourceAddress,
        },
        name: networkFirewallPolicyNatRuleName,
        networkFirewallPolicyId: testNetworkFirewallPolicy.id,
        type: networkFirewallPolicyNatRuleType,
        description: networkFirewallPolicyNatRuleDescription,
        position: {
            afterRule: networkFirewallPolicyNatRulePositionAfterRule,
            beforeRule: networkFirewallPolicyNatRulePositionBeforeRule,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_firewall_policy_nat_rule = oci.network_firewall.NetworkFirewallPolicyNatRule("test_network_firewall_policy_nat_rule",
        action=network_firewall_policy_nat_rule_action,
        condition={
            "destination_addresses": network_firewall_policy_nat_rule_condition_destination_address,
            "service": network_firewall_policy_nat_rule_condition_service,
            "source_addresses": network_firewall_policy_nat_rule_condition_source_address,
        },
        name=network_firewall_policy_nat_rule_name,
        network_firewall_policy_id=test_network_firewall_policy["id"],
        type=network_firewall_policy_nat_rule_type,
        description=network_firewall_policy_nat_rule_description,
        position={
            "after_rule": network_firewall_policy_nat_rule_position_after_rule,
            "before_rule": network_firewall_policy_nat_rule_position_before_rule,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/networkfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkfirewall.NewNetworkFirewallPolicyNatRule(ctx, "test_network_firewall_policy_nat_rule", &networkfirewall.NetworkFirewallPolicyNatRuleArgs{
    			Action: pulumi.Any(networkFirewallPolicyNatRuleAction),
    			Condition: &networkfirewall.NetworkFirewallPolicyNatRuleConditionArgs{
    				DestinationAddresses: pulumi.Any(networkFirewallPolicyNatRuleConditionDestinationAddress),
    				Service:              pulumi.Any(networkFirewallPolicyNatRuleConditionService),
    				SourceAddresses:      pulumi.Any(networkFirewallPolicyNatRuleConditionSourceAddress),
    			},
    			Name:                    pulumi.Any(networkFirewallPolicyNatRuleName),
    			NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
    			Type:                    pulumi.Any(networkFirewallPolicyNatRuleType),
    			Description:             pulumi.Any(networkFirewallPolicyNatRuleDescription),
    			Position: &networkfirewall.NetworkFirewallPolicyNatRulePositionArgs{
    				AfterRule:  pulumi.Any(networkFirewallPolicyNatRulePositionAfterRule),
    				BeforeRule: pulumi.Any(networkFirewallPolicyNatRulePositionBeforeRule),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testNetworkFirewallPolicyNatRule = new Oci.NetworkFirewall.NetworkFirewallPolicyNatRule("test_network_firewall_policy_nat_rule", new()
        {
            Action = networkFirewallPolicyNatRuleAction,
            Condition = new Oci.NetworkFirewall.Inputs.NetworkFirewallPolicyNatRuleConditionArgs
            {
                DestinationAddresses = networkFirewallPolicyNatRuleConditionDestinationAddress,
                Service = networkFirewallPolicyNatRuleConditionService,
                SourceAddresses = networkFirewallPolicyNatRuleConditionSourceAddress,
            },
            Name = networkFirewallPolicyNatRuleName,
            NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
            Type = networkFirewallPolicyNatRuleType,
            Description = networkFirewallPolicyNatRuleDescription,
            Position = new Oci.NetworkFirewall.Inputs.NetworkFirewallPolicyNatRulePositionArgs
            {
                AfterRule = networkFirewallPolicyNatRulePositionAfterRule,
                BeforeRule = networkFirewallPolicyNatRulePositionBeforeRule,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyNatRule;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyNatRuleArgs;
    import com.pulumi.oci.NetworkFirewall.inputs.NetworkFirewallPolicyNatRuleConditionArgs;
    import com.pulumi.oci.NetworkFirewall.inputs.NetworkFirewallPolicyNatRulePositionArgs;
    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 testNetworkFirewallPolicyNatRule = new NetworkFirewallPolicyNatRule("testNetworkFirewallPolicyNatRule", NetworkFirewallPolicyNatRuleArgs.builder()
                .action(networkFirewallPolicyNatRuleAction)
                .condition(NetworkFirewallPolicyNatRuleConditionArgs.builder()
                    .destinationAddresses(networkFirewallPolicyNatRuleConditionDestinationAddress)
                    .service(networkFirewallPolicyNatRuleConditionService)
                    .sourceAddresses(networkFirewallPolicyNatRuleConditionSourceAddress)
                    .build())
                .name(networkFirewallPolicyNatRuleName)
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .type(networkFirewallPolicyNatRuleType)
                .description(networkFirewallPolicyNatRuleDescription)
                .position(NetworkFirewallPolicyNatRulePositionArgs.builder()
                    .afterRule(networkFirewallPolicyNatRulePositionAfterRule)
                    .beforeRule(networkFirewallPolicyNatRulePositionBeforeRule)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testNetworkFirewallPolicyNatRule:
        type: oci:NetworkFirewall:NetworkFirewallPolicyNatRule
        name: test_network_firewall_policy_nat_rule
        properties:
          action: ${networkFirewallPolicyNatRuleAction}
          condition:
            destinationAddresses: ${networkFirewallPolicyNatRuleConditionDestinationAddress}
            service: ${networkFirewallPolicyNatRuleConditionService}
            sourceAddresses: ${networkFirewallPolicyNatRuleConditionSourceAddress}
          name: ${networkFirewallPolicyNatRuleName}
          networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
          type: ${networkFirewallPolicyNatRuleType}
          description: ${networkFirewallPolicyNatRuleDescription}
          position:
            afterRule: ${networkFirewallPolicyNatRulePositionAfterRule}
            beforeRule: ${networkFirewallPolicyNatRulePositionBeforeRule}
    

    Create NetworkFirewallPolicyNatRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkFirewallPolicyNatRule(name: string, args: NetworkFirewallPolicyNatRuleArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkFirewallPolicyNatRule(resource_name: str,
                                     args: NetworkFirewallPolicyNatRuleArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkFirewallPolicyNatRule(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     action: Optional[str] = None,
                                     condition: Optional[NetworkFirewallPolicyNatRuleConditionArgs] = None,
                                     network_firewall_policy_id: Optional[str] = None,
                                     type: Optional[str] = None,
                                     description: Optional[str] = None,
                                     name: Optional[str] = None,
                                     position: Optional[NetworkFirewallPolicyNatRulePositionArgs] = None)
    func NewNetworkFirewallPolicyNatRule(ctx *Context, name string, args NetworkFirewallPolicyNatRuleArgs, opts ...ResourceOption) (*NetworkFirewallPolicyNatRule, error)
    public NetworkFirewallPolicyNatRule(string name, NetworkFirewallPolicyNatRuleArgs args, CustomResourceOptions? opts = null)
    public NetworkFirewallPolicyNatRule(String name, NetworkFirewallPolicyNatRuleArgs args)
    public NetworkFirewallPolicyNatRule(String name, NetworkFirewallPolicyNatRuleArgs args, CustomResourceOptions options)
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyNatRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkFirewallPolicyNatRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkFirewallPolicyNatRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkFirewallPolicyNatRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkFirewallPolicyNatRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkFirewallPolicyNatRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var networkFirewallPolicyNatRuleResource = new Oci.NetworkFirewall.NetworkFirewallPolicyNatRule("networkFirewallPolicyNatRuleResource", new()
    {
        Action = "string",
        Condition = new Oci.NetworkFirewall.Inputs.NetworkFirewallPolicyNatRuleConditionArgs
        {
            DestinationAddresses = new[]
            {
                "string",
            },
            Service = "string",
            SourceAddresses = new[]
            {
                "string",
            },
        },
        NetworkFirewallPolicyId = "string",
        Type = "string",
        Description = "string",
        Name = "string",
        Position = new Oci.NetworkFirewall.Inputs.NetworkFirewallPolicyNatRulePositionArgs
        {
            AfterRule = "string",
            BeforeRule = "string",
        },
    });
    
    example, err := networkfirewall.NewNetworkFirewallPolicyNatRule(ctx, "networkFirewallPolicyNatRuleResource", &networkfirewall.NetworkFirewallPolicyNatRuleArgs{
    	Action: pulumi.String("string"),
    	Condition: &networkfirewall.NetworkFirewallPolicyNatRuleConditionArgs{
    		DestinationAddresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Service: pulumi.String("string"),
    		SourceAddresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	NetworkFirewallPolicyId: pulumi.String("string"),
    	Type:                    pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	Position: &networkfirewall.NetworkFirewallPolicyNatRulePositionArgs{
    		AfterRule:  pulumi.String("string"),
    		BeforeRule: pulumi.String("string"),
    	},
    })
    
    var networkFirewallPolicyNatRuleResource = new NetworkFirewallPolicyNatRule("networkFirewallPolicyNatRuleResource", NetworkFirewallPolicyNatRuleArgs.builder()
        .action("string")
        .condition(NetworkFirewallPolicyNatRuleConditionArgs.builder()
            .destinationAddresses("string")
            .service("string")
            .sourceAddresses("string")
            .build())
        .networkFirewallPolicyId("string")
        .type("string")
        .description("string")
        .name("string")
        .position(NetworkFirewallPolicyNatRulePositionArgs.builder()
            .afterRule("string")
            .beforeRule("string")
            .build())
        .build());
    
    network_firewall_policy_nat_rule_resource = oci.network_firewall.NetworkFirewallPolicyNatRule("networkFirewallPolicyNatRuleResource",
        action="string",
        condition={
            "destination_addresses": ["string"],
            "service": "string",
            "source_addresses": ["string"],
        },
        network_firewall_policy_id="string",
        type="string",
        description="string",
        name="string",
        position={
            "after_rule": "string",
            "before_rule": "string",
        })
    
    const networkFirewallPolicyNatRuleResource = new oci.networkfirewall.NetworkFirewallPolicyNatRule("networkFirewallPolicyNatRuleResource", {
        action: "string",
        condition: {
            destinationAddresses: ["string"],
            service: "string",
            sourceAddresses: ["string"],
        },
        networkFirewallPolicyId: "string",
        type: "string",
        description: "string",
        name: "string",
        position: {
            afterRule: "string",
            beforeRule: "string",
        },
    });
    
    type: oci:NetworkFirewall:NetworkFirewallPolicyNatRule
    properties:
        action: string
        condition:
            destinationAddresses:
                - string
            service: string
            sourceAddresses:
                - string
        description: string
        name: string
        networkFirewallPolicyId: string
        position:
            afterRule: string
            beforeRule: string
        type: string
    

    NetworkFirewallPolicyNatRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NetworkFirewallPolicyNatRule resource accepts the following input properties:

    Action string
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    Condition NetworkFirewallPolicyNatRuleCondition
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Type string

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Description string
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    Name string
    Name for the NAT rule, must be unique within the policy.
    Position NetworkFirewallPolicyNatRulePosition
    (Updatable) An object which defines the position of the rule.
    Action string
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    Condition NetworkFirewallPolicyNatRuleConditionArgs
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Type string

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Description string
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    Name string
    Name for the NAT rule, must be unique within the policy.
    Position NetworkFirewallPolicyNatRulePositionArgs
    (Updatable) An object which defines the position of the rule.
    action String
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition PolicyNatRuleCondition
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    type String

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    description String
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name String
    Name for the NAT rule, must be unique within the policy.
    position PolicyNatRulePosition
    (Updatable) An object which defines the position of the rule.
    action string
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition NetworkFirewallPolicyNatRuleCondition
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    type string

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    description string
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name string
    Name for the NAT rule, must be unique within the policy.
    position NetworkFirewallPolicyNatRulePosition
    (Updatable) An object which defines the position of the rule.
    action str
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition NetworkFirewallPolicyNatRuleConditionArgs
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    type str

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    description str
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name str
    Name for the NAT rule, must be unique within the policy.
    position NetworkFirewallPolicyNatRulePositionArgs
    (Updatable) An object which defines the position of the rule.
    action String
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition Property Map
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    type String

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    description String
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name String
    Name for the NAT rule, must be unique within the policy.
    position Property Map
    (Updatable) An object which defines the position of the rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyNatRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this decryption profile belongs to.
    PriorityOrder string
    The priority order in which this rule should be evaluated
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentResourceId string
    OCID of the Network Firewall Policy this decryption profile belongs to.
    PriorityOrder string
    The priority order in which this rule should be evaluated
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this decryption profile belongs to.
    priorityOrder String
    The priority order in which this rule should be evaluated
    id string
    The provider-assigned unique ID for this managed resource.
    parentResourceId string
    OCID of the Network Firewall Policy this decryption profile belongs to.
    priorityOrder string
    The priority order in which this rule should be evaluated
    id str
    The provider-assigned unique ID for this managed resource.
    parent_resource_id str
    OCID of the Network Firewall Policy this decryption profile belongs to.
    priority_order str
    The priority order in which this rule should be evaluated
    id String
    The provider-assigned unique ID for this managed resource.
    parentResourceId String
    OCID of the Network Firewall Policy this decryption profile belongs to.
    priorityOrder String
    The priority order in which this rule should be evaluated

    Look up Existing NetworkFirewallPolicyNatRule Resource

    Get an existing NetworkFirewallPolicyNatRule 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?: NetworkFirewallPolicyNatRuleState, opts?: CustomResourceOptions): NetworkFirewallPolicyNatRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            condition: Optional[NetworkFirewallPolicyNatRuleConditionArgs] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            network_firewall_policy_id: Optional[str] = None,
            parent_resource_id: Optional[str] = None,
            position: Optional[NetworkFirewallPolicyNatRulePositionArgs] = None,
            priority_order: Optional[str] = None,
            type: Optional[str] = None) -> NetworkFirewallPolicyNatRule
    func GetNetworkFirewallPolicyNatRule(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyNatRuleState, opts ...ResourceOption) (*NetworkFirewallPolicyNatRule, error)
    public static NetworkFirewallPolicyNatRule Get(string name, Input<string> id, NetworkFirewallPolicyNatRuleState? state, CustomResourceOptions? opts = null)
    public static NetworkFirewallPolicyNatRule get(String name, Output<String> id, NetworkFirewallPolicyNatRuleState state, CustomResourceOptions options)
    resources:  _:    type: oci:NetworkFirewall:NetworkFirewallPolicyNatRule    get:      id: ${id}
    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.
    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
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    Condition NetworkFirewallPolicyNatRuleCondition
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    Description string
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    Name string
    Name for the NAT rule, must be unique within the policy.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this decryption profile belongs to.
    Position NetworkFirewallPolicyNatRulePosition
    (Updatable) An object which defines the position of the rule.
    PriorityOrder string
    The priority order in which this rule should be evaluated
    Type string

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Action string
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    Condition NetworkFirewallPolicyNatRuleConditionArgs
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    Description string
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    Name string
    Name for the NAT rule, must be unique within the policy.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    ParentResourceId string
    OCID of the Network Firewall Policy this decryption profile belongs to.
    Position NetworkFirewallPolicyNatRulePositionArgs
    (Updatable) An object which defines the position of the rule.
    PriorityOrder string
    The priority order in which this rule should be evaluated
    Type string

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    action String
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition PolicyNatRuleCondition
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    description String
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name String
    Name for the NAT rule, must be unique within the policy.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this decryption profile belongs to.
    position PolicyNatRulePosition
    (Updatable) An object which defines the position of the rule.
    priorityOrder String
    The priority order in which this rule should be evaluated
    type String

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    action string
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition NetworkFirewallPolicyNatRuleCondition
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    description string
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name string
    Name for the NAT rule, must be unique within the policy.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    parentResourceId string
    OCID of the Network Firewall Policy this decryption profile belongs to.
    position NetworkFirewallPolicyNatRulePosition
    (Updatable) An object which defines the position of the rule.
    priorityOrder string
    The priority order in which this rule should be evaluated
    type string

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    action str
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition NetworkFirewallPolicyNatRuleConditionArgs
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    description str
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name str
    Name for the NAT rule, must be unique within the policy.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    parent_resource_id str
    OCID of the Network Firewall Policy this decryption profile belongs to.
    position NetworkFirewallPolicyNatRulePositionArgs
    (Updatable) An object which defines the position of the rule.
    priority_order str
    The priority order in which this rule should be evaluated
    type str

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    action String
    (Updatable) action:

    • DIPP_SRC_NAT - Dynamic-ip-port source NAT.
    condition Property Map
    (Updatable) Match criteria used in NAT Rule used on the firewall policy.
    description String
    (Updatable) Description of a NAT rule. This field can be used to add additional info.
    name String
    Name for the NAT rule, must be unique within the policy.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    parentResourceId String
    OCID of the Network Firewall Policy this decryption profile belongs to.
    position Property Map
    (Updatable) An object which defines the position of the rule.
    priorityOrder String
    The priority order in which this rule should be evaluated
    type String

    (Updatable) NAT type:

    • NATV4 - NATV4 type NAT.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    NetworkFirewallPolicyNatRuleCondition, NetworkFirewallPolicyNatRuleConditionArgs

    DestinationAddresses List<string>
    (Updatable) An array of IP address list names to be evaluated against the traffic destination address.
    Service string
    (Updatable) A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
    SourceAddresses List<string>
    (Updatable) An array of IP address list names to be evaluated against the traffic source address.
    DestinationAddresses []string
    (Updatable) An array of IP address list names to be evaluated against the traffic destination address.
    Service string
    (Updatable) A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
    SourceAddresses []string
    (Updatable) An array of IP address list names to be evaluated against the traffic source address.
    destinationAddresses List<String>
    (Updatable) An array of IP address list names to be evaluated against the traffic destination address.
    service String
    (Updatable) A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
    sourceAddresses List<String>
    (Updatable) An array of IP address list names to be evaluated against the traffic source address.
    destinationAddresses string[]
    (Updatable) An array of IP address list names to be evaluated against the traffic destination address.
    service string
    (Updatable) A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
    sourceAddresses string[]
    (Updatable) An array of IP address list names to be evaluated against the traffic source address.
    destination_addresses Sequence[str]
    (Updatable) An array of IP address list names to be evaluated against the traffic destination address.
    service str
    (Updatable) A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
    source_addresses Sequence[str]
    (Updatable) An array of IP address list names to be evaluated against the traffic source address.
    destinationAddresses List<String>
    (Updatable) An array of IP address list names to be evaluated against the traffic destination address.
    service String
    (Updatable) A Service name to be evaluated against the traffic protocol and protocol-specific parameters.
    sourceAddresses List<String>
    (Updatable) An array of IP address list names to be evaluated against the traffic source address.

    NetworkFirewallPolicyNatRulePosition, NetworkFirewallPolicyNatRulePositionArgs

    AfterRule string
    (Updatable) Identifier for rule after which this rule lies.
    BeforeRule string
    (Updatable) Identifier for rule before which this rule lies.
    AfterRule string
    (Updatable) Identifier for rule after which this rule lies.
    BeforeRule string
    (Updatable) Identifier for rule before which this rule lies.
    afterRule String
    (Updatable) Identifier for rule after which this rule lies.
    beforeRule String
    (Updatable) Identifier for rule before which this rule lies.
    afterRule string
    (Updatable) Identifier for rule after which this rule lies.
    beforeRule string
    (Updatable) Identifier for rule before which this rule lies.
    after_rule str
    (Updatable) Identifier for rule after which this rule lies.
    before_rule str
    (Updatable) Identifier for rule before which this rule lies.
    afterRule String
    (Updatable) Identifier for rule after which this rule lies.
    beforeRule String
    (Updatable) Identifier for rule before which this rule lies.

    Import

    NetworkFirewallPolicyNatRules can be imported using the id, e.g.

    $ pulumi import oci:NetworkFirewall/networkFirewallPolicyNatRule:NetworkFirewallPolicyNatRule test_network_firewall_policy_nat_rule "networkFirewallPolicies/{networkFirewallPolicyId}/natRules/{natRuleName}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.0.0 published on Thursday, Jun 5, 2025 by Pulumi