| 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.AttachPolicy
Description
Attaches a policy object to a regular object. An object can have a limited number of attached policies.
Synopsis
- attachPolicy :: Text -> ObjectReference -> ObjectReference -> AttachPolicy
- data AttachPolicy
- apDirectoryARN :: Lens' AttachPolicy Text
- apPolicyReference :: Lens' AttachPolicy ObjectReference
- apObjectReference :: Lens' AttachPolicy ObjectReference
- attachPolicyResponse :: Int -> AttachPolicyResponse
- data AttachPolicyResponse
- aprsResponseStatus :: Lens' AttachPolicyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ObjectReference | |
| -> ObjectReference | |
| -> AttachPolicy |
Creates a value of AttachPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apDirectoryARN- The Amazon Resource Name (ARN) that is associated with theDirectorywhere both objects reside. For more information, seearns.apPolicyReference- The reference that is associated with the policy object.apObjectReference- The reference that identifies the object to which the policy will be attached.
data AttachPolicy Source #
See: attachPolicy smart constructor.
Instances
Request Lenses
apDirectoryARN :: Lens' AttachPolicy Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns .
apPolicyReference :: Lens' AttachPolicy ObjectReference Source #
The reference that is associated with the policy object.
apObjectReference :: Lens' AttachPolicy ObjectReference Source #
The reference that identifies the object to which the policy will be attached.
Destructuring the Response
Arguments
| :: Int | |
| -> AttachPolicyResponse |
Creates a value of AttachPolicyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aprsResponseStatus- -- | The response status code.
data AttachPolicyResponse Source #
See: attachPolicyResponse smart constructor.
Instances
Response Lenses
aprsResponseStatus :: Lens' AttachPolicyResponse Int Source #
- - | The response status code.