Show / Hide Table of Contents

Class DomainConfig

Provides a CDN Accelerated Domain resource.

For information about domain config and how to use it, see Batch set config

NOTE: Available in v1.34.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    // Create a new Domain config.
    var domain = new AliCloud.Cdn.DomainNew("domain", new AliCloud.Cdn.DomainNewArgs
    {
        CdnType = "web",
        DomainName = "tf-testacc%d.xiaozhu.com",
        Scope = "overseas",
        Sources = new AliCloud.Cdn.Inputs.DomainNewSourcesArgs
        {
            Content = "1.1.1.1",
            Port = 80,
            Priority = "20",
            Type = "ipaddr",
            Weight = "15",
        },
    });
    var config = new AliCloud.Cdn.DomainConfig("config", new AliCloud.Cdn.DomainConfigArgs
    {
        DomainName = domain.DomainName,
        FunctionArgs = 
        {
            new AliCloud.Cdn.Inputs.DomainConfigFunctionArgArgs
            {
                ArgName = "ip_list",
                ArgValue = "110.110.110.110",
            },
        },
        FunctionName = "ip_allow_list_set",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
DomainConfig
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.Cdn
Assembly: Pulumi.AliCloud.dll
Syntax
public class DomainConfig : CustomResource

Constructors

View Source

DomainConfig(String, DomainConfigArgs, CustomResourceOptions)

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

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

The unique name of the resource

DomainConfigArgs 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

DomainName

Name of the accelerated domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.

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

FunctionArgs

The args of the domain config.

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

FunctionName

The name of the domain config.

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

Methods

View Source

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

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

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

DomainConfigState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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