// *** 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.Cms
{
    public static class GetMonitorGroupInstances
    {
        public static Task<GetMonitorGroupInstancesResult> InvokeAsync(GetMonitorGroupInstancesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetMonitorGroupInstancesResult>("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", args ?? new GetMonitorGroupInstancesArgs(), options.WithDefaults());

        public static Output<GetMonitorGroupInstancesResult> Invoke(GetMonitorGroupInstancesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetMonitorGroupInstancesResult>("alicloud:cms/getMonitorGroupInstances:getMonitorGroupInstances", args ?? new GetMonitorGroupInstancesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetMonitorGroupInstancesArgs : global::Pulumi.InvokeArgs
    {
        [Input("ids", required: true)]
        public string Ids { get; set; } = null!;

        [Input("keyword")]
        public string? Keyword { get; set; }

        [Input("outputFile")]
        public string? OutputFile { get; set; }

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

    public sealed class GetMonitorGroupInstancesInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("ids", required: true)]
        public Input<string> Ids { get; set; } = null!;

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

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

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


    [OutputType]
    public sealed class GetMonitorGroupInstancesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string Ids;
        public readonly ImmutableArray<Outputs.GetMonitorGroupInstancesInstanceResult> Instances;
        public readonly string? Keyword;
        public readonly string? OutputFile;

        [OutputConstructor]
        private GetMonitorGroupInstancesResult(
            string id,

            string ids,

            ImmutableArray<Outputs.GetMonitorGroupInstancesInstanceResult> instances,

            string? keyword,

            string? outputFile)
        {
            Id = id;
            Ids = ids;
            Instances = instances;
            Keyword = keyword;
            OutputFile = outputFile;
        }
    }
}
