1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. cloudfirewall
  6. FwSwitch
Viewing docs for Alibaba Cloud v4.0.1
published on Tuesday, Oct 27, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v4.0.1
published on Tuesday, Oct 27, 2026 by Pulumi

    Provides a Cloud Firewall Fw Switch resource.

    The protection switch of an internet boundary firewall asset. The existence of the resource indicates that protection for the public IP asset is enabled (ProtectStatus=open), and removal of the resource indicates that protection is disabled (ProtectStatus=closed).

    For information about Cloud Firewall Fw Switch and how to use it, see What is Fw Switch.

    NOTE: Available since v1.295.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.cloudfirewall.FwSwitch("example", {
        internetAddress: "203.0.113.1",
        memberUid: 1412345678901234,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cloudfirewall.FwSwitch("example",
        internet_address="203.0.113.1",
        member_uid=int(1412345678901234))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v4/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfirewall.NewFwSwitch(ctx, "example", &cloudfirewall.FwSwitchArgs{
    			InternetAddress: pulumi.String("203.0.113.1"),
    			MemberUid:       pulumi.Int(1412345678901234),
    		})
    		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 example = new AliCloud.CloudFirewall.FwSwitch("example", new()
        {
            InternetAddress = "203.0.113.1",
            MemberUid = (int)1412345678901234,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cloudfirewall.FwSwitch;
    import com.pulumi.alicloud.cloudfirewall.FwSwitchArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = new FwSwitch("example", FwSwitchArgs.builder()
                .internetAddress("203.0.113.1")
                .memberUid(1412345678901234)
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:cloudfirewall:FwSwitch
        properties:
          internetAddress: 203.0.113.1
          memberUid: 1.412345678901234e+15
    
    terraform {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_cloudfirewall_fw_switch" "example" {
      lifecycle {
        create_before_destroy = true
      }
      internet_address = "203.0.113.1"
      member_uid       = 1412345678901234
    }
    

    Create FwSwitch Resource

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

    Constructor syntax

    new FwSwitch(name: string, args: FwSwitchArgs, opts?: CustomResourceOptions);
    @overload
    def FwSwitch(resource_name: str,
                 args: FwSwitchArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def FwSwitch(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 internet_address: Optional[str] = None,
                 dry_run: Optional[bool] = None,
                 ip_version: Optional[str] = None,
                 lang: Optional[str] = None,
                 member_uid: Optional[int] = None)
    func NewFwSwitch(ctx *Context, name string, args FwSwitchArgs, opts ...ResourceOption) (*FwSwitch, error)
    public FwSwitch(string name, FwSwitchArgs args, CustomResourceOptions? opts = null)
    public FwSwitch(String name, FwSwitchArgs args)
    public FwSwitch(String name, FwSwitchArgs args, CustomResourceOptions options)
    
    type: alicloud:cloudfirewall:FwSwitch
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_cloudfirewall_fw_switch" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FwSwitchArgs
    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 FwSwitchArgs
    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 FwSwitchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FwSwitchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FwSwitchArgs
    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 fwSwitchResource = new AliCloud.CloudFirewall.FwSwitch("fwSwitchResource", new()
    {
        InternetAddress = "string",
        DryRun = false,
        IpVersion = "string",
        Lang = "string",
        MemberUid = 0,
    });
    
    example, err := cloudfirewall.NewFwSwitch(ctx, "fwSwitchResource", &cloudfirewall.FwSwitchArgs{
    	InternetAddress: pulumi.String("string"),
    	DryRun:          pulumi.Bool(false),
    	IpVersion:       pulumi.String("string"),
    	Lang:            pulumi.String("string"),
    	MemberUid:       pulumi.Int(0),
    })
    
    resource "alicloud_cloudfirewall_fw_switch" "fwSwitchResource" {
      lifecycle {
        create_before_destroy = true
      }
      internet_address = "string"
      dry_run          = false
      ip_version       = "string"
      lang             = "string"
      member_uid       = 0
    }
    
    var fwSwitchResource = new FwSwitch("fwSwitchResource", FwSwitchArgs.builder()
        .internetAddress("string")
        .dryRun(false)
        .ipVersion("string")
        .lang("string")
        .memberUid(0)
        .build());
    
    fw_switch_resource = alicloud.cloudfirewall.FwSwitch("fwSwitchResource",
        internet_address="string",
        dry_run=False,
        ip_version="string",
        lang="string",
        member_uid=0)
    
    const fwSwitchResource = new alicloud.cloudfirewall.FwSwitch("fwSwitchResource", {
        internetAddress: "string",
        dryRun: false,
        ipVersion: "string",
        lang: "string",
        memberUid: 0,
    });
    
    type: alicloud:cloudfirewall:FwSwitch
    properties:
        dryRun: false
        internetAddress: string
        ipVersion: string
        lang: string
        memberUid: 0
    

    FwSwitch 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 FwSwitch resource accepts the following input properties:

    InternetAddress string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    DryRun bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    IpVersion string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    Lang string
    The language type of the received message.
    MemberUid int
    The UID of the Cloud Firewall member account.
    InternetAddress string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    DryRun bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    IpVersion string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    Lang string
    The language type of the received message.
    MemberUid int
    The UID of the Cloud Firewall member account.
    internet_address string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    dry_run bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    ip_version string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang string
    The language type of the received message.
    member_uid number
    The UID of the Cloud Firewall member account.
    internetAddress String
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    dryRun Boolean

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    ipVersion String
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang String
    The language type of the received message.
    memberUid Integer
    The UID of the Cloud Firewall member account.
    internetAddress string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    dryRun boolean

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    ipVersion string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang string
    The language type of the received message.
    memberUid number
    The UID of the Cloud Firewall member account.
    internet_address str
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    dry_run bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    ip_version str
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang str
    The language type of the received message.
    member_uid int
    The UID of the Cloud Firewall member account.
    internetAddress String
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    dryRun Boolean

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    ipVersion String
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang String
    The language type of the received message.
    memberUid Number
    The UID of the Cloud Firewall member account.

    Outputs

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

    AliUid int
    AliUid.
    BindInstanceId string
    BindInstanceId.
    BindInstanceName string
    BindInstanceName.
    Id string
    The provider-assigned unique ID for this managed resource.
    IntranetAddress string
    IntranetAddress.
    Name string
    Name.
    Note string
    Note.
    ProtectStatus string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    RegionId string
    RegionId.
    RegionStatus string
    RegionStatus.
    ResourceInstanceId string
    ResourceInstanceId.
    ResourceType string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    SgStatus string
    SgStatus.
    SgStatusTime int
    SgStatusTime.
    SyncStatus string
    SyncStatus.
    Type string
    Type.
    AliUid int
    AliUid.
    BindInstanceId string
    BindInstanceId.
    BindInstanceName string
    BindInstanceName.
    Id string
    The provider-assigned unique ID for this managed resource.
    IntranetAddress string
    IntranetAddress.
    Name string
    Name.
    Note string
    Note.
    ProtectStatus string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    RegionId string
    RegionId.
    RegionStatus string
    RegionStatus.
    ResourceInstanceId string
    ResourceInstanceId.
    ResourceType string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    SgStatus string
    SgStatus.
    SgStatusTime int
    SgStatusTime.
    SyncStatus string
    SyncStatus.
    Type string
    Type.
    ali_uid number
    AliUid.
    bind_instance_id string
    BindInstanceId.
    bind_instance_name string
    BindInstanceName.
    id string
    The provider-assigned unique ID for this managed resource.
    intranet_address string
    IntranetAddress.
    name string
    Name.
    note string
    Note.
    protect_status string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    region_id string
    RegionId.
    region_status string
    RegionStatus.
    resource_instance_id string
    ResourceInstanceId.
    resource_type string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sg_status string
    SgStatus.
    sg_status_time number
    SgStatusTime.
    sync_status string
    SyncStatus.
    type string
    Type.
    aliUid Integer
    AliUid.
    bindInstanceId String
    BindInstanceId.
    bindInstanceName String
    BindInstanceName.
    id String
    The provider-assigned unique ID for this managed resource.
    intranetAddress String
    IntranetAddress.
    name String
    Name.
    note String
    Note.
    protectStatus String
    The protection status of the asset. Valid values: open, opening, closed, closing.
    regionId String
    RegionId.
    regionStatus String
    RegionStatus.
    resourceInstanceId String
    ResourceInstanceId.
    resourceType String
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sgStatus String
    SgStatus.
    sgStatusTime Integer
    SgStatusTime.
    syncStatus String
    SyncStatus.
    type String
    Type.
    aliUid number
    AliUid.
    bindInstanceId string
    BindInstanceId.
    bindInstanceName string
    BindInstanceName.
    id string
    The provider-assigned unique ID for this managed resource.
    intranetAddress string
    IntranetAddress.
    name string
    Name.
    note string
    Note.
    protectStatus string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    regionId string
    RegionId.
    regionStatus string
    RegionStatus.
    resourceInstanceId string
    ResourceInstanceId.
    resourceType string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sgStatus string
    SgStatus.
    sgStatusTime number
    SgStatusTime.
    syncStatus string
    SyncStatus.
    type string
    Type.
    ali_uid int
    AliUid.
    bind_instance_id str
    BindInstanceId.
    bind_instance_name str
    BindInstanceName.
    id str
    The provider-assigned unique ID for this managed resource.
    intranet_address str
    IntranetAddress.
    name str
    Name.
    note str
    Note.
    protect_status str
    The protection status of the asset. Valid values: open, opening, closed, closing.
    region_id str
    RegionId.
    region_status str
    RegionStatus.
    resource_instance_id str
    ResourceInstanceId.
    resource_type str
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sg_status str
    SgStatus.
    sg_status_time int
    SgStatusTime.
    sync_status str
    SyncStatus.
    type str
    Type.
    aliUid Number
    AliUid.
    bindInstanceId String
    BindInstanceId.
    bindInstanceName String
    BindInstanceName.
    id String
    The provider-assigned unique ID for this managed resource.
    intranetAddress String
    IntranetAddress.
    name String
    Name.
    note String
    Note.
    protectStatus String
    The protection status of the asset. Valid values: open, opening, closed, closing.
    regionId String
    RegionId.
    regionStatus String
    RegionStatus.
    resourceInstanceId String
    ResourceInstanceId.
    resourceType String
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sgStatus String
    SgStatus.
    sgStatusTime Number
    SgStatusTime.
    syncStatus String
    SyncStatus.
    type String
    Type.

    Look up Existing FwSwitch Resource

    Get an existing FwSwitch 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?: FwSwitchState, opts?: CustomResourceOptions): FwSwitch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ali_uid: Optional[int] = None,
            bind_instance_id: Optional[str] = None,
            bind_instance_name: Optional[str] = None,
            dry_run: Optional[bool] = None,
            internet_address: Optional[str] = None,
            intranet_address: Optional[str] = None,
            ip_version: Optional[str] = None,
            lang: Optional[str] = None,
            member_uid: Optional[int] = None,
            name: Optional[str] = None,
            note: Optional[str] = None,
            protect_status: Optional[str] = None,
            region_id: Optional[str] = None,
            region_status: Optional[str] = None,
            resource_instance_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            sg_status: Optional[str] = None,
            sg_status_time: Optional[int] = None,
            sync_status: Optional[str] = None,
            type: Optional[str] = None) -> FwSwitch
    func GetFwSwitch(ctx *Context, name string, id IDInput, state *FwSwitchState, opts ...ResourceOption) (*FwSwitch, error)
    public static FwSwitch Get(string name, Input<string> id, FwSwitchState? state, CustomResourceOptions? opts = null)
    public static FwSwitch get(String name, Output<String> id, FwSwitchState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cloudfirewall:FwSwitch    get:      id: ${id}
    import {
      to = alicloud_cloudfirewall_fw_switch.example
      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:
    AliUid int
    AliUid.
    BindInstanceId string
    BindInstanceId.
    BindInstanceName string
    BindInstanceName.
    DryRun bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    InternetAddress string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    IntranetAddress string
    IntranetAddress.
    IpVersion string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    Lang string
    The language type of the received message.
    MemberUid int
    The UID of the Cloud Firewall member account.
    Name string
    Name.
    Note string
    Note.
    ProtectStatus string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    RegionId string
    RegionId.
    RegionStatus string
    RegionStatus.
    ResourceInstanceId string
    ResourceInstanceId.
    ResourceType string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    SgStatus string
    SgStatus.
    SgStatusTime int
    SgStatusTime.
    SyncStatus string
    SyncStatus.
    Type string
    Type.
    AliUid int
    AliUid.
    BindInstanceId string
    BindInstanceId.
    BindInstanceName string
    BindInstanceName.
    DryRun bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    InternetAddress string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    IntranetAddress string
    IntranetAddress.
    IpVersion string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    Lang string
    The language type of the received message.
    MemberUid int
    The UID of the Cloud Firewall member account.
    Name string
    Name.
    Note string
    Note.
    ProtectStatus string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    RegionId string
    RegionId.
    RegionStatus string
    RegionStatus.
    ResourceInstanceId string
    ResourceInstanceId.
    ResourceType string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    SgStatus string
    SgStatus.
    SgStatusTime int
    SgStatusTime.
    SyncStatus string
    SyncStatus.
    Type string
    Type.
    ali_uid number
    AliUid.
    bind_instance_id string
    BindInstanceId.
    bind_instance_name string
    BindInstanceName.
    dry_run bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    internet_address string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    intranet_address string
    IntranetAddress.
    ip_version string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang string
    The language type of the received message.
    member_uid number
    The UID of the Cloud Firewall member account.
    name string
    Name.
    note string
    Note.
    protect_status string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    region_id string
    RegionId.
    region_status string
    RegionStatus.
    resource_instance_id string
    ResourceInstanceId.
    resource_type string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sg_status string
    SgStatus.
    sg_status_time number
    SgStatusTime.
    sync_status string
    SyncStatus.
    type string
    Type.
    aliUid Integer
    AliUid.
    bindInstanceId String
    BindInstanceId.
    bindInstanceName String
    BindInstanceName.
    dryRun Boolean

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    internetAddress String
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    intranetAddress String
    IntranetAddress.
    ipVersion String
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang String
    The language type of the received message.
    memberUid Integer
    The UID of the Cloud Firewall member account.
    name String
    Name.
    note String
    Note.
    protectStatus String
    The protection status of the asset. Valid values: open, opening, closed, closing.
    regionId String
    RegionId.
    regionStatus String
    RegionStatus.
    resourceInstanceId String
    ResourceInstanceId.
    resourceType String
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sgStatus String
    SgStatus.
    sgStatusTime Integer
    SgStatusTime.
    syncStatus String
    SyncStatus.
    type String
    Type.
    aliUid number
    AliUid.
    bindInstanceId string
    BindInstanceId.
    bindInstanceName string
    BindInstanceName.
    dryRun boolean

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    internetAddress string
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    intranetAddress string
    IntranetAddress.
    ipVersion string
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang string
    The language type of the received message.
    memberUid number
    The UID of the Cloud Firewall member account.
    name string
    Name.
    note string
    Note.
    protectStatus string
    The protection status of the asset. Valid values: open, opening, closed, closing.
    regionId string
    RegionId.
    regionStatus string
    RegionStatus.
    resourceInstanceId string
    ResourceInstanceId.
    resourceType string
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sgStatus string
    SgStatus.
    sgStatusTime number
    SgStatusTime.
    syncStatus string
    SyncStatus.
    type string
    Type.
    ali_uid int
    AliUid.
    bind_instance_id str
    BindInstanceId.
    bind_instance_name str
    BindInstanceName.
    dry_run bool

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    internet_address str
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    intranet_address str
    IntranetAddress.
    ip_version str
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang str
    The language type of the received message.
    member_uid int
    The UID of the Cloud Firewall member account.
    name str
    Name.
    note str
    Note.
    protect_status str
    The protection status of the asset. Valid values: open, opening, closed, closing.
    region_id str
    RegionId.
    region_status str
    RegionStatus.
    resource_instance_id str
    ResourceInstanceId.
    resource_type str
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sg_status str
    SgStatus.
    sg_status_time int
    SgStatusTime.
    sync_status str
    SyncStatus.
    type str
    Type.
    aliUid Number
    AliUid.
    bindInstanceId String
    BindInstanceId.
    bindInstanceName String
    BindInstanceName.
    dryRun Boolean

    Specifies whether to precheck the request only. Valid values: true, false.

    NOTE: This parameter is only evaluated during resource creation and deletion. Modifying it in isolation will not trigger any action.

    internetAddress String
    The public IP address of the internet boundary firewall asset for which to enable or disable protection. It is also the unique ID of the resource.
    intranetAddress String
    IntranetAddress.
    ipVersion String
    The IP version. Valid values: 4 (IPv4) and 6 (IPv6).
    lang String
    The language type of the received message.
    memberUid Number
    The UID of the Cloud Firewall member account.
    name String
    Name.
    note String
    Note.
    protectStatus String
    The protection status of the asset. Valid values: open, opening, closed, closing.
    regionId String
    RegionId.
    regionStatus String
    RegionStatus.
    resourceInstanceId String
    ResourceInstanceId.
    resourceType String
    The type of the asset public IP. Valid values: BastionHostIP, EcsEIP, EcsPublicIP, EIP, EniEIP, NatEIP, NatPublicIP, SlbEIP.
    sgStatus String
    SgStatus.
    sgStatusTime Number
    SgStatusTime.
    syncStatus String
    SyncStatus.
    type String
    Type.

    Import

    Cloud Firewall Fw Switch can be imported using the id, e.g.

    $ pulumi import alicloud:cloudfirewall/fwSwitch:FwSwitch example <internet_address>
    

    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 alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v4.0.1
    published on Tuesday, Oct 27, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial