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 |
Creates an entity.
Synopsis
- data CreateEntity = CreateEntity' {
- components :: Maybe (HashMap Text ComponentRequest)
- description :: Maybe Text
- entityId :: Maybe Text
- parentEntityId :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- workspaceId :: Text
- entityName :: Text
- newCreateEntity :: Text -> Text -> CreateEntity
- createEntity_components :: Lens' CreateEntity (Maybe (HashMap Text ComponentRequest))
- createEntity_description :: Lens' CreateEntity (Maybe Text)
- createEntity_entityId :: Lens' CreateEntity (Maybe Text)
- createEntity_parentEntityId :: Lens' CreateEntity (Maybe Text)
- createEntity_tags :: Lens' CreateEntity (Maybe (HashMap Text Text))
- createEntity_workspaceId :: Lens' CreateEntity Text
- createEntity_entityName :: Lens' CreateEntity Text
- data CreateEntityResponse = CreateEntityResponse' {
- httpStatus :: Int
- entityId :: Text
- arn :: Text
- creationDateTime :: POSIX
- state :: State
- newCreateEntityResponse :: Int -> Text -> Text -> UTCTime -> State -> CreateEntityResponse
- createEntityResponse_httpStatus :: Lens' CreateEntityResponse Int
- createEntityResponse_entityId :: Lens' CreateEntityResponse Text
- createEntityResponse_arn :: Lens' CreateEntityResponse Text
- createEntityResponse_creationDateTime :: Lens' CreateEntityResponse UTCTime
- createEntityResponse_state :: Lens' CreateEntityResponse State
Creating a Request
data CreateEntity Source #
See: newCreateEntity
smart constructor.
CreateEntity' | |
|
Instances
Create a value of CreateEntity
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:components:CreateEntity'
, createEntity_components
- An object that maps strings to the components in the entity. Each string
in the mapping must be unique to this object.
CreateEntity
, createEntity_description
- The description of the entity.
CreateEntity
, createEntity_entityId
- The ID of the entity.
CreateEntity
, createEntity_parentEntityId
- The ID of the entity's parent entity.
$sel:tags:CreateEntity'
, createEntity_tags
- Metadata that you can use to manage the entity.
CreateEntity
, createEntity_workspaceId
- The ID of the workspace that contains the entity.
CreateEntity
, createEntity_entityName
- The name of the entity.
Request Lenses
createEntity_components :: Lens' CreateEntity (Maybe (HashMap Text ComponentRequest)) Source #
An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
createEntity_description :: Lens' CreateEntity (Maybe Text) Source #
The description of the entity.
createEntity_entityId :: Lens' CreateEntity (Maybe Text) Source #
The ID of the entity.
createEntity_parentEntityId :: Lens' CreateEntity (Maybe Text) Source #
The ID of the entity's parent entity.
createEntity_tags :: Lens' CreateEntity (Maybe (HashMap Text Text)) Source #
Metadata that you can use to manage the entity.
createEntity_workspaceId :: Lens' CreateEntity Text Source #
The ID of the workspace that contains the entity.
createEntity_entityName :: Lens' CreateEntity Text Source #
The name of the entity.
Destructuring the Response
data CreateEntityResponse Source #
See: newCreateEntityResponse
smart constructor.
CreateEntityResponse' | |
|
Instances
newCreateEntityResponse Source #
Create a value of CreateEntityResponse
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:CreateEntityResponse'
, createEntityResponse_httpStatus
- The response's http status code.
CreateEntity
, createEntityResponse_entityId
- The ID of the entity.
CreateEntityResponse
, createEntityResponse_arn
- The ARN of the entity.
CreateEntityResponse
, createEntityResponse_creationDateTime
- The date and time when the entity was created.
CreateEntityResponse
, createEntityResponse_state
- The current state of the entity.
Response Lenses
createEntityResponse_httpStatus :: Lens' CreateEntityResponse Int Source #
The response's http status code.
createEntityResponse_entityId :: Lens' CreateEntityResponse Text Source #
The ID of the entity.
createEntityResponse_arn :: Lens' CreateEntityResponse Text Source #
The ARN of the entity.
createEntityResponse_creationDateTime :: Lens' CreateEntityResponse UTCTime Source #
The date and time when the entity was created.
createEntityResponse_state :: Lens' CreateEntityResponse State Source #
The current state of the entity.