| 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.UpdateComponentType
Description
Updates information in a component type.
Synopsis
- data UpdateComponentType = UpdateComponentType' {
- componentTypeName :: Maybe Text
- description :: Maybe Text
- extendsFrom :: Maybe [Text]
- functions :: Maybe (HashMap Text FunctionRequest)
- isSingleton :: Maybe Bool
- propertyDefinitions :: Maybe (HashMap Text PropertyDefinitionRequest)
- propertyGroups :: Maybe (HashMap Text PropertyGroupRequest)
- workspaceId :: Text
- componentTypeId :: Text
- newUpdateComponentType :: Text -> Text -> UpdateComponentType
- updateComponentType_componentTypeName :: Lens' UpdateComponentType (Maybe Text)
- updateComponentType_description :: Lens' UpdateComponentType (Maybe Text)
- updateComponentType_extendsFrom :: Lens' UpdateComponentType (Maybe [Text])
- updateComponentType_functions :: Lens' UpdateComponentType (Maybe (HashMap Text FunctionRequest))
- updateComponentType_isSingleton :: Lens' UpdateComponentType (Maybe Bool)
- updateComponentType_propertyDefinitions :: Lens' UpdateComponentType (Maybe (HashMap Text PropertyDefinitionRequest))
- updateComponentType_propertyGroups :: Lens' UpdateComponentType (Maybe (HashMap Text PropertyGroupRequest))
- updateComponentType_workspaceId :: Lens' UpdateComponentType Text
- updateComponentType_componentTypeId :: Lens' UpdateComponentType Text
- data UpdateComponentTypeResponse = UpdateComponentTypeResponse' {
- httpStatus :: Int
- workspaceId :: Text
- arn :: Text
- componentTypeId :: Text
- state :: State
- newUpdateComponentTypeResponse :: Int -> Text -> Text -> Text -> State -> UpdateComponentTypeResponse
- updateComponentTypeResponse_httpStatus :: Lens' UpdateComponentTypeResponse Int
- updateComponentTypeResponse_workspaceId :: Lens' UpdateComponentTypeResponse Text
- updateComponentTypeResponse_arn :: Lens' UpdateComponentTypeResponse Text
- updateComponentTypeResponse_componentTypeId :: Lens' UpdateComponentTypeResponse Text
- updateComponentTypeResponse_state :: Lens' UpdateComponentTypeResponse State
Creating a Request
data UpdateComponentType Source #
See: newUpdateComponentType smart constructor.
Constructors
| UpdateComponentType' | |
Fields
| |
Instances
newUpdateComponentType Source #
Arguments
| :: Text | |
| -> Text | |
| -> UpdateComponentType |
Create a value of UpdateComponentType 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:
UpdateComponentType, updateComponentType_componentTypeName - The component type name.
UpdateComponentType, updateComponentType_description - The description of the component type.
UpdateComponentType, updateComponentType_extendsFrom - Specifies the component type that this component type extends.
$sel:functions:UpdateComponentType', updateComponentType_functions - An object that maps strings to the functions in the component type. Each
string in the mapping must be unique to this object.
$sel:isSingleton:UpdateComponentType', updateComponentType_isSingleton - A Boolean value that specifies whether an entity can have more than one
component of this type.
$sel:propertyDefinitions:UpdateComponentType', updateComponentType_propertyDefinitions - An object that maps strings to the property definitions in the component
type. Each string in the mapping must be unique to this object.
UpdateComponentType, updateComponentType_propertyGroups - The property groups
UpdateComponentType, updateComponentType_workspaceId - The ID of the workspace.
UpdateComponentType, updateComponentType_componentTypeId - The ID of the component type.
Request Lenses
updateComponentType_componentTypeName :: Lens' UpdateComponentType (Maybe Text) Source #
The component type name.
updateComponentType_description :: Lens' UpdateComponentType (Maybe Text) Source #
The description of the component type.
updateComponentType_extendsFrom :: Lens' UpdateComponentType (Maybe [Text]) Source #
Specifies the component type that this component type extends.
updateComponentType_functions :: Lens' UpdateComponentType (Maybe (HashMap Text FunctionRequest)) Source #
An object that maps strings to the functions in the component type. Each string in the mapping must be unique to this object.
updateComponentType_isSingleton :: Lens' UpdateComponentType (Maybe Bool) Source #
A Boolean value that specifies whether an entity can have more than one component of this type.
updateComponentType_propertyDefinitions :: Lens' UpdateComponentType (Maybe (HashMap Text PropertyDefinitionRequest)) Source #
An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.
updateComponentType_propertyGroups :: Lens' UpdateComponentType (Maybe (HashMap Text PropertyGroupRequest)) Source #
The property groups
updateComponentType_workspaceId :: Lens' UpdateComponentType Text Source #
The ID of the workspace.
updateComponentType_componentTypeId :: Lens' UpdateComponentType Text Source #
The ID of the component type.
Destructuring the Response
data UpdateComponentTypeResponse Source #
See: newUpdateComponentTypeResponse smart constructor.
Constructors
| UpdateComponentTypeResponse' | |
Fields
| |
Instances
newUpdateComponentTypeResponse Source #
Create a value of UpdateComponentTypeResponse 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:UpdateComponentTypeResponse', updateComponentTypeResponse_httpStatus - The response's http status code.
UpdateComponentType, updateComponentTypeResponse_workspaceId - The ID of the workspace that contains the component type.
UpdateComponentTypeResponse, updateComponentTypeResponse_arn - The ARN of the component type.
UpdateComponentType, updateComponentTypeResponse_componentTypeId - The ID of the component type.
UpdateComponentTypeResponse, updateComponentTypeResponse_state - The current state of the component type.
Response Lenses
updateComponentTypeResponse_httpStatus :: Lens' UpdateComponentTypeResponse Int Source #
The response's http status code.
updateComponentTypeResponse_workspaceId :: Lens' UpdateComponentTypeResponse Text Source #
The ID of the workspace that contains the component type.
updateComponentTypeResponse_arn :: Lens' UpdateComponentTypeResponse Text Source #
The ARN of the component type.
updateComponentTypeResponse_componentTypeId :: Lens' UpdateComponentTypeResponse Text Source #
The ID of the component type.
updateComponentTypeResponse_state :: Lens' UpdateComponentTypeResponse State Source #
The current state of the component type.