// *** 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.Events
{
    public static class GetArchive
    {
        /// <summary>
        /// Resource Type definition for AWS::Events::Archive
        /// </summary>
        public static Task<GetArchiveResult> InvokeAsync(GetArchiveArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetArchiveResult>("aws-native:events:getArchive", args ?? new GetArchiveArgs(), options.WithDefaults());

        /// <summary>
        /// Resource Type definition for AWS::Events::Archive
        /// </summary>
        public static Output<GetArchiveResult> Invoke(GetArchiveInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetArchiveResult>("aws-native:events:getArchive", args ?? new GetArchiveInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetArchiveArgs : Pulumi.InvokeArgs
    {
        [Input("archiveName", required: true)]
        public string ArchiveName { get; set; } = null!;

        public GetArchiveArgs()
        {
        }
    }

    public sealed class GetArchiveInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("archiveName", required: true)]
        public Input<string> ArchiveName { get; set; } = null!;

        public GetArchiveInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetArchiveResult
    {
        public readonly string? Arn;
        public readonly string? Description;
        public readonly object? EventPattern;
        public readonly int? RetentionDays;

        [OutputConstructor]
        private GetArchiveResult(
            string? arn,

            string? description,

            object? eventPattern,

            int? retentionDays)
        {
            Arn = arn;
            Description = description;
            EventPattern = eventPattern;
            RetentionDays = retentionDays;
        }
    }
}
