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

    [OutputType]
    public sealed class KubernetesClusterMasterMaintenancePolicy
    {
        /// <summary>
        /// (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
        /// </summary>
        public readonly bool AutoUpgrade;
        /// <summary>
        /// (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
        /// To specify time of day interval, for all days, one element should be provided, with two fields set, `start_time` and `duration`.
        /// Please see `zonal_cluster_resource_name` config example.
        /// </summary>
        public readonly ImmutableArray<Outputs.KubernetesClusterMasterMaintenancePolicyMaintenanceWindow> MaintenanceWindows;

        [OutputConstructor]
        private KubernetesClusterMasterMaintenancePolicy(
            bool autoUpgrade,

            ImmutableArray<Outputs.KubernetesClusterMasterMaintenancePolicyMaintenanceWindow> maintenanceWindows)
        {
            AutoUpgrade = autoUpgrade;
            MaintenanceWindows = maintenanceWindows;
        }
    }
}
