amazonka-iam-1.6.1: 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 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 # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Data GetGroupPolicy Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Show GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Generic GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Associated Types

type Rep GetGroupPolicy :: Type -> Type #

Hashable GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

AWSRequest GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Associated Types

type Rs GetGroupPolicy :: Type #

ToHeaders GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

ToPath GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

ToQuery GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

NFData GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Methods

rnf :: GetGroupPolicy -> () #

type Rep GetGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

type Rep GetGroupPolicy = D1 (MetaData "GetGroupPolicy" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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 Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

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

Defined in Network.AWS.IAM.GetGroupPolicy

Data GetGroupPolicyResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Show GetGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Generic GetGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Associated Types

type Rep GetGroupPolicyResponse :: Type -> Type #

NFData GetGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

Methods

rnf :: GetGroupPolicyResponse -> () #

type Rep GetGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.GetGroupPolicy

type Rep GetGroupPolicyResponse = D1 (MetaData "GetGroupPolicyResponse" "Network.AWS.IAM.GetGroupPolicy" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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

ggprsGroupName :: Lens' GetGroupPolicyResponse Text Source #

The group the policy is associated with.