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 |
Updates an existing component.
Synopsis
- data UpdateComponent = UpdateComponent' {}
- newUpdateComponent :: Text -> Text -> Text -> UpdateComponentData -> UpdateComponent
- updateComponent_clientToken :: Lens' UpdateComponent (Maybe Text)
- updateComponent_appId :: Lens' UpdateComponent Text
- updateComponent_environmentName :: Lens' UpdateComponent Text
- updateComponent_id :: Lens' UpdateComponent Text
- updateComponent_updatedComponent :: Lens' UpdateComponent UpdateComponentData
- data UpdateComponentResponse = UpdateComponentResponse' {
- entity :: Maybe Component
- httpStatus :: Int
- newUpdateComponentResponse :: Int -> UpdateComponentResponse
- updateComponentResponse_entity :: Lens' UpdateComponentResponse (Maybe Component)
- updateComponentResponse_httpStatus :: Lens' UpdateComponentResponse Int
Creating a Request
data UpdateComponent Source #
See: newUpdateComponent
smart constructor.
UpdateComponent' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> UpdateComponentData | |
-> UpdateComponent |
Create a value of UpdateComponent
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:clientToken:UpdateComponent'
, updateComponent_clientToken
- The unique client token.
UpdateComponent
, updateComponent_appId
- The unique ID for the Amplify app.
UpdateComponent
, updateComponent_environmentName
- The name of the backend environment that is part of the Amplify app.
UpdateComponent
, updateComponent_id
- The unique ID for the component.
$sel:updatedComponent:UpdateComponent'
, updateComponent_updatedComponent
- The configuration of the updated component.
Request Lenses
updateComponent_clientToken :: Lens' UpdateComponent (Maybe Text) Source #
The unique client token.
updateComponent_appId :: Lens' UpdateComponent Text Source #
The unique ID for the Amplify app.
updateComponent_environmentName :: Lens' UpdateComponent Text Source #
The name of the backend environment that is part of the Amplify app.
updateComponent_id :: Lens' UpdateComponent Text Source #
The unique ID for the component.
updateComponent_updatedComponent :: Lens' UpdateComponent UpdateComponentData Source #
The configuration of the updated component.
Destructuring the Response
data UpdateComponentResponse Source #
See: newUpdateComponentResponse
smart constructor.
UpdateComponentResponse' | |
|
Instances
newUpdateComponentResponse Source #
Create a value of UpdateComponentResponse
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:entity:UpdateComponentResponse'
, updateComponentResponse_entity
- Describes the configuration of the updated component.
$sel:httpStatus:UpdateComponentResponse'
, updateComponentResponse_httpStatus
- The response's http status code.
Response Lenses
updateComponentResponse_entity :: Lens' UpdateComponentResponse (Maybe Component) Source #
Describes the configuration of the updated component.
updateComponentResponse_httpStatus :: Lens' UpdateComponentResponse Int Source #
The response's http status code.