// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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.AwsNative.Ec2
{
    public static class GetLaunchTemplate
    {
        /// <summary>
        /// Resource Type definition for AWS::EC2::LaunchTemplate
        /// </summary>
        public static Task<GetLaunchTemplateResult> InvokeAsync(GetLaunchTemplateArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetLaunchTemplateResult>("aws-native:ec2:getLaunchTemplate", args ?? new GetLaunchTemplateArgs(), options.WithDefaults());

        /// <summary>
        /// Resource Type definition for AWS::EC2::LaunchTemplate
        /// </summary>
        public static Output<GetLaunchTemplateResult> Invoke(GetLaunchTemplateInvokeArgs args, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetLaunchTemplateResult>("aws-native:ec2:getLaunchTemplate", args ?? new GetLaunchTemplateInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetLaunchTemplateArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// LaunchTemplate ID generated by service
        /// </summary>
        [Input("launchTemplateId", required: true)]
        public string LaunchTemplateId { get; set; } = null!;

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

    public sealed class GetLaunchTemplateInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// LaunchTemplate ID generated by service
        /// </summary>
        [Input("launchTemplateId", required: true)]
        public Input<string> LaunchTemplateId { get; set; } = null!;

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


    [OutputType]
    public sealed class GetLaunchTemplateResult
    {
        /// <summary>
        /// The default version of the launch template
        /// </summary>
        public readonly string? DefaultVersionNumber;
        /// <summary>
        /// The latest version of the launch template
        /// </summary>
        public readonly string? LatestVersionNumber;
        /// <summary>
        /// LaunchTemplate ID generated by service
        /// </summary>
        public readonly string? LaunchTemplateId;

        [OutputConstructor]
        private GetLaunchTemplateResult(
            string? defaultVersionNumber,

            string? latestVersionNumber,

            string? launchTemplateId)
        {
            DefaultVersionNumber = defaultVersionNumber;
            LatestVersionNumber = latestVersionNumber;
            LaunchTemplateId = launchTemplateId;
        }
    }
}
