| 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.GetWorkspace
Description
Retrieves information about a workspace.
Synopsis
- data GetWorkspace = GetWorkspace' {
- workspaceId :: Text
- newGetWorkspace :: Text -> GetWorkspace
- getWorkspace_workspaceId :: Lens' GetWorkspace Text
- data GetWorkspaceResponse = GetWorkspaceResponse' {
- description :: Maybe Text
- httpStatus :: Int
- workspaceId :: Text
- arn :: Text
- s3Location :: Text
- role' :: Text
- creationDateTime :: POSIX
- updateDateTime :: POSIX
- newGetWorkspaceResponse :: Int -> Text -> Text -> Text -> Text -> UTCTime -> UTCTime -> GetWorkspaceResponse
- getWorkspaceResponse_description :: Lens' GetWorkspaceResponse (Maybe Text)
- getWorkspaceResponse_httpStatus :: Lens' GetWorkspaceResponse Int
- getWorkspaceResponse_workspaceId :: Lens' GetWorkspaceResponse Text
- getWorkspaceResponse_arn :: Lens' GetWorkspaceResponse Text
- getWorkspaceResponse_s3Location :: Lens' GetWorkspaceResponse Text
- getWorkspaceResponse_role :: Lens' GetWorkspaceResponse Text
- getWorkspaceResponse_creationDateTime :: Lens' GetWorkspaceResponse UTCTime
- getWorkspaceResponse_updateDateTime :: Lens' GetWorkspaceResponse UTCTime
Creating a Request
data GetWorkspace Source #
See: newGetWorkspace smart constructor.
Constructors
| GetWorkspace' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetWorkspace |
Create a value of GetWorkspace 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:
GetWorkspace, getWorkspace_workspaceId - The ID of the workspace.
Request Lenses
getWorkspace_workspaceId :: Lens' GetWorkspace Text Source #
The ID of the workspace.
Destructuring the Response
data GetWorkspaceResponse Source #
See: newGetWorkspaceResponse smart constructor.
Constructors
| GetWorkspaceResponse' | |
Fields
| |
Instances
newGetWorkspaceResponse Source #
Create a value of GetWorkspaceResponse 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:
GetWorkspaceResponse, getWorkspaceResponse_description - The description of the workspace.
$sel:httpStatus:GetWorkspaceResponse', getWorkspaceResponse_httpStatus - The response's http status code.
GetWorkspace, getWorkspaceResponse_workspaceId - The ID of the workspace.
GetWorkspaceResponse, getWorkspaceResponse_arn - The ARN of the workspace.
$sel:s3Location:GetWorkspaceResponse', getWorkspaceResponse_s3Location - The ARN of the S3 bucket where resources associated with the workspace
are stored.
$sel:role':GetWorkspaceResponse', getWorkspaceResponse_role - The ARN of the execution role associated with the workspace.
GetWorkspaceResponse, getWorkspaceResponse_creationDateTime - The date and time when the workspace was created.
GetWorkspaceResponse, getWorkspaceResponse_updateDateTime - The date and time when the workspace was last updated.
Response Lenses
getWorkspaceResponse_description :: Lens' GetWorkspaceResponse (Maybe Text) Source #
The description of the workspace.
getWorkspaceResponse_httpStatus :: Lens' GetWorkspaceResponse Int Source #
The response's http status code.
getWorkspaceResponse_workspaceId :: Lens' GetWorkspaceResponse Text Source #
The ID of the workspace.
getWorkspaceResponse_arn :: Lens' GetWorkspaceResponse Text Source #
The ARN of the workspace.
getWorkspaceResponse_s3Location :: Lens' GetWorkspaceResponse Text Source #
The ARN of the S3 bucket where resources associated with the workspace are stored.
getWorkspaceResponse_role :: Lens' GetWorkspaceResponse Text Source #
The ARN of the execution role associated with the workspace.
getWorkspaceResponse_creationDateTime :: Lens' GetWorkspaceResponse UTCTime Source #
The date and time when the workspace was created.
getWorkspaceResponse_updateDateTime :: Lens' GetWorkspaceResponse UTCTime Source #
The date and time when the workspace was last updated.