<reponame>pulumiverse/pulumi-heroku<filename>sdk/dotnet/Addon/GetAddon.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 Pulumiverse.Heroku.Addon
{
    public static class GetAddon
    {
        public static Task<GetAddonResult> InvokeAsync(GetAddonArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetAddonResult>("heroku:addon/getAddon:getAddon", args ?? new GetAddonArgs(), options.WithDefaults());

        public static Output<GetAddonResult> Invoke(GetAddonInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetAddonResult>("heroku:addon/getAddon:getAddon", args ?? new GetAddonInvokeArgs(), options.WithDefaults());
    }


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

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

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

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


    [OutputType]
    public sealed class GetAddonResult
    {
        public readonly string AppId;
        public readonly ImmutableArray<string> ConfigVars;
        public readonly string Id;
        public readonly string Name;
        public readonly string Plan;
        public readonly string ProviderId;

        [OutputConstructor]
        private GetAddonResult(
            string appId,

            ImmutableArray<string> configVars,

            string id,

            string name,

            string plan,

            string providerId)
        {
            AppId = appId;
            ConfigVars = configVars;
            Id = id;
            Name = name;
            Plan = plan;
            ProviderId = providerId;
        }
    }
}
