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 |
Enables a policy type in a root. After you enable a policy type in a root, you can attach policies of that type to the root, any OU, or account in that root. You can undo this by using the DisablePolicyType
operation.
This operation can be called only from the organization's master account.
You can enable a policy type in a root only if that policy type is available in the organization. Use DescribeOrganization
to view the status of available policy types in the organization.
To view the status of policy type in a root, use ListRoots
.
Synopsis
- enablePolicyType :: Text -> PolicyType -> EnablePolicyType
- data EnablePolicyType
- eptRootId :: Lens' EnablePolicyType Text
- eptPolicyType :: Lens' EnablePolicyType PolicyType
- enablePolicyTypeResponse :: Int -> EnablePolicyTypeResponse
- data EnablePolicyTypeResponse
- eptrsRoot :: Lens' EnablePolicyTypeResponse (Maybe Root)
- eptrsResponseStatus :: Lens' EnablePolicyTypeResponse Int
Creating a Request
Creates a value of EnablePolicyType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
eptRootId
- The unique identifier (ID) of the root in which you want to enable 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.eptPolicyType
- The policy type that you want to enable.
data EnablePolicyType Source #
See: enablePolicyType
smart constructor.
Instances
Request Lenses
eptRootId :: Lens' EnablePolicyType Text Source #
The unique identifier (ID) of the root in which you want to enable 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.
eptPolicyType :: Lens' EnablePolicyType PolicyType Source #
The policy type that you want to enable.
Destructuring the Response
enablePolicyTypeResponse Source #
Creates a value of EnablePolicyTypeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
eptrsRoot
- A structure that shows the root with the updated list of enabled policy types.eptrsResponseStatus
- -- | The response status code.
data EnablePolicyTypeResponse Source #
See: enablePolicyTypeResponse
smart constructor.
Instances
Response Lenses
eptrsRoot :: Lens' EnablePolicyTypeResponse (Maybe Root) Source #
A structure that shows the root with the updated list of enabled policy types.
eptrsResponseStatus :: Lens' EnablePolicyTypeResponse Int Source #
- - | The response status code.