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 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.
CreateProject' | |
|
Instances
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, such as an network outage, 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.
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.
$sel:projectName: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, such as an network outage, 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.
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.
CreateProjectResponse' | |
|
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.