| 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.ControlTower.DisableControl
Description
This API call turns off a control. It starts an asynchronous operation that deletes AWS resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify.
Synopsis
- data DisableControl = DisableControl' {}
- newDisableControl :: Text -> Text -> DisableControl
- disableControl_controlIdentifier :: Lens' DisableControl Text
- disableControl_targetIdentifier :: Lens' DisableControl Text
- data DisableControlResponse = DisableControlResponse' {}
- newDisableControlResponse :: Int -> Text -> DisableControlResponse
- disableControlResponse_httpStatus :: Lens' DisableControlResponse Int
- disableControlResponse_operationIdentifier :: Lens' DisableControlResponse Text
Creating a Request
data DisableControl Source #
See: newDisableControl smart constructor.
Constructors
| DisableControl' | |
Fields
| |
Instances
Create a value of DisableControl 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:
DisableControl, disableControl_controlIdentifier - The ARN of the control. Only Strongly recommended and Elective
controls are permitted, with the exception of the Region deny
guardrail.
$sel:targetIdentifier:DisableControl', disableControl_targetIdentifier - The ARN of the organizational unit.
Request Lenses
disableControl_controlIdentifier :: Lens' DisableControl Text Source #
The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny guardrail.
disableControl_targetIdentifier :: Lens' DisableControl Text Source #
The ARN of the organizational unit.
Destructuring the Response
data DisableControlResponse Source #
See: newDisableControlResponse smart constructor.
Constructors
| DisableControlResponse' | |
Fields
| |
Instances
newDisableControlResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> DisableControlResponse |
Create a value of DisableControlResponse 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:httpStatus:DisableControlResponse', disableControlResponse_httpStatus - The response's http status code.
$sel:operationIdentifier:DisableControlResponse', disableControlResponse_operationIdentifier - The ID of the asynchronous operation, which is used to track status. The
operation is available for 90 days.
Response Lenses
disableControlResponse_httpStatus :: Lens' DisableControlResponse Int Source #
The response's http status code.
disableControlResponse_operationIdentifier :: Lens' DisableControlResponse Text Source #
The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.