<gh_stars>0// *** 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.Vcd
{
    public static class GetVmPlacementPolicy
    {
        public static Task<GetVmPlacementPolicyResult> InvokeAsync(GetVmPlacementPolicyArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetVmPlacementPolicyResult>("vcd:index/getVmPlacementPolicy:getVmPlacementPolicy", args ?? new GetVmPlacementPolicyArgs(), options.WithDefaults());

        public static Output<GetVmPlacementPolicyResult> Invoke(GetVmPlacementPolicyInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetVmPlacementPolicyResult>("vcd:index/getVmPlacementPolicy:getVmPlacementPolicy", args ?? new GetVmPlacementPolicyInvokeArgs(), options.WithDefaults());
    }


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

        [Input("providerVdcId")]
        public string? ProviderVdcId { get; set; }

        [Input("vdcId")]
        public string? VdcId { get; set; }

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

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

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

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

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


    [OutputType]
    public sealed class GetVmPlacementPolicyResult
    {
        public readonly string Description;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<string> LogicalVmGroupIds;
        public readonly string Name;
        public readonly string? ProviderVdcId;
        public readonly string? VdcId;
        public readonly ImmutableArray<string> VmGroupIds;

        [OutputConstructor]
        private GetVmPlacementPolicyResult(
            string description,

            string id,

            ImmutableArray<string> logicalVmGroupIds,

            string name,

            string? providerVdcId,

            string? vdcId,

            ImmutableArray<string> vmGroupIds)
        {
            Description = description;
            Id = id;
            LogicalVmGroupIds = logicalVmGroupIds;
            Name = name;
            ProviderVdcId = providerVdcId;
            VdcId = vdcId;
            VmGroupIds = vmGroupIds;
        }
    }
}
