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 |
Deletes the specified inline policy that is embedded in the specified IAM group.
A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.
Synopsis
- data DeleteGroupPolicy = DeleteGroupPolicy' {
- groupName :: Text
- policyName :: Text
- newDeleteGroupPolicy :: Text -> Text -> DeleteGroupPolicy
- deleteGroupPolicy_groupName :: Lens' DeleteGroupPolicy Text
- deleteGroupPolicy_policyName :: Lens' DeleteGroupPolicy Text
- data DeleteGroupPolicyResponse = DeleteGroupPolicyResponse' {
- newDeleteGroupPolicyResponse :: DeleteGroupPolicyResponse
Creating a Request
data DeleteGroupPolicy Source #
See: newDeleteGroupPolicy
smart constructor.
DeleteGroupPolicy' | |
|
Instances
:: Text | |
-> Text | |
-> DeleteGroupPolicy |
Create a value of DeleteGroupPolicy
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:DeleteGroupPolicy'
, deleteGroupPolicy_groupName
- The name (friendly name, not ARN) identifying the group that the policy
is embedded in.
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:policyName:DeleteGroupPolicy'
, deleteGroupPolicy_policyName
- The name identifying the policy document to delete.
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: _+=,.@-
Request Lenses
deleteGroupPolicy_groupName :: Lens' DeleteGroupPolicy Text Source #
The name (friendly name, not ARN) identifying the group that the policy is embedded in.
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: _+=,.@-
deleteGroupPolicy_policyName :: Lens' DeleteGroupPolicy Text Source #
The name identifying the policy document to delete.
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: _+=,.@-
Destructuring the Response
data DeleteGroupPolicyResponse Source #
See: newDeleteGroupPolicyResponse
smart constructor.
Instances
Eq DeleteGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteGroupPolicy | |
Read DeleteGroupPolicyResponse Source # | |
Show DeleteGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteGroupPolicy showsPrec :: Int -> DeleteGroupPolicyResponse -> ShowS # show :: DeleteGroupPolicyResponse -> String # showList :: [DeleteGroupPolicyResponse] -> ShowS # | |
Generic DeleteGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteGroupPolicy type Rep DeleteGroupPolicyResponse :: Type -> Type # | |
NFData DeleteGroupPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteGroupPolicy rnf :: DeleteGroupPolicyResponse -> () # | |
type Rep DeleteGroupPolicyResponse Source # | |
newDeleteGroupPolicyResponse :: DeleteGroupPolicyResponse Source #
Create a value of DeleteGroupPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.