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 definitions of the specified entities. Uses the latest version of the user's namespace by default. This API returns the following TDM entities.
- Properties
- States
- Events
- Actions
- Capabilities
- Mappings
- Devices
- Device Models
- Services
This action doesn't return definitions for systems, flows, and deployments.
Synopsis
- data GetEntities = GetEntities' {
- namespaceVersion :: Maybe Integer
- ids :: [Text]
- newGetEntities :: GetEntities
- getEntities_namespaceVersion :: Lens' GetEntities (Maybe Integer)
- getEntities_ids :: Lens' GetEntities [Text]
- data GetEntitiesResponse = GetEntitiesResponse' {}
- newGetEntitiesResponse :: Int -> GetEntitiesResponse
- getEntitiesResponse_descriptions :: Lens' GetEntitiesResponse (Maybe [EntityDescription])
- getEntitiesResponse_httpStatus :: Lens' GetEntitiesResponse Int
Creating a Request
data GetEntities Source #
See: newGetEntities
smart constructor.
GetEntities' | |
|
Instances
newGetEntities :: GetEntities Source #
Create a value of GetEntities
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:namespaceVersion:GetEntities'
, getEntities_namespaceVersion
- The version of the user's namespace. Defaults to the latest version of
the user's namespace.
$sel:ids:GetEntities'
, getEntities_ids
- An array of entity IDs.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
Request Lenses
getEntities_namespaceVersion :: Lens' GetEntities (Maybe Integer) Source #
The version of the user's namespace. Defaults to the latest version of the user's namespace.
getEntities_ids :: Lens' GetEntities [Text] Source #
An array of entity IDs.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME
Destructuring the Response
data GetEntitiesResponse Source #
See: newGetEntitiesResponse
smart constructor.
GetEntitiesResponse' | |
|
Instances
newGetEntitiesResponse Source #
Create a value of GetEntitiesResponse
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:descriptions:GetEntitiesResponse'
, getEntitiesResponse_descriptions
- An array of descriptions for the specified entities.
$sel:httpStatus:GetEntitiesResponse'
, getEntitiesResponse_httpStatus
- The response's http status code.
Response Lenses
getEntitiesResponse_descriptions :: Lens' GetEntitiesResponse (Maybe [EntityDescription]) Source #
An array of descriptions for the specified entities.
getEntitiesResponse_httpStatus :: Lens' GetEntitiesResponse Int Source #
The response's http status code.