Show / Hide Table of Contents

Class Domain

Provides a WAF Domain resource to create domain in the Web Application Firewall.

For information about WAF and how to use it, see What is Alibaba Cloud WAF.

NOTE: Available in 1.82.0+ .

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var domain = new AliCloud.Waf.Domain("domain", new AliCloud.Waf.DomainArgs
    {
        ClusterType = "PhysicalCluster",
        Domain = "www.aliyun.com",
        Http2Ports = 443,
        HttpPorts = 80,
        HttpToUserIp = "Off",
        HttpsPorts = 443,
        HttpsRedirect = "Off",
        InstanceId = "waf-123455",
        IsAccessProduct = "On",
        LoadBalancing = "IpHash",
        LogHeaders = 
        {
            new AliCloud.Waf.Inputs.DomainLogHeaderArgs
            {
                Key = "foo",
                Value = "http",
            },
        },
        SourceIps = 
        {
            "1.1.1.1",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Domain
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 Domain : CustomResource

Constructors

View Source

Domain(String, DomainArgs, CustomResourceOptions)

Create a Domain resource with the given unique name, arguments, and options.

Declaration
public Domain(string name, DomainArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DomainArgs 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

ClusterType

The type of the WAF cluster. Valid values: "PhysicalCluster" and "VirtualCluster". Default to "PhysicalCluster".

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

Cname

The CNAME record assigned by the WAF instance to the specified domain.

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

ConnectionTime

The connection timeout for WAF exclusive clusters. Unit: seconds.

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

DomainName

The domain that you want to add to WAF.

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

Http2Ports

List of the HTTP 2.0 ports.

Declaration
public Output<ImmutableArray<string>> Http2Ports { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

HttpPorts

List of the HTTP ports

Declaration
public Output<ImmutableArray<string>> HttpPorts { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

HttpsPorts

List of the HTTPS ports

Declaration
public Output<ImmutableArray<string>> HttpsPorts { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

HttpsRedirect

Specifies whether to redirect HTTP requests as HTTPS requests. Valid values: "On" and "Off". Default to "Off".

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

HttpToUserIp

Specifies whether to enable the HTTP back-to-origin feature. After this feature is enabled, the WAF instance can use HTTP to forward HTTPS requests to the origin server. By default, port 80 is used to forward the requests to the origin server. Valid values: "On" and "Off". Default to "Off".

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

InstanceId

The ID of the WAF instance.

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

IsAccessProduct

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> IsAccessProduct { get; }
Property Value
Type Description
Output<System.String>
View Source

LoadBalancing

The load balancing algorithm that is used to forward requests to the origin. Valid values: "IpHash" and "RoundRobin". Default to "IpHash".

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

LogHeaders

The key-value pair that is used to mark the traffic that flows through WAF to the domain. Each item contains two field:

  • key: The key of label
  • value: The value of label
Declaration
public Output<ImmutableArray<DomainLogHeader>> LogHeaders { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<DomainLogHeader>>
View Source

ReadTime

The read timeout of a WAF exclusive cluster. Unit: seconds.

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

ResourceGroupId

The ID of the resource group to which the queried domain belongs in Resource Management. By default, no value is specified, indicating that the domain belongs to the default resource group.

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

SourceIps

List of the IP address or domain of the origin server to which the specified domain points.

Declaration
public Output<ImmutableArray<string>> SourceIps { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Status

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

WriteTime

The timeout period for a WAF exclusive cluster write connection. Unit: seconds.

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

Methods

View Source

Get(String, Input<String>, DomainState, CustomResourceOptions)

Get an existing Domain resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Domain Get(string name, Input<string> id, DomainState 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.

DomainState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Domain
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.