Copyright | (c) 2013-2021 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 |
Attaches a policy object to a regular object. An object can have a limited number of attached policies.
Synopsis
- data AttachPolicy = AttachPolicy' {}
- newAttachPolicy :: Text -> ObjectReference -> ObjectReference -> AttachPolicy
- attachPolicy_directoryArn :: Lens' AttachPolicy Text
- attachPolicy_policyReference :: Lens' AttachPolicy ObjectReference
- attachPolicy_objectReference :: Lens' AttachPolicy ObjectReference
- data AttachPolicyResponse = AttachPolicyResponse' {
- httpStatus :: Int
- newAttachPolicyResponse :: Int -> AttachPolicyResponse
- attachPolicyResponse_httpStatus :: Lens' AttachPolicyResponse Int
Creating a Request
data AttachPolicy Source #
See: newAttachPolicy
smart constructor.
AttachPolicy' | |
|
Instances
:: Text | |
-> ObjectReference | |
-> ObjectReference | |
-> AttachPolicy |
Create a value of AttachPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:directoryArn:AttachPolicy'
, attachPolicy_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where both objects reside. For more information, see arns.
$sel:policyReference:AttachPolicy'
, attachPolicy_policyReference
- The reference that is associated with the policy object.
$sel:objectReference:AttachPolicy'
, attachPolicy_objectReference
- The reference that identifies the object to which the policy will be
attached.
Request Lenses
attachPolicy_directoryArn :: Lens' AttachPolicy Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns.
attachPolicy_policyReference :: Lens' AttachPolicy ObjectReference Source #
The reference that is associated with the policy object.
attachPolicy_objectReference :: Lens' AttachPolicy ObjectReference Source #
The reference that identifies the object to which the policy will be attached.
Destructuring the Response
data AttachPolicyResponse Source #
See: newAttachPolicyResponse
smart constructor.
AttachPolicyResponse' | |
|
Instances
newAttachPolicyResponse Source #
Create a value of AttachPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AttachPolicyResponse'
, attachPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
attachPolicyResponse_httpStatus :: Lens' AttachPolicyResponse Int Source #
The response's http status code.