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 |
Removes the specified managed policy from the specified IAM group.
A group can also have inline policies embedded with it. To delete an inline policy, use DeleteGroupPolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.
Synopsis
- data DetachGroupPolicy = DetachGroupPolicy' {}
- newDetachGroupPolicy :: Text -> Text -> DetachGroupPolicy
- detachGroupPolicy_groupName :: Lens' DetachGroupPolicy Text
- detachGroupPolicy_policyArn :: Lens' DetachGroupPolicy Text
- data DetachGroupPolicyResponse = DetachGroupPolicyResponse' {
- newDetachGroupPolicyResponse :: DetachGroupPolicyResponse
Creating a Request
data DetachGroupPolicy Source #
See: newDetachGroupPolicy
smart constructor.
DetachGroupPolicy' | |
|
Instances
:: Text | |
-> Text | |
-> DetachGroupPolicy |
Create a value of DetachGroupPolicy
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:groupName:DetachGroupPolicy'
, detachGroupPolicy_groupName
- The name (friendly name, not ARN) of the IAM group to detach the policy
from.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
$sel:policyArn:DetachGroupPolicy'
, detachGroupPolicy_policyArn
- The Amazon Resource Name (ARN) of the IAM policy you want to detach.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
Request Lenses
detachGroupPolicy_groupName :: Lens' DetachGroupPolicy Text Source #
The name (friendly name, not ARN) of the IAM group to detach the policy from.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
detachGroupPolicy_policyArn :: Lens' DetachGroupPolicy Text Source #
The Amazon Resource Name (ARN) of the IAM policy you want to detach.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
Destructuring the Response
data DetachGroupPolicyResponse Source #
See: newDetachGroupPolicyResponse
smart constructor.
Instances
Eq DetachGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachGroupPolicy | |
Read DetachGroupPolicyResponse Source # | |
Show DetachGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachGroupPolicy showsPrec :: Int -> DetachGroupPolicyResponse -> ShowS # show :: DetachGroupPolicyResponse -> String # showList :: [DetachGroupPolicyResponse] -> ShowS # | |
Generic DetachGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachGroupPolicy type Rep DetachGroupPolicyResponse :: Type -> Type # | |
NFData DetachGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachGroupPolicy rnf :: DetachGroupPolicyResponse -> () # | |
type Rep DetachGroupPolicyResponse Source # | |
newDetachGroupPolicyResponse :: DetachGroupPolicyResponse Source #
Create a value of DetachGroupPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.