// *** 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 DomainIpFilter
    {
        /// <summary>
        /// Ip filter rules, This feature is only available to selected beta customers.
        /// </summary>
        public readonly ImmutableArray<Outputs.DomainIpFilterFilterRule> FilterRules;
        /// <summary>
        /// IP `blacklist`/`whitelist` type.
        /// </summary>
        public readonly string? FilterType;
        /// <summary>
        /// Ip filter list, Supports IPs in X.X.X.X format, or /8, /16, /24 format IP ranges. Up to 50 allowlists or blocklists can be entered.
        /// </summary>
        public readonly ImmutableArray<string> Filters;
        /// <summary>
        /// Return code, available values: 400-499.
        /// </summary>
        public readonly int? ReturnCode;
        /// <summary>
        /// Configuration switch, available values: `on`, `off` (default).
        /// </summary>
        public readonly string Switch;

        [OutputConstructor]
        private DomainIpFilter(
            ImmutableArray<Outputs.DomainIpFilterFilterRule> filterRules,

            string? filterType,

            ImmutableArray<string> filters,

            int? returnCode,

            string @switch)
        {
            FilterRules = filterRules;
            FilterType = filterType;
            Filters = filters;
            ReturnCode = returnCode;
            Switch = @switch;
        }
    }
}
