| 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.CreateScene
Description
Creates a scene.
Synopsis
- data CreateScene = CreateScene' {
- capabilities :: Maybe [Text]
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- workspaceId :: Text
- sceneId :: Text
- contentLocation :: Text
- newCreateScene :: Text -> Text -> Text -> CreateScene
- createScene_capabilities :: Lens' CreateScene (Maybe [Text])
- createScene_description :: Lens' CreateScene (Maybe Text)
- createScene_tags :: Lens' CreateScene (Maybe (HashMap Text Text))
- createScene_workspaceId :: Lens' CreateScene Text
- createScene_sceneId :: Lens' CreateScene Text
- createScene_contentLocation :: Lens' CreateScene Text
- data CreateSceneResponse = CreateSceneResponse' {
- httpStatus :: Int
- arn :: Text
- creationDateTime :: POSIX
- newCreateSceneResponse :: Int -> Text -> UTCTime -> CreateSceneResponse
- createSceneResponse_httpStatus :: Lens' CreateSceneResponse Int
- createSceneResponse_arn :: Lens' CreateSceneResponse Text
- createSceneResponse_creationDateTime :: Lens' CreateSceneResponse UTCTime
Creating a Request
data CreateScene Source #
See: newCreateScene smart constructor.
Constructors
| CreateScene' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateScene |
Create a value of CreateScene 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:capabilities:CreateScene', createScene_capabilities - A list of capabilities that the scene uses to render itself.
CreateScene, createScene_description - The description for this scene.
$sel:tags:CreateScene', createScene_tags - Metadata that you can use to manage the scene.
CreateScene, createScene_workspaceId - The ID of the workspace that contains the scene.
CreateScene, createScene_sceneId - The ID of the scene.
CreateScene, createScene_contentLocation - The relative path that specifies the location of the content definition
file.
Request Lenses
createScene_capabilities :: Lens' CreateScene (Maybe [Text]) Source #
A list of capabilities that the scene uses to render itself.
createScene_description :: Lens' CreateScene (Maybe Text) Source #
The description for this scene.
createScene_tags :: Lens' CreateScene (Maybe (HashMap Text Text)) Source #
Metadata that you can use to manage the scene.
createScene_workspaceId :: Lens' CreateScene Text Source #
The ID of the workspace that contains the scene.
createScene_sceneId :: Lens' CreateScene Text Source #
The ID of the scene.
createScene_contentLocation :: Lens' CreateScene Text Source #
The relative path that specifies the location of the content definition file.
Destructuring the Response
data CreateSceneResponse Source #
See: newCreateSceneResponse smart constructor.
Constructors
| CreateSceneResponse' | |
Fields
| |
Instances
newCreateSceneResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> UTCTime | |
| -> CreateSceneResponse |
Create a value of CreateSceneResponse 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:CreateSceneResponse', createSceneResponse_httpStatus - The response's http status code.
CreateSceneResponse, createSceneResponse_arn - The ARN of the scene.
CreateSceneResponse, createSceneResponse_creationDateTime - The date and time when the scene was created.
Response Lenses
createSceneResponse_httpStatus :: Lens' CreateSceneResponse Int Source #
The response's http status code.
createSceneResponse_arn :: Lens' CreateSceneResponse Text Source #
The ARN of the scene.
createSceneResponse_creationDateTime :: Lens' CreateSceneResponse UTCTime Source #
The date and time when the scene was created.