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/v2/go/aws/iot"
"github.com/pulumi/pulumi/sdk/v2/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);def ThingType(resource_name, opts=None, deprecated=None, name=None, properties=None, __props__=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.
- 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 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
Thing
Type Properties Args , 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
Thing
Type Properties , 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
Thing
Type Properties , 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
Dict[Thing
Type Properties] , 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:
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): ThingTypestatic get(resource_name, id, opts=None, arn=None, deprecated=None, name=None, properties=None, __props__=None);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
Thing
Type Properties Args , 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
Thing
Type Properties , 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
Thing
Type Properties , 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
Dict[Thing
Type Properties] , Configuration block that can contain the following properties of the thing type:
Supporting Types
ThingTypeProperties
- Description string
The description of the thing type.
- Searchable
Attributes List<string> A list of searchable thing attribute names.
- Description string
The description of the thing type.
- Searchable
Attributes []string A list of searchable thing attribute names.
- description string
The description of the thing type.
- searchable
Attributes string[] A list of searchable thing attribute names.
- description str
The description of the thing type.
- searchable
Attributes List[str] A list of searchable thing attribute names.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.