<reponame>Dwonczykj/gember_deploy<filename>sdk/dotnet/Tencentcloud/Tdmq/GetRocketmqRole.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;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tdmq
{
    public static class GetRocketmqRole
    {
        /// <summary>
        /// Use this data source to query detailed information of tdmqRocketmq role
        /// </summary>
        public static Task<GetRocketmqRoleResult> InvokeAsync(GetRocketmqRoleArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetRocketmqRoleResult>("tencentcloud:Tdmq/getRocketmqRole:getRocketmqRole", args ?? new GetRocketmqRoleArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of tdmqRocketmq role
        /// </summary>
        public static Output<GetRocketmqRoleResult> Invoke(GetRocketmqRoleInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetRocketmqRoleResult>("tencentcloud:Tdmq/getRocketmqRole:getRocketmqRole", args ?? new GetRocketmqRoleInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetRocketmqRoleArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cluster ID (required).
        /// </summary>
        [Input("clusterId", required: true)]
        public string ClusterId { get; set; } = null!;

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

        /// <summary>
        /// Fuzzy query by role name.
        /// </summary>
        [Input("roleName")]
        public string? RoleName { get; set; }

        public GetRocketmqRoleArgs()
        {
        }
    }

    public sealed class GetRocketmqRoleInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Cluster ID (required).
        /// </summary>
        [Input("clusterId", required: true)]
        public Input<string> ClusterId { get; set; } = null!;

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

        /// <summary>
        /// Fuzzy query by role name.
        /// </summary>
        [Input("roleName")]
        public Input<string>? RoleName { get; set; }

        public GetRocketmqRoleInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetRocketmqRoleResult
    {
        public readonly string ClusterId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Role name.
        /// </summary>
        public readonly string? RoleName;
        /// <summary>
        /// Array of roles.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetRocketmqRoleRoleSetResult> RoleSets;

        [OutputConstructor]
        private GetRocketmqRoleResult(
            string clusterId,

            string id,

            string? resultOutputFile,

            string? roleName,

            ImmutableArray<Outputs.GetRocketmqRoleRoleSetResult> roleSets)
        {
            ClusterId = clusterId;
            Id = id;
            ResultOutputFile = resultOutputFile;
            RoleName = roleName;
            RoleSets = roleSets;
        }
    }
}
