Class Instance
Provides a WAF Instance resource to create instance in the Web Application Firewall.
For information about WAF and how to use it, see What is Alibaba Cloud WAF.
NOTE: Available in 1.83.0+ .
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Waf.Instance("default", new AliCloud.Waf.InstanceArgs
{
BigScreen = "0",
ExclusiveIpPackage = "1",
ExtBandwidth = "50",
ExtDomainPackage = "1",
LogStorage = "3",
LogTime = "180",
PackageCode = "version_3",
Period = 1,
PrefessionalService = "false",
ResourceGroupId = "rs-abc12345",
SubscriptionType = "Subscription",
WafLog = "false",
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Waf
Assembly: Pulumi.AliCloud.dll
Syntax
public class Instance : CustomResource
Constructors
View SourceInstance(String, InstanceArgs, CustomResourceOptions)
Create a Instance resource with the given unique name, arguments, and options.
Declaration
public Instance(string name, InstanceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| InstanceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBigScreen
Specify whether big screen is supported. Valid values: ["0", "1"]. "0" for false and "1" for true.
Declaration
public Output<string> BigScreen { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExclusiveIpPackage
Specify the number of exclusive WAF IP addresses.
Declaration
public Output<string> ExclusiveIpPackage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExtBandwidth
The extra bandwidth. Unit: Mbit/s.
Declaration
public Output<string> ExtBandwidth { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExtDomainPackage
The number of extra domains.
Declaration
public Output<string> ExtDomainPackage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LogStorage
Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].
Declaration
public Output<string> LogStorage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LogTime
Log storage period. Unit: day. Valid values: [180, 360].
Declaration
public Output<string> LogTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ModifyType
Type of configuration change. Valid value: Upgrade.
Declaration
public Output<string> ModifyType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PackageCode
Subscription plan:
- China site customers can purchase the following versions of China Mainland region, valid values: ["version_3", "version_4", "version_5"].
- China site customers can purchase the following versions of International region, valid values: ["version_pro_asia", "version_business_asia", "version_enterprise_asia"]
- International site customers can purchase the following versions of China Mainland region: ["version_pro_china", "version_business_china", "version_enterprise_china"]
- International site customers can purchase the following versions of International region: ["version_pro", "version_business", "version_enterprise"].
Declaration
public Output<string> PackageCode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Period
Service time of Web Application Firewall.
Declaration
public Output<int?> Period { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
PrefessionalService
Specify whether professional service is supported. Valid values: ["true", "false"]
Declaration
public Output<string> PrefessionalService { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RenewalStatus
Renewal status of WAF service. Valid values:
- AutoRenewal: The service time of WAF is renewed automatically.
- ManualRenewal (default): The service time of WAF is renewed manually.Specifies whether to configure a Layer-7 proxy, such as Anti-DDoS Pro or CDN, to filter the inbound traffic before it is forwarded to WAF. Valid values: "On" and "Off". Default to "Off".
Declaration
public Output<string> RenewalStatus { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RenewPeriod
Renewal period of WAF service. Unit: month
Declaration
public Output<int?> RenewPeriod { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
ResourceGroupId
The resource group ID.
Declaration
public Output<string> ResourceGroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
The status of the instance.
Declaration
public Output<int> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
SubscriptionType
Subscription of WAF service. Valid values: ["Subscription", "PayAsYouGo"].
Declaration
public Output<string> SubscriptionType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WafLog
Specify whether Log service is supported. Valid values: ["true", "false"]
Declaration
public Output<string> WafLog { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, InstanceState, CustomResourceOptions)
Get an existing Instance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Instance Get(string name, Input<string> id, InstanceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| InstanceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Instance |