// *** 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.Kms
{
    public static class Keys
    {
        public static Task<KeysResult> InvokeAsync(KeysArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<KeysResult>("tctest:Kms/keys:Keys", args ?? new KeysArgs(), options.WithDefaults());

        public static Output<KeysResult> Invoke(KeysInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<KeysResult>("tctest:Kms/keys:Keys", args ?? new KeysInvokeArgs(), options.WithDefaults());
    }


    public sealed class KeysArgs : Pulumi.InvokeArgs
    {
        [Input("keyState")]
        public int? KeyState { get; set; }

        [Input("keyUsage")]
        public string? KeyUsage { get; set; }

        [Input("orderType")]
        public int? OrderType { get; set; }

        [Input("origin")]
        public string? Origin { get; set; }

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

        [Input("role")]
        public int? Role { get; set; }

        [Input("searchKeyAlias")]
        public string? SearchKeyAlias { get; set; }

        [Input("tags")]
        private Dictionary<string, object>? _tags;
        public Dictionary<string, object> Tags
        {
            get => _tags ?? (_tags = new Dictionary<string, object>());
            set => _tags = value;
        }

        public KeysArgs()
        {
        }
    }

    public sealed class KeysInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("keyState")]
        public Input<int>? KeyState { get; set; }

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

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

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

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

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

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

        [Input("tags")]
        private InputMap<object>? _tags;
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

        public KeysInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class KeysResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<Outputs.KeysKeyListResult> KeyLists;
        public readonly int? KeyState;
        public readonly string? KeyUsage;
        public readonly int? OrderType;
        public readonly string? Origin;
        public readonly string? ResultOutputFile;
        public readonly int? Role;
        public readonly string? SearchKeyAlias;
        public readonly ImmutableDictionary<string, object>? Tags;

        [OutputConstructor]
        private KeysResult(
            string id,

            ImmutableArray<Outputs.KeysKeyListResult> keyLists,

            int? keyState,

            string? keyUsage,

            int? orderType,

            string? origin,

            string? resultOutputFile,

            int? role,

            string? searchKeyAlias,

            ImmutableDictionary<string, object>? tags)
        {
            Id = id;
            KeyLists = keyLists;
            KeyState = keyState;
            KeyUsage = keyUsage;
            OrderType = orderType;
            Origin = origin;
            ResultOutputFile = resultOutputFile;
            Role = role;
            SearchKeyAlias = searchKeyAlias;
            Tags = tags;
        }
    }
}
