Class Thing
Creates and manages an AWS IoT Thing.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Iot.Thing("example", new Aws.Iot.ThingArgs
{
Attributes =
{
{ "First", "examplevalue" },
},
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Iot
Assembly: Pulumi.Aws.dll
Syntax
public class Thing : CustomResource
Constructors
View SourceThing(String, ThingArgs, CustomResourceOptions)
Create a Thing resource with the given unique name, arguments, and options.
Declaration
public Thing(string name, ThingArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ThingArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the thing.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Attributes
Map of attributes of the thing.
Declaration
public Output<ImmutableDictionary<string, object>> Attributes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
DefaultClientId
The default client ID.
Declaration
public Output<string> DefaultClientId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the thing.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ThingTypeName
The thing type name.
Declaration
public Output<string> ThingTypeName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Version
The current version of the thing record in the registry.
Declaration
public Output<int> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Methods
View SourceGet(String, Input<String>, ThingState, CustomResourceOptions)
Get an existing Thing resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Thing Get(string name, Input<string> id, ThingState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ThingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Thing |