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 an empty placement.
Synopsis
- data CreatePlacement = CreatePlacement' {
- attributes :: Maybe (HashMap Text Text)
- placementName :: Text
- projectName :: Text
- newCreatePlacement :: Text -> Text -> CreatePlacement
- createPlacement_attributes :: Lens' CreatePlacement (Maybe (HashMap Text Text))
- createPlacement_placementName :: Lens' CreatePlacement Text
- createPlacement_projectName :: Lens' CreatePlacement Text
- data CreatePlacementResponse = CreatePlacementResponse' {
- httpStatus :: Int
- newCreatePlacementResponse :: Int -> CreatePlacementResponse
- createPlacementResponse_httpStatus :: Lens' CreatePlacementResponse Int
Creating a Request
data CreatePlacement Source #
See: newCreatePlacement
smart constructor.
CreatePlacement' | |
|
Instances
:: Text | |
-> Text | |
-> CreatePlacement |
Create a value of CreatePlacement
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:CreatePlacement'
, createPlacement_attributes
- Optional user-defined key/value pairs providing contextual data (such
as location or function) for the placement.
$sel:placementName:CreatePlacement'
, createPlacement_placementName
- The name of the placement to be created.
$sel:projectName:CreatePlacement'
, createPlacement_projectName
- The name of the project in which to create the placement.
Request Lenses
createPlacement_attributes :: Lens' CreatePlacement (Maybe (HashMap Text Text)) Source #
Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.
createPlacement_placementName :: Lens' CreatePlacement Text Source #
The name of the placement to be created.
createPlacement_projectName :: Lens' CreatePlacement Text Source #
The name of the project in which to create the placement.
Destructuring the Response
data CreatePlacementResponse Source #
See: newCreatePlacementResponse
smart constructor.
CreatePlacementResponse' | |
|
Instances
newCreatePlacementResponse Source #
Create a value of CreatePlacementResponse
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:CreatePlacementResponse'
, createPlacementResponse_httpStatus
- The response's http status code.
Response Lenses
createPlacementResponse_httpStatus :: Lens' CreatePlacementResponse Int Source #
The response's http status code.