published on Tuesday, Apr 28, 2026 by Pulumi
published on Tuesday, Apr 28, 2026 by Pulumi
Provides a Cloud Firewall Nat Firewall Control Policy Order resource.
NAT border firewall ACL priority.
For information about Cloud Firewall Nat Firewall Control Policy Order and how to use it, see What is Nat Firewall Control Policy Order.
NOTE: Available since v1.276.0.
NOTE: The resource can be used to manage the ordering of resource
alicloud_cloud_firewall_nat_firewall_control_policy.new_order.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.cloudfirewall.NatFirewallControlPolicyOrder("default", {
aclUuid: "a3b5e8f3-6d2c-4e26-b078-87cee0790106",
natGatewayId: "ngw-2ze8hqi59w9wrm30zwgnq",
direction: "out",
order: "1",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cloudfirewall.NatFirewallControlPolicyOrder("default",
acl_uuid="a3b5e8f3-6d2c-4e26-b078-87cee0790106",
nat_gateway_id="ngw-2ze8hqi59w9wrm30zwgnq",
direction="out",
order="1")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cloudfirewall.NewNatFirewallControlPolicyOrder(ctx, "default", &cloudfirewall.NatFirewallControlPolicyOrderArgs{
AclUuid: pulumi.String("a3b5e8f3-6d2c-4e26-b078-87cee0790106"),
NatGatewayId: pulumi.String("ngw-2ze8hqi59w9wrm30zwgnq"),
Direction: pulumi.String("out"),
Order: pulumi.String("1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.CloudFirewall.NatFirewallControlPolicyOrder("default", new()
{
AclUuid = "a3b5e8f3-6d2c-4e26-b078-87cee0790106",
NatGatewayId = "ngw-2ze8hqi59w9wrm30zwgnq",
Direction = "out",
Order = "1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.NatFirewallControlPolicyOrder;
import com.pulumi.alicloud.cloudfirewall.NatFirewallControlPolicyOrderArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new NatFirewallControlPolicyOrder("default", NatFirewallControlPolicyOrderArgs.builder()
.aclUuid("a3b5e8f3-6d2c-4e26-b078-87cee0790106")
.natGatewayId("ngw-2ze8hqi59w9wrm30zwgnq")
.direction("out")
.order("1")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:cloudfirewall:NatFirewallControlPolicyOrder
properties:
aclUuid: a3b5e8f3-6d2c-4e26-b078-87cee0790106
natGatewayId: ngw-2ze8hqi59w9wrm30zwgnq
direction: out
order: '1'
Deleting alicloud.cloudfirewall.NatFirewallControlPolicyOrder or removing it from your configuration
Terraform cannot destroy resource alicloud.cloudfirewall.NatFirewallControlPolicyOrder. Terraform will remove this resource from the state file, however resources may remain.
📚 Need more examples? VIEW MORE EXAMPLES
Create NatFirewallControlPolicyOrder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NatFirewallControlPolicyOrder(name: string, args: NatFirewallControlPolicyOrderArgs, opts?: CustomResourceOptions);@overload
def NatFirewallControlPolicyOrder(resource_name: str,
args: NatFirewallControlPolicyOrderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NatFirewallControlPolicyOrder(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl_uuid: Optional[str] = None,
nat_gateway_id: Optional[str] = None,
order: Optional[str] = None,
current_page: Optional[str] = None,
direction: Optional[str] = None)func NewNatFirewallControlPolicyOrder(ctx *Context, name string, args NatFirewallControlPolicyOrderArgs, opts ...ResourceOption) (*NatFirewallControlPolicyOrder, error)public NatFirewallControlPolicyOrder(string name, NatFirewallControlPolicyOrderArgs args, CustomResourceOptions? opts = null)
public NatFirewallControlPolicyOrder(String name, NatFirewallControlPolicyOrderArgs args)
public NatFirewallControlPolicyOrder(String name, NatFirewallControlPolicyOrderArgs args, CustomResourceOptions options)
type: alicloud:cloudfirewall:NatFirewallControlPolicyOrder
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 NatFirewallControlPolicyOrderArgs
- 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 NatFirewallControlPolicyOrderArgs
- 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 NatFirewallControlPolicyOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatFirewallControlPolicyOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NatFirewallControlPolicyOrderArgs
- 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 natFirewallControlPolicyOrderResource = new AliCloud.CloudFirewall.NatFirewallControlPolicyOrder("natFirewallControlPolicyOrderResource", new()
{
AclUuid = "string",
NatGatewayId = "string",
Order = "string",
CurrentPage = "string",
Direction = "string",
});
example, err := cloudfirewall.NewNatFirewallControlPolicyOrder(ctx, "natFirewallControlPolicyOrderResource", &cloudfirewall.NatFirewallControlPolicyOrderArgs{
AclUuid: pulumi.String("string"),
NatGatewayId: pulumi.String("string"),
Order: pulumi.String("string"),
CurrentPage: pulumi.String("string"),
Direction: pulumi.String("string"),
})
var natFirewallControlPolicyOrderResource = new NatFirewallControlPolicyOrder("natFirewallControlPolicyOrderResource", NatFirewallControlPolicyOrderArgs.builder()
.aclUuid("string")
.natGatewayId("string")
.order("string")
.currentPage("string")
.direction("string")
.build());
nat_firewall_control_policy_order_resource = alicloud.cloudfirewall.NatFirewallControlPolicyOrder("natFirewallControlPolicyOrderResource",
acl_uuid="string",
nat_gateway_id="string",
order="string",
current_page="string",
direction="string")
const natFirewallControlPolicyOrderResource = new alicloud.cloudfirewall.NatFirewallControlPolicyOrder("natFirewallControlPolicyOrderResource", {
aclUuid: "string",
natGatewayId: "string",
order: "string",
currentPage: "string",
direction: "string",
});
type: alicloud:cloudfirewall:NatFirewallControlPolicyOrder
properties:
aclUuid: string
currentPage: string
direction: string
natGatewayId: string
order: string
NatFirewallControlPolicyOrder 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 NatFirewallControlPolicyOrder resource accepts the following input properties:
- Acl
Uuid string - The unique identifier ID of the security access control policy.
- Nat
Gateway stringId - The ID of the NAT gateway to query.
- Order string
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- Current
Page string The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- Direction string
- The traffic direction controlled by the access control policy. Valid values:
- Acl
Uuid string - The unique identifier ID of the security access control policy.
- Nat
Gateway stringId - The ID of the NAT gateway to query.
- Order string
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- Current
Page string The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- Direction string
- The traffic direction controlled by the access control policy. Valid values:
- acl
Uuid String - The unique identifier ID of the security access control policy.
- nat
Gateway StringId - The ID of the NAT gateway to query.
- order String
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- current
Page String The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction String
- The traffic direction controlled by the access control policy. Valid values:
- acl
Uuid string - The unique identifier ID of the security access control policy.
- nat
Gateway stringId - The ID of the NAT gateway to query.
- order string
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- current
Page string The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction string
- The traffic direction controlled by the access control policy. Valid values:
- acl_
uuid str - The unique identifier ID of the security access control policy.
- nat_
gateway_ strid - The ID of the NAT gateway to query.
- order str
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- current_
page str The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction str
- The traffic direction controlled by the access control policy. Valid values:
- acl
Uuid String - The unique identifier ID of the security access control policy.
- nat
Gateway StringId - The ID of the NAT gateway to query.
- order String
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- current
Page String The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction String
- The traffic direction controlled by the access control policy. Valid values:
Outputs
All input properties are implicitly available as output properties. Additionally, the NatFirewallControlPolicyOrder resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NatFirewallControlPolicyOrder Resource
Get an existing NatFirewallControlPolicyOrder 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?: NatFirewallControlPolicyOrderState, opts?: CustomResourceOptions): NatFirewallControlPolicyOrder@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_uuid: Optional[str] = None,
current_page: Optional[str] = None,
direction: Optional[str] = None,
nat_gateway_id: Optional[str] = None,
order: Optional[str] = None) -> NatFirewallControlPolicyOrderfunc GetNatFirewallControlPolicyOrder(ctx *Context, name string, id IDInput, state *NatFirewallControlPolicyOrderState, opts ...ResourceOption) (*NatFirewallControlPolicyOrder, error)public static NatFirewallControlPolicyOrder Get(string name, Input<string> id, NatFirewallControlPolicyOrderState? state, CustomResourceOptions? opts = null)public static NatFirewallControlPolicyOrder get(String name, Output<String> id, NatFirewallControlPolicyOrderState state, CustomResourceOptions options)resources: _: type: alicloud:cloudfirewall:NatFirewallControlPolicyOrder 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.
- Acl
Uuid string - The unique identifier ID of the security access control policy.
- Current
Page string The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- Direction string
- The traffic direction controlled by the access control policy. Valid values:
- Nat
Gateway stringId - The ID of the NAT gateway to query.
- Order string
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- Acl
Uuid string - The unique identifier ID of the security access control policy.
- Current
Page string The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- Direction string
- The traffic direction controlled by the access control policy. Valid values:
- Nat
Gateway stringId - The ID of the NAT gateway to query.
- Order string
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- acl
Uuid String - The unique identifier ID of the security access control policy.
- current
Page String The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction String
- The traffic direction controlled by the access control policy. Valid values:
- nat
Gateway StringId - The ID of the NAT gateway to query.
- order String
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- acl
Uuid string - The unique identifier ID of the security access control policy.
- current
Page string The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction string
- The traffic direction controlled by the access control policy. Valid values:
- nat
Gateway stringId - The ID of the NAT gateway to query.
- order string
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- acl_
uuid str - The unique identifier ID of the security access control policy.
- current_
page str The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction str
- The traffic direction controlled by the access control policy. Valid values:
- nat_
gateway_ strid - The ID of the NAT gateway to query.
- order str
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
- acl
Uuid String - The unique identifier ID of the security access control policy.
- current
Page String The page number of the current page for paginated queries.
NOTE: This parameter is only evaluated during resource creation and update. Modifying it in isolation will not trigger any action.
- direction String
- The traffic direction controlled by the access control policy. Valid values:
- nat
Gateway StringId - The ID of the NAT gateway to query.
- order String
- The priority at which the access control policy takes effect. Priority numbers start from 1 and increment sequentially. A smaller priority number indicates a higher priority.
Import
Cloud Firewall Nat Firewall Control Policy Order can be imported using the id, e.g.
$ pulumi import alicloud:cloudfirewall/natFirewallControlPolicyOrder:NatFirewallControlPolicyOrder example <acl_uuid>:<nat_gateway_id>:<direction>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Tuesday, Apr 28, 2026 by Pulumi
