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" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/iot"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iot.NewThing(ctx, "example", &iot.ThingArgs{
Attributes: pulumi.StringMap{
"First": pulumi.String("examplevalue"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.iot.Thing("example", attributes={
"First": "examplevalue",
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.iot.Thing("example", {
attributes: {
First: "examplevalue",
},
});Create a Thing Resource
new Thing(name: string, args?: ThingArgs, opts?: CustomResourceOptions);def Thing(resource_name, opts=None, attributes=None, name=None, thing_type_name=None, __props__=None);public Thing(string name, ThingArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ThingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ThingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ThingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Thing Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Thing resource accepts the following input properties:
- Attributes Dictionary<string, string>
Map of attributes of the thing.
- Name string
The name of the thing.
- Thing
Type stringName The thing type name.
- Attributes map[string]string
Map of attributes of the thing.
- Name string
The name of the thing.
- Thing
Type stringName The thing type name.
- attributes {[key: string]: string}
Map of attributes of the thing.
- name string
The name of the thing.
- thing
Type stringName The thing type name.
- attributes Dict[str, str]
Map of attributes of the thing.
- name str
The name of the thing.
- thing_
type_ strname The thing type name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Thing resource produces the following output properties:
Look up an Existing Thing Resource
Get an existing Thing resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ThingState, opts?: CustomResourceOptions): Thingstatic get(resource_name, id, opts=None, arn=None, attributes=None, default_client_id=None, name=None, thing_type_name=None, version=None, __props__=None);func GetThing(ctx *Context, name string, id IDInput, state *ThingState, opts ...ResourceOption) (*Thing, error)public static Thing Get(string name, Input<string> id, ThingState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
The ARN of the thing.
- Attributes Dictionary<string, string>
Map of attributes of the thing.
- Default
Client stringId The default client ID.
- Name string
The name of the thing.
- Thing
Type stringName The thing type name.
- Version int
The current version of the thing record in the registry.
- Arn string
The ARN of the thing.
- Attributes map[string]string
Map of attributes of the thing.
- Default
Client stringId The default client ID.
- Name string
The name of the thing.
- Thing
Type stringName The thing type name.
- Version int
The current version of the thing record in the registry.
- arn string
The ARN of the thing.
- attributes {[key: string]: string}
Map of attributes of the thing.
- default
Client stringId The default client ID.
- name string
The name of the thing.
- thing
Type stringName The thing type name.
- version number
The current version of the thing record in the registry.
- arn str
The ARN of the thing.
- attributes Dict[str, str]
Map of attributes of the thing.
- default_
client_ strid The default client ID.
- name str
The name of the thing.
- thing_
type_ strname The thing type name.
- version float
The current version of the thing record in the registry.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.