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

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 Source #

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. This parameter allows (per 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: =,.@-
  • ggpPolicyName - The name of the policy document to get. This parameter allows (per 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: =,.@-+

data GetGroupPolicy Source #

See: getGroupPolicy smart constructor.

Instances

Eq GetGroupPolicy Source # 
Data GetGroupPolicy Source # 

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 Source # 
Show GetGroupPolicy Source # 
Generic GetGroupPolicy Source # 

Associated Types

type Rep GetGroupPolicy :: * -> * #

Hashable GetGroupPolicy Source # 
NFData GetGroupPolicy Source # 

Methods

rnf :: GetGroupPolicy -> () #

AWSRequest GetGroupPolicy Source # 
ToQuery GetGroupPolicy Source # 
ToPath GetGroupPolicy Source # 
ToHeaders GetGroupPolicy Source # 
type Rep GetGroupPolicy Source # 
type Rep GetGroupPolicy = D1 (MetaData "GetGroupPolicy" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" 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 Source # 

Request Lenses

ggpGroupName :: Lens' GetGroupPolicy Text Source #

The name of the group the policy is associated with. This parameter allows (per 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: =,.@-

ggpPolicyName :: Lens' GetGroupPolicy Text Source #

The name of the policy document to get. This parameter allows (per 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

getGroupPolicyResponse Source #

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.

Instances

Eq GetGroupPolicyResponse Source # 
Data GetGroupPolicyResponse Source # 

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 Source # 
Show GetGroupPolicyResponse Source # 
Generic GetGroupPolicyResponse Source # 
NFData GetGroupPolicyResponse Source # 

Methods

rnf :: GetGroupPolicyResponse -> () #

type Rep GetGroupPolicyResponse Source # 
type Rep GetGroupPolicyResponse = D1 (MetaData "GetGroupPolicyResponse" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "GetGroupPolicyResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ggprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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

ggprsGroupName :: Lens' GetGroupPolicyResponse Text Source #

The group the policy is associated with.