| 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 |
Network.AWS.CloudDirectory.DetachPolicy
Description
Detaches a policy from an object.
Synopsis
- detachPolicy :: Text -> ObjectReference -> ObjectReference -> DetachPolicy
- data DetachPolicy
- dpDirectoryARN :: Lens' DetachPolicy Text
- dpPolicyReference :: Lens' DetachPolicy ObjectReference
- dpObjectReference :: Lens' DetachPolicy ObjectReference
- detachPolicyResponse :: Int -> DetachPolicyResponse
- data DetachPolicyResponse
- dprsResponseStatus :: Lens' DetachPolicyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ObjectReference | |
| -> ObjectReference | |
| -> DetachPolicy |
Creates a value of DetachPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dpDirectoryARN- The Amazon Resource Name (ARN) that is associated with theDirectorywhere both objects reside. For more information, seearns.dpPolicyReference- Reference that identifies the policy object.dpObjectReference- Reference that identifies the object whose policy object will be detached.
data DetachPolicy Source #
See: detachPolicy smart constructor.
Instances
Request Lenses
dpDirectoryARN :: Lens' DetachPolicy Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns .
dpPolicyReference :: Lens' DetachPolicy ObjectReference Source #
Reference that identifies the policy object.
dpObjectReference :: Lens' DetachPolicy ObjectReference Source #
Reference that identifies the object whose policy object will be detached.
Destructuring the Response
Arguments
| :: Int | |
| -> DetachPolicyResponse |
Creates a value of DetachPolicyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dprsResponseStatus- -- | The response status code.
data DetachPolicyResponse Source #
See: detachPolicyResponse smart constructor.
Instances
Response Lenses
dprsResponseStatus :: Lens' DetachPolicyResponse Int Source #
- - | The response status code.