amazonka-iam-1.4.5: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.GetGroupPolicy

Contents

Description

Retrieves the specified inline policy document that is embedded in the specified IAM group.

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 .

Synopsis

Creating a Request

getGroupPolicy #

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:

  • ggpGroupName - 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 - 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: =,.@-

data GetGroupPolicy #

See: getGroupPolicy smart constructor.

Instances

Eq GetGroupPolicy # 
Data GetGroupPolicy # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetGroupPolicy -> c GetGroupPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetGroupPolicy #

toConstr :: GetGroupPolicy -> Constr #

dataTypeOf :: GetGroupPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetGroupPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetGroupPolicy) #

gmapT :: (forall b. Data b => b -> b) -> GetGroupPolicy -> GetGroupPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetGroupPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetGroupPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetGroupPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetGroupPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetGroupPolicy -> m GetGroupPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGroupPolicy -> m GetGroupPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGroupPolicy -> m GetGroupPolicy #

Read GetGroupPolicy # 
Show GetGroupPolicy # 
Generic GetGroupPolicy # 

Associated Types

type Rep GetGroupPolicy :: * -> * #

Hashable GetGroupPolicy # 
NFData GetGroupPolicy # 

Methods

rnf :: GetGroupPolicy -> () #

AWSRequest GetGroupPolicy # 
ToQuery GetGroupPolicy # 
ToPath GetGroupPolicy # 
ToHeaders GetGroupPolicy # 
type Rep GetGroupPolicy # 
type Rep GetGroupPolicy = D1 (MetaData "GetGroupPolicy" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "GetGroupPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ggpGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ggpPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetGroupPolicy # 

Request Lenses

ggpGroupName :: Lens' GetGroupPolicy Text #

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 #

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 #

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 #

Contains the response to a successful GetGroupPolicy request.

See: getGroupPolicyResponse smart constructor.

Instances

Eq GetGroupPolicyResponse # 
Data GetGroupPolicyResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetGroupPolicyResponse -> c GetGroupPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetGroupPolicyResponse #

toConstr :: GetGroupPolicyResponse -> Constr #

dataTypeOf :: GetGroupPolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetGroupPolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetGroupPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetGroupPolicyResponse -> GetGroupPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetGroupPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetGroupPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetGroupPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetGroupPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetGroupPolicyResponse -> m GetGroupPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGroupPolicyResponse -> m GetGroupPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGroupPolicyResponse -> m GetGroupPolicyResponse #

Read GetGroupPolicyResponse # 
Show GetGroupPolicyResponse # 
Generic GetGroupPolicyResponse # 
NFData GetGroupPolicyResponse # 

Methods

rnf :: GetGroupPolicyResponse -> () #

type Rep GetGroupPolicyResponse # 
type Rep GetGroupPolicyResponse = D1 (MetaData "GetGroupPolicyResponse" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "GetGroupPolicyResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ggprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_ggprsGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ggprsPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ggprsPolicyDocument") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

Response Lenses

ggprsResponseStatus :: Lens' GetGroupPolicyResponse Int #

  • - | The response status code.

ggprsGroupName :: Lens' GetGroupPolicyResponse Text #

The group the policy is associated with.