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

Copyright(c) 2013-2018 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 #

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 #

See: getGroupPolicy smart constructor.

Instances
Eq GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Data GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.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 # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Show GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Generic GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Associated Types

type Rep GetGroupPolicy :: * -> * #

Hashable GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

AWSRequest GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Associated Types

type Rs GetGroupPolicy :: * #

ToHeaders GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

ToPath GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

ToQuery GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

NFData GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Methods

rnf :: GetGroupPolicy -> () #

type Rep GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

type Rep GetGroupPolicy = D1 (MetaData "GetGroupPolicy" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "GetGroupPolicy'" PrefixI True) (S1 (MetaSel (Just "_ggpGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ggpPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Request Lenses

ggpGroupName :: Lens' GetGroupPolicy Text #

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 #

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 #

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 # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Data GetGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

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 # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Show GetGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Generic GetGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Associated Types

type Rep GetGroupPolicyResponse :: * -> * #

NFData GetGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Methods

rnf :: GetGroupPolicyResponse -> () #

type Rep GetGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

type Rep GetGroupPolicyResponse = D1 (MetaData "GetGroupPolicyResponse" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "GetGroupPolicyResponse'" PrefixI True) ((S1 (MetaSel (Just "_ggprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_ggprsGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ggprsPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_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.