// *** 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.Cbs
{
    public static class GetSnapshotPolicies
    {
        /// <summary>
        /// Use this data source to query detailed information of CBS snapshot policies.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var policies = Output.Create(Tencentcloud.Cbs.GetSnapshotPolicies.InvokeAsync(new Tencentcloud.Cbs.GetSnapshotPoliciesArgs
        ///         {
        ///             SnapshotPolicyId = "snap-f3io7adt",
        ///             SnapshotPolicyName = "test",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetSnapshotPoliciesResult> InvokeAsync(GetSnapshotPoliciesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetSnapshotPoliciesResult>("tencentcloud:Cbs/getSnapshotPolicies:getSnapshotPolicies", args ?? new GetSnapshotPoliciesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of CBS snapshot policies.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var policies = Output.Create(Tencentcloud.Cbs.GetSnapshotPolicies.InvokeAsync(new Tencentcloud.Cbs.GetSnapshotPoliciesArgs
        ///         {
        ///             SnapshotPolicyId = "snap-f3io7adt",
        ///             SnapshotPolicyName = "test",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetSnapshotPoliciesResult> Invoke(GetSnapshotPoliciesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetSnapshotPoliciesResult>("tencentcloud:Cbs/getSnapshotPolicies:getSnapshotPolicies", args ?? new GetSnapshotPoliciesInvokeArgs(), options.WithDefaults());
    }


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

        /// <summary>
        /// ID of the snapshot policy to be queried.
        /// </summary>
        [Input("snapshotPolicyId")]
        public string? SnapshotPolicyId { get; set; }

        /// <summary>
        /// Name of the snapshot policy to be queried.
        /// </summary>
        [Input("snapshotPolicyName")]
        public string? SnapshotPolicyName { get; set; }

        public GetSnapshotPoliciesArgs()
        {
        }
    }

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

        /// <summary>
        /// ID of the snapshot policy to be queried.
        /// </summary>
        [Input("snapshotPolicyId")]
        public Input<string>? SnapshotPolicyId { get; set; }

        /// <summary>
        /// Name of the snapshot policy to be queried.
        /// </summary>
        [Input("snapshotPolicyName")]
        public Input<string>? SnapshotPolicyName { get; set; }

        public GetSnapshotPoliciesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetSnapshotPoliciesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// ID of the snapshot policy.
        /// </summary>
        public readonly string? SnapshotPolicyId;
        /// <summary>
        /// A list of snapshot policy. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetSnapshotPoliciesSnapshotPolicyListResult> SnapshotPolicyLists;
        /// <summary>
        /// Name of the snapshot policy.
        /// </summary>
        public readonly string? SnapshotPolicyName;

        [OutputConstructor]
        private GetSnapshotPoliciesResult(
            string id,

            string? resultOutputFile,

            string? snapshotPolicyId,

            ImmutableArray<Outputs.GetSnapshotPoliciesSnapshotPolicyListResult> snapshotPolicyLists,

            string? snapshotPolicyName)
        {
            Id = id;
            ResultOutputFile = resultOutputFile;
            SnapshotPolicyId = snapshotPolicyId;
            SnapshotPolicyLists = snapshotPolicyLists;
            SnapshotPolicyName = snapshotPolicyName;
        }
    }
}
