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.IAM.DetachGroupPolicy
Description
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.
Constructors
DetachGroupPolicy' | |
Fields
|
Instances
Arguments
:: 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.
Constructors
DetachGroupPolicyResponse' | |
Instances
newDetachGroupPolicyResponse :: DetachGroupPolicyResponse Source #
Create a value of DetachGroupPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.