libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Read DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Show DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Generic DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Associated Types

type Rep DescribeThing :: Type -> Type #

NFData DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Methods

rnf :: DescribeThing -> () #

Hashable DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

AWSRequest DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Associated Types

type AWSResponse DescribeThing #

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

type Rep DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

type Rep DescribeThing = D1 ('MetaData "DescribeThing" "Amazonka.IoT.DescribeThing" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DescribeThing'" 'PrefixI 'True) (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeThing Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

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:

$sel:thingName: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

  • 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.

  • thingTypeName :: Maybe Text

    The thing type name.

  • thingArn :: Maybe Text

    The ARN of the thing to describe.

  • attributes :: Maybe (HashMap Text Text)

    The thing attributes.

  • 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.

  • thingName :: Maybe Text

    The name of the thing.

  • billingGroupName :: Maybe Text

    The name of the billing group the thing belongs to.

  • thingId :: Maybe Text

    The ID of the thing to describe.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Read DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Show DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Generic DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Associated Types

type Rep DescribeThingResponse :: Type -> Type #

NFData DescribeThingResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeThing

Methods

rnf :: DescribeThingResponse -> () #

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:

$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.

$sel:thingTypeName:DescribeThingResponse', describeThingResponse_thingTypeName - The thing type name.

$sel:thingArn:DescribeThingResponse', describeThingResponse_thingArn - The ARN of the thing to describe.

$sel:attributes:DescribeThingResponse', describeThingResponse_attributes - The thing attributes.

$sel:version: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:thingName:DescribeThing', describeThingResponse_thingName - The name of the thing.

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

$sel:thingId:DescribeThingResponse', describeThingResponse_thingId - The ID of the thing to describe.

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

Response Lenses

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.

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

The name of the billing group the thing belongs to.