1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cdn
  5. DomainConfig
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.cdn.DomainConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a Cdn Domain Config resource.

    For information about Cdn Domain Config and how to use it, see What is Domain Config

    NOTE: Available since v1.34.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const _default = new random.RandomInteger("default", {
        min: 10000,
        max: 99999,
    });
    // Create a new Domain config.
    const domain = new alicloud.cdn.DomainNew("domain", {
        domainName: pulumi.interpolate`mycdndomain-${_default.result}.alicloud-provider.cn`,
        cdnType: "web",
        scope: "overseas",
        sources: [{
            content: "1.1.1.1",
            type: "ipaddr",
            priority: 20,
            port: 80,
            weight: 15,
        }],
    });
    const config = new alicloud.cdn.DomainConfig("config", {
        domainName: domain.domainName,
        functionName: "ip_allow_list_set",
        functionArgs: [{
            argName: "ip_list",
            argValue: "110.110.110.110",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    default = random.RandomInteger("default",
        min=10000,
        max=99999)
    # Create a new Domain config.
    domain = alicloud.cdn.DomainNew("domain",
        domain_name=default.result.apply(lambda result: f"mycdndomain-{result}.alicloud-provider.cn"),
        cdn_type="web",
        scope="overseas",
        sources=[alicloud.cdn.DomainNewSourceArgs(
            content="1.1.1.1",
            type="ipaddr",
            priority=20,
            port=80,
            weight=15,
        )])
    config = alicloud.cdn.DomainConfig("config",
        domain_name=domain.domain_name,
        function_name="ip_allow_list_set",
        function_args=[alicloud.cdn.DomainConfigFunctionArgArgs(
            arg_name="ip_list",
            arg_value="110.110.110.110",
        )])
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := random.NewRandomInteger(ctx, "default", &random.RandomIntegerArgs{
    			Min: pulumi.Int(10000),
    			Max: pulumi.Int(99999),
    		})
    		if err != nil {
    			return err
    		}
    		// Create a new Domain config.
    		domain, err := cdn.NewDomainNew(ctx, "domain", &cdn.DomainNewArgs{
    			DomainName: _default.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("mycdndomain-%v.alicloud-provider.cn", result), nil
    			}).(pulumi.StringOutput),
    			CdnType: pulumi.String("web"),
    			Scope:   pulumi.String("overseas"),
    			Sources: cdn.DomainNewSourceArray{
    				&cdn.DomainNewSourceArgs{
    					Content:  pulumi.String("1.1.1.1"),
    					Type:     pulumi.String("ipaddr"),
    					Priority: pulumi.Int(20),
    					Port:     pulumi.Int(80),
    					Weight:   pulumi.Int(15),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cdn.NewDomainConfig(ctx, "config", &cdn.DomainConfigArgs{
    			DomainName:   domain.DomainName,
    			FunctionName: pulumi.String("ip_allow_list_set"),
    			FunctionArgs: cdn.DomainConfigFunctionArgArray{
    				&cdn.DomainConfigFunctionArgArgs{
    					ArgName:  pulumi.String("ip_list"),
    					ArgValue: pulumi.String("110.110.110.110"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Random.RandomInteger("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        // Create a new Domain config.
        var domain = new AliCloud.Cdn.DomainNew("domain", new()
        {
            DomainName = @default.Result.Apply(result => $"mycdndomain-{result}.alicloud-provider.cn"),
            CdnType = "web",
            Scope = "overseas",
            Sources = new[]
            {
                new AliCloud.Cdn.Inputs.DomainNewSourceArgs
                {
                    Content = "1.1.1.1",
                    Type = "ipaddr",
                    Priority = 20,
                    Port = 80,
                    Weight = 15,
                },
            },
        });
    
        var config = new AliCloud.Cdn.DomainConfig("config", new()
        {
            DomainName = domain.DomainName,
            FunctionName = "ip_allow_list_set",
            FunctionArgs = new[]
            {
                new AliCloud.Cdn.Inputs.DomainConfigFunctionArgArgs
                {
                    ArgName = "ip_list",
                    ArgValue = "110.110.110.110",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.cdn.DomainNew;
    import com.pulumi.alicloud.cdn.DomainNewArgs;
    import com.pulumi.alicloud.cdn.inputs.DomainNewSourceArgs;
    import com.pulumi.alicloud.cdn.DomainConfig;
    import com.pulumi.alicloud.cdn.DomainConfigArgs;
    import com.pulumi.alicloud.cdn.inputs.DomainConfigFunctionArgArgs;
    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) {
            var default_ = new RandomInteger("default", RandomIntegerArgs.builder()        
                .min(10000)
                .max(99999)
                .build());
    
            // Create a new Domain config.
            var domain = new DomainNew("domain", DomainNewArgs.builder()        
                .domainName(default_.result().applyValue(result -> String.format("mycdndomain-%s.alicloud-provider.cn", result)))
                .cdnType("web")
                .scope("overseas")
                .sources(DomainNewSourceArgs.builder()
                    .content("1.1.1.1")
                    .type("ipaddr")
                    .priority("20")
                    .port(80)
                    .weight("15")
                    .build())
                .build());
    
            var config = new DomainConfig("config", DomainConfigArgs.builder()        
                .domainName(domain.domainName())
                .functionName("ip_allow_list_set")
                .functionArgs(DomainConfigFunctionArgArgs.builder()
                    .argName("ip_list")
                    .argValue("110.110.110.110")
                    .build())
                .build());
    
        }
    }
    
    resources:
      default:
        type: random:RandomInteger
        properties:
          min: 10000
          max: 99999
      # Create a new Domain config.
      domain:
        type: alicloud:cdn:DomainNew
        properties:
          domainName: mycdndomain-${default.result}.alicloud-provider.cn
          cdnType: web
          scope: overseas
          sources:
            - content: 1.1.1.1
              type: ipaddr
              priority: '20'
              port: 80
              weight: '15'
      config:
        type: alicloud:cdn:DomainConfig
        properties:
          domainName: ${domain.domainName}
          functionName: ip_allow_list_set
          functionArgs:
            - argName: ip_list
              argValue: 110.110.110.110
    

    Create DomainConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DomainConfig(name: string, args: DomainConfigArgs, opts?: CustomResourceOptions);
    @overload
    def DomainConfig(resource_name: str,
                     args: DomainConfigArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DomainConfig(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     domain_name: Optional[str] = None,
                     function_args: Optional[Sequence[DomainConfigFunctionArgArgs]] = None,
                     function_name: Optional[str] = None,
                     parent_id: Optional[str] = None)
    func NewDomainConfig(ctx *Context, name string, args DomainConfigArgs, opts ...ResourceOption) (*DomainConfig, error)
    public DomainConfig(string name, DomainConfigArgs args, CustomResourceOptions? opts = null)
    public DomainConfig(String name, DomainConfigArgs args)
    public DomainConfig(String name, DomainConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:cdn:DomainConfig
    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 DomainConfigArgs
    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 DomainConfigArgs
    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 DomainConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var domainConfigResource = new AliCloud.Cdn.DomainConfig("domainConfigResource", new()
    {
        DomainName = "string",
        FunctionArgs = new[]
        {
            new AliCloud.Cdn.Inputs.DomainConfigFunctionArgArgs
            {
                ArgName = "string",
                ArgValue = "string",
            },
        },
        FunctionName = "string",
        ParentId = "string",
    });
    
    example, err := cdn.NewDomainConfig(ctx, "domainConfigResource", &cdn.DomainConfigArgs{
    	DomainName: pulumi.String("string"),
    	FunctionArgs: cdn.DomainConfigFunctionArgArray{
    		&cdn.DomainConfigFunctionArgArgs{
    			ArgName:  pulumi.String("string"),
    			ArgValue: pulumi.String("string"),
    		},
    	},
    	FunctionName: pulumi.String("string"),
    	ParentId:     pulumi.String("string"),
    })
    
    var domainConfigResource = new DomainConfig("domainConfigResource", DomainConfigArgs.builder()        
        .domainName("string")
        .functionArgs(DomainConfigFunctionArgArgs.builder()
            .argName("string")
            .argValue("string")
            .build())
        .functionName("string")
        .parentId("string")
        .build());
    
    domain_config_resource = alicloud.cdn.DomainConfig("domainConfigResource",
        domain_name="string",
        function_args=[alicloud.cdn.DomainConfigFunctionArgArgs(
            arg_name="string",
            arg_value="string",
        )],
        function_name="string",
        parent_id="string")
    
    const domainConfigResource = new alicloud.cdn.DomainConfig("domainConfigResource", {
        domainName: "string",
        functionArgs: [{
            argName: "string",
            argValue: "string",
        }],
        functionName: "string",
        parentId: "string",
    });
    
    type: alicloud:cdn:DomainConfig
    properties:
        domainName: string
        functionArgs:
            - argName: string
              argValue: string
        functionName: string
        parentId: string
    

    DomainConfig Resource Properties

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

    Inputs

    The DomainConfig resource accepts the following input properties:

    DomainName string
    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.
    FunctionArgs List<Pulumi.AliCloud.Cdn.Inputs.DomainConfigFunctionArg>
    The args of the domain config. See function_args below.
    FunctionName string
    The name of the domain config.
    ParentId string
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    DomainName string
    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.
    FunctionArgs []DomainConfigFunctionArgArgs
    The args of the domain config. See function_args below.
    FunctionName string
    The name of the domain config.
    ParentId string
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    domainName String
    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.
    functionArgs List<DomainConfigFunctionArg>
    The args of the domain config. See function_args below.
    functionName String
    The name of the domain config.
    parentId String
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    domainName string
    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.
    functionArgs DomainConfigFunctionArg[]
    The args of the domain config. See function_args below.
    functionName string
    The name of the domain config.
    parentId string
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    domain_name str
    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.
    function_args Sequence[DomainConfigFunctionArgArgs]
    The args of the domain config. See function_args below.
    function_name str
    The name of the domain config.
    parent_id str
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    domainName String
    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.
    functionArgs List<Property Map>
    The args of the domain config. See function_args below.
    functionName String
    The name of the domain config.
    parentId String
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.

    Outputs

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

    ConfigId string
    (Available since v1.132.0) The ID of the domain config function.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (Available since v1.132.0) The Status of the function.
    ConfigId string
    (Available since v1.132.0) The ID of the domain config function.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (Available since v1.132.0) The Status of the function.
    configId String
    (Available since v1.132.0) The ID of the domain config function.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (Available since v1.132.0) The Status of the function.
    configId string
    (Available since v1.132.0) The ID of the domain config function.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    (Available since v1.132.0) The Status of the function.
    config_id str
    (Available since v1.132.0) The ID of the domain config function.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    (Available since v1.132.0) The Status of the function.
    configId String
    (Available since v1.132.0) The ID of the domain config function.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (Available since v1.132.0) The Status of the function.

    Look up Existing DomainConfig Resource

    Get an existing DomainConfig 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?: DomainConfigState, opts?: CustomResourceOptions): DomainConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_id: Optional[str] = None,
            domain_name: Optional[str] = None,
            function_args: Optional[Sequence[DomainConfigFunctionArgArgs]] = None,
            function_name: Optional[str] = None,
            parent_id: Optional[str] = None,
            status: Optional[str] = None) -> DomainConfig
    func GetDomainConfig(ctx *Context, name string, id IDInput, state *DomainConfigState, opts ...ResourceOption) (*DomainConfig, error)
    public static DomainConfig Get(string name, Input<string> id, DomainConfigState? state, CustomResourceOptions? opts = null)
    public static DomainConfig get(String name, Output<String> id, DomainConfigState 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:
    ConfigId string
    (Available since v1.132.0) The ID of the domain config function.
    DomainName string
    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.
    FunctionArgs List<Pulumi.AliCloud.Cdn.Inputs.DomainConfigFunctionArg>
    The args of the domain config. See function_args below.
    FunctionName string
    The name of the domain config.
    ParentId string
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    Status string
    (Available since v1.132.0) The Status of the function.
    ConfigId string
    (Available since v1.132.0) The ID of the domain config function.
    DomainName string
    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.
    FunctionArgs []DomainConfigFunctionArgArgs
    The args of the domain config. See function_args below.
    FunctionName string
    The name of the domain config.
    ParentId string
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    Status string
    (Available since v1.132.0) The Status of the function.
    configId String
    (Available since v1.132.0) The ID of the domain config function.
    domainName String
    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.
    functionArgs List<DomainConfigFunctionArg>
    The args of the domain config. See function_args below.
    functionName String
    The name of the domain config.
    parentId String
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    status String
    (Available since v1.132.0) The Status of the function.
    configId string
    (Available since v1.132.0) The ID of the domain config function.
    domainName string
    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.
    functionArgs DomainConfigFunctionArg[]
    The args of the domain config. See function_args below.
    functionName string
    The name of the domain config.
    parentId string
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    status string
    (Available since v1.132.0) The Status of the function.
    config_id str
    (Available since v1.132.0) The ID of the domain config function.
    domain_name str
    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.
    function_args Sequence[DomainConfigFunctionArgArgs]
    The args of the domain config. See function_args below.
    function_name str
    The name of the domain config.
    parent_id str
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    status str
    (Available since v1.132.0) The Status of the function.
    configId String
    (Available since v1.132.0) The ID of the domain config function.
    domainName String
    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.
    functionArgs List<Property Map>
    The args of the domain config. See function_args below.
    functionName String
    The name of the domain config.
    parentId String
    By configuring the function condition (rule engine) in the domain name configuration function parameters, Rule conditions can be created (Rule conditions can match and filter user requests by identifying various parameters carried in user requests). After each rule condition is created, a corresponding ConfigId will be generated, and the ConfigId can be referenced by other functions as a ParentId parameter, in this way, the rule conditions can be combined with the functional configuration to form a more flexible configuration.
    status String
    (Available since v1.132.0) The Status of the function.

    Supporting Types

    DomainConfigFunctionArg, DomainConfigFunctionArgArgs

    ArgName string
    The name of arg.
    ArgValue string
    The value of arg.
    ArgName string
    The name of arg.
    ArgValue string
    The value of arg.
    argName String
    The name of arg.
    argValue String
    The value of arg.
    argName string
    The name of arg.
    argValue string
    The value of arg.
    arg_name str
    The name of arg.
    arg_value str
    The value of arg.
    argName String
    The name of arg.
    argValue String
    The value of arg.

    Import

    CDN domain config can be imported using the id, e.g.

    $ pulumi import alicloud:cdn/domainConfig:DomainConfig example <domain_name>:<function_name>:<config_id>
    
    $ pulumi import alicloud:cdn/domainConfig:DomainConfig example <domain_name>:<function_name>
    

    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi