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 |
Returns an existing component for an Amplify app.
Synopsis
- data GetComponent = GetComponent' {}
- newGetComponent :: Text -> Text -> Text -> GetComponent
- getComponent_appId :: Lens' GetComponent Text
- getComponent_environmentName :: Lens' GetComponent Text
- getComponent_id :: Lens' GetComponent Text
- data GetComponentResponse = GetComponentResponse' {
- component :: Maybe Component
- httpStatus :: Int
- newGetComponentResponse :: Int -> GetComponentResponse
- getComponentResponse_component :: Lens' GetComponentResponse (Maybe Component)
- getComponentResponse_httpStatus :: Lens' GetComponentResponse Int
Creating a Request
data GetComponent Source #
See: newGetComponent
smart constructor.
Instances
Create a value of GetComponent
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:
GetComponent
, getComponent_appId
- The unique ID of the Amplify app.
GetComponent
, getComponent_environmentName
- The name of the backend environment that is part of the Amplify app.
GetComponent
, getComponent_id
- The unique ID of the component.
Request Lenses
getComponent_appId :: Lens' GetComponent Text Source #
The unique ID of the Amplify app.
getComponent_environmentName :: Lens' GetComponent Text Source #
The name of the backend environment that is part of the Amplify app.
getComponent_id :: Lens' GetComponent Text Source #
The unique ID of the component.
Destructuring the Response
data GetComponentResponse Source #
See: newGetComponentResponse
smart constructor.
GetComponentResponse' | |
|
Instances
newGetComponentResponse Source #
Create a value of GetComponentResponse
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:component:GetComponentResponse'
, getComponentResponse_component
- Represents the configuration settings for the component.
$sel:httpStatus:GetComponentResponse'
, getComponentResponse_httpStatus
- The response's http status code.
Response Lenses
getComponentResponse_component :: Lens' GetComponentResponse (Maybe Component) Source #
Represents the configuration settings for the component.
getComponentResponse_httpStatus :: Lens' GetComponentResponse Int Source #
The response's http status code.