Skip to content

DomainProps

Properties for defining a Domain.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cdn-domain

Initializer

import com.aliyun.ros.cdk.cdn.DomainProps;
DomainProps.builder()
    .cdnType(java.lang.String)
    .cdnType(IResolvable)
    .domainName(java.lang.String)
    .domainName(IResolvable)
//  .checkUrl(java.lang.String)
//  .checkUrl(IResolvable)
//  .originServers(IResolvable)
//  .originServers(java.util.List<IResolvable)
//  .originServers(OriginServersProperty>)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .scope(java.lang.String)
//  .scope(IResolvable)
//  .sources(java.lang.String)
//  .sources(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .topLevelDomain(java.lang.String)
//  .topLevelDomain(IResolvable)
    .build();

Properties

Name Type Description
cdnType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cdnType: The business type of the domain name.
domainName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property domainName: The CDN domain name.
checkUrl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property checkUrl: The health check URL.
originServers com.aliyun.ros.cdk.core.IResolvable OR java.util.ListOriginServersProperty> Property originServers: The list of origin URLs.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group.
scope java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scope: The acceleration region.
sources java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sources: The list of origin URLs.
tags java.util.List<TagsProperty> Property tags: Tags to attach to instance.
topLevelDomain java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.

cdnTypeRequired

public java.lang.Object getCdnType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cdnType: The business type of the domain name.

Valid values:

  • web: images and small files.
  • download: large files.
  • video: on-demand video and audio streaming.

domainNameRequired

public java.lang.Object getDomainName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property domainName: The CDN domain name.

Wildcard domain names that start with periods (.) are supported. For example, .a.com.


checkUrlOptional

public java.lang.Object getCheckUrl();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property checkUrl: The health check URL.


originServersOptional

public java.lang.Object getOriginServers();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListOriginServersProperty>

Property originServers: The list of origin URLs.

It has the same function as Sources, but has a higher priority than it.


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: The ID of the resource group.

If this is left blank, the system automatically fills in the ID of the default resource group.


scopeOptional

public java.lang.Object getScope();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property scope: The acceleration region.

Valid values:

  • domestic (default): Chinese mainland only.
  • overseas: global (excluding the Chinese mainland).
  • global: global.

sourcesOptional

public java.lang.Object getSources();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property sources: The list of origin URLs.


tagsOptional

public java.util.List<TagsProperty> getTags();

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.


topLevelDomainOptional

public java.lang.Object getTopLevelDomain();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property topLevelDomain: The top-level domain, which can only be configured by users on the whitelist.