| 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.Proton.GetComponent
Description
Get detailed data for a component.
For more information about components, see Proton components in the Proton User Guide.
Synopsis
- data GetComponent = GetComponent' {}
- newGetComponent :: Text -> GetComponent
- getComponent_name :: 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.
Constructors
| GetComponent' | |
Instances
Arguments
| :: Text | |
| -> GetComponent |
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_name - The name of the component that you want to get the detailed data for.
Request Lenses
getComponent_name :: Lens' GetComponent Text Source #
The name of the component that you want to get the detailed data for.
Destructuring the Response
data GetComponentResponse Source #
See: newGetComponentResponse smart constructor.
Constructors
| GetComponentResponse' | |
Fields
| |
Instances
newGetComponentResponse Source #
Arguments
| :: Int | |
| -> GetComponentResponse |
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 - The detailed data of the requested component.
$sel:httpStatus:GetComponentResponse', getComponentResponse_httpStatus - The response's http status code.
Response Lenses
getComponentResponse_component :: Lens' GetComponentResponse (Maybe Component) Source #
The detailed data of the requested component.
getComponentResponse_httpStatus :: Lens' GetComponentResponse Int Source #
The response's http status code.