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 |
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.
DetachPolicy' | |
|
Instances
:: 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:
$sel:directoryArn:DetachPolicy'
, detachPolicy_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where both objects reside. For more information, see arns.
$sel:policyReference:DetachPolicy'
, detachPolicy_policyReference
- Reference that identifies the policy object.
$sel:objectReference: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.
DetachPolicyResponse' | |
|
Instances
newDetachPolicyResponse Source #
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.