| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT1ClickProjects.AssociateDeviceWithPlacement
Description
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.
Constructors
| AssociateDeviceWithPlacement' | |
Fields
| |
Instances
newAssociateDeviceWithPlacement Source #
Arguments
| :: 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:
AssociateDeviceWithPlacement, associateDeviceWithPlacement_projectName - The name of the project containing the placement in which to associate
the device.
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.
Constructors
| AssociateDeviceWithPlacementResponse' | |
Fields
| |
Instances
newAssociateDeviceWithPlacementResponse Source #
Arguments
| :: Int | |
| -> AssociateDeviceWithPlacementResponse |
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.