Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a device definition. You may provide the initial version of the device definition now or use 'CreateDeviceDefinitionVersion'
at a later time.
Synopsis
- createDeviceDefinition :: CreateDeviceDefinition
- data CreateDeviceDefinition
- cddAmznClientToken :: Lens' CreateDeviceDefinition (Maybe Text)
- cddInitialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion)
- cddName :: Lens' CreateDeviceDefinition (Maybe Text)
- createDeviceDefinitionResponse :: Int -> CreateDeviceDefinitionResponse
- data CreateDeviceDefinitionResponse
- cddrsLatestVersionARN :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsARN :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsName :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsCreationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsId :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsLatestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsLastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text)
- cddrsResponseStatus :: Lens' CreateDeviceDefinitionResponse Int
Creating a Request
createDeviceDefinition :: CreateDeviceDefinition Source #
Creates a value of CreateDeviceDefinition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cddAmznClientToken
- A client token used to correlate requests and responses.cddInitialVersion
- Information about the initial version of the device definition.cddName
- The name of the device definition.
data CreateDeviceDefinition Source #
See: createDeviceDefinition
smart constructor.
Instances
Request Lenses
cddAmznClientToken :: Lens' CreateDeviceDefinition (Maybe Text) Source #
A client token used to correlate requests and responses.
cddInitialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion) Source #
Information about the initial version of the device definition.
Destructuring the Response
createDeviceDefinitionResponse Source #
Creates a value of CreateDeviceDefinitionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cddrsLatestVersionARN
- The ARN of the latest version of the definition.cddrsARN
- The ARN of the definition.cddrsName
- The name of the definition.cddrsCreationTimestamp
- The time, in milliseconds since the epoch, when the definition was created.cddrsId
- The ID of the definition.cddrsLatestVersion
- The latest version of the definition.cddrsLastUpdatedTimestamp
- The time, in milliseconds since the epoch, when the definition was last updated.cddrsResponseStatus
- -- | The response status code.
data CreateDeviceDefinitionResponse Source #
See: createDeviceDefinitionResponse
smart constructor.
Instances
Response Lenses
cddrsLatestVersionARN :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The ARN of the latest version of the definition.
cddrsCreationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was created.
cddrsLatestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The latest version of the definition.
cddrsLastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the definition was last updated.
cddrsResponseStatus :: Lens' CreateDeviceDefinitionResponse Int Source #
- - | The response status code.