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 |
Retrieves the specified inline policy document that is embedded in the specified IAM group.
Policies returned by this API are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode
method of the 'java.net.URLDecoder' utility class in the Java SDK. Other languages and SDKs provide similar functionality.
An IAM group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide.
- getGroupPolicy :: Text -> Text -> GetGroupPolicy
- data GetGroupPolicy
- ggpGroupName :: Lens' GetGroupPolicy Text
- ggpPolicyName :: Lens' GetGroupPolicy Text
- getGroupPolicyResponse :: Int -> Text -> Text -> Text -> GetGroupPolicyResponse
- data GetGroupPolicyResponse
- ggprsResponseStatus :: Lens' GetGroupPolicyResponse Int
- ggprsGroupName :: Lens' GetGroupPolicyResponse Text
- ggprsPolicyName :: Lens' GetGroupPolicyResponse Text
- ggprsPolicyDocument :: Lens' GetGroupPolicyResponse Text
Creating a Request
Creates a value of GetGroupPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetGroupPolicy Source #
See: getGroupPolicy
smart constructor.
Request Lenses
ggpGroupName :: Lens' GetGroupPolicy Text Source #
The name of the group the policy is associated with.
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: =,.'-
ggpPolicyName :: Lens' GetGroupPolicy Text Source #
The name of the policy document to get.
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: =,.'-
Destructuring the Response
getGroupPolicyResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> GetGroupPolicyResponse |
Creates a value of GetGroupPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetGroupPolicyResponse Source #
Contains the response to a successful GetGroupPolicy request.
See: getGroupPolicyResponse
smart constructor.
Response Lenses
ggprsResponseStatus :: Lens' GetGroupPolicyResponse Int Source #
The response status code.
ggprsGroupName :: Lens' GetGroupPolicyResponse Text Source #
The group the policy is associated with.
ggprsPolicyName :: Lens' GetGroupPolicyResponse Text Source #
The name of the policy.
ggprsPolicyDocument :: Lens' GetGroupPolicyResponse Text Source #
The policy document.