alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.cloudfirewall.Instance

Explore with Pulumi AI

Provides a Cloud Firewall Instance resource.

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

NOTE: Available in v1.139.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var example = new AliCloud.CloudFirewall.Instance("example", new()
    {
        BandWidth = 10,
        CfwLog = false,
        CfwLogStorage = 1000,
        CfwService = false,
        IpNumber = 20,
        PaymentType = "Subscription",
        Period = 6,
        Spec = "premium_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, "example", &cloudfirewall.InstanceArgs{
			BandWidth:     pulumi.Int(10),
			CfwLog:        pulumi.Bool(false),
			CfwLogStorage: pulumi.Int(1000),
			CfwService:    pulumi.Bool(false),
			IpNumber:      pulumi.Int(20),
			PaymentType:   pulumi.String("Subscription"),
			Period:        pulumi.Int(6),
			Spec:          pulumi.String("premium_version"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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 example = new Instance("example", InstanceArgs.builder()        
            .bandWidth(10)
            .cfwLog(false)
            .cfwLogStorage(1000)
            .cfwService(false)
            .ipNumber(20)
            .paymentType("Subscription")
            .period(6)
            .spec("premium_version")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cloudfirewall.Instance("example",
    band_width=10,
    cfw_log=False,
    cfw_log_storage=1000,
    cfw_service=False,
    ip_number=20,
    payment_type="Subscription",
    period=6,
    spec="premium_version")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.cloudfirewall.Instance("example", {
    bandWidth: 10,
    cfwLog: false,
    cfwLogStorage: 1000,
    cfwService: false,
    ipNumber: 20,
    paymentType: "Subscription",
    period: 6,
    spec: "premium_version",
});
resources:
  example:
    type: alicloud:cloudfirewall:Instance
    properties:
      bandWidth: 10
      cfwLog: false
      cfwLogStorage: 1000
      cfwService: false
      ipNumber: 20
      paymentType: Subscription
      period: 6
      spec: premium_version

Create Instance Resource

new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             band_width: Optional[int] = None,
             cfw_log: Optional[bool] = None,
             cfw_log_storage: Optional[int] = None,
             cfw_service: Optional[bool] = 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,
             renew_period: Optional[int] = None,
             renewal_status: Optional[str] = None,
             spec: Optional[str] = None)
@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = 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.

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.

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.

CfwLogStorage int

The log storage capacity.

CfwService bool

Whether to use expert service. 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.

Period int

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

Spec string

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

FwVpcNumber int

The number of protected VPCs. Valid values between 2 and 500.

InstanceCount int

The number of assets.

Logistics string

The logistics.

ModifyType string

The modify type. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.

RenewPeriod int

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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.

CfwLogStorage int

The log storage capacity.

CfwService bool

Whether to use expert service. 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.

Period int

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

Spec string

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

FwVpcNumber int

The number of protected VPCs. Valid values between 2 and 500.

InstanceCount int

The number of assets.

Logistics string

The logistics.

ModifyType string

The modify type. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.

RenewPeriod int

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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.

cfwLogStorage Integer

The log storage capacity.

cfwService Boolean

Whether to use expert service. 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.

period Integer

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

spec String

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

fwVpcNumber Integer

The number of protected VPCs. Valid values between 2 and 500.

instanceCount Integer

The number of assets.

logistics String

The logistics.

modifyType String

The modify type. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.

renewPeriod Integer

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewalStatus String

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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.

cfwLogStorage number

The log storage capacity.

cfwService boolean

Whether to use expert service. 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.

period number

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

spec string

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

fwVpcNumber number

The number of protected VPCs. Valid values between 2 and 500.

instanceCount number

The number of assets.

logistics string

The logistics.

modifyType string

The modify type. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.

renewPeriod number

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewalStatus string

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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.

cfw_log_storage int

The log storage capacity.

cfw_service bool

Whether to use expert service. 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.

period int

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

spec str

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

fw_vpc_number int

The number of protected VPCs. Valid values between 2 and 500.

instance_count int

The number of assets.

logistics str

The logistics.

modify_type str

The modify type. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.

renew_period int

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewal_status str

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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.

cfwLogStorage Number

The log storage capacity.

cfwService Boolean

Whether to use expert service. 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.

period Number

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

spec String

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

fwVpcNumber Number

The number of protected VPCs. Valid values between 2 and 500.

instanceCount Number

The number of assets.

logistics String

The logistics.

modifyType String

The modify type. Valid values: Upgrade, Downgrade. NOTE: The modify_type is required when you execute an update operation.

renewPeriod Number

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewalStatus String

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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.

RenewalDurationUnit string

Automatic renewal period unit. Valid values: Month,Year.

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.

RenewalDurationUnit string

Automatic renewal period unit. Valid values: Month,Year.

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.

renewalDurationUnit String

Automatic renewal period unit. Valid values: Month,Year.

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.

renewalDurationUnit string

Automatic renewal period unit. Valid values: Month,Year.

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.

renewal_duration_unit str

Automatic renewal period unit. Valid values: Month,Year.

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.

renewalDurationUnit String

Automatic renewal period unit. Valid values: Month,Year.

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,
        band_width: Optional[int] = None,
        cfw_log: Optional[bool] = None,
        cfw_log_storage: Optional[int] = None,
        cfw_service: Optional[bool] = 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_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:
BandWidth int

Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.

CfwLog bool

Whether to use log audit. Valid values: true, false.

CfwLogStorage int

The log storage capacity.

CfwService bool

Whether to use expert service. Valid values: true, false.

CreateTime string

The creation time.

EndTime string

The end time.

FwVpcNumber int

The number of protected VPCs. 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 modify type. 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.

Period int

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

ReleaseTime string

The release time.

RenewPeriod int

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

RenewalDurationUnit string

Automatic renewal period unit. Valid values: Month,Year.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: ManualRenewal.

Spec string

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

Status string

The status of Instance.

BandWidth int

Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.

CfwLog bool

Whether to use log audit. Valid values: true, false.

CfwLogStorage int

The log storage capacity.

CfwService bool

Whether to use expert service. Valid values: true, false.

CreateTime string

The creation time.

EndTime string

The end time.

FwVpcNumber int

The number of protected VPCs. 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 modify type. 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.

Period int

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

ReleaseTime string

The release time.

RenewPeriod int

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

RenewalDurationUnit string

Automatic renewal period unit. Valid values: Month,Year.

RenewalStatus string

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: ManualRenewal.

Spec string

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

Status string

The status of Instance.

bandWidth Integer

Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.

cfwLog Boolean

Whether to use log audit. Valid values: true, false.

cfwLogStorage Integer

The log storage capacity.

cfwService Boolean

Whether to use expert service. Valid values: true, false.

createTime String

The creation time.

endTime String

The end time.

fwVpcNumber Integer

The number of protected VPCs. 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 modify type. 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.

period Integer

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

releaseTime String

The release time.

renewPeriod Integer

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewalDurationUnit String

Automatic renewal period unit. Valid values: Month,Year.

renewalStatus String

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: ManualRenewal.

spec String

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

status String

The status of Instance.

bandWidth number

Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.

cfwLog boolean

Whether to use log audit. Valid values: true, false.

cfwLogStorage number

The log storage capacity.

cfwService boolean

Whether to use expert service. Valid values: true, false.

createTime string

The creation time.

endTime string

The end time.

fwVpcNumber number

The number of protected VPCs. 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 modify type. 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.

period number

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

releaseTime string

The release time.

renewPeriod number

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewalDurationUnit string

Automatic renewal period unit. Valid values: Month,Year.

renewalStatus string

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: ManualRenewal.

spec string

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

status string

The status of Instance.

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.

cfw_log_storage int

The log storage capacity.

cfw_service bool

Whether to use expert service. Valid values: true, false.

create_time str

The creation time.

end_time str

The end time.

fw_vpc_number int

The number of protected VPCs. 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 modify type. 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.

period int

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

release_time str

The release time.

renew_period int

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewal_duration_unit str

Automatic renewal period unit. Valid values: Month,Year.

renewal_status str

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: ManualRenewal.

spec str

Current version. Valid values: premium_version, enterprise_version,ultimate_version.

status str

The status of Instance.

bandWidth Number

Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.

cfwLog Boolean

Whether to use log audit. Valid values: true, false.

cfwLogStorage Number

The log storage capacity.

cfwService Boolean

Whether to use expert service. Valid values: true, false.

createTime String

The creation time.

endTime String

The end time.

fwVpcNumber Number

The number of protected VPCs. 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 modify type. 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.

period Number

The prepaid period. Valid values: 1, 3, 6, 12, 24, 36. NOTE: 1 and 3 available in 1.204.1+.

releaseTime String

The release time.

renewPeriod Number

Automatic renewal period. NOTE: The renew_period is required under the condition that renewal_status is AutoRenewal.

renewalDurationUnit String

Automatic renewal period unit. Valid values: Month,Year.

renewalStatus String

Automatic renewal status. Valid values: AutoRenewal,ManualRenewal. Default Value: 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>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.