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 a project in the specified portal.
Synopsis
- data CreateProject = CreateProject' {
- clientToken :: Maybe Text
- projectDescription :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- portalId :: Text
- projectName :: Text
- newCreateProject :: Text -> Text -> CreateProject
- createProject_clientToken :: Lens' CreateProject (Maybe Text)
- createProject_projectDescription :: Lens' CreateProject (Maybe Text)
- createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text))
- createProject_portalId :: Lens' CreateProject Text
- createProject_projectName :: Lens' CreateProject Text
- data CreateProjectResponse = CreateProjectResponse' {
- httpStatus :: Int
- projectId :: Text
- projectArn :: Text
- newCreateProjectResponse :: Int -> Text -> Text -> CreateProjectResponse
- createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int
- createProjectResponse_projectId :: Lens' CreateProjectResponse Text
- createProjectResponse_projectArn :: Lens' CreateProjectResponse Text
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
- A unique case-sensitive identifier that you can provide to ensure the
idempotency of the request. Don't reuse this client token if a new
idempotent request is required.
$sel:projectDescription:CreateProject'
, createProject_projectDescription
- A description for the project.
$sel:tags:CreateProject'
, createProject_tags
- A list of key-value pairs that contain metadata for the project. For
more information, see
Tagging your IoT SiteWise resources
in the IoT SiteWise User Guide.
$sel:portalId:CreateProject'
, createProject_portalId
- The ID of the portal in which to create the project.
$sel:projectName:CreateProject'
, createProject_projectName
- A friendly name for the project.
Request Lenses
createProject_clientToken :: Lens' CreateProject (Maybe Text) Source #
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
createProject_projectDescription :: Lens' CreateProject (Maybe Text) Source #
A description for the project.
createProject_tags :: Lens' CreateProject (Maybe (HashMap Text Text)) Source #
A list of key-value pairs that contain metadata for the project. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
createProject_portalId :: Lens' CreateProject Text Source #
The ID of the portal in which to create the project.
createProject_projectName :: Lens' CreateProject Text Source #
A friendly name for the project.
Destructuring the Response
data CreateProjectResponse Source #
See: newCreateProjectResponse
smart constructor.
CreateProjectResponse' | |
|
Instances
newCreateProjectResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> CreateProjectResponse |
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.
$sel:projectId:CreateProjectResponse'
, createProjectResponse_projectId
- The ID of the project.
$sel:projectArn:CreateProjectResponse'
, createProjectResponse_projectArn
- The
ARN
of the project, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}
Response Lenses
createProjectResponse_httpStatus :: Lens' CreateProjectResponse Int Source #
The response's http status code.
createProjectResponse_projectId :: Lens' CreateProjectResponse Text Source #
The ID of the project.
createProjectResponse_projectArn :: Lens' CreateProjectResponse Text Source #
The ARN of the project, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:project/${ProjectId}