Show / Hide Table of Contents

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

}
Inheritance
System.Object
Resource
CustomResource
Instance
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Waf
Assembly: Pulumi.AliCloud.dll
Syntax
public class Instance : CustomResource

Constructors

View Source

Instance(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 Source

BigScreen

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>
View Source

ExclusiveIpPackage

Specify the number of exclusive WAF IP addresses.

Declaration
public Output<string> ExclusiveIpPackage { get; }
Property Value
Type Description
Output<System.String>
View Source

ExtBandwidth

The extra bandwidth. Unit: Mbit/s.

Declaration
public Output<string> ExtBandwidth { get; }
Property Value
Type Description
Output<System.String>
View Source

ExtDomainPackage

The number of extra domains.

Declaration
public Output<string> ExtDomainPackage { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

LogTime

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

Declaration
public Output<string> LogTime { get; }
Property Value
Type Description
Output<System.String>
View Source

ModifyType

Type of configuration change. Valid value: Upgrade.

Declaration
public Output<string> ModifyType { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

Period

Service time of Web Application Firewall.

Declaration
public Output<int?> Period { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

PrefessionalService

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

Declaration
public Output<string> PrefessionalService { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

RenewPeriod

Renewal period of WAF service. Unit: month

Declaration
public Output<int?> RenewPeriod { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

ResourceGroupId

The resource group ID.

Declaration
public Output<string> ResourceGroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

The status of the instance.

Declaration
public Output<int> Status { get; }
Property Value
Type Description
Output<System.Int32>
View Source

SubscriptionType

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

Declaration
public Output<string> SubscriptionType { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.