| 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.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
Arguments
| :: Text | |
| -> Text | |
| -> 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_policyName - The policy to detach.
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.