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.GetRolePolicy

Contents

Description

Retrieves the specified inline policy document that is embedded with the specified IAM role.

An IAM role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, 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 .

For more information about roles, see Using Roles to Delegate Permissions and Federate Identities .

Synopsis

Creating a Request

getRolePolicy #

Creates a value of GetRolePolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • grpRoleName - The name of the role associated with the policy. 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: _+=,.@-
  • grpPolicyName - 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 GetRolePolicy #

See: getRolePolicy smart constructor.

Instances
Eq GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Data GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Methods

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

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

toConstr :: GetRolePolicy -> Constr #

dataTypeOf :: GetRolePolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Show GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Generic GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Associated Types

type Rep GetRolePolicy :: * -> * #

Hashable GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

AWSRequest GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Associated Types

type Rs GetRolePolicy :: * #

ToHeaders GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

ToPath GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

ToQuery GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

NFData GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Methods

rnf :: GetRolePolicy -> () #

type Rep GetRolePolicy # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

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

Defined in Network.AWS.IAM.GetRolePolicy

Request Lenses

grpRoleName :: Lens' GetRolePolicy Text #

The name of the role associated with the policy. 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: _+=,.@-

grpPolicyName :: Lens' GetRolePolicy 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

getRolePolicyResponse #

Creates a value of GetRolePolicyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetRolePolicyResponse #

Contains the response to a successful GetRolePolicy request.

See: getRolePolicyResponse smart constructor.

Instances
Eq GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Data GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Methods

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

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

toConstr :: GetRolePolicyResponse -> Constr #

dataTypeOf :: GetRolePolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Show GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Generic GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Associated Types

type Rep GetRolePolicyResponse :: * -> * #

NFData GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

Methods

rnf :: GetRolePolicyResponse -> () #

type Rep GetRolePolicyResponse # 
Instance details

Defined in Network.AWS.IAM.GetRolePolicy

type Rep GetRolePolicyResponse = D1 (MetaData "GetRolePolicyResponse" "Network.AWS.IAM.GetRolePolicy" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "GetRolePolicyResponse'" PrefixI True) ((S1 (MetaSel (Just "_grprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_grprsRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_grprsPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_grprsPolicyDocument") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

Response Lenses

grprsResponseStatus :: Lens' GetRolePolicyResponse Int #

  • - | The response status code.

grprsRoleName :: Lens' GetRolePolicyResponse Text #

The role the policy is associated with.