Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Attaches the specified managed policy to the specified IAM group.
You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.
Creating a Request
Creates a value of AttachGroupPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AttachGroupPolicy Source #
See: attachGroupPolicy
smart constructor.
Request Lenses
agpGroupName :: Lens' AttachGroupPolicy Text Source #
The name (friendly name, not ARN) of the group to attach the policy to.
The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.'-
agpPolicyARN :: Lens' AttachGroupPolicy Text Source #
The Amazon Resource Name (ARN) of the IAM policy you want to attach.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Destructuring the Response
attachGroupPolicyResponse :: AttachGroupPolicyResponse Source #
Creates a value of AttachGroupPolicyResponse
with the minimum fields required to make a request.
data AttachGroupPolicyResponse Source #
See: attachGroupPolicyResponse
smart constructor.