Copyright | (c) 2013-2017 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 |
Attaches a policy object to a regular object. An object can have a limited number of attached policies.
- attachPolicy :: ObjectReference -> ObjectReference -> AttachPolicy
- data AttachPolicy
- apDirectoryARN :: Lens' AttachPolicy (Maybe Text)
- apPolicyReference :: Lens' AttachPolicy ObjectReference
- apObjectReference :: Lens' AttachPolicy ObjectReference
- attachPolicyResponse :: Int -> AttachPolicyResponse
- data AttachPolicyResponse
- aprsResponseStatus :: Lens' AttachPolicyResponse Int
Creating a Request
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 theDirectory
where 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.
Request Lenses
apDirectoryARN :: Lens' AttachPolicy (Maybe 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
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.
Response Lenses
aprsResponseStatus :: Lens' AttachPolicyResponse Int Source #
- - | The response status code.