1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudfirewall
  5. InstanceV2
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi

    Provides a Cloud Firewall Instance V2 resource.

    Cloud Firewall instance.

    For information about Cloud Firewall Instance V2 and how to use it, see What is Instance V2.

    NOTE: Available since v1.269.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.cloudfirewall.InstanceV2("default", {
        paymentType: "PayAsYouGo",
        productCode: "cfw",
        productType: "cfw_elasticity_public_cn",
        spec: "payg_version",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.cloudfirewall.InstanceV2("default",
        payment_type="PayAsYouGo",
        product_code="cfw",
        product_type="cfw_elasticity_public_cn",
        spec="payg_version")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfirewall.NewInstanceV2(ctx, "default", &cloudfirewall.InstanceV2Args{
    			PaymentType: pulumi.String("PayAsYouGo"),
    			ProductCode: pulumi.String("cfw"),
    			ProductType: pulumi.String("cfw_elasticity_public_cn"),
    			Spec:        pulumi.String("payg_version"),
    		})
    		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 @default = new AliCloud.CloudFirewall.InstanceV2("default", new()
        {
            PaymentType = "PayAsYouGo",
            ProductCode = "cfw",
            ProductType = "cfw_elasticity_public_cn",
            Spec = "payg_version",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cloudfirewall.InstanceV2;
    import com.pulumi.alicloud.cloudfirewall.InstanceV2Args;
    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 default_ = new InstanceV2("default", InstanceV2Args.builder()
                .paymentType("PayAsYouGo")
                .productCode("cfw")
                .productType("cfw_elasticity_public_cn")
                .spec("payg_version")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:cloudfirewall:InstanceV2
        properties:
          paymentType: PayAsYouGo
          productCode: cfw
          productType: cfw_elasticity_public_cn
          spec: payg_version
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create InstanceV2 Resource

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

    Constructor syntax

    new InstanceV2(name: string, args: InstanceV2Args, opts?: CustomResourceOptions);
    @overload
    def InstanceV2(resource_name: str,
                   args: InstanceV2Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceV2(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   payment_type: Optional[str] = None,
                   product_code: Optional[str] = None,
                   product_type: Optional[str] = None,
                   spec: Optional[str] = None,
                   cfw_log: Optional[bool] = None,
                   modify_type: Optional[str] = None,
                   period: Optional[int] = None,
                   renewal_duration: Optional[int] = None,
                   renewal_duration_unit: Optional[str] = None,
                   renewal_status: Optional[str] = None,
                   sdl: Optional[bool] = None)
    func NewInstanceV2(ctx *Context, name string, args InstanceV2Args, opts ...ResourceOption) (*InstanceV2, error)
    public InstanceV2(string name, InstanceV2Args args, CustomResourceOptions? opts = null)
    public InstanceV2(String name, InstanceV2Args args)
    public InstanceV2(String name, InstanceV2Args args, CustomResourceOptions options)
    
    type: alicloud:cloudfirewall:InstanceV2
    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 InstanceV2Args
    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 InstanceV2Args
    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 InstanceV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceV2Args
    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 instanceV2Resource = new AliCloud.CloudFirewall.InstanceV2("instanceV2Resource", new()
    {
        PaymentType = "string",
        ProductCode = "string",
        ProductType = "string",
        Spec = "string",
        CfwLog = false,
        ModifyType = "string",
        Period = 0,
        RenewalDuration = 0,
        RenewalDurationUnit = "string",
        RenewalStatus = "string",
        Sdl = false,
    });
    
    example, err := cloudfirewall.NewInstanceV2(ctx, "instanceV2Resource", &cloudfirewall.InstanceV2Args{
    	PaymentType:         pulumi.String("string"),
    	ProductCode:         pulumi.String("string"),
    	ProductType:         pulumi.String("string"),
    	Spec:                pulumi.String("string"),
    	CfwLog:              pulumi.Bool(false),
    	ModifyType:          pulumi.String("string"),
    	Period:              pulumi.Int(0),
    	RenewalDuration:     pulumi.Int(0),
    	RenewalDurationUnit: pulumi.String("string"),
    	RenewalStatus:       pulumi.String("string"),
    	Sdl:                 pulumi.Bool(false),
    })
    
    var instanceV2Resource = new com.pulumi.alicloud.cloudfirewall.InstanceV2("instanceV2Resource", com.pulumi.alicloud.cloudfirewall.InstanceV2Args.builder()
        .paymentType("string")
        .productCode("string")
        .productType("string")
        .spec("string")
        .cfwLog(false)
        .modifyType("string")
        .period(0)
        .renewalDuration(0)
        .renewalDurationUnit("string")
        .renewalStatus("string")
        .sdl(false)
        .build());
    
    instance_v2_resource = alicloud.cloudfirewall.InstanceV2("instanceV2Resource",
        payment_type="string",
        product_code="string",
        product_type="string",
        spec="string",
        cfw_log=False,
        modify_type="string",
        period=0,
        renewal_duration=0,
        renewal_duration_unit="string",
        renewal_status="string",
        sdl=False)
    
    const instanceV2Resource = new alicloud.cloudfirewall.InstanceV2("instanceV2Resource", {
        paymentType: "string",
        productCode: "string",
        productType: "string",
        spec: "string",
        cfwLog: false,
        modifyType: "string",
        period: 0,
        renewalDuration: 0,
        renewalDurationUnit: "string",
        renewalStatus: "string",
        sdl: false,
    });
    
    type: alicloud:cloudfirewall:InstanceV2
    properties:
        cfwLog: false
        modifyType: string
        paymentType: string
        period: 0
        productCode: string
        productType: string
        renewalDuration: 0
        renewalDurationUnit: string
        renewalStatus: string
        sdl: false
        spec: string
    

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

    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    ProductCode string
    The product code. Valid values: cfw.
    ProductType string
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    Spec string
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    CfwLog bool
    Whether to use log audit. Valid values:
    ModifyType string
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    Period int
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    RenewalDuration int
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    RenewalDurationUnit string
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    RenewalStatus string
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    Sdl bool
    Data leakage protection status. Valid values: true, false.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    ProductCode string
    The product code. Valid values: cfw.
    ProductType string
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    Spec string
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    CfwLog bool
    Whether to use log audit. Valid values:
    ModifyType string
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    Period int
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    RenewalDuration int
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    RenewalDurationUnit string
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    RenewalStatus string
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    Sdl bool
    Data leakage protection status. Valid values: true, false.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    productCode String
    The product code. Valid values: cfw.
    productType String
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    spec String
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    cfwLog Boolean
    Whether to use log audit. Valid values:
    modifyType String
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    period Integer
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    renewalDuration Integer
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewalDurationUnit String
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewalStatus String
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl Boolean
    Data leakage protection status. Valid values: true, false.
    paymentType string
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    productCode string
    The product code. Valid values: cfw.
    productType string
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    spec string
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    cfwLog boolean
    Whether to use log audit. Valid values:
    modifyType string
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    period number
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    renewalDuration number
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewalDurationUnit string
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewalStatus string
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl boolean
    Data leakage protection status. Valid values: true, false.
    payment_type str
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    product_code str
    The product code. Valid values: cfw.
    product_type str
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    spec str
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    cfw_log bool
    Whether to use log audit. Valid values:
    modify_type str
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    period int
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    renewal_duration int
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewal_duration_unit str
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewal_status str
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl bool
    Data leakage protection status. Valid values: true, false.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    productCode String
    The product code. Valid values: cfw.
    productType String
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    spec String
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    cfwLog Boolean
    Whether to use log audit. Valid values:
    modifyType String
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    period Number
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    renewalDuration Number
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewalDurationUnit String
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewalStatus String
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl Boolean
    Data leakage protection status. Valid values: true, false.

    Outputs

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

    CreateTime string
    The creation time.
    EndTime string
    The end time.
    Id string
    The provider-assigned unique ID for this managed resource.
    ReleaseTime string
    The release time.
    Status string
    The status of Cloud Firewall Instance.
    UserStatus string
    The user status of Cloud Firewall Instance.
    CreateTime string
    The creation time.
    EndTime string
    The end time.
    Id string
    The provider-assigned unique ID for this managed resource.
    ReleaseTime string
    The release time.
    Status string
    The status of Cloud Firewall Instance.
    UserStatus string
    The user status of Cloud Firewall Instance.
    createTime String
    The creation time.
    endTime String
    The end time.
    id String
    The provider-assigned unique ID for this managed resource.
    releaseTime String
    The release time.
    status String
    The status of Cloud Firewall Instance.
    userStatus String
    The user status of Cloud Firewall Instance.
    createTime string
    The creation time.
    endTime string
    The end time.
    id string
    The provider-assigned unique ID for this managed resource.
    releaseTime string
    The release time.
    status string
    The status of Cloud Firewall Instance.
    userStatus string
    The user status of Cloud Firewall Instance.
    create_time str
    The creation time.
    end_time str
    The end time.
    id str
    The provider-assigned unique ID for this managed resource.
    release_time str
    The release time.
    status str
    The status of Cloud Firewall Instance.
    user_status str
    The user status of Cloud Firewall Instance.
    createTime String
    The creation time.
    endTime String
    The end time.
    id String
    The provider-assigned unique ID for this managed resource.
    releaseTime String
    The release time.
    status String
    The status of Cloud Firewall Instance.
    userStatus String
    The user status of Cloud Firewall Instance.

    Look up Existing InstanceV2 Resource

    Get an existing InstanceV2 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?: InstanceV2State, opts?: CustomResourceOptions): InstanceV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cfw_log: Optional[bool] = None,
            create_time: Optional[str] = None,
            end_time: Optional[str] = None,
            modify_type: Optional[str] = None,
            payment_type: Optional[str] = None,
            period: Optional[int] = None,
            product_code: Optional[str] = None,
            product_type: Optional[str] = None,
            release_time: Optional[str] = None,
            renewal_duration: Optional[int] = None,
            renewal_duration_unit: Optional[str] = None,
            renewal_status: Optional[str] = None,
            sdl: Optional[bool] = None,
            spec: Optional[str] = None,
            status: Optional[str] = None,
            user_status: Optional[str] = None) -> InstanceV2
    func GetInstanceV2(ctx *Context, name string, id IDInput, state *InstanceV2State, opts ...ResourceOption) (*InstanceV2, error)
    public static InstanceV2 Get(string name, Input<string> id, InstanceV2State? state, CustomResourceOptions? opts = null)
    public static InstanceV2 get(String name, Output<String> id, InstanceV2State state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cloudfirewall:InstanceV2    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:
    CfwLog bool
    Whether to use log audit. Valid values:
    CreateTime string
    The creation time.
    EndTime string
    The end time.
    ModifyType string
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    Period int
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    ProductCode string
    The product code. Valid values: cfw.
    ProductType string
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    ReleaseTime string
    The release time.
    RenewalDuration int
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    RenewalDurationUnit string
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    RenewalStatus string
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    Sdl bool
    Data leakage protection status. Valid values: true, false.
    Spec string
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    Status string
    The status of Cloud Firewall Instance.
    UserStatus string
    The user status of Cloud Firewall Instance.
    CfwLog bool
    Whether to use log audit. Valid values:
    CreateTime string
    The creation time.
    EndTime string
    The end time.
    ModifyType string
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    Period int
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    ProductCode string
    The product code. Valid values: cfw.
    ProductType string
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    ReleaseTime string
    The release time.
    RenewalDuration int
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    RenewalDurationUnit string
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    RenewalStatus string
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    Sdl bool
    Data leakage protection status. Valid values: true, false.
    Spec string
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    Status string
    The status of Cloud Firewall Instance.
    UserStatus string
    The user status of Cloud Firewall Instance.
    cfwLog Boolean
    Whether to use log audit. Valid values:
    createTime String
    The creation time.
    endTime String
    The end time.
    modifyType String
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    period Integer
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    productCode String
    The product code. Valid values: cfw.
    productType String
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    releaseTime String
    The release time.
    renewalDuration Integer
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewalDurationUnit String
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewalStatus String
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl Boolean
    Data leakage protection status. Valid values: true, false.
    spec String
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    status String
    The status of Cloud Firewall Instance.
    userStatus String
    The user status of Cloud Firewall Instance.
    cfwLog boolean
    Whether to use log audit. Valid values:
    createTime string
    The creation time.
    endTime string
    The end time.
    modifyType string
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    paymentType string
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    period number
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    productCode string
    The product code. Valid values: cfw.
    productType string
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    releaseTime string
    The release time.
    renewalDuration number
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewalDurationUnit string
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewalStatus string
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl boolean
    Data leakage protection status. Valid values: true, false.
    spec string
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    status string
    The status of Cloud Firewall Instance.
    userStatus string
    The user status of Cloud Firewall Instance.
    cfw_log bool
    Whether to use log audit. Valid values:
    create_time str
    The creation time.
    end_time str
    The end time.
    modify_type str
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    payment_type str
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    period int
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    product_code str
    The product code. Valid values: cfw.
    product_type str
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    release_time str
    The release time.
    renewal_duration int
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewal_duration_unit str
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewal_status str
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl bool
    Data leakage protection status. Valid values: true, false.
    spec str
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    status str
    The status of Cloud Firewall Instance.
    user_status str
    The user status of Cloud Firewall Instance.
    cfwLog Boolean
    Whether to use log audit. Valid values:
    createTime String
    The creation time.
    endTime String
    The end time.
    modifyType String
    The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo, Subscription.
    period Number
    The prepaid period. NOTE: If payment_type is set to Subscription, period is required.
    productCode String
    The product code. Valid values: cfw.
    productType String
    The product type. Valid values: cfw_elasticity_public_cn, cfw_elasticity_public_intl, cfw_sub_public_cn, cfw_sub_public_intl.
    releaseTime String
    The release time.
    renewalDuration Number
    The auto-renewal duration. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
    renewalDurationUnit String
    The unit of the auto-renewal period. Valid values:

    • M: Month.
    • Y: Year.
    renewalStatus String
    Whether to renew an instance automatically or not.

    • AutoRenewal: Auto renewal.
    • ManualRenewal: Manual renewal.
    • NotRenewal: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
    sdl Boolean
    Data leakage protection status. Valid values: true, false.
    spec String
    The edition of the Cloud Firewall instance. Valid values: payg_version, premium_version, enterprise_version,ultimate_version.
    status String
    The status of Cloud Firewall Instance.
    userStatus String
    The user status of Cloud Firewall Instance.

    Import

    Cloud Firewall Instance V2 can be imported using the id, e.g.

    $ pulumi import alicloud:cloudfirewall/instanceV2:InstanceV2 example <id>
    

    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
    Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate