ThingType

Creates and manages an AWS IoT Thing Type.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Aws.Iot.ThingType("foo", new Aws.Iot.ThingTypeArgs
        {
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/iot"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iot.NewThingType(ctx, "foo", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

foo = aws.iot.ThingType("foo")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.iot.ThingType("foo", {});

Create a ThingType Resource

new ThingType(name: string, args?: ThingTypeArgs, opts?: CustomResourceOptions);
@overload
def ThingType(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              deprecated: Optional[bool] = None,
              name: Optional[str] = None,
              properties: Optional[ThingTypePropertiesArgs] = None)
@overload
def ThingType(resource_name: str,
              args: Optional[ThingTypeArgs] = None,
              opts: Optional[ResourceOptions] = None)
func NewThingType(ctx *Context, name string, args *ThingTypeArgs, opts ...ResourceOption) (*ThingType, error)
public ThingType(string name, ThingTypeArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ThingTypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ThingTypeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ThingTypeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ThingTypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ThingType Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ThingType resource accepts the following input properties:

Deprecated bool
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Name string
The name of the thing type.
Properties ThingTypePropertiesArgs
, Configuration block that can contain the following properties of the thing type:
Deprecated bool
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Name string
The name of the thing type.
Properties ThingTypeProperties
, Configuration block that can contain the following properties of the thing type:
deprecated boolean
Whether the thing type is deprecated. If true, no new things could be associated with this type.
name string
The name of the thing type.
properties ThingTypePropertiesArgs
, Configuration block that can contain the following properties of the thing type:
deprecated bool
Whether the thing type is deprecated. If true, no new things could be associated with this type.
name str
The name of the thing type.
properties ThingTypePropertiesArgs
, Configuration block that can contain the following properties of the thing type:

Outputs

All input properties are implicitly available as output properties. Additionally, the ThingType resource produces the following output properties:

Arn string
The ARN of the created AWS IoT Thing Type.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
The ARN of the created AWS IoT Thing Type.
Id string
The provider-assigned unique ID for this managed resource.
arn string
The ARN of the created AWS IoT Thing Type.
id string
The provider-assigned unique ID for this managed resource.
arn str
The ARN of the created AWS IoT Thing Type.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ThingType Resource

Get an existing ThingType 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?: ThingTypeState, opts?: CustomResourceOptions): ThingType
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        deprecated: Optional[bool] = None,
        name: Optional[str] = None,
        properties: Optional[ThingTypePropertiesArgs] = None) -> ThingType
func GetThingType(ctx *Context, name string, id IDInput, state *ThingTypeState, opts ...ResourceOption) (*ThingType, error)
public static ThingType Get(string name, Input<string> id, ThingTypeState? 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 created AWS IoT Thing Type.
Deprecated bool
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Name string
The name of the thing type.
Properties ThingTypePropertiesArgs
, Configuration block that can contain the following properties of the thing type:
Arn string
The ARN of the created AWS IoT Thing Type.
Deprecated bool
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Name string
The name of the thing type.
Properties ThingTypeProperties
, Configuration block that can contain the following properties of the thing type:
arn string
The ARN of the created AWS IoT Thing Type.
deprecated boolean
Whether the thing type is deprecated. If true, no new things could be associated with this type.
name string
The name of the thing type.
properties ThingTypePropertiesArgs
, Configuration block that can contain the following properties of the thing type:
arn str
The ARN of the created AWS IoT Thing Type.
deprecated bool
Whether the thing type is deprecated. If true, no new things could be associated with this type.
name str
The name of the thing type.
properties ThingTypePropertiesArgs
, Configuration block that can contain the following properties of the thing type:

Supporting Types

ThingTypeProperties

Description string
The description of the thing type.
SearchableAttributes List<string>
A list of searchable thing attribute names.
Description string
The description of the thing type.
SearchableAttributes []string
A list of searchable thing attribute names.
description string
The description of the thing type.
searchableAttributes string[]
A list of searchable thing attribute names.
description str
The description of the thing type.
searchable_attributes Sequence[str]
A list of searchable thing attribute names.

Import

IOT Thing Types can be imported using the name, e.g.

 $ pulumi import aws:iot/thingType:ThingType example example

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.