1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. iot
  5. getThing

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.iot.getThing

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::IoT::Thing

Using getThing

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getThing(args: GetThingArgs, opts?: InvokeOptions): Promise<GetThingResult>
function getThingOutput(args: GetThingOutputArgs, opts?: InvokeOptions): Output<GetThingResult>
Copy
def get_thing(thing_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetThingResult
def get_thing_output(thing_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetThingResult]
Copy
func LookupThing(ctx *Context, args *LookupThingArgs, opts ...InvokeOption) (*LookupThingResult, error)
func LookupThingOutput(ctx *Context, args *LookupThingOutputArgs, opts ...InvokeOption) LookupThingResultOutput
Copy

> Note: This function is named LookupThing in the Go SDK.

public static class GetThing 
{
    public static Task<GetThingResult> InvokeAsync(GetThingArgs args, InvokeOptions? opts = null)
    public static Output<GetThingResult> Invoke(GetThingInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetThingResult> getThing(GetThingArgs args, InvokeOptions options)
public static Output<GetThingResult> getThing(GetThingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:iot:getThing
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ThingName This property is required. string

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

ThingName This property is required. string

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

thingName This property is required. String

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

thingName This property is required. string

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

thing_name This property is required. str

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

thingName This property is required. String

The name of the thing to update.

You can't change a thing's name. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

getThing Result

The following output properties are available:

Arn string
The Amazon Resource Name (ARN) of the AWS IoT thing, such as arn:aws:iot:us-east-2:123456789012:thing/MyThing .
AttributePayload Pulumi.AwsNative.IoT.Outputs.ThingAttributePayload
A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.
Id string
The Id of this thing.
Arn string
The Amazon Resource Name (ARN) of the AWS IoT thing, such as arn:aws:iot:us-east-2:123456789012:thing/MyThing .
AttributePayload ThingAttributePayload
A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.
Id string
The Id of this thing.
arn String
The Amazon Resource Name (ARN) of the AWS IoT thing, such as arn:aws:iot:us-east-2:123456789012:thing/MyThing .
attributePayload ThingAttributePayload
A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.
id String
The Id of this thing.
arn string
The Amazon Resource Name (ARN) of the AWS IoT thing, such as arn:aws:iot:us-east-2:123456789012:thing/MyThing .
attributePayload ThingAttributePayload
A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.
id string
The Id of this thing.
arn str
The Amazon Resource Name (ARN) of the AWS IoT thing, such as arn:aws:iot:us-east-2:123456789012:thing/MyThing .
attribute_payload ThingAttributePayload
A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.
id str
The Id of this thing.
arn String
The Amazon Resource Name (ARN) of the AWS IoT thing, such as arn:aws:iot:us-east-2:123456789012:thing/MyThing .
attributePayload Property Map
A string that contains up to three key value pairs. Maximum length of 800. Duplicates not allowed.
id String
The Id of this thing.

Supporting Types

ThingAttributePayload

Attributes Dictionary<string, string>

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

Attributes map[string]string

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

attributes Map<String,String>

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

attributes {[key: string]: string}

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

attributes Mapping[str, str]

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

attributes Map<String>

A JSON string containing up to three key-value pair in JSON format. For example:

{\"attributes\":{\"string1\":\"string2\"}}

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi