Class Domain
Inherited Members
Namespace: Pulumi.AliCloud.Cdn
Assembly: Pulumi.AliCloud.dll
Syntax
public class Domain : CustomResource
Constructors
View SourceDomain(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 SourceAuthConfig
The auth config of the accelerated domain.
Declaration
public Output<DomainAuthConfig> AuthConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<DomainAuthConfig> |
BlockIps
Declaration
public Output<ImmutableArray<string>> BlockIps { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
CacheConfigs
The cache configs of the accelerated domain.
Declaration
public Output<ImmutableArray<DomainCacheConfig>> CacheConfigs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<DomainCacheConfig>> |
CdnType
Cdn type of the accelerated domain. Valid values are web, download, video, liveStream.
Declaration
public Output<string> CdnType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CertificateConfig
Declaration
public Output<DomainCertificateConfig> CertificateConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<DomainCertificateConfig> |
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> |
HttpHeaderConfigs
The http header configs of the accelerated domain.
Declaration
public Output<ImmutableArray<DomainHttpHeaderConfig>> HttpHeaderConfigs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<DomainHttpHeaderConfig>> |
OptimizeEnable
Page Optimize config of the accelerated domain. Valid values are on and off. Default value is off. It can effectively remove the page redundant content, reduce the file size and improve the speed of distribution when this parameter value is on.
Declaration
public Output<string> OptimizeEnable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Page404Config
The error page config of the accelerated domain.
Declaration
public Output<DomainPage404Config> Page404Config { get; }
Property Value
| Type | Description |
|---|---|
| Output<DomainPage404Config> |
PageCompressEnable
Page Compress config of the accelerated domain. Valid values are on and off. Default value is off.
Declaration
public Output<string> PageCompressEnable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ParameterFilterConfig
The parameter filter config of the accelerated domain.
Declaration
public Output<DomainParameterFilterConfig> ParameterFilterConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<DomainParameterFilterConfig> |
RangeEnable
Range Source config of the accelerated domain. Valid values are on and off. Default value is off.
Declaration
public Output<string> RangeEnable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReferConfig
The refer config of the accelerated domain.
Declaration
public Output<DomainReferConfig> ReferConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<DomainReferConfig> |
Scope
Scope of the accelerated domain. Valid values are domestic, overseas, global. Default value is domestic. This parameter's setting is valid Only for the international users and domestic L3 and above users .
Declaration
public Output<string> Scope { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourcePort
Source port of the accelerated domain. Valid values are 80 and 443. Default value is 80. You must use 80 when the source_type is oss.
Declaration
public Output<int?> SourcePort { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Sources
Sources of the accelerated domain. It's a list of domain names or IP address and consists of at most 20 items. You must set this parameter when cdn_type value is not liveStream.
Declaration
public Output<ImmutableArray<string>> Sources { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
SourceType
Source type of the accelerated domain. Valid values are ipaddr, domain, oss. You must set this parameter when cdn_type value is not liveStream.
Declaration
public Output<string> SourceType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VideoSeekEnable
Video Seek config of the accelerated domain. Valid values are on and off. Default value is off.
Declaration
public Output<string> VideoSeekEnable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |