1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudfirewall
  5. Instance
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.cloudfirewall.Instance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 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

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.cloudfirewall.Instance("default", {
        bandWidth: 200,
        cfwLog: true,
        cfwLogStorage: 1000,
        ipNumber: 400,
        paymentType: "PayAsYouGo",
        spec: "ultimate_version",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.cloudfirewall.Instance("default",
        band_width=200,
        cfw_log=True,
        cfw_log_storage=1000,
        ip_number=400,
        payment_type="PayAsYouGo",
        spec="ultimate_version")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfirewall.NewInstance(ctx, "default", &cloudfirewall.InstanceArgs{
    			BandWidth:     pulumi.Int(200),
    			CfwLog:        pulumi.Bool(true),
    			CfwLogStorage: pulumi.Int(1000),
    			IpNumber:      pulumi.Int(400),
    			PaymentType:   pulumi.String("PayAsYouGo"),
    			Spec:          pulumi.String("ultimate_version"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.CloudFirewall.Instance("default", new()
        {
            BandWidth = 200,
            CfwLog = true,
            CfwLogStorage = 1000,
            IpNumber = 400,
            PaymentType = "PayAsYouGo",
            Spec = "ultimate_version",
        });
    
    });
    
    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 default_ = new Instance("default", InstanceArgs.builder()        
                .bandWidth(200)
                .cfwLog(true)
                .cfwLogStorage(1000)
                .ipNumber(400)
                .paymentType("PayAsYouGo")
                .spec("ultimate_version")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:cloudfirewall:Instance
        properties:
          bandWidth: 200
          cfwLog: true
          cfwLogStorage: 1000
          ipNumber: 400
          paymentType: PayAsYouGo
          spec: ultimate_version
    

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

    BandWidth int
    Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
    CfwLog bool
    Whether to use log audit. Valid values: true, false.
    IpNumber int
    The number of public IPs that can be protected. Valid values: 20 to 4000.
    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.
    Spec string
    Current version. Valid values: premium_version, enterprise_version,ultimate_version.
    AccountNumber int
    The number of multi account. It will be ignored when cfw_account = false.
    CfwAccount bool
    Whether to use multi-account. 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.
    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".
    BandWidth int
    Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
    CfwLog bool
    Whether to use log audit. Valid values: true, false.
    IpNumber int
    The number of public IPs that can be protected. Valid values: 20 to 4000.
    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.
    Spec string
    Current version. Valid values: premium_version, enterprise_version,ultimate_version.
    AccountNumber int
    The number of multi account. It will be ignored when cfw_account = false.
    CfwAccount bool
    Whether to use multi-account. 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.
    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".
    bandWidth Integer
    Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
    cfwLog Boolean
    Whether to use log audit. Valid values: true, false.
    ipNumber Integer
    The number of public IPs that can be protected. Valid values: 20 to 4000.
    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.
    spec String
    Current version. Valid values: premium_version, enterprise_version,ultimate_version.
    accountNumber Integer
    The number of multi account. It will be ignored when cfw_account = false.
    cfwAccount Boolean
    Whether to use multi-account. 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.
    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".
    bandWidth number
    Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
    cfwLog boolean
    Whether to use log audit. Valid values: true, false.
    ipNumber number
    The number of public IPs that can be protected. Valid values: 20 to 4000.
    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.
    spec string
    Current version. Valid values: premium_version, enterprise_version,ultimate_version.
    accountNumber number
    The number of multi account. It will be ignored when cfw_account = false.
    cfwAccount boolean
    Whether to use multi-account. 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.
    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".
    band_width int
    Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
    cfw_log bool
    Whether to use log audit. Valid values: true, false.
    ip_number int
    The number of public IPs that can be protected. Valid values: 20 to 4000.
    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.
    spec str
    Current version. Valid values: premium_version, enterprise_version,ultimate_version.
    account_number int
    The number of multi account. It will be ignored when cfw_account = false.
    cfw_account bool
    Whether to use multi-account. 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.
    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".
    bandWidth Number
    Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
    cfwLog Boolean
    Whether to use log audit. Valid values: true, false.
    ipNumber Number
    The number of public IPs that can be protected. Valid values: 20 to 4000.
    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.
    spec String
    Current version. Valid values: premium_version, enterprise_version,ultimate_version.
    accountNumber Number
    The number of multi account. It will be ignored when cfw_account = false.
    cfwAccount Boolean
    Whether to use multi-account. 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.
    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".

    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".
    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".
    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".
    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".
    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".
    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".
    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi