<reponame>Dwonczykj/gember_deploy// *** 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.Dcdb
{
    public static class GetInstances
    {
        /// <summary>
        /// Use this data source to query detailed information of dcdb instances
        /// </summary>
        public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetInstancesResult>("tencentcloud:Dcdb/getInstances:getInstances", args ?? new GetInstancesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of dcdb instances
        /// </summary>
        public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetInstancesResult>("tencentcloud:Dcdb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInstancesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// cluster excluster type.
        /// </summary>
        [Input("exclusterType")]
        public int? ExclusterType { get; set; }

        [Input("instanceIds")]
        private List<string>? _instanceIds;

        /// <summary>
        /// instance ids.
        /// </summary>
        public List<string> InstanceIds
        {
            get => _instanceIds ?? (_instanceIds = new List<string>());
            set => _instanceIds = value;
        }

        /// <summary>
        /// search according to the cluster excluter type.
        /// </summary>
        [Input("isFilterExcluster")]
        public bool? IsFilterExcluster { get; set; }

        /// <summary>
        /// search according to the vpc.
        /// </summary>
        [Input("isFilterVpc")]
        public bool? IsFilterVpc { get; set; }

        [Input("projectIds")]
        private List<int>? _projectIds;

        /// <summary>
        /// project ids.
        /// </summary>
        public List<int> ProjectIds
        {
            get => _projectIds ?? (_projectIds = new List<int>());
            set => _projectIds = value;
        }

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

        /// <summary>
        /// search key, support fuzzy query.
        /// </summary>
        [Input("searchKey")]
        public string? SearchKey { get; set; }

        /// <summary>
        /// search name, support instancename, vip, all.
        /// </summary>
        [Input("searchName")]
        public string? SearchName { get; set; }

        /// <summary>
        /// subnet id, valid when IsFilterVpc is true.
        /// </summary>
        [Input("subnetId")]
        public string? SubnetId { get; set; }

        /// <summary>
        /// vpc id, valid when IsFilterVpc is true.
        /// </summary>
        [Input("vpcId")]
        public string? VpcId { get; set; }

        public GetInstancesArgs()
        {
        }
    }

    public sealed class GetInstancesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// cluster excluster type.
        /// </summary>
        [Input("exclusterType")]
        public Input<int>? ExclusterType { get; set; }

        [Input("instanceIds")]
        private InputList<string>? _instanceIds;

        /// <summary>
        /// instance ids.
        /// </summary>
        public InputList<string> InstanceIds
        {
            get => _instanceIds ?? (_instanceIds = new InputList<string>());
            set => _instanceIds = value;
        }

        /// <summary>
        /// search according to the cluster excluter type.
        /// </summary>
        [Input("isFilterExcluster")]
        public Input<bool>? IsFilterExcluster { get; set; }

        /// <summary>
        /// search according to the vpc.
        /// </summary>
        [Input("isFilterVpc")]
        public Input<bool>? IsFilterVpc { get; set; }

        [Input("projectIds")]
        private InputList<int>? _projectIds;

        /// <summary>
        /// project ids.
        /// </summary>
        public InputList<int> ProjectIds
        {
            get => _projectIds ?? (_projectIds = new InputList<int>());
            set => _projectIds = value;
        }

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

        /// <summary>
        /// search key, support fuzzy query.
        /// </summary>
        [Input("searchKey")]
        public Input<string>? SearchKey { get; set; }

        /// <summary>
        /// search name, support instancename, vip, all.
        /// </summary>
        [Input("searchName")]
        public Input<string>? SearchName { get; set; }

        /// <summary>
        /// subnet id, valid when IsFilterVpc is true.
        /// </summary>
        [Input("subnetId")]
        public Input<string>? SubnetId { get; set; }

        /// <summary>
        /// vpc id, valid when IsFilterVpc is true.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

        public GetInstancesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetInstancesResult
    {
        public readonly int? ExclusterType;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<string> InstanceIds;
        public readonly bool? IsFilterExcluster;
        public readonly bool? IsFilterVpc;
        /// <summary>
        /// instance list.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInstancesListResult> Lists;
        public readonly ImmutableArray<int> ProjectIds;
        public readonly string? ResultOutputFile;
        public readonly string? SearchKey;
        public readonly string? SearchName;
        /// <summary>
        /// subnet id.
        /// </summary>
        public readonly string? SubnetId;
        /// <summary>
        /// vpc id.
        /// </summary>
        public readonly string VpcId;

        [OutputConstructor]
        private GetInstancesResult(
            int? exclusterType,

            string id,

            ImmutableArray<string> instanceIds,

            bool? isFilterExcluster,

            bool? isFilterVpc,

            ImmutableArray<Outputs.GetInstancesListResult> lists,

            ImmutableArray<int> projectIds,

            string? resultOutputFile,

            string? searchKey,

            string? searchName,

            string? subnetId,

            string vpcId)
        {
            ExclusterType = exclusterType;
            Id = id;
            InstanceIds = instanceIds;
            IsFilterExcluster = isFilterExcluster;
            IsFilterVpc = isFilterVpc;
            Lists = lists;
            ProjectIds = projectIds;
            ResultOutputFile = resultOutputFile;
            SearchKey = searchKey;
            SearchName = searchName;
            SubnetId = subnetId;
            VpcId = vpcId;
        }
    }
}
