<filename>sdk/dotnet/Tencentcloud/Cdn/Outputs/DomainMaxAgeMaxAgeRule.cs// *** 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 DomainMaxAgeMaxAgeRule
    {
        /// <summary>
        /// Whether to follow origin, values: `on`/`off`, if set to `on`, the `max_age_time` will be ignored.
        /// </summary>
        public readonly string? FollowOrigin;
        /// <summary>
        /// List of rule paths for each `max_age_type`: `*` for `all`, file ext like `jpg` for `file`, `/dir/like/` for `directory` and `/path/index.html` for `path`.
        /// </summary>
        public readonly ImmutableArray<string> MaxAgeContents;
        /// <summary>
        /// Max Age time in seconds, this can set to `0` that stands for no cache.
        /// </summary>
        public readonly int MaxAgeTime;
        /// <summary>
        /// The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page.
        /// </summary>
        public readonly string MaxAgeType;

        [OutputConstructor]
        private DomainMaxAgeMaxAgeRule(
            string? followOrigin,

            ImmutableArray<string> maxAgeContents,

            int maxAgeTime,

            string maxAgeType)
        {
            FollowOrigin = followOrigin;
            MaxAgeContents = maxAgeContents;
            MaxAgeTime = maxAgeTime;
            MaxAgeType = maxAgeType;
        }
    }
}
