// *** 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;

namespace Pulumi.AliCloud.Dcdn.Outputs
{

    [OutputType]
    public sealed class DomainSource
    {
        /// <summary>
        /// The origin address.
        /// </summary>
        public readonly string Content;
        /// <summary>
        /// The port number. Valid values: `443` and `80`. Default to `80`.
        /// </summary>
        public readonly int? Port;
        /// <summary>
        /// The priority of the origin if multiple origins are specified. Default to `20`.
        /// </summary>
        public readonly string? Priority;
        /// <summary>
        /// The type of the origin. Valid values:
        /// `ipaddr`: The origin is configured using an IP address.
        /// `domain`: The origin is configured using a domain name.
        /// `oss`: The origin is configured using the Internet domain name of an Alibaba Cloud Object Storage Service (OSS) bucket.
        /// </summary>
        public readonly string Type;
        /// <summary>
        /// The weight of the origin if multiple origins are specified. Default to `10`.
        /// </summary>
        public readonly string? Weight;

        [OutputConstructor]
        private DomainSource(
            string content,

            int? port,

            string? priority,

            string type,

            string? weight)
        {
            Content = content;
            Port = port;
            Priority = priority;
            Type = type;
            Weight = weight;
        }
    }
}
