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 |
Associates a physical device with a placement.
Synopsis
- data AssociateDeviceWithPlacement = AssociateDeviceWithPlacement' {}
- newAssociateDeviceWithPlacement :: Text -> Text -> Text -> Text -> AssociateDeviceWithPlacement
- associateDeviceWithPlacement_projectName :: Lens' AssociateDeviceWithPlacement Text
- associateDeviceWithPlacement_placementName :: Lens' AssociateDeviceWithPlacement Text
- associateDeviceWithPlacement_deviceId :: Lens' AssociateDeviceWithPlacement Text
- associateDeviceWithPlacement_deviceTemplateName :: Lens' AssociateDeviceWithPlacement Text
- data AssociateDeviceWithPlacementResponse = AssociateDeviceWithPlacementResponse' {
- httpStatus :: Int
- newAssociateDeviceWithPlacementResponse :: Int -> AssociateDeviceWithPlacementResponse
- associateDeviceWithPlacementResponse_httpStatus :: Lens' AssociateDeviceWithPlacementResponse Int
Creating a Request
data AssociateDeviceWithPlacement Source #
See: newAssociateDeviceWithPlacement
smart constructor.
AssociateDeviceWithPlacement' | |
|
Instances
newAssociateDeviceWithPlacement Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> AssociateDeviceWithPlacement |
Create a value of AssociateDeviceWithPlacement
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:projectName:AssociateDeviceWithPlacement'
, associateDeviceWithPlacement_projectName
- The name of the project containing the placement in which to associate
the device.
$sel:placementName:AssociateDeviceWithPlacement'
, associateDeviceWithPlacement_placementName
- The name of the placement in which to associate the device.
$sel:deviceId:AssociateDeviceWithPlacement'
, associateDeviceWithPlacement_deviceId
- The ID of the physical device to be associated with the given placement
in the project. Note that a mandatory 4 character prefix is required for
all deviceId
values.
$sel:deviceTemplateName:AssociateDeviceWithPlacement'
, associateDeviceWithPlacement_deviceTemplateName
- The device template name to associate with the device ID.
Request Lenses
associateDeviceWithPlacement_projectName :: Lens' AssociateDeviceWithPlacement Text Source #
The name of the project containing the placement in which to associate the device.
associateDeviceWithPlacement_placementName :: Lens' AssociateDeviceWithPlacement Text Source #
The name of the placement in which to associate the device.
associateDeviceWithPlacement_deviceId :: Lens' AssociateDeviceWithPlacement Text Source #
The ID of the physical device to be associated with the given placement
in the project. Note that a mandatory 4 character prefix is required for
all deviceId
values.
associateDeviceWithPlacement_deviceTemplateName :: Lens' AssociateDeviceWithPlacement Text Source #
The device template name to associate with the device ID.
Destructuring the Response
data AssociateDeviceWithPlacementResponse Source #
See: newAssociateDeviceWithPlacementResponse
smart constructor.
AssociateDeviceWithPlacementResponse' | |
|
Instances
Eq AssociateDeviceWithPlacementResponse Source # | |
Read AssociateDeviceWithPlacementResponse Source # | |
Show AssociateDeviceWithPlacementResponse Source # | |
Generic AssociateDeviceWithPlacementResponse Source # | |
Defined in Amazonka.IoT1ClickProjects.AssociateDeviceWithPlacement type Rep AssociateDeviceWithPlacementResponse :: Type -> Type # | |
NFData AssociateDeviceWithPlacementResponse Source # | |
type Rep AssociateDeviceWithPlacementResponse Source # | |
Defined in Amazonka.IoT1ClickProjects.AssociateDeviceWithPlacement type Rep AssociateDeviceWithPlacementResponse = D1 ('MetaData "AssociateDeviceWithPlacementResponse" "Amazonka.IoT1ClickProjects.AssociateDeviceWithPlacement" "libZSservicesZSamazonka-iot1click-projectsZSamazonka-iot1click-projects" 'False) (C1 ('MetaCons "AssociateDeviceWithPlacementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateDeviceWithPlacementResponse Source #
Create a value of AssociateDeviceWithPlacementResponse
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:httpStatus:AssociateDeviceWithPlacementResponse'
, associateDeviceWithPlacementResponse_httpStatus
- The response's http status code.
Response Lenses
associateDeviceWithPlacementResponse_httpStatus :: Lens' AssociateDeviceWithPlacementResponse Int Source #
The response's http status code.