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 |
Amazonka.IoT.DetachPolicy
Description
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.
Constructors
DetachPolicy' | |
Fields
|
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.
Constructors
DetachPolicyResponse' | |
Instances
newDetachPolicyResponse :: DetachPolicyResponse Source #
Create a value of DetachPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.