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 new AMP workspace.
Synopsis
- data CreateWorkspace = CreateWorkspace' {}
- newCreateWorkspace :: CreateWorkspace
- createWorkspace_clientToken :: Lens' CreateWorkspace (Maybe Text)
- createWorkspace_alias :: Lens' CreateWorkspace (Maybe Text)
- createWorkspace_tags :: Lens' CreateWorkspace (Maybe (HashMap Text Text))
- data CreateWorkspaceResponse = CreateWorkspaceResponse' {
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- arn :: Text
- status :: WorkspaceStatus
- workspaceId :: Text
- newCreateWorkspaceResponse :: Int -> Text -> WorkspaceStatus -> Text -> CreateWorkspaceResponse
- createWorkspaceResponse_tags :: Lens' CreateWorkspaceResponse (Maybe (HashMap Text Text))
- createWorkspaceResponse_httpStatus :: Lens' CreateWorkspaceResponse Int
- createWorkspaceResponse_arn :: Lens' CreateWorkspaceResponse Text
- createWorkspaceResponse_status :: Lens' CreateWorkspaceResponse WorkspaceStatus
- createWorkspaceResponse_workspaceId :: Lens' CreateWorkspaceResponse Text
Creating a Request
data CreateWorkspace Source #
Represents the input of a CreateWorkspace operation.
See: newCreateWorkspace
smart constructor.
CreateWorkspace' | |
|
Instances
newCreateWorkspace :: CreateWorkspace Source #
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:
$sel:clientToken:CreateWorkspace'
, createWorkspace_clientToken
- Optional, unique, case-sensitive, user-provided identifier to ensure the
idempotency of the request.
$sel:alias:CreateWorkspace'
, createWorkspace_alias
- An optional user-assigned alias for this workspace. This alias is for
user reference and does not need to be unique.
$sel:tags:CreateWorkspace'
, createWorkspace_tags
- Optional, user-provided tags for this workspace.
Request Lenses
createWorkspace_clientToken :: Lens' CreateWorkspace (Maybe Text) Source #
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
createWorkspace_alias :: Lens' CreateWorkspace (Maybe Text) Source #
An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be unique.
createWorkspace_tags :: Lens' CreateWorkspace (Maybe (HashMap Text Text)) Source #
Optional, user-provided tags for this workspace.
Destructuring the Response
data CreateWorkspaceResponse Source #
Represents the output of a CreateWorkspace operation.
See: newCreateWorkspaceResponse
smart constructor.
CreateWorkspaceResponse' | |
|
Instances
newCreateWorkspaceResponse Source #
:: Int | |
-> Text | |
-> WorkspaceStatus | |
-> Text | |
-> 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:tags:CreateWorkspace'
, createWorkspaceResponse_tags
- The tags of this workspace.
$sel:httpStatus:CreateWorkspaceResponse'
, createWorkspaceResponse_httpStatus
- The response's http status code.
$sel:arn:CreateWorkspaceResponse'
, createWorkspaceResponse_arn
- The ARN of the workspace that was just created.
$sel:status:CreateWorkspaceResponse'
, createWorkspaceResponse_status
- The status of the workspace that was just created (usually CREATING).
$sel:workspaceId:CreateWorkspaceResponse'
, createWorkspaceResponse_workspaceId
- The generated ID of the workspace that was just created.
Response Lenses
createWorkspaceResponse_tags :: Lens' CreateWorkspaceResponse (Maybe (HashMap Text Text)) Source #
The tags of this workspace.
createWorkspaceResponse_httpStatus :: Lens' CreateWorkspaceResponse Int Source #
The response's http status code.
createWorkspaceResponse_arn :: Lens' CreateWorkspaceResponse Text Source #
The ARN of the workspace that was just created.
createWorkspaceResponse_status :: Lens' CreateWorkspaceResponse WorkspaceStatus Source #
The status of the workspace that was just created (usually CREATING).
createWorkspaceResponse_workspaceId :: Lens' CreateWorkspaceResponse Text Source #
The generated ID of the workspace that was just created.