amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.DescribeThing

Description

Gets information about the specified thing.

Requires permission to access the DescribeThing action.

Synopsis

Creating a Request

data DescribeThing Source #

The input for the DescribeThing operation.

See: newDescribeThing smart constructor.

Constructors

DescribeThing' 

Fields

Instances

Instances details
ToHeaders DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

ToPath DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

ToQuery DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

AWSRequest DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Associated Types

type AWSResponse DescribeThing #

Generic DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Associated Types

type Rep DescribeThing :: Type -> Type #

Read DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Show DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

NFData DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Methods

rnf :: DescribeThing -> () #

Eq DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Hashable DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

type AWSResponse DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

type Rep DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

type Rep DescribeThing = D1 ('MetaData "DescribeThing" "Amazonka.IoT.DescribeThing" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DescribeThing'" 'PrefixI 'True) (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeThing Source #

Create a value of DescribeThing with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeThing, describeThing_thingName - The name of the thing.

Request Lenses

Destructuring the Response

data DescribeThingResponse Source #

The output from the DescribeThing operation.

See: newDescribeThingResponse smart constructor.

Constructors

DescribeThingResponse' 

Fields

  • attributes :: Maybe (HashMap Text Text)

    The thing attributes.

  • billingGroupName :: Maybe Text

    The name of the billing group the thing belongs to.

  • defaultClientId :: Maybe Text

    The default MQTT client ID. For a typical device, the thing name is also used as the default MQTT client ID. Although we don’t require a mapping between a thing's registry name and its use of MQTT client IDs, certificates, or shadow state, we recommend that you choose a thing name and use it as the MQTT client ID for the registry and the Device Shadow service.

    This lets you better organize your IoT fleet without removing the flexibility of the underlying device certificate model or shadows.

  • thingArn :: Maybe Text

    The ARN of the thing to describe.

  • thingId :: Maybe Text

    The ID of the thing to describe.

  • thingName :: Maybe Text

    The name of the thing.

  • thingTypeName :: Maybe Text

    The thing type name.

  • version :: Maybe Integer

    The current version of the thing record in the registry.

    To avoid unintentional changes to the information in the registry, you can pass the version information in the expectedVersion parameter of the UpdateThing and DeleteThing calls.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Associated Types

type Rep DescribeThingResponse :: Type -> Type #

Read DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Show DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

NFData DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Methods

rnf :: DescribeThingResponse -> () #

Eq DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

type Rep DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

newDescribeThingResponse Source #

Create a value of DescribeThingResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeThingResponse, describeThingResponse_attributes - The thing attributes.

$sel:billingGroupName:DescribeThingResponse', describeThingResponse_billingGroupName - The name of the billing group the thing belongs to.

$sel:defaultClientId:DescribeThingResponse', describeThingResponse_defaultClientId - The default MQTT client ID. For a typical device, the thing name is also used as the default MQTT client ID. Although we don’t require a mapping between a thing's registry name and its use of MQTT client IDs, certificates, or shadow state, we recommend that you choose a thing name and use it as the MQTT client ID for the registry and the Device Shadow service.

This lets you better organize your IoT fleet without removing the flexibility of the underlying device certificate model or shadows.

DescribeThingResponse, describeThingResponse_thingArn - The ARN of the thing to describe.

DescribeThingResponse, describeThingResponse_thingId - The ID of the thing to describe.

DescribeThing, describeThingResponse_thingName - The name of the thing.

DescribeThingResponse, describeThingResponse_thingTypeName - The thing type name.

DescribeThingResponse, describeThingResponse_version - The current version of the thing record in the registry.

To avoid unintentional changes to the information in the registry, you can pass the version information in the expectedVersion parameter of the UpdateThing and DeleteThing calls.

$sel:httpStatus:DescribeThingResponse', describeThingResponse_httpStatus - The response's http status code.

Response Lenses

describeThingResponse_billingGroupName :: Lens' DescribeThingResponse (Maybe Text) Source #

The name of the billing group the thing belongs to.

describeThingResponse_defaultClientId :: Lens' DescribeThingResponse (Maybe Text) Source #

The default MQTT client ID. For a typical device, the thing name is also used as the default MQTT client ID. Although we don’t require a mapping between a thing's registry name and its use of MQTT client IDs, certificates, or shadow state, we recommend that you choose a thing name and use it as the MQTT client ID for the registry and the Device Shadow service.

This lets you better organize your IoT fleet without removing the flexibility of the underlying device certificate model or shadows.

describeThingResponse_version :: Lens' DescribeThingResponse (Maybe Integer) Source #

The current version of the thing record in the registry.

To avoid unintentional changes to the information in the registry, you can pass the version information in the expectedVersion parameter of the UpdateThing and DeleteThing calls.