| 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.UpdatePlacement
Description
Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., "").
Synopsis
- data UpdatePlacement = UpdatePlacement' {
- attributes :: Maybe (HashMap Text Text)
- placementName :: Text
- projectName :: Text
- newUpdatePlacement :: Text -> Text -> UpdatePlacement
- updatePlacement_attributes :: Lens' UpdatePlacement (Maybe (HashMap Text Text))
- updatePlacement_placementName :: Lens' UpdatePlacement Text
- updatePlacement_projectName :: Lens' UpdatePlacement Text
- data UpdatePlacementResponse = UpdatePlacementResponse' {
- httpStatus :: Int
- newUpdatePlacementResponse :: Int -> UpdatePlacementResponse
- updatePlacementResponse_httpStatus :: Lens' UpdatePlacementResponse Int
Creating a Request
data UpdatePlacement Source #
See: newUpdatePlacement smart constructor.
Constructors
| UpdatePlacement' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdatePlacement |
Create a value of UpdatePlacement 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:
UpdatePlacement, updatePlacement_attributes - The user-defined object of attributes used to update the placement. The
maximum number of key/value pairs is 50.
UpdatePlacement, updatePlacement_placementName - The name of the placement to update.
UpdatePlacement, updatePlacement_projectName - The name of the project containing the placement to be updated.
Request Lenses
updatePlacement_attributes :: Lens' UpdatePlacement (Maybe (HashMap Text Text)) Source #
The user-defined object of attributes used to update the placement. The maximum number of key/value pairs is 50.
updatePlacement_placementName :: Lens' UpdatePlacement Text Source #
The name of the placement to update.
updatePlacement_projectName :: Lens' UpdatePlacement Text Source #
The name of the project containing the placement to be updated.
Destructuring the Response
data UpdatePlacementResponse Source #
See: newUpdatePlacementResponse smart constructor.
Constructors
| UpdatePlacementResponse' | |
Fields
| |
Instances
newUpdatePlacementResponse Source #
Create a value of UpdatePlacementResponse 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:UpdatePlacementResponse', updatePlacementResponse_httpStatus - The response's http status code.
Response Lenses
updatePlacementResponse_httpStatus :: Lens' UpdatePlacementResponse Int Source #
The response's http status code.