| 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.AuditManager.GetControl
Description
Returns a control from Audit Manager.
Synopsis
- data GetControl = GetControl' {}
- newGetControl :: Text -> GetControl
- getControl_controlId :: Lens' GetControl Text
- data GetControlResponse = GetControlResponse' {
- control :: Maybe Control
- httpStatus :: Int
- newGetControlResponse :: Int -> GetControlResponse
- getControlResponse_control :: Lens' GetControlResponse (Maybe Control)
- getControlResponse_httpStatus :: Lens' GetControlResponse Int
Creating a Request
data GetControl Source #
See: newGetControl smart constructor.
Constructors
| GetControl' | |
Instances
Arguments
| :: Text | |
| -> GetControl |
Create a value of GetControl 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:
GetControl, getControl_controlId - The identifier for the control.
Request Lenses
getControl_controlId :: Lens' GetControl Text Source #
The identifier for the control.
Destructuring the Response
data GetControlResponse Source #
See: newGetControlResponse smart constructor.
Constructors
| GetControlResponse' | |
Fields
| |
Instances
newGetControlResponse Source #
Arguments
| :: Int | |
| -> GetControlResponse |
Create a value of GetControlResponse 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:control:GetControlResponse', getControlResponse_control - The name of the control that the GetControl API returned.
$sel:httpStatus:GetControlResponse', getControlResponse_httpStatus - The response's http status code.
Response Lenses
getControlResponse_control :: Lens' GetControlResponse (Maybe Control) Source #
The name of the control that the GetControl API returned.
getControlResponse_httpStatus :: Lens' GetControlResponse Int Source #
The response's http status code.