// *** 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.Cfs
{
    public static class GetAccessGroups
    {
        /// <summary>
        /// Use this data source to query the detail information of CFS access group.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var accessGroups = Output.Create(Tencentcloud.Cfs.GetAccessGroups.InvokeAsync(new Tencentcloud.Cfs.GetAccessGroupsArgs
        ///         {
        ///             AccessGroupId = "pgroup-7nx89k7l",
        ///             Name = "test",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetAccessGroupsResult> InvokeAsync(GetAccessGroupsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetAccessGroupsResult>("tencentcloud:Cfs/getAccessGroups:getAccessGroups", args ?? new GetAccessGroupsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query the detail information of CFS access group.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var accessGroups = Output.Create(Tencentcloud.Cfs.GetAccessGroups.InvokeAsync(new Tencentcloud.Cfs.GetAccessGroupsArgs
        ///         {
        ///             AccessGroupId = "pgroup-7nx89k7l",
        ///             Name = "test",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetAccessGroupsResult> Invoke(GetAccessGroupsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetAccessGroupsResult>("tencentcloud:Cfs/getAccessGroups:getAccessGroups", args ?? new GetAccessGroupsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetAccessGroupsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// A specified access group ID used to query.
        /// </summary>
        [Input("accessGroupId")]
        public string? AccessGroupId { get; set; }

        /// <summary>
        /// A access group Name used to query.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

        public GetAccessGroupsArgs()
        {
        }
    }

    public sealed class GetAccessGroupsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// A specified access group ID used to query.
        /// </summary>
        [Input("accessGroupId")]
        public Input<string>? AccessGroupId { get; set; }

        /// <summary>
        /// A access group Name used to query.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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

        public GetAccessGroupsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetAccessGroupsResult
    {
        /// <summary>
        /// ID of the access group.
        /// </summary>
        public readonly string? AccessGroupId;
        /// <summary>
        /// An information list of CFS access group. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetAccessGroupsAccessGroupListResult> AccessGroupLists;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Name of the access group.
        /// </summary>
        public readonly string? Name;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetAccessGroupsResult(
            string? accessGroupId,

            ImmutableArray<Outputs.GetAccessGroupsAccessGroupListResult> accessGroupLists,

            string id,

            string? name,

            string? resultOutputFile)
        {
            AccessGroupId = accessGroupId;
            AccessGroupLists = accessGroupLists;
            Id = id;
            Name = name;
            ResultOutputFile = resultOutputFile;
        }
    }
}
