// *** 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.Tctest.Cdh
{
    public static class Instances
    {
        public static Task<InstancesResult> InvokeAsync(InstancesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<InstancesResult>("tctest:Cdh/instances:Instances", args ?? new InstancesArgs(), options.WithDefaults());

        public static Output<InstancesResult> Invoke(InstancesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<InstancesResult>("tctest:Cdh/instances:Instances", args ?? new InstancesInvokeArgs(), options.WithDefaults());
    }


    public sealed class InstancesArgs : Pulumi.InvokeArgs
    {
        [Input("availabilityZone")]
        public string? AvailabilityZone { get; set; }

        [Input("hostId")]
        public string? HostId { get; set; }

        [Input("hostName")]
        public string? HostName { get; set; }

        [Input("hostState")]
        public string? HostState { get; set; }

        [Input("projectId")]
        public int? ProjectId { get; set; }

        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public InstancesArgs()
        {
        }
    }

    public sealed class InstancesInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("availabilityZone")]
        public Input<string>? AvailabilityZone { get; set; }

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

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

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

        [Input("projectId")]
        public Input<int>? ProjectId { get; set; }

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

        public InstancesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class InstancesResult
    {
        public readonly string? AvailabilityZone;
        public readonly ImmutableArray<Outputs.InstancesCdhInstanceListResult> CdhInstanceLists;
        public readonly string? HostId;
        public readonly string? HostName;
        public readonly string? HostState;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly int? ProjectId;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private InstancesResult(
            string? availabilityZone,

            ImmutableArray<Outputs.InstancesCdhInstanceListResult> cdhInstanceLists,

            string? hostId,

            string? hostName,

            string? hostState,

            string id,

            int? projectId,

            string? resultOutputFile)
        {
            AvailabilityZone = availabilityZone;
            CdhInstanceLists = cdhInstanceLists;
            HostId = hostId;
            HostName = hostName;
            HostState = hostState;
            Id = id;
            ProjectId = projectId;
            ResultOutputFile = resultOutputFile;
        }
    }
}
