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",
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.waf.Instance("default",
    big_screen="0",
    exclusive_ip_package="1",
    ext_bandwidth="50",
    ext_domain_package="1",
    log_storage="3",
    log_time="180",
    package_code="version_3",
    period=1,
    prefessional_service="false",
    resource_group_id="rs-abc12345",
    subscription_type="Subscription",
    waf_log="false")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultInstance = new alicloud.waf.Instance("default", {
    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",
});

Create a Instance Resource

def Instance(resource_name, opts=None, big_screen=None, exclusive_ip_package=None, ext_bandwidth=None, ext_domain_package=None, log_storage=None, log_time=None, modify_type=None, package_code=None, period=None, prefessional_service=None, renew_period=None, renewal_status=None, resource_group_id=None, subscription_type=None, waf_log=None, __props__=None);
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Instance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Instance resource accepts the following input properties:

BigScreen string

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

ExclusiveIpPackage string

Specify the number of exclusive WAF IP addresses.

ExtBandwidth string

The extra bandwidth. Unit: Mbit/s.

ExtDomainPackage string

The number of extra domains.

LogStorage string

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

LogTime string

Log storage period. Unit: day. Valid values: [180, 360].

PackageCode string

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”].

PrefessionalService string

Specify whether professional service is supported. Valid values: [“true”, “false”]

SubscriptionType string

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

WafLog string

Specify whether Log service is supported. Valid values: [“true”, “false”]

ModifyType string

Type of configuration change. Valid value: Upgrade.

Period int

Service time of Web Application Firewall.

RenewPeriod int

Renewal period of WAF service. Unit: month

RenewalStatus string

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”.

ResourceGroupId string

The resource group ID.

BigScreen string

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

ExclusiveIpPackage string

Specify the number of exclusive WAF IP addresses.

ExtBandwidth string

The extra bandwidth. Unit: Mbit/s.

ExtDomainPackage string

The number of extra domains.

LogStorage string

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

LogTime string

Log storage period. Unit: day. Valid values: [180, 360].

PackageCode string

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”].

PrefessionalService string

Specify whether professional service is supported. Valid values: [“true”, “false”]

SubscriptionType string

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

WafLog string

Specify whether Log service is supported. Valid values: [“true”, “false”]

ModifyType string

Type of configuration change. Valid value: Upgrade.

Period int

Service time of Web Application Firewall.

RenewPeriod int

Renewal period of WAF service. Unit: month

RenewalStatus string

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”.

ResourceGroupId string

The resource group ID.

bigScreen string

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

exclusiveIpPackage string

Specify the number of exclusive WAF IP addresses.

extBandwidth string

The extra bandwidth. Unit: Mbit/s.

extDomainPackage string

The number of extra domains.

logStorage string

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

logTime string

Log storage period. Unit: day. Valid values: [180, 360].

packageCode string

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”].

prefessionalService string

Specify whether professional service is supported. Valid values: [“true”, “false”]

subscriptionType string

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

wafLog string

Specify whether Log service is supported. Valid values: [“true”, “false”]

modifyType string

Type of configuration change. Valid value: Upgrade.

period number

Service time of Web Application Firewall.

renewPeriod number

Renewal period of WAF service. Unit: month

renewalStatus string

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”.

resourceGroupId string

The resource group ID.

big_screen str

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

exclusive_ip_package str

Specify the number of exclusive WAF IP addresses.

ext_bandwidth str

The extra bandwidth. Unit: Mbit/s.

ext_domain_package str

The number of extra domains.

log_storage str

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

log_time str

Log storage period. Unit: day. Valid values: [180, 360].

package_code str

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”].

prefessional_service str

Specify whether professional service is supported. Valid values: [“true”, “false”]

subscription_type str

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

waf_log str

Specify whether Log service is supported. Valid values: [“true”, “false”]

modify_type str

Type of configuration change. Valid value: Upgrade.

period float

Service time of Web Application Firewall.

renew_period float

Renewal period of WAF service. Unit: month

renewal_status str

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”.

resource_group_id str

The resource group ID.

Outputs

All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Status int

The status of the instance.

Id string
The provider-assigned unique ID for this managed resource.
Status int

The status of the instance.

id string
The provider-assigned unique ID for this managed resource.
status number

The status of the instance.

id str
The provider-assigned unique ID for this managed resource.
status float

The status of the instance.

Look up an 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
static get(resource_name, id, opts=None, big_screen=None, exclusive_ip_package=None, ext_bandwidth=None, ext_domain_package=None, log_storage=None, log_time=None, modify_type=None, package_code=None, period=None, prefessional_service=None, renew_period=None, renewal_status=None, resource_group_id=None, status=None, subscription_type=None, waf_log=None, __props__=None);
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)
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.

The following state arguments are supported:

BigScreen string

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

ExclusiveIpPackage string

Specify the number of exclusive WAF IP addresses.

ExtBandwidth string

The extra bandwidth. Unit: Mbit/s.

ExtDomainPackage string

The number of extra domains.

LogStorage string

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

LogTime string

Log storage period. Unit: day. Valid values: [180, 360].

ModifyType string

Type of configuration change. Valid value: Upgrade.

PackageCode string

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”].

Period int

Service time of Web Application Firewall.

PrefessionalService string

Specify whether professional service is supported. Valid values: [“true”, “false”]

RenewPeriod int

Renewal period of WAF service. Unit: month

RenewalStatus string

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”.

ResourceGroupId string

The resource group ID.

Status int

The status of the instance.

SubscriptionType string

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

WafLog string

Specify whether Log service is supported. Valid values: [“true”, “false”]

BigScreen string

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

ExclusiveIpPackage string

Specify the number of exclusive WAF IP addresses.

ExtBandwidth string

The extra bandwidth. Unit: Mbit/s.

ExtDomainPackage string

The number of extra domains.

LogStorage string

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

LogTime string

Log storage period. Unit: day. Valid values: [180, 360].

ModifyType string

Type of configuration change. Valid value: Upgrade.

PackageCode string

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”].

Period int

Service time of Web Application Firewall.

PrefessionalService string

Specify whether professional service is supported. Valid values: [“true”, “false”]

RenewPeriod int

Renewal period of WAF service. Unit: month

RenewalStatus string

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”.

ResourceGroupId string

The resource group ID.

Status int

The status of the instance.

SubscriptionType string

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

WafLog string

Specify whether Log service is supported. Valid values: [“true”, “false”]

bigScreen string

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

exclusiveIpPackage string

Specify the number of exclusive WAF IP addresses.

extBandwidth string

The extra bandwidth. Unit: Mbit/s.

extDomainPackage string

The number of extra domains.

logStorage string

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

logTime string

Log storage period. Unit: day. Valid values: [180, 360].

modifyType string

Type of configuration change. Valid value: Upgrade.

packageCode string

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”].

period number

Service time of Web Application Firewall.

prefessionalService string

Specify whether professional service is supported. Valid values: [“true”, “false”]

renewPeriod number

Renewal period of WAF service. Unit: month

renewalStatus string

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”.

resourceGroupId string

The resource group ID.

status number

The status of the instance.

subscriptionType string

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

wafLog string

Specify whether Log service is supported. Valid values: [“true”, “false”]

big_screen str

Specify whether big screen is supported. Valid values: [“0”, “1”]. “0” for false and “1” for true.

exclusive_ip_package str

Specify the number of exclusive WAF IP addresses.

ext_bandwidth str

The extra bandwidth. Unit: Mbit/s.

ext_domain_package str

The number of extra domains.

log_storage str

Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].

log_time str

Log storage period. Unit: day. Valid values: [180, 360].

modify_type str

Type of configuration change. Valid value: Upgrade.

package_code str

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”].

period float

Service time of Web Application Firewall.

prefessional_service str

Specify whether professional service is supported. Valid values: [“true”, “false”]

renew_period float

Renewal period of WAF service. Unit: month

renewal_status str

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”.

resource_group_id str

The resource group ID.

status float

The status of the instance.

subscription_type str

Subscription of WAF service. Valid values: [“Subscription”, “PayAsYouGo”].

waf_log str

Specify whether Log service is supported. Valid values: [“true”, “false”]

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.