Copyright | (c) 2013-2017 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 optinally provide the initial version of the device definition or use `CreateDeviceDefinitionVersion
` at a later time.
- 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
- The client token used to request idempotent operations.cddInitialVersion
- Information on the initial versioncddName
- name of the device definition
data CreateDeviceDefinition Source #
See: createDeviceDefinition
smart constructor.
Request Lenses
cddAmznClientToken :: Lens' CreateDeviceDefinition (Maybe Text) Source #
The client token used to request idempotent operations.
cddInitialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion) Source #
Information on the initial version
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
- Latest version arn of the definition.cddrsARN
- Arn of the definition.cddrsName
- Name of the definition.cddrsCreationTimestamp
- Timestamp of when the definition was created.cddrsId
- Id of the definition.cddrsLatestVersion
- Last version of the definition.cddrsLastUpdatedTimestamp
- Last updated timestamp of the definition.cddrsResponseStatus
- -- | The response status code.
data CreateDeviceDefinitionResponse Source #
See: createDeviceDefinitionResponse
smart constructor.
Response Lenses
cddrsLatestVersionARN :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
Latest version arn of the definition.
cddrsCreationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
Timestamp of when the definition was created.
cddrsLatestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
Last version of the definition.
cddrsLastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #
Last updated timestamp of the definition.
cddrsResponseStatus :: Lens' CreateDeviceDefinitionResponse Int Source #
- - | The response status code.