| 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.DetachPolicy
Description
Detaches a policy from an object.
Synopsis
- data DetachPolicy = DetachPolicy' {}
- newDetachPolicy :: Text -> ObjectReference -> ObjectReference -> DetachPolicy
- detachPolicy_directoryArn :: Lens' DetachPolicy Text
- detachPolicy_policyReference :: Lens' DetachPolicy ObjectReference
- detachPolicy_objectReference :: Lens' DetachPolicy ObjectReference
- data DetachPolicyResponse = DetachPolicyResponse' {
- httpStatus :: Int
- newDetachPolicyResponse :: Int -> DetachPolicyResponse
- detachPolicyResponse_httpStatus :: Lens' DetachPolicyResponse Int
Creating a Request
data DetachPolicy Source #
See: newDetachPolicy smart constructor.
Constructors
| DetachPolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ObjectReference | |
| -> ObjectReference | |
| -> DetachPolicy |
Create a value of DetachPolicy 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:
DetachPolicy, detachPolicy_directoryArn - The Amazon Resource Name (ARN) that is associated with the Directory
where both objects reside. For more information, see arns.
DetachPolicy, detachPolicy_policyReference - Reference that identifies the policy object.
DetachPolicy, detachPolicy_objectReference - Reference that identifies the object whose policy object will be
detached.
Request Lenses
detachPolicy_directoryArn :: Lens' DetachPolicy Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns.
detachPolicy_policyReference :: Lens' DetachPolicy ObjectReference Source #
Reference that identifies the policy object.
detachPolicy_objectReference :: Lens' DetachPolicy ObjectReference Source #
Reference that identifies the object whose policy object will be detached.
Destructuring the Response
data DetachPolicyResponse Source #
See: newDetachPolicyResponse smart constructor.
Constructors
| DetachPolicyResponse' | |
Fields
| |
Instances
newDetachPolicyResponse Source #
Arguments
| :: Int | |
| -> DetachPolicyResponse |
Create a value of DetachPolicyResponse 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:DetachPolicyResponse', detachPolicyResponse_httpStatus - The response's http status code.
Response Lenses
detachPolicyResponse_httpStatus :: Lens' DetachPolicyResponse Int Source #
The response's http status code.