import * as core from "@terrascript/core"; export interface ThingArgs extends core.ResourceArgs { /** * (Optional) Map of attributes of the thing. */ attributes?: core.Map | core.MapOut; /** * (Required) The name of the thing. */ name: string | core.StringOut; /** * (Optional) The thing type name. */ thingTypeName?: string | core.StringOut; } export class Thing extends core.Resource { /** * The ARN of the thing. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Map of attributes of the thing. */ @core.attr(String, { kind: "map" }) public attributes?: core.Map | core.MapOut; /** * The default client ID. */ @core.attr(String, { computed: true }) public defaultClientId!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the thing. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) The thing type name. */ @core.attr(String) public thingTypeName?: string | core.StringOut; /** * The current version of the thing record in the registry. */ @core.attr(Number, { computed: true }) public version!: number | core.NumberOut; constructor(name: string, args?: ThingArgs) { super(name, "aws_iot_thing", args); } public override getNamespace(): string { return "aws_iot"; } }