Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Instances
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:
$sel:controlId:GetControl'
, getControl_controlId
- The identifier for the specified control.
Request Lenses
getControl_controlId :: Lens' GetControl Text Source #
The identifier for the specified control.
Destructuring the Response
data GetControlResponse Source #
See: newGetControlResponse
smart constructor.
GetControlResponse' | |
|
Instances
newGetControlResponse Source #
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 returned by the GetControl
API.
$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 returned by the GetControl
API.
getControlResponse_httpStatus :: Lens' GetControlResponse Int Source #
The response's http status code.