1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. waf
  5. Instance
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.waf.Instance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    DEPRECATED: This resource has been deprecated and using alicloud.wafv3.Instance instead.

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    export = async () => {
        const default = await alicloud.waf.getInstances({});
        const defaultInstance: alicloud.waf.Instance[] = [];
        for (const range = {value: 0}; range.value < (_default.instances.length > 0 ? 0 : 1); range.value++) {
            defaultInstance.push(new alicloud.waf.Instance(`default-${range.value}`, {
                bigScreen: "0",
                exclusiveIpPackage: "1",
                extBandwidth: "50",
                extDomainPackage: "1",
                packageCode: "version_3",
                prefessionalService: "false",
                subscriptionType: "Subscription",
                period: 1,
                wafLog: "false",
                logStorage: "3",
                logTime: "180",
                resourceGroupId: "rs-abc12345",
            }));
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.waf.get_instances()
    default_instance = []
    for range in [{"value": i} for i in range(0, 0 if len(default.instances) > 0 else 1)]:
        default_instance.append(alicloud.waf.Instance(f"default-{range['value']}",
            big_screen="0",
            exclusive_ip_package="1",
            ext_bandwidth="50",
            ext_domain_package="1",
            package_code="version_3",
            prefessional_service="false",
            subscription_type="Subscription",
            period=1,
            waf_log="false",
            log_storage="3",
            log_time="180",
            resource_group_id="rs-abc12345"))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/waf"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := waf.GetInstances(ctx, &waf.GetInstancesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		var tmp0 float64
    		if pulumi.Float64(len(_default.Instances)) > 0 {
    			tmp0 = 0
    		} else {
    			tmp0 = 1
    		}
    		var defaultInstance []*waf.Instance
    		for index := 0; index < tmp0; index++ {
    			key0 := index
    			_ := index
    			__res, err := waf.NewInstance(ctx, fmt.Sprintf("default-%v", key0), &waf.InstanceArgs{
    				BigScreen:           pulumi.String("0"),
    				ExclusiveIpPackage:  pulumi.String("1"),
    				ExtBandwidth:        pulumi.String("50"),
    				ExtDomainPackage:    pulumi.String("1"),
    				PackageCode:         pulumi.String("version_3"),
    				PrefessionalService: pulumi.String("false"),
    				SubscriptionType:    pulumi.String("Subscription"),
    				Period:              pulumi.Int(1),
    				WafLog:              pulumi.String("false"),
    				LogStorage:          pulumi.String("3"),
    				LogTime:             pulumi.String("180"),
    				ResourceGroupId:     pulumi.String("rs-abc12345"),
    			})
    			if err != nil {
    				return err
    			}
    			defaultInstance = append(defaultInstance, __res)
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(async() => 
    {
        var @default = await AliCloud.Waf.GetInstances.InvokeAsync();
    
        var defaultInstance = new List<AliCloud.Waf.Instance>();
        for (var rangeIndex = 0; rangeIndex < @default.Instances.Length > 0 ? 0 : 1; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            defaultInstance.Add(new AliCloud.Waf.Instance($"default-{range.Value}", new()
            {
                BigScreen = "0",
                ExclusiveIpPackage = "1",
                ExtBandwidth = "50",
                ExtDomainPackage = "1",
                PackageCode = "version_3",
                PrefessionalService = "false",
                SubscriptionType = "Subscription",
                Period = 1,
                WafLog = "false",
                LogStorage = "3",
                LogTime = "180",
                ResourceGroupId = "rs-abc12345",
            }));
        }
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.waf.WafFunctions;
    import com.pulumi.alicloud.waf.inputs.GetInstancesArgs;
    import com.pulumi.alicloud.waf.Instance;
    import com.pulumi.alicloud.waf.InstanceArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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) {
            final var default = WafFunctions.getInstances();
    
            for (var i = 0; i < default_.instances().length() > 0 ? 0 : 1; i++) {
                new Instance("defaultInstance-" + i, InstanceArgs.builder()
                    .bigScreen("0")
                    .exclusiveIpPackage("1")
                    .extBandwidth("50")
                    .extDomainPackage("1")
                    .packageCode("version_3")
                    .prefessionalService("false")
                    .subscriptionType("Subscription")
                    .period(1)
                    .wafLog("false")
                    .logStorage("3")
                    .logTime("180")
                    .resourceGroupId("rs-abc12345")
                    .build());
    
            
    }
        }
    }
    
    resources:
      defaultInstance:
        type: alicloud:waf:Instance
        name: default
        properties:
          bigScreen: '0'
          exclusiveIpPackage: '1'
          extBandwidth: '50'
          extDomainPackage: '1'
          packageCode: version_3
          prefessionalService: 'false'
          subscriptionType: Subscription
          period: 1
          wafLog: 'false'
          logStorage: '3'
          logTime: '180'
          resourceGroupId: rs-abc12345
        options: {}
    variables:
      default:
        fn::invoke:
          Function: alicloud:waf:getInstances
          Arguments: {}
    

    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,
                 subscription_type: Optional[str] = None,
                 exclusive_ip_package: Optional[str] = None,
                 ext_bandwidth: Optional[str] = None,
                 ext_domain_package: Optional[str] = None,
                 log_storage: Optional[str] = None,
                 log_time: Optional[str] = None,
                 waf_log: Optional[str] = None,
                 package_code: Optional[str] = None,
                 big_screen: Optional[str] = None,
                 prefessional_service: Optional[str] = None,
                 period: Optional[int] = None,
                 renew_period: Optional[int] = None,
                 renewal_status: Optional[str] = None,
                 resource_group_id: Optional[str] = None,
                 region: Optional[str] = None,
                 modify_type: 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:waf: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 exampleinstanceResourceResourceFromWafinstance = new AliCloud.Waf.Instance("exampleinstanceResourceResourceFromWafinstance", new()
    {
        SubscriptionType = "string",
        ExclusiveIpPackage = "string",
        ExtBandwidth = "string",
        ExtDomainPackage = "string",
        LogStorage = "string",
        LogTime = "string",
        WafLog = "string",
        PackageCode = "string",
        BigScreen = "string",
        PrefessionalService = "string",
        Period = 0,
        RenewPeriod = 0,
        RenewalStatus = "string",
        ResourceGroupId = "string",
        Region = "string",
        ModifyType = "string",
    });
    
    example, err := waf.NewInstance(ctx, "exampleinstanceResourceResourceFromWafinstance", &waf.InstanceArgs{
    	SubscriptionType:    pulumi.String("string"),
    	ExclusiveIpPackage:  pulumi.String("string"),
    	ExtBandwidth:        pulumi.String("string"),
    	ExtDomainPackage:    pulumi.String("string"),
    	LogStorage:          pulumi.String("string"),
    	LogTime:             pulumi.String("string"),
    	WafLog:              pulumi.String("string"),
    	PackageCode:         pulumi.String("string"),
    	BigScreen:           pulumi.String("string"),
    	PrefessionalService: pulumi.String("string"),
    	Period:              pulumi.Int(0),
    	RenewPeriod:         pulumi.Int(0),
    	RenewalStatus:       pulumi.String("string"),
    	ResourceGroupId:     pulumi.String("string"),
    	Region:              pulumi.String("string"),
    	ModifyType:          pulumi.String("string"),
    })
    
    var exampleinstanceResourceResourceFromWafinstance = new Instance("exampleinstanceResourceResourceFromWafinstance", InstanceArgs.builder()
        .subscriptionType("string")
        .exclusiveIpPackage("string")
        .extBandwidth("string")
        .extDomainPackage("string")
        .logStorage("string")
        .logTime("string")
        .wafLog("string")
        .packageCode("string")
        .bigScreen("string")
        .prefessionalService("string")
        .period(0)
        .renewPeriod(0)
        .renewalStatus("string")
        .resourceGroupId("string")
        .region("string")
        .modifyType("string")
        .build());
    
    exampleinstance_resource_resource_from_wafinstance = alicloud.waf.Instance("exampleinstanceResourceResourceFromWafinstance",
        subscription_type="string",
        exclusive_ip_package="string",
        ext_bandwidth="string",
        ext_domain_package="string",
        log_storage="string",
        log_time="string",
        waf_log="string",
        package_code="string",
        big_screen="string",
        prefessional_service="string",
        period=0,
        renew_period=0,
        renewal_status="string",
        resource_group_id="string",
        region="string",
        modify_type="string")
    
    const exampleinstanceResourceResourceFromWafinstance = new alicloud.waf.Instance("exampleinstanceResourceResourceFromWafinstance", {
        subscriptionType: "string",
        exclusiveIpPackage: "string",
        extBandwidth: "string",
        extDomainPackage: "string",
        logStorage: "string",
        logTime: "string",
        wafLog: "string",
        packageCode: "string",
        bigScreen: "string",
        prefessionalService: "string",
        period: 0,
        renewPeriod: 0,
        renewalStatus: "string",
        resourceGroupId: "string",
        region: "string",
        modifyType: "string",
    });
    
    type: alicloud:waf:Instance
    properties:
        bigScreen: string
        exclusiveIpPackage: string
        extBandwidth: string
        extDomainPackage: string
        logStorage: string
        logTime: string
        modifyType: string
        packageCode: string
        period: 0
        prefessionalService: string
        region: string
        renewPeriod: 0
        renewalStatus: string
        resourceGroupId: string
        subscriptionType: string
        wafLog: 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.
    Region string
    The instance region ID.
    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.
    Region string
    The instance region ID.
    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 Integer
    Service time of Web Application Firewall.
    region String
    The instance region ID.
    renewPeriod Integer
    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.
    region string
    The instance region ID.
    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 int
    Service time of Web Application Firewall.
    region str
    The instance region ID.
    renew_period int
    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.
    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.
    region String
    The instance region ID.
    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.

    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 Integer
    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 int
    The status of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    The status of the 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,
            big_screen: Optional[str] = None,
            exclusive_ip_package: Optional[str] = None,
            ext_bandwidth: Optional[str] = None,
            ext_domain_package: Optional[str] = None,
            log_storage: Optional[str] = None,
            log_time: Optional[str] = None,
            modify_type: Optional[str] = None,
            package_code: Optional[str] = None,
            period: Optional[int] = None,
            prefessional_service: Optional[str] = None,
            region: Optional[str] = None,
            renew_period: Optional[int] = None,
            renewal_status: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[int] = None,
            subscription_type: Optional[str] = None,
            waf_log: 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:
    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"]
    Region string
    The instance region ID.
    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"]
    Region string
    The instance region ID.
    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 Integer
    Service time of Web Application Firewall.
    prefessionalService String
    Specify whether professional service is supported. Valid values: ["true", "false"]
    region String
    The instance region ID.
    renewPeriod Integer
    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 Integer
    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"]
    region string
    The instance region ID.
    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 int
    Service time of Web Application Firewall.
    prefessional_service str
    Specify whether professional service is supported. Valid values: ["true", "false"]
    region str
    The instance region ID.
    renew_period int
    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 int
    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"]
    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"]
    region String
    The instance region ID.
    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"]

    Import

    WAF instance can be imported using the id, e.g.

    $ pulumi import alicloud:waf/instance:Instance default waf-cn-132435
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi