<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.Yandex
{
    public static class GetIotCoreDevice
    {
        /// <summary>
        /// Get information about a Yandex IoT Core device. For more information about IoT Core, see 
        /// [Yandex.Cloud IoT Device](https://cloud.yandex.com/docs/iot-core/quickstart).
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Yandex = Pulumi.Yandex;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var myDevice = Yandex.GetIotCoreDevice.Invoke(new()
        ///     {
        ///         DeviceId = "are1sampleregistry11",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// This data source is used to define [Yandex.Cloud IoT Device](https://cloud.yandex.com/docs/iot-core/quickstart) that can be used by other resources.
        /// </summary>
        public static Task<GetIotCoreDeviceResult> InvokeAsync(GetIotCoreDeviceArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetIotCoreDeviceResult>("yandex:index/getIotCoreDevice:getIotCoreDevice", args ?? new GetIotCoreDeviceArgs(), options.WithDefaults());

        /// <summary>
        /// Get information about a Yandex IoT Core device. For more information about IoT Core, see 
        /// [Yandex.Cloud IoT Device](https://cloud.yandex.com/docs/iot-core/quickstart).
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Yandex = Pulumi.Yandex;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var myDevice = Yandex.GetIotCoreDevice.Invoke(new()
        ///     {
        ///         DeviceId = "are1sampleregistry11",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// This data source is used to define [Yandex.Cloud IoT Device](https://cloud.yandex.com/docs/iot-core/quickstart) that can be used by other resources.
        /// </summary>
        public static Output<GetIotCoreDeviceResult> Invoke(GetIotCoreDeviceInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetIotCoreDeviceResult>("yandex:index/getIotCoreDevice:getIotCoreDevice", args ?? new GetIotCoreDeviceInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetIotCoreDeviceArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// IoT Core Device id used to define device
        /// </summary>
        [Input("deviceId")]
        public string? DeviceId { get; set; }

        /// <summary>
        /// IoT Core Device name used to define device
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

    public sealed class GetIotCoreDeviceInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// IoT Core Device id used to define device
        /// </summary>
        [Input("deviceId")]
        public Input<string>? DeviceId { get; set; }

        /// <summary>
        /// IoT Core Device name used to define device
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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


    [OutputType]
    public sealed class GetIotCoreDeviceResult
    {
        /// <summary>
        /// A set of key/value aliases pairs to assign to the IoT Core Device
        /// </summary>
        public readonly ImmutableDictionary<string, string> Aliases;
        /// <summary>
        /// A set of certificate's fingerprints for the IoT Core Device
        /// </summary>
        public readonly ImmutableArray<string> Certificates;
        /// <summary>
        /// Creation timestamp of the IoT Core Device
        /// </summary>
        public readonly string CreatedAt;
        /// <summary>
        /// Description of the IoT Core Device
        /// </summary>
        public readonly string Description;
        public readonly string? DeviceId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? Name;
        /// <summary>
        /// A set of passwords's id for the IoT Core Device
        /// </summary>
        public readonly ImmutableArray<string> Passwords;
        /// <summary>
        /// IoT Core Registry ID for the IoT Core Device
        /// </summary>
        public readonly string RegistryId;

        [OutputConstructor]
        private GetIotCoreDeviceResult(
            ImmutableDictionary<string, string> aliases,

            ImmutableArray<string> certificates,

            string createdAt,

            string description,

            string? deviceId,

            string id,

            string? name,

            ImmutableArray<string> passwords,

            string registryId)
        {
            Aliases = aliases;
            Certificates = certificates;
            CreatedAt = createdAt;
            Description = description;
            DeviceId = deviceId;
            Id = id;
            Name = name;
            Passwords = passwords;
            RegistryId = registryId;
        }
    }
}
