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 |
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.
UpdatePlacement' | |
|
Instances
:: 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:
$sel:attributes:UpdatePlacement'
, updatePlacement_attributes
- The user-defined object of attributes used to update the placement. The
maximum number of key/value pairs is 50.
$sel:placementName:UpdatePlacement'
, updatePlacement_placementName
- The name of the placement to update.
$sel:projectName: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.
UpdatePlacementResponse' | |
|
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.