| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudDirectory.AttachPolicy
Description
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.
Constructors
| AttachPolicy' | |
Fields
| |
Instances
Arguments
| :: 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:
AttachPolicy, attachPolicy_directoryArn - The Amazon Resource Name (ARN) that is associated with the Directory
where both objects reside. For more information, see arns.
AttachPolicy, attachPolicy_policyReference - The reference that is associated with the policy object.
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.
Constructors
| AttachPolicyResponse' | |
Fields
| |
Instances
newAttachPolicyResponse Source #
Arguments
| :: Int | |
| -> AttachPolicyResponse |
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.