@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
150 lines (149 loc) • 4.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Allows management of [Yandex.Cloud IoT Device](https://cloud.yandex.com/docs/iot-core/quickstart).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const myDevice = new yandex.IotCoreDevice("my_device", {
* aliases: {
* "some_alias1/subtopic": "$devices/{id}/events/somesubtopic",
* "some_alias2/subtopic": "$devices/{id}/events/aaa/bbb",
* },
* certificates: [
* "public part of certificate1",
* "public part of certificate2",
* ],
* description: "any description",
* passwords: [
* "my-password1",
* "my-password2",
* ],
* registryId: "are1sampleregistryid11",
* });
* ```
*/
export declare class IotCoreDevice extends pulumi.CustomResource {
/**
* Get an existing IotCoreDevice resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IotCoreDeviceState, opts?: pulumi.CustomResourceOptions): IotCoreDevice;
/**
* Returns true if the given object is an instance of IotCoreDevice. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is IotCoreDevice;
/**
* A set of key/value aliases pairs to assign to the IoT Core Device
*/
readonly aliases: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* A set of certificate's fingerprints for the IoT Core Device
*/
readonly certificates: pulumi.Output<string[] | undefined>;
/**
* Creation timestamp of the IoT Core Device
*/
readonly createdAt: pulumi.Output<string>;
/**
* Description of the IoT Core Device
*/
readonly description: pulumi.Output<string | undefined>;
/**
* IoT Core Device name used to define device
*/
readonly name: pulumi.Output<string>;
/**
* A set of passwords's id for the IoT Core Device
*/
readonly passwords: pulumi.Output<string[] | undefined>;
/**
* IoT Core Registry ID for the IoT Core Device
*/
readonly registryId: pulumi.Output<string>;
/**
* Create a IotCoreDevice resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: IotCoreDeviceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IotCoreDevice resources.
*/
export interface IotCoreDeviceState {
/**
* A set of key/value aliases pairs to assign to the IoT Core Device
*/
aliases?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* A set of certificate's fingerprints for the IoT Core Device
*/
certificates?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Creation timestamp of the IoT Core Device
*/
createdAt?: pulumi.Input<string>;
/**
* Description of the IoT Core Device
*/
description?: pulumi.Input<string>;
/**
* IoT Core Device name used to define device
*/
name?: pulumi.Input<string>;
/**
* A set of passwords's id for the IoT Core Device
*/
passwords?: pulumi.Input<pulumi.Input<string>[]>;
/**
* IoT Core Registry ID for the IoT Core Device
*/
registryId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a IotCoreDevice resource.
*/
export interface IotCoreDeviceArgs {
/**
* A set of key/value aliases pairs to assign to the IoT Core Device
*/
aliases?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* A set of certificate's fingerprints for the IoT Core Device
*/
certificates?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Description of the IoT Core Device
*/
description?: pulumi.Input<string>;
/**
* IoT Core Device name used to define device
*/
name?: pulumi.Input<string>;
/**
* A set of passwords's id for the IoT Core Device
*/
passwords?: pulumi.Input<pulumi.Input<string>[]>;
/**
* IoT Core Registry ID for the IoT Core Device
*/
registryId: pulumi.Input<string>;
}