1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudfirewall
  5. Instance
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

alicloud.cloudfirewall.Instance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

    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"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    pay_as_you_go = alicloud.cloudfirewall.Instance("PayAsYouGo", payment_type="PayAsYouGo")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      payAsYouGo:
        type: alicloud:cloudfirewall:Instance
        name: PayAsYouGo
        properties:
          paymentType: PayAsYouGo
    

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      subscription:
        type: alicloud:cloudfirewall:Instance
        name: Subscription
        properties:
          paymentType: Subscription
          spec: premium_version
          ipNumber: 20
          bandWidth: 10
          cfwLog: false
          period: 1
    

    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,
                 ip_number: Optional[int] = None,
                 cfw_log: Optional[bool] = None,
                 cfw_log_storage: Optional[int] = None,
                 modify_type: Optional[str] = None,
                 instance_count: Optional[int] = None,
                 cfw_account: Optional[bool] = None,
                 account_number: Optional[int] = None,
                 fw_vpc_number: Optional[int] = None,
                 band_width: 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 string
    The unique name of the resource.
    args InstanceArgs
    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 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 string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var exampleinstanceResourceResourceFromCloudfirewallinstance = new AliCloud.CloudFirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", new()
    {
        PaymentType = "string",
        Logistics = "string",
        IpNumber = 0,
        CfwLog = false,
        CfwLogStorage = 0,
        ModifyType = "string",
        InstanceCount = 0,
        CfwAccount = false,
        AccountNumber = 0,
        FwVpcNumber = 0,
        BandWidth = 0,
        Period = 0,
        RenewalDuration = 0,
        RenewalDurationUnit = "string",
        RenewalStatus = "string",
        Spec = "string",
    });
    
    example, err := cloudfirewall.NewInstance(ctx, "exampleinstanceResourceResourceFromCloudfirewallinstance", &cloudfirewall.InstanceArgs{
    	PaymentType:         pulumi.String("string"),
    	Logistics:           pulumi.String("string"),
    	IpNumber:            pulumi.Int(0),
    	CfwLog:              pulumi.Bool(false),
    	CfwLogStorage:       pulumi.Int(0),
    	ModifyType:          pulumi.String("string"),
    	InstanceCount:       pulumi.Int(0),
    	CfwAccount:          pulumi.Bool(false),
    	AccountNumber:       pulumi.Int(0),
    	FwVpcNumber:         pulumi.Int(0),
    	BandWidth:           pulumi.Int(0),
    	Period:              pulumi.Int(0),
    	RenewalDuration:     pulumi.Int(0),
    	RenewalDurationUnit: pulumi.String("string"),
    	RenewalStatus:       pulumi.String("string"),
    	Spec:                pulumi.String("string"),
    })
    
    var exampleinstanceResourceResourceFromCloudfirewallinstance = new Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", InstanceArgs.builder()
        .paymentType("string")
        .logistics("string")
        .ipNumber(0)
        .cfwLog(false)
        .cfwLogStorage(0)
        .modifyType("string")
        .instanceCount(0)
        .cfwAccount(false)
        .accountNumber(0)
        .fwVpcNumber(0)
        .bandWidth(0)
        .period(0)
        .renewalDuration(0)
        .renewalDurationUnit("string")
        .renewalStatus("string")
        .spec("string")
        .build());
    
    exampleinstance_resource_resource_from_cloudfirewallinstance = alicloud.cloudfirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance",
        payment_type="string",
        logistics="string",
        ip_number=0,
        cfw_log=False,
        cfw_log_storage=0,
        modify_type="string",
        instance_count=0,
        cfw_account=False,
        account_number=0,
        fw_vpc_number=0,
        band_width=0,
        period=0,
        renewal_duration=0,
        renewal_duration_unit="string",
        renewal_status="string",
        spec="string")
    
    const exampleinstanceResourceResourceFromCloudfirewallinstance = new alicloud.cloudfirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", {
        paymentType: "string",
        logistics: "string",
        ipNumber: 0,
        cfwLog: false,
        cfwLogStorage: 0,
        modifyType: "string",
        instanceCount: 0,
        cfwAccount: false,
        accountNumber: 0,
        fwVpcNumber: 0,
        bandWidth: 0,
        period: 0,
        renewalDuration: 0,
        renewalDurationUnit: "string",
        renewalStatus: "string",
        spec: "string",
    });
    
    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
    

    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

    The Instance resource accepts the following input properties:

    PaymentType 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.
    CfwLogStorage int
    The log storage capacity. It will be ignored when cfw_log = false.
    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 to "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 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.
    CfwLogStorage int
    The log storage capacity. It will be ignored when cfw_log = false.
    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 to "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 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.
    cfwLogStorage Integer
    The log storage capacity. It will be ignored when cfw_log = false.
    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 to "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 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.
    cfwLogStorage number
    The log storage capacity. It will be ignored when cfw_log = false.
    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 to "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 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.
    cfw_log_storage int
    The log storage capacity. It will be ignored when cfw_log = false.
    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 to "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 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.
    cfwLogStorage Number
    The log storage capacity. It will be ignored when cfw_log = false.
    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 to "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 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 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 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 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 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 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) -> 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)
    Resource lookup is not supported in YAML
    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:
    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.
    CfwLogStorage int
    The log storage capacity. It will be ignored when cfw_log = false.
    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 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 to "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 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.
    CfwLogStorage int
    The log storage capacity. It will be ignored when cfw_log = false.
    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 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 to "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 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.
    cfwLogStorage Integer
    The log storage capacity. It will be ignored when cfw_log = false.
    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 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 to "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 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.
    cfwLogStorage number
    The log storage capacity. It will be ignored when cfw_log = false.
    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 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 to "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 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.
    cfw_log_storage int
    The log storage capacity. It will be ignored when cfw_log = false.
    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 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 to "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 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.
    cfwLogStorage Number
    The log storage capacity. It will be ignored when cfw_log = false.
    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 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 to "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 Instance.

    Import

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

    $ pulumi import alicloud:cloudfirewall/instance:Instance 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.56.0 published on Friday, May 31, 2024 by Pulumi