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 |
This API call activates a control. It starts an asynchronous operation that creates AWS resources on the specified organizational unit and the accounts it contains. The resources created will vary according to the control that you specify.
Synopsis
- data EnableControl = EnableControl' {}
- newEnableControl :: Text -> Text -> EnableControl
- enableControl_controlIdentifier :: Lens' EnableControl Text
- enableControl_targetIdentifier :: Lens' EnableControl Text
- data EnableControlResponse = EnableControlResponse' {}
- newEnableControlResponse :: Int -> Text -> EnableControlResponse
- enableControlResponse_httpStatus :: Lens' EnableControlResponse Int
- enableControlResponse_operationIdentifier :: Lens' EnableControlResponse Text
Creating a Request
data EnableControl Source #
See: newEnableControl
smart constructor.
EnableControl' | |
|
Instances
Create a value of EnableControl
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:
EnableControl
, enableControl_controlIdentifier
- The ARN of the control. Only Strongly recommended and Elective
controls are permitted, with the exception of the Region deny
guardrail.
$sel:targetIdentifier:EnableControl'
, enableControl_targetIdentifier
- The ARN of the organizational unit.
Request Lenses
enableControl_controlIdentifier :: Lens' EnableControl Text Source #
The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny guardrail.
enableControl_targetIdentifier :: Lens' EnableControl Text Source #
The ARN of the organizational unit.
Destructuring the Response
data EnableControlResponse Source #
See: newEnableControlResponse
smart constructor.
EnableControlResponse' | |
|
Instances
newEnableControlResponse Source #
:: Int | |
-> Text | |
-> EnableControlResponse |
Create a value of EnableControlResponse
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:EnableControlResponse'
, enableControlResponse_httpStatus
- The response's http status code.
$sel:operationIdentifier:EnableControlResponse'
, enableControlResponse_operationIdentifier
- The ID of the asynchronous operation, which is used to track status. The
operation is available for 90 days.
Response Lenses
enableControlResponse_httpStatus :: Lens' EnableControlResponse Int Source #
The response's http status code.
enableControlResponse_operationIdentifier :: Lens' EnableControlResponse Text Source #
The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.