DomainConfigArgs

data class DomainConfigArgs(val domainName: Output<String>? = null, val functionArgs: Output<List<DomainConfigFunctionArgArgs>>? = null, val functionName: Output<String>? = null) : ConvertibleToJava<DomainConfigArgs>

Provides a SCDN Accelerated Domain resource. For information about domain config and how to use it, see Batch set config

NOTE: Available in v1.131.0+. NOTE: Alibaba Cloud SCDN has stopped new customer purchases from January 26, 2023, and you can choose to buy Alibaba Cloud DCDN products with more comprehensive acceleration and protection capabilities. If you are already a SCDN customer, you can submit a work order at any time to apply for a smooth migration to Alibaba Cloud DCDN products. In the future, we will provide better acceleration and security protection services in Alibaba Cloud DCDN, thank you for your understanding and cooperation. DEPRECATED: This resource has been deprecated from version 1.219.0.

Example Usage

Basic Usage

resources:
# Create a new Domain config.
domain:
type: alicloud:scdn:Domain
properties:
domainName: mydomain.alicloud-provider.cn
cdnType: web
scope: overseas
sources:
- content: 1.1.1.1
type: ipaddr
priority: '20'
port: 80
config:
type: alicloud:scdn:DomainConfig
properties:
domainName: ${domain.domainName}
functionName: ip_allow_list_set
functionArgs:
- argName: ip_list
argValue: 110.110.110.110

Import

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

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

Constructors

Link copied to clipboard
constructor(domainName: Output<String>? = null, functionArgs: Output<List<DomainConfigFunctionArgArgs>>? = null, functionName: Output<String>? = null)

Properties

Link copied to clipboard
val domainName: Output<String>? = null

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.

Link copied to clipboard

The args of the domain config.

Link copied to clipboard
val functionName: Output<String>? = null

The name of the domain config.

Functions

Link copied to clipboard
open override fun toJava(): DomainConfigArgs