Thing

class Thing : KotlinCustomResource

Creates and manages an AWS IoT Thing.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.iot.Thing("example", {
name: "example",
attributes: {
First: "examplevalue",
},
});
import pulumi
import pulumi_aws as aws
example = aws.iot.Thing("example",
name="example",
attributes={
"First": "examplevalue",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Iot.Thing("example", new()
{
Name = "example",
Attributes =
{
{ "First", "examplevalue" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iot.NewThing(ctx, "example", &iot.ThingArgs{
Name: pulumi.String("example"),
Attributes: pulumi.StringMap{
"First": pulumi.String("examplevalue"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iot.Thing;
import com.pulumi.aws.iot.ThingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Thing("example", ThingArgs.builder()
.name("example")
.attributes(Map.of("First", "examplevalue"))
.build());
}
}
resources:
example:
type: aws:iot:Thing
properties:
name: example
attributes:
First: examplevalue

Import

Using pulumi import, import IOT Things using the name. For example:

$ pulumi import aws:iot/thing:Thing example example

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the thing.

Link copied to clipboard
val attributes: Output<Map<String, String>>?

Map of attributes of the thing.

Link copied to clipboard
val defaultClientId: Output<String>

The default client ID.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the thing.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val thingTypeName: Output<String>?

The thing type name.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<Int>

The current version of the thing record in the registry.