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 |
Creates a version of a device definition that has already been defined.
Synopsis
- data CreateDeviceDefinitionVersion = CreateDeviceDefinitionVersion' {
- amznClientToken :: Maybe Text
- devices :: Maybe [Device]
- deviceDefinitionId :: Text
- newCreateDeviceDefinitionVersion :: Text -> CreateDeviceDefinitionVersion
- createDeviceDefinitionVersion_amznClientToken :: Lens' CreateDeviceDefinitionVersion (Maybe Text)
- createDeviceDefinitionVersion_devices :: Lens' CreateDeviceDefinitionVersion (Maybe [Device])
- createDeviceDefinitionVersion_deviceDefinitionId :: Lens' CreateDeviceDefinitionVersion Text
- data CreateDeviceDefinitionVersionResponse = CreateDeviceDefinitionVersionResponse' {}
- newCreateDeviceDefinitionVersionResponse :: Int -> CreateDeviceDefinitionVersionResponse
- createDeviceDefinitionVersionResponse_arn :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text)
- createDeviceDefinitionVersionResponse_creationTimestamp :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text)
- createDeviceDefinitionVersionResponse_version :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text)
- createDeviceDefinitionVersionResponse_id :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text)
- createDeviceDefinitionVersionResponse_httpStatus :: Lens' CreateDeviceDefinitionVersionResponse Int
Creating a Request
data CreateDeviceDefinitionVersion Source #
See: newCreateDeviceDefinitionVersion
smart constructor.
CreateDeviceDefinitionVersion' | |
|
Instances
newCreateDeviceDefinitionVersion Source #
Create a value of CreateDeviceDefinitionVersion
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:amznClientToken:CreateDeviceDefinitionVersion'
, createDeviceDefinitionVersion_amznClientToken
- A client token used to correlate requests and responses.
$sel:devices:CreateDeviceDefinitionVersion'
, createDeviceDefinitionVersion_devices
- A list of devices in the definition version.
$sel:deviceDefinitionId:CreateDeviceDefinitionVersion'
, createDeviceDefinitionVersion_deviceDefinitionId
- The ID of the device definition.
Request Lenses
createDeviceDefinitionVersion_amznClientToken :: Lens' CreateDeviceDefinitionVersion (Maybe Text) Source #
A client token used to correlate requests and responses.
createDeviceDefinitionVersion_devices :: Lens' CreateDeviceDefinitionVersion (Maybe [Device]) Source #
A list of devices in the definition version.
createDeviceDefinitionVersion_deviceDefinitionId :: Lens' CreateDeviceDefinitionVersion Text Source #
The ID of the device definition.
Destructuring the Response
data CreateDeviceDefinitionVersionResponse Source #
See: newCreateDeviceDefinitionVersionResponse
smart constructor.
CreateDeviceDefinitionVersionResponse' | |
|
Instances
newCreateDeviceDefinitionVersionResponse Source #
Create a value of CreateDeviceDefinitionVersionResponse
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:arn:CreateDeviceDefinitionVersionResponse'
, createDeviceDefinitionVersionResponse_arn
- The ARN of the version.
$sel:creationTimestamp:CreateDeviceDefinitionVersionResponse'
, createDeviceDefinitionVersionResponse_creationTimestamp
- The time, in milliseconds since the epoch, when the version was created.
$sel:version:CreateDeviceDefinitionVersionResponse'
, createDeviceDefinitionVersionResponse_version
- The ID of the version.
$sel:id:CreateDeviceDefinitionVersionResponse'
, createDeviceDefinitionVersionResponse_id
- The ID of the parent definition that the version is associated with.
$sel:httpStatus:CreateDeviceDefinitionVersionResponse'
, createDeviceDefinitionVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createDeviceDefinitionVersionResponse_arn :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text) Source #
The ARN of the version.
createDeviceDefinitionVersionResponse_creationTimestamp :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text) Source #
The time, in milliseconds since the epoch, when the version was created.
createDeviceDefinitionVersionResponse_version :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text) Source #
The ID of the version.
createDeviceDefinitionVersionResponse_id :: Lens' CreateDeviceDefinitionVersionResponse (Maybe Text) Source #
The ID of the parent definition that the version is associated with.
createDeviceDefinitionVersionResponse_httpStatus :: Lens' CreateDeviceDefinitionVersionResponse Int Source #
The response's http status code.