// *** 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.As
{
    public static class GetScalingPolicies
    {
        /// <summary>
        /// Use this data source to query detailed information of scaling policy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var asScalingPolicies = Output.Create(Tencentcloud.As.GetScalingPolicies.InvokeAsync(new Tencentcloud.As.GetScalingPoliciesArgs
        ///         {
        ///             ResultOutputFile = "mytestpath",
        ///             ScalingPolicyId = "asg-mvyghxu7",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetScalingPoliciesResult> InvokeAsync(GetScalingPoliciesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetScalingPoliciesResult>("tencentcloud:As/getScalingPolicies:getScalingPolicies", args ?? new GetScalingPoliciesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of scaling policy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var asScalingPolicies = Output.Create(Tencentcloud.As.GetScalingPolicies.InvokeAsync(new Tencentcloud.As.GetScalingPoliciesArgs
        ///         {
        ///             ResultOutputFile = "mytestpath",
        ///             ScalingPolicyId = "asg-mvyghxu7",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetScalingPoliciesResult> Invoke(GetScalingPoliciesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetScalingPoliciesResult>("tencentcloud:As/getScalingPolicies:getScalingPolicies", args ?? new GetScalingPoliciesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetScalingPoliciesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Scaling policy name.
        /// </summary>
        [Input("policyName")]
        public string? PolicyName { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        /// <summary>
        /// Scaling group ID.
        /// </summary>
        [Input("scalingGroupId")]
        public string? ScalingGroupId { get; set; }

        /// <summary>
        /// Scaling policy ID.
        /// </summary>
        [Input("scalingPolicyId")]
        public string? ScalingPolicyId { get; set; }

        public GetScalingPoliciesArgs()
        {
        }
    }

    public sealed class GetScalingPoliciesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Scaling policy name.
        /// </summary>
        [Input("policyName")]
        public Input<string>? PolicyName { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        /// <summary>
        /// Scaling group ID.
        /// </summary>
        [Input("scalingGroupId")]
        public Input<string>? ScalingGroupId { get; set; }

        /// <summary>
        /// Scaling policy ID.
        /// </summary>
        [Input("scalingPolicyId")]
        public Input<string>? ScalingPolicyId { get; set; }

        public GetScalingPoliciesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetScalingPoliciesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Scaling policy name.
        /// </summary>
        public readonly string? PolicyName;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Scaling policy ID.
        /// </summary>
        public readonly string? ScalingGroupId;
        public readonly string? ScalingPolicyId;
        /// <summary>
        /// A list of scaling policy. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetScalingPoliciesScalingPolicyListResult> ScalingPolicyLists;

        [OutputConstructor]
        private GetScalingPoliciesResult(
            string id,

            string? policyName,

            string? resultOutputFile,

            string? scalingGroupId,

            string? scalingPolicyId,

            ImmutableArray<Outputs.GetScalingPoliciesScalingPolicyListResult> scalingPolicyLists)
        {
            Id = id;
            PolicyName = policyName;
            ResultOutputFile = resultOutputFile;
            ScalingGroupId = scalingGroupId;
            ScalingPolicyId = scalingPolicyId;
            ScalingPolicyLists = scalingPolicyLists;
        }
    }
}
