| 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.AMP.CreateWorkspace
Description
Creates a new AMP workspace.
Synopsis
- data CreateWorkspace = CreateWorkspace' {}
- newCreateWorkspace :: CreateWorkspace
- createWorkspace_alias :: Lens' CreateWorkspace (Maybe Text)
- createWorkspace_clientToken :: 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.
Constructors
| CreateWorkspace' | |
Fields
| |
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:
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:clientToken:CreateWorkspace', createWorkspace_clientToken - Optional, unique, case-sensitive, user-provided identifier to ensure the
idempotency of the request.
CreateWorkspace, createWorkspace_tags - Optional, user-provided tags for this workspace.
Request Lenses
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_clientToken :: Lens' CreateWorkspace (Maybe Text) Source #
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
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.
Constructors
| CreateWorkspaceResponse' | |
Fields
| |
Instances
newCreateWorkspaceResponse Source #
Arguments
| :: 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:
CreateWorkspace, createWorkspaceResponse_tags - The tags of this workspace.
$sel:httpStatus:CreateWorkspaceResponse', createWorkspaceResponse_httpStatus - The response's http status code.
CreateWorkspaceResponse, createWorkspaceResponse_arn - The ARN of the workspace that was just created.
CreateWorkspaceResponse, createWorkspaceResponse_status - The status of the workspace that was just created (usually CREATING).
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.