<reponame>rhysmdnz/pulumi-alicloud-rhys-hacks<filename>sdk/dotnet/Ess/Schedule.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;

namespace Pulumi.AliCloud.Ess
{
    [AliCloudResourceType("alicloud:ess/schedule:Schedule")]
    public partial class Schedule : global::Pulumi.CustomResource
    {
        [Output("description")]
        public Output<string> Description { get; private set; } = null!;

        [Output("desiredCapacity")]
        public Output<int?> DesiredCapacity { get; private set; } = null!;

        [Output("launchExpirationTime")]
        public Output<int?> LaunchExpirationTime { get; private set; } = null!;

        [Output("launchTime")]
        public Output<string?> LaunchTime { get; private set; } = null!;

        [Output("maxValue")]
        public Output<int?> MaxValue { get; private set; } = null!;

        [Output("minValue")]
        public Output<int?> MinValue { get; private set; } = null!;

        [Output("recurrenceEndTime")]
        public Output<string> RecurrenceEndTime { get; private set; } = null!;

        [Output("recurrenceType")]
        public Output<string> RecurrenceType { get; private set; } = null!;

        [Output("recurrenceValue")]
        public Output<string> RecurrenceValue { get; private set; } = null!;

        [Output("scalingGroupId")]
        public Output<string> ScalingGroupId { get; private set; } = null!;

        [Output("scheduledAction")]
        public Output<string?> ScheduledAction { get; private set; } = null!;

        [Output("scheduledTaskName")]
        public Output<string?> ScheduledTaskName { get; private set; } = null!;

        [Output("taskEnabled")]
        public Output<bool?> TaskEnabled { get; private set; } = null!;


        /// <summary>
        /// Create a Schedule resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public Schedule(string name, ScheduleArgs? args = null, CustomResourceOptions? options = null)
            : base("alicloud:ess/schedule:Schedule", name, args ?? new ScheduleArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Schedule(string name, Input<string> id, ScheduleState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:ess/schedule:Schedule", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/rhysmdnz/pulumi-alicloud",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing Schedule resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static Schedule Get(string name, Input<string> id, ScheduleState? state = null, CustomResourceOptions? options = null)
        {
            return new Schedule(name, id, state, options);
        }
    }

    public sealed class ScheduleArgs : global::Pulumi.ResourceArgs
    {
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("desiredCapacity")]
        public Input<int>? DesiredCapacity { get; set; }

        [Input("launchExpirationTime")]
        public Input<int>? LaunchExpirationTime { get; set; }

        [Input("launchTime")]
        public Input<string>? LaunchTime { get; set; }

        [Input("maxValue")]
        public Input<int>? MaxValue { get; set; }

        [Input("minValue")]
        public Input<int>? MinValue { get; set; }

        [Input("recurrenceEndTime")]
        public Input<string>? RecurrenceEndTime { get; set; }

        [Input("recurrenceType")]
        public Input<string>? RecurrenceType { get; set; }

        [Input("recurrenceValue")]
        public Input<string>? RecurrenceValue { get; set; }

        [Input("scalingGroupId")]
        public Input<string>? ScalingGroupId { get; set; }

        [Input("scheduledAction")]
        public Input<string>? ScheduledAction { get; set; }

        [Input("scheduledTaskName")]
        public Input<string>? ScheduledTaskName { get; set; }

        [Input("taskEnabled")]
        public Input<bool>? TaskEnabled { get; set; }

        public ScheduleArgs()
        {
        }
        public static new ScheduleArgs Empty => new ScheduleArgs();
    }

    public sealed class ScheduleState : global::Pulumi.ResourceArgs
    {
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("desiredCapacity")]
        public Input<int>? DesiredCapacity { get; set; }

        [Input("launchExpirationTime")]
        public Input<int>? LaunchExpirationTime { get; set; }

        [Input("launchTime")]
        public Input<string>? LaunchTime { get; set; }

        [Input("maxValue")]
        public Input<int>? MaxValue { get; set; }

        [Input("minValue")]
        public Input<int>? MinValue { get; set; }

        [Input("recurrenceEndTime")]
        public Input<string>? RecurrenceEndTime { get; set; }

        [Input("recurrenceType")]
        public Input<string>? RecurrenceType { get; set; }

        [Input("recurrenceValue")]
        public Input<string>? RecurrenceValue { get; set; }

        [Input("scalingGroupId")]
        public Input<string>? ScalingGroupId { get; set; }

        [Input("scheduledAction")]
        public Input<string>? ScheduledAction { get; set; }

        [Input("scheduledTaskName")]
        public Input<string>? ScheduledTaskName { get; set; }

        [Input("taskEnabled")]
        public Input<bool>? TaskEnabled { get; set; }

        public ScheduleState()
        {
        }
        public static new ScheduleState Empty => new ScheduleState();
    }
}
