| 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.CreateProject
Description
Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.
Synopsis
- data CreateProject = CreateProject' {}
- newCreateProject :: Text -> CreateProject
- createProject_description :: Lens' CreateProject (Maybe Text)
- createProject_placementTemplate :: Lens' CreateProject (Maybe PlacementTemplate)
- createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text))
- createProject_projectName :: Lens' CreateProject Text
- data CreateProjectResponse = CreateProjectResponse' {
- httpStatus :: Int
- newCreateProjectResponse :: Int -> CreateProjectResponse
- createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int
Creating a Request
data CreateProject Source #
See: newCreateProject smart constructor.
Constructors
| CreateProject' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateProject |
Create a value of CreateProject 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:
CreateProject, createProject_description - An optional description for the project.
CreateProject, createProject_placementTemplate - The schema defining the placement to be created. A placement template
defines placement default attributes and device templates. You cannot
add or remove device templates after the project has been created.
However, you can update callbackOverrides for the device templates
using the UpdateProject API.
CreateProject, createProject_tags - Optional tags (metadata key/value pairs) to be associated with the
project. For example,
{ {"key1": "value1", "key2": "value2"} }. For more
information, see
AWS Tagging Strategies.
CreateProject, createProject_projectName - The name of the project to create.
Request Lenses
createProject_description :: Lens' CreateProject (Maybe Text) Source #
An optional description for the project.
createProject_placementTemplate :: Lens' CreateProject (Maybe PlacementTemplate) Source #
The schema defining the placement to be created. A placement template
defines placement default attributes and device templates. You cannot
add or remove device templates after the project has been created.
However, you can update callbackOverrides for the device templates
using the UpdateProject API.
createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text)) Source #
Optional tags (metadata key/value pairs) to be associated with the
project. For example,
{ {"key1": "value1", "key2": "value2"} }. For more
information, see
AWS Tagging Strategies.
createProject_projectName :: Lens' CreateProject Text Source #
The name of the project to create.
Destructuring the Response
data CreateProjectResponse Source #
See: newCreateProjectResponse smart constructor.
Constructors
| CreateProjectResponse' | |
Fields
| |
Instances
newCreateProjectResponse Source #
Create a value of CreateProjectResponse 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:CreateProjectResponse', createProjectResponse_httpStatus - The response's http status code.
Response Lenses
createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int Source #
The response's http status code.