Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Disables an organizational control policy type in a root. A policy of a certain type can be attached to entities in a root only if that type is enabled in the root. After you perform this operation, you no longer can attach policies of the specified type to that root or to any OU or account in that root. You can undo this by using the EnablePolicyType
operation.
This operation can be called only from the organization's master account.
Synopsis
- disablePolicyType :: Text -> PolicyType -> DisablePolicyType
- data DisablePolicyType
- dptRootId :: Lens' DisablePolicyType Text
- dptPolicyType :: Lens' DisablePolicyType PolicyType
- disablePolicyTypeResponse :: Int -> DisablePolicyTypeResponse
- data DisablePolicyTypeResponse
- dptrsRoot :: Lens' DisablePolicyTypeResponse (Maybe Root)
- dptrsResponseStatus :: Lens' DisablePolicyTypeResponse Int
Creating a Request
Creates a value of DisablePolicyType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dptRootId
- The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from theListRoots
operation. The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.dptPolicyType
- The policy type that you want to disable in this root.
data DisablePolicyType Source #
See: disablePolicyType
smart constructor.
Instances
Request Lenses
dptRootId :: Lens' DisablePolicyType Text Source #
The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from the ListRoots
operation. The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lower-case letters or digits.
dptPolicyType :: Lens' DisablePolicyType PolicyType Source #
The policy type that you want to disable in this root.
Destructuring the Response
disablePolicyTypeResponse Source #
Creates a value of DisablePolicyTypeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dptrsRoot
- A structure that shows the root with the updated list of enabled policy types.dptrsResponseStatus
- -- | The response status code.
data DisablePolicyTypeResponse Source #
See: disablePolicyTypeResponse
smart constructor.
Instances
Response Lenses
dptrsRoot :: Lens' DisablePolicyTypeResponse (Maybe Root) Source #
A structure that shows the root with the updated list of enabled policy types.
dptrsResponseStatus :: Lens' DisablePolicyTypeResponse Int Source #
- - | The response status code.