@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
39 lines • 1.57 kB
JavaScript
;
// *** 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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIotCoreDeviceOutput = exports.getIotCoreDevice = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const myDevice = pulumi.output(yandex.getIotCoreDevice({
* 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.
*/
function getIotCoreDevice(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getIotCoreDevice:getIotCoreDevice", {
"deviceId": args.deviceId,
"name": args.name,
}, opts);
}
exports.getIotCoreDevice = getIotCoreDevice;
function getIotCoreDeviceOutput(args, opts) {
return pulumi.output(args).apply(a => getIotCoreDevice(a, opts));
}
exports.getIotCoreDeviceOutput = getIotCoreDeviceOutput;
//# sourceMappingURL=getIotCoreDevice.js.map