// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Cdn.Outputs
{

    [OutputType]
    public sealed class DomainOrigin
    {
        /// <summary>
        /// Backup origin server list. Valid values can be ip or domain name. When modifying the backup origin server, you need to enter the corresponding `backup_origin_type`.
        /// </summary>
        public readonly ImmutableArray<string> BackupOriginLists;
        /// <summary>
        /// Backup origin server type, which supports the following types: `domain`: domain name type, `ip`: IP list used as origin server.
        /// </summary>
        public readonly string? BackupOriginType;
        /// <summary>
        /// Host header used when accessing the backup origin server. If left empty, the ServerName of master origin server will be used by default.
        /// </summary>
        public readonly string? BackupServerName;
        /// <summary>
        /// When OriginType is COS, you can specify if access to private buckets is allowed. Valid values are `on` and `off`. and default value is `off`.
        /// </summary>
        public readonly string? CosPrivateAccess;
        /// <summary>
        /// Master origin server list. Valid values can be ip or domain name. When modifying the origin server, you need to enter the corresponding `origin_type`.
        /// </summary>
        public readonly ImmutableArray<string> OriginLists;
        /// <summary>
        /// Origin-pull protocol configuration. `http`: forced HTTP origin-pull, `follow`: protocol follow origin-pull, `https`: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
        /// </summary>
        public readonly string? OriginPullProtocol;
        /// <summary>
        /// Master origin server type. The following types are supported: `domain`: domain name type, `cos`: COS origin, `ip`: IP list used as origin server, `ipv6`: origin server list is a single IPv6 address, `ip_ipv6`: origin server list is multiple IPv4 addresses and an IPv6 address.
        /// </summary>
        public readonly string OriginType;
        /// <summary>
        /// Host header used when accessing the master origin server. If left empty, the acceleration domain name will be used by default.
        /// </summary>
        public readonly string? ServerName;

        [OutputConstructor]
        private DomainOrigin(
            ImmutableArray<string> backupOriginLists,

            string? backupOriginType,

            string? backupServerName,

            string? cosPrivateAccess,

            ImmutableArray<string> originLists,

            string? originPullProtocol,

            string originType,

            string? serverName)
        {
            BackupOriginLists = backupOriginLists;
            BackupOriginType = backupOriginType;
            BackupServerName = backupServerName;
            CosPrivateAccess = cosPrivateAccess;
            OriginLists = originLists;
            OriginPullProtocol = originPullProtocol;
            OriginType = originType;
            ServerName = serverName;
        }
    }
}
