alicloud.cloudfirewall.Instance
Explore with Pulumi AI
Provides a Cloud Firewall Instance resource.
For information about Cloud Firewall Instance and how to use it, see What is Instance.
NOTE: Available since v1.139.0.
Example Usage
Basic Usage
create a pay-as-you-go instance
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const payAsYouGo = new alicloud.cloudfirewall.Instance("PayAsYouGo", {paymentType: "PayAsYouGo"});
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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromCloudfirewallinstance = new AliCloud.CloudFirewall.Instance("exampleinstanceResourceResourceFromCloudfirewallinstance", new()
{
PaymentType = "string",
Logistics = "string",
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:
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - 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 intStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - Fw
Vpc intNumber - 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 string
- The logistics.
- Modify
Type string - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_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. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - Renew
Period int - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - Renewal
Duration int - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - Renewal
Duration stringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - Renewal
Status 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 ifpayment_type
is set toSubscription
.
- Spec string
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - 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 intStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - Fw
Vpc intNumber - 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 string
- The logistics.
- Modify
Type string - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_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. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - Renew
Period int - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - Renewal
Duration int - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - Renewal
Duration stringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - Renewal
Status 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 ifpayment_type
is set toSubscription
.
- Spec string
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - account
Number Integer - The number of multi account. It will be ignored when
cfw_account = false
. - band
Width Integer - Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
- cfw
Account Boolean - Whether to use multi-account. Valid values:
true
,false
. - cfw
Log Boolean - Whether to use log audit. Valid values:
true
,false
. - cfw
Log IntegerStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - fw
Vpc IntegerNumber - The number of protected VPCs. It will be ignored when
spec = "premium_version"
. Valid values between 2 and 500. - instance
Count Integer - The number of assets.
- ip
Number Integer - The number of public IPs that can be protected. Valid values: 20 to 4000.
- logistics String
- The logistics.
- modify
Type String - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_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. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - renew
Period Integer - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal
Duration Integer - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal
Duration StringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - renewal
Status 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 ifpayment_type
is set toSubscription
.
- spec String
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
.
- payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - account
Number number - The number of multi account. It will be ignored when
cfw_account = false
. - band
Width number - Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
- cfw
Account boolean - Whether to use multi-account. Valid values:
true
,false
. - cfw
Log boolean - Whether to use log audit. Valid values:
true
,false
. - cfw
Log numberStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - fw
Vpc numberNumber - The number of protected VPCs. It will be ignored when
spec = "premium_version"
. Valid values between 2 and 500. - instance
Count number - The number of assets.
- ip
Number number - The number of public IPs that can be protected. Valid values: 20 to 4000.
- logistics string
- The logistics.
- modify
Type string - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_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. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - renew
Period number - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal
Duration number - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal
Duration stringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - renewal
Status 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 ifpayment_type
is set toSubscription
.
- 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 toPayAsYouGo
. - 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_ intstorage - The log storage capacity. It will be ignored when
cfw_log = false
. - fw_
vpc_ intnumber - 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: Themodify_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. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - renew_
period int - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal_
duration int - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal_
duration_ strunit - 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 ifpayment_type
is set toSubscription
.
- spec str
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - account
Number Number - The number of multi account. It will be ignored when
cfw_account = false
. - band
Width Number - Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
- cfw
Account Boolean - Whether to use multi-account. Valid values:
true
,false
. - cfw
Log Boolean - Whether to use log audit. Valid values:
true
,false
. - cfw
Log NumberStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - fw
Vpc NumberNumber - The number of protected VPCs. It will be ignored when
spec = "premium_version"
. Valid values between 2 and 500. - instance
Count Number - The number of assets.
- ip
Number Number - The number of public IPs that can be protected. Valid values: 20 to 4000.
- logistics String
- The logistics.
- modify
Type String - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_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. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - renew
Period Number - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal
Duration Number - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal
Duration StringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - renewal
Status 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 ifpayment_type
is set toSubscription
.
- 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:
- Create
Time string - The creation time.
- End
Time string - The end time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Release
Time string - The release time.
- Status string
- The status of Instance.
- Create
Time string - The creation time.
- End
Time string - The end time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Release
Time string - The release time.
- Status string
- The status of Instance.
- create
Time String - The creation time.
- end
Time String - The end time.
- id String
- The provider-assigned unique ID for this managed resource.
- release
Time String - The release time.
- status String
- The status of Instance.
- create
Time string - The creation time.
- end
Time string - The end time.
- id string
- The provider-assigned unique ID for this managed resource.
- release
Time 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.
- create
Time String - The creation time.
- end
Time String - The end time.
- id String
- The provider-assigned unique ID for this managed resource.
- release
Time 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.
- 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 intStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - Create
Time string - The creation time.
- End
Time string - The end time.
- Fw
Vpc intNumber - 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 string
- The logistics.
- Modify
Type string - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_type
is required when you execute an update operation. - Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - Period int
- The prepaid period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: 1 and 3 available since 1.204.1. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - Release
Time string - The release time.
- Renew
Period int - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - Renewal
Duration int - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - Renewal
Duration stringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - Renewal
Status 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 ifpayment_type
is set toSubscription
.
- 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 intStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - Create
Time string - The creation time.
- End
Time string - The end time.
- Fw
Vpc intNumber - 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 string
- The logistics.
- Modify
Type string - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_type
is required when you execute an update operation. - Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - Period int
- The prepaid period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: 1 and 3 available since 1.204.1. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - Release
Time string - The release time.
- Renew
Period int - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - Renewal
Duration int - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - Renewal
Duration stringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - Renewal
Status 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 ifpayment_type
is set toSubscription
.
- Spec string
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
. - Status string
- The status of Instance.
- account
Number Integer - The number of multi account. It will be ignored when
cfw_account = false
. - band
Width Integer - Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
- cfw
Account Boolean - Whether to use multi-account. Valid values:
true
,false
. - cfw
Log Boolean - Whether to use log audit. Valid values:
true
,false
. - cfw
Log IntegerStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - create
Time String - The creation time.
- end
Time String - The end time.
- fw
Vpc IntegerNumber - The number of protected VPCs. It will be ignored when
spec = "premium_version"
. Valid values between 2 and 500. - instance
Count Integer - The number of assets.
- ip
Number Integer - The number of public IPs that can be protected. Valid values: 20 to 4000.
- logistics String
- The logistics.
- modify
Type String - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_type
is required when you execute an update operation. - payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - period Integer
- The prepaid period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: 1 and 3 available since 1.204.1. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - release
Time String - The release time.
- renew
Period Integer - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal
Duration Integer - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal
Duration StringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - renewal
Status 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 ifpayment_type
is set toSubscription
.
- spec String
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
. - status String
- The status of Instance.
- account
Number number - The number of multi account. It will be ignored when
cfw_account = false
. - band
Width number - Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
- cfw
Account boolean - Whether to use multi-account. Valid values:
true
,false
. - cfw
Log boolean - Whether to use log audit. Valid values:
true
,false
. - cfw
Log numberStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - create
Time string - The creation time.
- end
Time string - The end time.
- fw
Vpc numberNumber - The number of protected VPCs. It will be ignored when
spec = "premium_version"
. Valid values between 2 and 500. - instance
Count number - The number of assets.
- ip
Number number - The number of public IPs that can be protected. Valid values: 20 to 4000.
- logistics string
- The logistics.
- modify
Type string - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_type
is required when you execute an update operation. - payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - period number
- The prepaid period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: 1 and 3 available since 1.204.1. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - release
Time string - The release time.
- renew
Period number - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal
Duration number - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal
Duration stringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - renewal
Status 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 ifpayment_type
is set toSubscription
.
- 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_ intstorage - 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_ intnumber - 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: Themodify_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 toPayAsYouGo
. - period int
- The prepaid period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: 1 and 3 available since 1.204.1. Ifpayment_type
is set toSubscription
,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. Usingrenewal_duration
instead. - renewal_
duration int - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal_
duration_ strunit - 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 ifpayment_type
is set toSubscription
.
- spec str
- Current version. Valid values:
premium_version
,enterprise_version
,ultimate_version
. - status str
- The status of Instance.
- account
Number Number - The number of multi account. It will be ignored when
cfw_account = false
. - band
Width Number - Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
- cfw
Account Boolean - Whether to use multi-account. Valid values:
true
,false
. - cfw
Log Boolean - Whether to use log audit. Valid values:
true
,false
. - cfw
Log NumberStorage - The log storage capacity. It will be ignored when
cfw_log = false
. - create
Time String - The creation time.
- end
Time String - The end time.
- fw
Vpc NumberNumber - The number of protected VPCs. It will be ignored when
spec = "premium_version"
. Valid values between 2 and 500. - instance
Count Number - The number of assets.
- ip
Number Number - The number of public IPs that can be protected. Valid values: 20 to 4000.
- logistics String
- The logistics.
- modify
Type String - The type of modification. Valid values:
Upgrade
,Downgrade
. NOTE: Themodify_type
is required when you execute an update operation. - payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. NOTE: From version 1.220.0,payment_type
can be set toPayAsYouGo
. - period Number
- The prepaid period. Valid values:
1
,3
,6
,12
,24
,36
. NOTE: 1 and 3 available since 1.204.1. Ifpayment_type
is set toSubscription
,period
is required. Otherwise, it will be ignored. - release
Time String - The release time.
- renew
Period Number - Automatic renewal period. Attribute
renew_period
has been deprecated since 1.209.1. Usingrenewal_duration
instead. - renewal
Duration Number - Auto-Renewal Duration. It is required under the condition that
renewal_status
isAutoRenewal
. Valid values:1
,2
,3
,6
,12
. NOTE:renewal_duration
takes effect only ifpayment_type
is set toSubscription
, andrenewal_status
is set toAutoRenewal
. - renewal
Duration StringUnit - Auto-Renewal Cycle Unit Values Include: Month: Month. Year: Years. Valid values:
Month
,Year
. - renewal
Status 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 ifpayment_type
is set toSubscription
.
- 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.