amazonka-iam-1.4.1: 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.GetRole

Contents

Description

Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to assume the role. For more information about ARNs, go to ARNs. For more information about roles, go to Working with Roles.

Synopsis

Creating a Request

getRole Source #

Arguments

:: Text

grRoleName

-> GetRole 

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

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

data GetRole Source #

See: getRole smart constructor.

Instances

Eq GetRole Source # 

Methods

(==) :: GetRole -> GetRole -> Bool #

(/=) :: GetRole -> GetRole -> Bool #

Data GetRole Source # 

Methods

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

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

toConstr :: GetRole -> Constr #

dataTypeOf :: GetRole -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRole Source # 
Show GetRole Source # 
Generic GetRole Source # 

Associated Types

type Rep GetRole :: * -> * #

Methods

from :: GetRole -> Rep GetRole x #

to :: Rep GetRole x -> GetRole #

Hashable GetRole Source # 

Methods

hashWithSalt :: Int -> GetRole -> Int #

hash :: GetRole -> Int #

NFData GetRole Source # 

Methods

rnf :: GetRole -> () #

AWSRequest GetRole Source # 

Associated Types

type Rs GetRole :: * #

ToQuery GetRole Source # 
ToPath GetRole Source # 

Methods

toPath :: GetRole -> ByteString #

ToHeaders GetRole Source # 

Methods

toHeaders :: GetRole -> [Header] #

type Rep GetRole Source # 
type Rep GetRole = D1 (MetaData "GetRole" "Network.AWS.IAM.GetRole" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" True) (C1 (MetaCons "GetRole'" PrefixI True) (S1 (MetaSel (Just Symbol "_grRoleName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetRole Source # 

Request Lenses

grRoleName :: Lens' GetRole Text Source #

The name of the role to get information about.

Destructuring the Response

getRoleResponse Source #

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

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

data GetRoleResponse Source #

Contains the response to a successful GetRole request.

See: getRoleResponse smart constructor.

Instances

Eq GetRoleResponse Source # 
Data GetRoleResponse Source # 

Methods

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

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

toConstr :: GetRoleResponse -> Constr #

dataTypeOf :: GetRoleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRoleResponse Source # 
Show GetRoleResponse Source # 
Generic GetRoleResponse Source # 
NFData GetRoleResponse Source # 

Methods

rnf :: GetRoleResponse -> () #

type Rep GetRoleResponse Source # 
type Rep GetRoleResponse = D1 (MetaData "GetRoleResponse" "Network.AWS.IAM.GetRole" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "GetRoleResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_grrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_grrsRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Role))))

Response Lenses

grrsResponseStatus :: Lens' GetRoleResponse Int Source #

The response status code.

grrsRole :: Lens' GetRoleResponse Role Source #

Information about the role.