| 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.CreatePlacement
Description
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.
Constructors
| CreatePlacement' | |
Fields
| |
Instances
Arguments
| :: 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:
CreatePlacement, createPlacement_attributes - Optional user-defined key/value pairs providing contextual data (such
as location or function) for the placement.
CreatePlacement, createPlacement_placementName - The name of the placement to be created.
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.
Constructors
| CreatePlacementResponse' | |
Fields
| |
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.