1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudfirewall
  5. Instance
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cloudfirewall.Instance

Explore with Pulumi AI

Provides a Cloud Firewall Instance resource.

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

NOTE: Available since v1.139.0.

Example Usage

Basic Usage

create a pay-as-you-go instance

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const payAsYouGo = new alicloud.cloudfirewall.Instance("PayAsYouGo", {paymentType: "PayAsYouGo"});
Copy
import pulumi
import pulumi_alicloud as alicloud

pay_as_you_go = alicloud.cloudfirewall.Instance("PayAsYouGo", payment_type="PayAsYouGo")
Copy
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.NewInstance(ctx, "PayAsYouGo", &cloudfirewall.InstanceArgs{
			PaymentType: pulumi.String("PayAsYouGo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var payAsYouGo = new AliCloud.CloudFirewall.Instance("PayAsYouGo", new()
    {
        PaymentType = "PayAsYouGo",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.Instance;
import com.pulumi.alicloud.cloudfirewall.InstanceArgs;
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 payAsYouGo = new Instance("payAsYouGo", InstanceArgs.builder()
            .paymentType("PayAsYouGo")
            .build());

    }
}
Copy
resources:
  payAsYouGo:
    type: alicloud:cloudfirewall:Instance
    name: PayAsYouGo
    properties:
      paymentType: PayAsYouGo
Copy

create a subscription instance

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const subscription = new alicloud.cloudfirewall.Instance("Subscription", {
    paymentType: "Subscription",
    spec: "premium_version",
    ipNumber: 20,
    bandWidth: 10,
    cfwLog: false,
    period: 1,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

subscription = alicloud.cloudfirewall.Instance("Subscription",
    payment_type="Subscription",
    spec="premium_version",
    ip_number=20,
    band_width=10,
    cfw_log=False,
    period=1)
Copy
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.NewInstance(ctx, "Subscription", &cloudfirewall.InstanceArgs{
			PaymentType: pulumi.String("Subscription"),
			Spec:        pulumi.String("premium_version"),
			IpNumber:    pulumi.Int(20),
			BandWidth:   pulumi.Int(10),
			CfwLog:      pulumi.Bool(false),
			Period:      pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var subscription = new AliCloud.CloudFirewall.Instance("Subscription", new()
    {
        PaymentType = "Subscription",
        Spec = "premium_version",
        IpNumber = 20,
        BandWidth = 10,
        CfwLog = false,
        Period = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.Instance;
import com.pulumi.alicloud.cloudfirewall.InstanceArgs;
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 subscription = new Instance("subscription", InstanceArgs.builder()
            .paymentType("Subscription")
            .spec("premium_version")
            .ipNumber(20)
            .bandWidth(10)
            .cfwLog(false)
            .period(1)
            .build());

    }
}
Copy
resources:
  subscription:
    type: alicloud:cloudfirewall:Instance
    name: Subscription
    properties:
      paymentType: Subscription
      spec: premium_version
      ipNumber: 20
      bandWidth: 10
      cfwLog: false
      period: 1
Copy

Create Instance Resource

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

Constructor syntax

new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             payment_type: Optional[str] = None,
             logistics: Optional[str] = None,
             band_width: Optional[int] = None,
             cfw_log: Optional[bool] = None,
             cfw_log_storage: Optional[int] = None,
             fw_vpc_number: Optional[int] = None,
             instance_count: Optional[int] = None,
             cfw_account: Optional[bool] = None,
             ip_number: Optional[int] = None,
             modify_type: Optional[str] = None,
             account_number: Optional[int] = None,
             period: Optional[int] = None,
             renew_period: Optional[int] = None,
             renewal_duration: Optional[int] = None,
             renewal_duration_unit: Optional[str] = None,
             renewal_status: Optional[str] = None,
             spec: Optional[str] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:cloudfirewall:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InstanceArgs
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 exampleinstanceResourceResourceFromCloudfirewallinstance = new AliCloud.CloudFirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", new()
{
    PaymentType = "string",
    Logistics = "string",
    BandWidth = 0,
    CfwLog = false,
    CfwLogStorage = 0,
    FwVpcNumber = 0,
    InstanceCount = 0,
    CfwAccount = false,
    IpNumber = 0,
    ModifyType = "string",
    AccountNumber = 0,
    Period = 0,
    RenewalDuration = 0,
    RenewalDurationUnit = "string",
    RenewalStatus = "string",
    Spec = "string",
});
Copy
example, err := cloudfirewall.NewInstance(ctx, "exampleinstanceResourceResourceFromCloudfirewallinstance", &cloudfirewall.InstanceArgs{
	PaymentType:         pulumi.String("string"),
	Logistics:           pulumi.String("string"),
	BandWidth:           pulumi.Int(0),
	CfwLog:              pulumi.Bool(false),
	CfwLogStorage:       pulumi.Int(0),
	FwVpcNumber:         pulumi.Int(0),
	InstanceCount:       pulumi.Int(0),
	CfwAccount:          pulumi.Bool(false),
	IpNumber:            pulumi.Int(0),
	ModifyType:          pulumi.String("string"),
	AccountNumber:       pulumi.Int(0),
	Period:              pulumi.Int(0),
	RenewalDuration:     pulumi.Int(0),
	RenewalDurationUnit: pulumi.String("string"),
	RenewalStatus:       pulumi.String("string"),
	Spec:                pulumi.String("string"),
})
Copy
var exampleinstanceResourceResourceFromCloudfirewallinstance = new Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", InstanceArgs.builder()
    .paymentType("string")
    .logistics("string")
    .bandWidth(0)
    .cfwLog(false)
    .cfwLogStorage(0)
    .fwVpcNumber(0)
    .instanceCount(0)
    .cfwAccount(false)
    .ipNumber(0)
    .modifyType("string")
    .accountNumber(0)
    .period(0)
    .renewalDuration(0)
    .renewalDurationUnit("string")
    .renewalStatus("string")
    .spec("string")
    .build());
Copy
exampleinstance_resource_resource_from_cloudfirewallinstance = alicloud.cloudfirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance",
    payment_type="string",
    logistics="string",
    band_width=0,
    cfw_log=False,
    cfw_log_storage=0,
    fw_vpc_number=0,
    instance_count=0,
    cfw_account=False,
    ip_number=0,
    modify_type="string",
    account_number=0,
    period=0,
    renewal_duration=0,
    renewal_duration_unit="string",
    renewal_status="string",
    spec="string")
Copy
const exampleinstanceResourceResourceFromCloudfirewallinstance = new alicloud.cloudfirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", {
    paymentType: "string",
    logistics: "string",
    bandWidth: 0,
    cfwLog: false,
    cfwLogStorage: 0,
    fwVpcNumber: 0,
    instanceCount: 0,
    cfwAccount: false,
    ipNumber: 0,
    modifyType: "string",
    accountNumber: 0,
    period: 0,
    renewalDuration: 0,
    renewalDurationUnit: "string",
    renewalStatus: "string",
    spec: "string",
});
Copy
type: alicloud:cloudfirewall:Instance
properties:
    accountNumber: 0
    bandWidth: 0
    cfwAccount: false
    cfwLog: false
    cfwLogStorage: 0
    fwVpcNumber: 0
    instanceCount: 0
    ipNumber: 0
    logistics: string
    modifyType: string
    paymentType: string
    period: 0
    renewalDuration: 0
    renewalDurationUnit: string
    renewalStatus: string
    spec: string
Copy

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

PaymentType
This property is required.
Changes to this property will trigger replacement.
string
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
AccountNumber int
The number of multi account. It will be ignored when cfw_account = false.
BandWidth int
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
CfwAccount bool
Whether to use multi-account. Valid values: true, false.
CfwLog bool
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
CfwLogStorage int
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
FwVpcNumber int
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
InstanceCount int
The number of assets.
IpNumber int
The number of public IPs that can be protected. Valid values: 20 to 4000.
Logistics string
The logistics.
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. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
RenewPeriod int
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

RenewalDuration int
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
RenewalDurationUnit string
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
RenewalStatus string
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
Spec string
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
PaymentType
This property is required.
Changes to this property will trigger replacement.
string
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
AccountNumber int
The number of multi account. It will be ignored when cfw_account = false.
BandWidth int
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
CfwAccount bool
Whether to use multi-account. Valid values: true, false.
CfwLog bool
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
CfwLogStorage int
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
FwVpcNumber int
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
InstanceCount int
The number of assets.
IpNumber int
The number of public IPs that can be protected. Valid values: 20 to 4000.
Logistics string
The logistics.
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. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
RenewPeriod int
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

RenewalDuration int
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
RenewalDurationUnit string
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
RenewalStatus string
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
Spec string
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
paymentType
This property is required.
Changes to this property will trigger replacement.
String
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
accountNumber Integer
The number of multi account. It will be ignored when cfw_account = false.
bandWidth Integer
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfwAccount Boolean
Whether to use multi-account. Valid values: true, false.
cfwLog Boolean
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfwLogStorage Integer
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
fwVpcNumber Integer
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instanceCount Integer
The number of assets.
ipNumber Integer
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics String
The logistics.
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. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
renewPeriod Integer
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewalDuration Integer
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewalDurationUnit String
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewalStatus String
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec String
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
paymentType
This property is required.
Changes to this property will trigger replacement.
string
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
accountNumber number
The number of multi account. It will be ignored when cfw_account = false.
bandWidth number
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfwAccount boolean
Whether to use multi-account. Valid values: true, false.
cfwLog boolean
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfwLogStorage number
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
fwVpcNumber number
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instanceCount number
The number of assets.
ipNumber number
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics string
The logistics.
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. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
renewPeriod number
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewalDuration number
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewalDurationUnit string
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewalStatus string
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec string
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
payment_type
This property is required.
Changes to this property will trigger replacement.
str
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
account_number int
The number of multi account. It will be ignored when cfw_account = false.
band_width int
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfw_account bool
Whether to use multi-account. Valid values: true, false.
cfw_log bool
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfw_log_storage int
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
fw_vpc_number int
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instance_count int
The number of assets.
ip_number int
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics str
The logistics.
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. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
renew_period int
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewal_duration int
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewal_duration_unit str
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewal_status str
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec str
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
paymentType
This property is required.
Changes to this property will trigger replacement.
String
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
accountNumber Number
The number of multi account. It will be ignored when cfw_account = false.
bandWidth Number
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfwAccount Boolean
Whether to use multi-account. Valid values: true, false.
cfwLog Boolean
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfwLogStorage Number
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
fwVpcNumber Number
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instanceCount Number
The number of assets.
ipNumber Number
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics String
The logistics.
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. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
renewPeriod Number
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewalDuration Number
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewalDurationUnit String
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewalStatus String
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec String
Current version. Valid values: premium_version, enterprise_version,ultimate_version.

Outputs

All input properties are implicitly available as output properties. Additionally, the Instance 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 bool
(Available since v1.232.0) 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 bool
(Available since v1.232.0) 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 Boolean
(Available since v1.232.0) 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 boolean
(Available since v1.232.0) 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 bool
(Available since v1.232.0) 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 Boolean
(Available since v1.232.0) The user status of Cloud Firewall Instance.

Look up Existing Instance Resource

Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_number: Optional[int] = None,
        band_width: Optional[int] = None,
        cfw_account: Optional[bool] = None,
        cfw_log: Optional[bool] = None,
        cfw_log_storage: Optional[int] = None,
        create_time: Optional[str] = None,
        end_time: Optional[str] = None,
        fw_vpc_number: Optional[int] = None,
        instance_count: Optional[int] = None,
        ip_number: Optional[int] = None,
        logistics: Optional[str] = None,
        modify_type: Optional[str] = None,
        payment_type: Optional[str] = None,
        period: Optional[int] = None,
        release_time: Optional[str] = None,
        renew_period: Optional[int] = None,
        renewal_duration: Optional[int] = None,
        renewal_duration_unit: Optional[str] = None,
        renewal_status: Optional[str] = None,
        spec: Optional[str] = None,
        status: Optional[str] = None,
        user_status: Optional[bool] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
resources:  _:    type: alicloud:cloudfirewall:Instance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AccountNumber int
The number of multi account. It will be ignored when cfw_account = false.
BandWidth int
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
CfwAccount bool
Whether to use multi-account. Valid values: true, false.
CfwLog bool
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
CfwLogStorage int
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
CreateTime string
The creation time.
EndTime string
The end time.
FwVpcNumber int
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
InstanceCount int
The number of assets.
IpNumber int
The number of public IPs that can be protected. Valid values: 20 to 4000.
Logistics string
The logistics.
ModifyType string
The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
PaymentType Changes to this property will trigger replacement. string
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
Period int
The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
ReleaseTime string
The release time.
RenewPeriod int
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

RenewalDuration int
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
RenewalDurationUnit string
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
RenewalStatus string
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
Spec string
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
Status string
The status of Cloud Firewall Instance.
UserStatus bool
(Available since v1.232.0) The user status of Cloud Firewall Instance.
AccountNumber int
The number of multi account. It will be ignored when cfw_account = false.
BandWidth int
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
CfwAccount bool
Whether to use multi-account. Valid values: true, false.
CfwLog bool
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
CfwLogStorage int
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
CreateTime string
The creation time.
EndTime string
The end time.
FwVpcNumber int
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
InstanceCount int
The number of assets.
IpNumber int
The number of public IPs that can be protected. Valid values: 20 to 4000.
Logistics string
The logistics.
ModifyType string
The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
PaymentType Changes to this property will trigger replacement. string
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
Period int
The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
ReleaseTime string
The release time.
RenewPeriod int
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

RenewalDuration int
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
RenewalDurationUnit string
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
RenewalStatus string
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
Spec string
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
Status string
The status of Cloud Firewall Instance.
UserStatus bool
(Available since v1.232.0) The user status of Cloud Firewall Instance.
accountNumber Integer
The number of multi account. It will be ignored when cfw_account = false.
bandWidth Integer
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfwAccount Boolean
Whether to use multi-account. Valid values: true, false.
cfwLog Boolean
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfwLogStorage Integer
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
createTime String
The creation time.
endTime String
The end time.
fwVpcNumber Integer
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instanceCount Integer
The number of assets.
ipNumber Integer
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics String
The logistics.
modifyType String
The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
paymentType Changes to this property will trigger replacement. String
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
period Integer
The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
releaseTime String
The release time.
renewPeriod Integer
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewalDuration Integer
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewalDurationUnit String
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewalStatus String
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec String
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
status String
The status of Cloud Firewall Instance.
userStatus Boolean
(Available since v1.232.0) The user status of Cloud Firewall Instance.
accountNumber number
The number of multi account. It will be ignored when cfw_account = false.
bandWidth number
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfwAccount boolean
Whether to use multi-account. Valid values: true, false.
cfwLog boolean
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfwLogStorage number
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
createTime string
The creation time.
endTime string
The end time.
fwVpcNumber number
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instanceCount number
The number of assets.
ipNumber number
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics string
The logistics.
modifyType string
The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
paymentType Changes to this property will trigger replacement. string
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
period number
The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
releaseTime string
The release time.
renewPeriod number
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewalDuration number
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewalDurationUnit string
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewalStatus string
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec string
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
status string
The status of Cloud Firewall Instance.
userStatus boolean
(Available since v1.232.0) The user status of Cloud Firewall Instance.
account_number int
The number of multi account. It will be ignored when cfw_account = false.
band_width int
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfw_account bool
Whether to use multi-account. Valid values: true, false.
cfw_log bool
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfw_log_storage int
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
create_time str
The creation time.
end_time str
The end time.
fw_vpc_number int
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instance_count int
The number of assets.
ip_number int
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics str
The logistics.
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 Changes to this property will trigger replacement. str
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
period int
The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
release_time str
The release time.
renew_period int
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewal_duration int
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewal_duration_unit str
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewal_status str
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec str
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
status str
The status of Cloud Firewall Instance.
user_status bool
(Available since v1.232.0) The user status of Cloud Firewall Instance.
accountNumber Number
The number of multi account. It will be ignored when cfw_account = false.
bandWidth Number
Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
cfwAccount Boolean
Whether to use multi-account. Valid values: true, false.
cfwLog Boolean
Whether to use log audit. Valid values: true, false. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, cfw_log can only be set to true, cfw_log cannot be modified to false.
cfwLogStorage Number
The log storage capacity. NOTE: From version 1.232.0, When payment_type is set to PayAsYouGo, or cfw_log is set to false, cfw_log_storage will be ignored.
createTime String
The creation time.
endTime String
The end time.
fwVpcNumber Number
The number of protected VPCs. It will be ignored when spec = "premium_version". Valid values between 2 and 500.
instanceCount Number
The number of assets.
ipNumber Number
The number of public IPs that can be protected. Valid values: 20 to 4000.
logistics String
The logistics.
modifyType String
The type of modification. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.
paymentType Changes to this property will trigger replacement. String
The payment type of the resource. Valid values: Subscription, PayAsYouGo. NOTE: From version 1.220.0, payment_type can be set to PayAsYouGo.
period Number
The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available since 1.204.1. If payment_type is set to Subscription, period is required. Otherwise, it will be ignored.
releaseTime String
The release time.
renewPeriod Number
Automatic renewal period. Attribute renew_period has been deprecated since 1.209.1. Using renewal_duration instead.

Deprecated: Attribute 'renew_period' has been deprecated since 1.209.1. Using 'renewal_duration' instead.

renewalDuration Number
Auto-Renewal Duration. It is required under the condition that renewal_status is AutoRenewal. Valid values: 1, 2, 3, 6, 12. NOTE: renewal_duration takes effect only if payment_type is set to Subscription, and renewal_status is set to AutoRenewal.
renewalDurationUnit String
Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values: Month, Year.
renewalStatus String
Whether to renew an instance automatically or not. Default value: ManualRenewal.

  • 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. NOTE: renewal_status takes effect only if payment_type is set to Subscription.
spec String
Current version. Valid values: premium_version, enterprise_version,ultimate_version.
status String
The status of Cloud Firewall Instance.
userStatus Boolean
(Available since v1.232.0) The user status of Cloud Firewall Instance.

Import

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

$ pulumi import alicloud:cloudfirewall/instance:Instance example <id>
Copy

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.