| 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.IotTwinMaker.CreateWorkspace
Description
Creates a workplace.
Synopsis
- data CreateWorkspace = CreateWorkspace' {
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- workspaceId :: Text
- s3Location :: Text
- role' :: Text
- newCreateWorkspace :: Text -> Text -> Text -> CreateWorkspace
- createWorkspace_description :: Lens' CreateWorkspace (Maybe Text)
- createWorkspace_tags :: Lens' CreateWorkspace (Maybe (HashMap Text Text))
- createWorkspace_workspaceId :: Lens' CreateWorkspace Text
- createWorkspace_s3Location :: Lens' CreateWorkspace Text
- createWorkspace_role :: Lens' CreateWorkspace Text
- data CreateWorkspaceResponse = CreateWorkspaceResponse' {
- httpStatus :: Int
- arn :: Text
- creationDateTime :: POSIX
- newCreateWorkspaceResponse :: Int -> Text -> UTCTime -> CreateWorkspaceResponse
- createWorkspaceResponse_httpStatus :: Lens' CreateWorkspaceResponse Int
- createWorkspaceResponse_arn :: Lens' CreateWorkspaceResponse Text
- createWorkspaceResponse_creationDateTime :: Lens' CreateWorkspaceResponse UTCTime
Creating a Request
data CreateWorkspace Source #
See: newCreateWorkspace smart constructor.
Constructors
| CreateWorkspace' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateWorkspace |
Create a value of CreateWorkspace 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:
CreateWorkspace, createWorkspace_description - The description of the workspace.
$sel:tags:CreateWorkspace', createWorkspace_tags - Metadata that you can use to manage the workspace
CreateWorkspace, createWorkspace_workspaceId - The ID of the workspace.
$sel:s3Location:CreateWorkspace', createWorkspace_s3Location - The ARN of the S3 bucket where resources associated with the workspace
are stored.
$sel:role':CreateWorkspace', createWorkspace_role - The ARN of the execution role associated with the workspace.
Request Lenses
createWorkspace_description :: Lens' CreateWorkspace (Maybe Text) Source #
The description of the workspace.
createWorkspace_tags :: Lens' CreateWorkspace (Maybe (HashMap Text Text)) Source #
Metadata that you can use to manage the workspace
createWorkspace_workspaceId :: Lens' CreateWorkspace Text Source #
The ID of the workspace.
createWorkspace_s3Location :: Lens' CreateWorkspace Text Source #
The ARN of the S3 bucket where resources associated with the workspace are stored.
createWorkspace_role :: Lens' CreateWorkspace Text Source #
The ARN of the execution role associated with the workspace.
Destructuring the Response
data CreateWorkspaceResponse Source #
See: newCreateWorkspaceResponse smart constructor.
Constructors
| CreateWorkspaceResponse' | |
Fields
| |
Instances
newCreateWorkspaceResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> UTCTime | |
| -> CreateWorkspaceResponse |
Create a value of CreateWorkspaceResponse 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:CreateWorkspaceResponse', createWorkspaceResponse_httpStatus - The response's http status code.
CreateWorkspaceResponse, createWorkspaceResponse_arn - The ARN of the workspace.
CreateWorkspaceResponse, createWorkspaceResponse_creationDateTime - The date and time when the workspace was created.
Response Lenses
createWorkspaceResponse_httpStatus :: Lens' CreateWorkspaceResponse Int Source #
The response's http status code.
createWorkspaceResponse_arn :: Lens' CreateWorkspaceResponse Text Source #
The ARN of the workspace.
createWorkspaceResponse_creationDateTime :: Lens' CreateWorkspaceResponse UTCTime Source #
The date and time when the workspace was created.