// *** 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.Cdn.Outputs
{

    [OutputType]
    public sealed class DomainNewSource
    {
        /// <summary>
        /// The address of source. Valid values can be ip or doaminName. Each item's `content` can not be repeated.
        /// </summary>
        public readonly string Content;
        /// <summary>
        /// The port of source. Valid values are `443` and `80`. Default value is `80`.
        /// </summary>
        public readonly int? Port;
        /// <summary>
        /// Priority of the source. Valid values are `0` and `100`. Default value is `20`.
        /// </summary>
        public readonly int? Priority;
        /// <summary>
        /// The type of the source. Valid values are `ipaddr`, `domain` and `oss`.
        /// </summary>
        public readonly string Type;
        /// <summary>
        /// Weight of the source. Valid values are from `0` to `100`. Default value is `10`, but if type is `ipaddr`, the value can only be `10`.
        /// </summary>
        public readonly int? Weight;

        [OutputConstructor]
        private DomainNewSource(
            string content,

            int? port,

            int? priority,

            string type,

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