AWS Classic
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/v5/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
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new ThingType("foo");
}
}
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", {});
resources:
foo:
type: aws:iot:ThingType
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,
tags: Optional[Mapping[str, str]] = 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)
public ThingType(String name, ThingTypeArgs args)
public ThingType(String name, ThingTypeArgs args, CustomResourceOptions options)
type: aws:iot:ThingType
properties: # The arguments to resource properties.
options: # 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.
- 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.
- name String
- The unique name of the resource.
- args ThingTypeArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts 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:
- Dictionary<string, string>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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:
- map[string]string
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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 Args , Configuration block that can contain the following properties of the thing type:
- Map<String,String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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 Args , Configuration block that can contain the following properties of the thing type:
- {[key: string]: string}
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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
Thing
Type Properties Args , Configuration block that can contain the following properties of the thing type:
- Mapping[str, str]
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- 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 Property Map
, Configuration block that can contain the following properties of the thing type:
- Map<String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
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): 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,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = 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)
public static ThingType get(String name, Output<String> id, ThingTypeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- 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:
- Dictionary<string, string>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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:
- map[string]string
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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 Args , Configuration block that can contain the following properties of the thing type:
- Map<String,String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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 Args , Configuration block that can contain the following properties of the thing type:
- {[key: string]: string}
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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
Thing
Type Properties Args , Configuration block that can contain the following properties of the thing type:
- Mapping[str, str]
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- 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 Property Map
, Configuration block that can contain the following properties of the thing type:
- Map<String>
Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
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 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 str
The description of the thing type.
- searchable_
attributes Sequence[str] A list of searchable thing attribute names.
- description String
The description of the thing type.
- searchable
Attributes List<String> 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.