Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_attributes :: Lens' DescribeThingResponse (Maybe (HashMap Text Text))
- describeThingResponse_billingGroupName :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_defaultClientId :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingArn :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingId :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingName :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_thingTypeName :: Lens' DescribeThingResponse (Maybe Text)
- describeThingResponse_version :: Lens' DescribeThingResponse (Maybe Integer)
- 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:
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:
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_attributes :: Lens' DescribeThingResponse (Maybe (HashMap Text Text)) Source #
The thing attributes.
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_thingArn :: Lens' DescribeThingResponse (Maybe Text) Source #
The ARN of the thing to describe.
describeThingResponse_thingId :: Lens' DescribeThingResponse (Maybe Text) Source #
The ID of the thing to describe.
describeThingResponse_thingName :: Lens' DescribeThingResponse (Maybe Text) Source #
The name of the thing.
describeThingResponse_thingTypeName :: Lens' DescribeThingResponse (Maybe Text) Source #
The thing type name.
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_httpStatus :: Lens' DescribeThingResponse Int Source #
The response's http status code.