amazonka-iam-1.4.5: 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 role's trust policy that grants permission to assume the role. For more information about roles, see Working with Roles .

Synopsis

Creating a Request

getRole #

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:

  • grRoleName - The name of the IAM role to get information about. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

data GetRole #

See: getRole smart constructor.

Instances

Eq GetRole # 

Methods

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

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

Data GetRole # 

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 # 
Show GetRole # 
Generic GetRole # 

Associated Types

type Rep GetRole :: * -> * #

Methods

from :: GetRole -> Rep GetRole x #

to :: Rep GetRole x -> GetRole #

Hashable GetRole # 

Methods

hashWithSalt :: Int -> GetRole -> Int #

hash :: GetRole -> Int #

NFData GetRole # 

Methods

rnf :: GetRole -> () #

AWSRequest GetRole # 

Associated Types

type Rs GetRole :: * #

ToQuery GetRole # 
ToPath GetRole # 

Methods

toPath :: GetRole -> ByteString #

ToHeaders GetRole # 

Methods

toHeaders :: GetRole -> [Header] #

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

Request Lenses

grRoleName :: Lens' GetRole Text #

The name of the IAM role to get information about. The regex pattern for this parameter is 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

getRoleResponse #

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 #

Contains the response to a successful GetRole request.

See: getRoleResponse smart constructor.

Instances

Eq GetRoleResponse # 
Data GetRoleResponse # 

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

Methods

rnf :: GetRoleResponse -> () #

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

Response Lenses

grrsResponseStatus :: Lens' GetRoleResponse Int #

  • - | The response status code.

grrsRole :: Lens' GetRoleResponse Role #

A structure containing details about the IAM role.