| 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.LookoutVision.CreateProject
Description
Creates an empty Amazon Lookout for Vision project. After you create the project, add a dataset by calling CreateDataset.
This operation requires permissions to perform the
lookoutvision:CreateProject operation.
Synopsis
- data CreateProject = CreateProject' {
- clientToken :: Maybe Text
- projectName :: Text
- newCreateProject :: Text -> CreateProject
- createProject_clientToken :: Lens' CreateProject (Maybe Text)
- createProject_projectName :: Lens' CreateProject Text
- data CreateProjectResponse = CreateProjectResponse' {}
- newCreateProjectResponse :: Int -> CreateProjectResponse
- createProjectResponse_projectMetadata :: Lens' CreateProjectResponse (Maybe ProjectMetadata)
- 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:
$sel:clientToken:CreateProject', createProject_clientToken - ClientToken is an idempotency token that ensures a call to
CreateProject completes only once. You choose the value to pass. For
example, An issue might prevent you from getting a response from
CreateProject. In this case, safely retry your call to CreateProject
by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, the AWS SDK you are
using inserts a value for you. This prevents retries after a network
error from making multiple project creation requests. You'll need to
provide your own value for other use cases.
An error occurs if the other input parameters are not the same as in the
first request. Using a different value for ClientToken is considered a
new call to CreateProject. An idempotency token is active for 8 hours.
CreateProject, createProject_projectName - The name for the project.
Request Lenses
createProject_clientToken :: Lens' CreateProject (Maybe Text) Source #
ClientToken is an idempotency token that ensures a call to
CreateProject completes only once. You choose the value to pass. For
example, An issue might prevent you from getting a response from
CreateProject. In this case, safely retry your call to CreateProject
by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, the AWS SDK you are
using inserts a value for you. This prevents retries after a network
error from making multiple project creation requests. You'll need to
provide your own value for other use cases.
An error occurs if the other input parameters are not the same as in the
first request. Using a different value for ClientToken is considered a
new call to CreateProject. An idempotency token is active for 8 hours.
createProject_projectName :: Lens' CreateProject Text Source #
The name for the project.
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:projectMetadata:CreateProjectResponse', createProjectResponse_projectMetadata - Information about the project.
$sel:httpStatus:CreateProjectResponse', createProjectResponse_httpStatus - The response's http status code.
Response Lenses
createProjectResponse_projectMetadata :: Lens' CreateProjectResponse (Maybe ProjectMetadata) Source #
Information about the project.
createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int Source #
The response's http status code.