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 the specified target.
Because of the distributed nature of Amazon Web Services, it can take up to five minutes after a policy is detached before it's ready to be deleted.
Requires permission to access the DetachPolicy action.
Synopsis
- data DetachPolicy = DetachPolicy' {
- policyName :: Text
- target :: Text
- newDetachPolicy :: Text -> Text -> DetachPolicy
- detachPolicy_policyName :: Lens' DetachPolicy Text
- detachPolicy_target :: Lens' DetachPolicy Text
- data DetachPolicyResponse = DetachPolicyResponse' {
- newDetachPolicyResponse :: DetachPolicyResponse
Creating a Request
data DetachPolicy Source #
See: newDetachPolicy
smart constructor.
DetachPolicy' | |
|
Instances
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:policyName:DetachPolicy'
, detachPolicy_policyName
- The policy to detach.
$sel:target:DetachPolicy'
, detachPolicy_target
- The target from which the policy will be detached.
Request Lenses
detachPolicy_policyName :: Lens' DetachPolicy Text Source #
The policy to detach.
detachPolicy_target :: Lens' DetachPolicy Text Source #
The target from which the policy will be detached.
Destructuring the Response
data DetachPolicyResponse Source #
See: newDetachPolicyResponse
smart constructor.
Instances
Eq DetachPolicyResponse Source # | |
Defined in Amazonka.IoT.DetachPolicy (==) :: DetachPolicyResponse -> DetachPolicyResponse -> Bool # (/=) :: DetachPolicyResponse -> DetachPolicyResponse -> Bool # | |
Read DetachPolicyResponse Source # | |
Defined in Amazonka.IoT.DetachPolicy | |
Show DetachPolicyResponse Source # | |
Defined in Amazonka.IoT.DetachPolicy showsPrec :: Int -> DetachPolicyResponse -> ShowS # show :: DetachPolicyResponse -> String # showList :: [DetachPolicyResponse] -> ShowS # | |
Generic DetachPolicyResponse Source # | |
Defined in Amazonka.IoT.DetachPolicy type Rep DetachPolicyResponse :: Type -> Type # from :: DetachPolicyResponse -> Rep DetachPolicyResponse x # to :: Rep DetachPolicyResponse x -> DetachPolicyResponse # | |
NFData DetachPolicyResponse Source # | |
Defined in Amazonka.IoT.DetachPolicy rnf :: DetachPolicyResponse -> () # | |
type Rep DetachPolicyResponse Source # | |
newDetachPolicyResponse :: DetachPolicyResponse Source #
Create a value of DetachPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.