Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets information about the specified thing.
Requires permission to access the DescribeThing action.
Synopsis
- data DescribeThing = DescribeThing' {}
- newDescribeThing :: Text -> DescribeThing
- describeThing_thingName :: Lens' DescribeThing Text
- data DescribeThingResponse = DescribeThingResponse' {}
- newDescribeThingResponse :: Int -> DescribeThingResponse
- describeThingResponse_defaultClientId :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingTypeName :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingArn :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_attributes :: Lens' DescribeThingResponse (Maybe (HashMap Text Text))
- describeThingResponse_version :: Lens' DescribeThingResponse (Maybe Integer)
- describeThingResponse_thingName :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_billingGroupName :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingId :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_httpStatus :: Lens' DescribeThingResponse Int
Creating a Request
data DescribeThing Source #
The input for the DescribeThing operation.
See: newDescribeThing
smart constructor.
Instances
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
describeThing_thingName :: Lens' DescribeThing Text Source #
The name of the thing.
Destructuring the Response
data DescribeThingResponse Source #
The output from the DescribeThing operation.
See: newDescribeThingResponse
smart constructor.
DescribeThingResponse' | |
|
Instances
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_thingTypeName :: Lens' DescribeThingResponse (Maybe Text) Source #
The thing type name.
describeThingResponse_thingArn :: Lens' DescribeThingResponse (Maybe Text) Source #
The ARN of the thing to describe.
describeThingResponse_attributes :: Lens' DescribeThingResponse (Maybe (HashMap Text Text)) Source #
The thing attributes.
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_thingName :: Lens' DescribeThingResponse (Maybe Text) Source #
The name of the thing.
describeThingResponse_billingGroupName :: Lens' DescribeThingResponse (Maybe Text) Source #
The name of the billing group the thing belongs to.
describeThingResponse_thingId :: Lens' DescribeThingResponse (Maybe Text) Source #
The ID of the thing to describe.
describeThingResponse_httpStatus :: Lens' DescribeThingResponse Int Source #
The response's http status code.