Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.IAM.GetRole
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
- getRole :: Text -> GetRole
- data GetRole
- grRoleName :: Lens' GetRole Text
- getRoleResponse :: Int -> Role -> GetRoleResponse
- data GetRoleResponse
- grrsResponseStatus :: Lens' GetRoleResponse Int
- grrsRole :: Lens' GetRoleResponse Role
Creating a Request
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. 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: _+=,.@-
See: getRole
smart constructor.
Instances
Eq GetRole Source # | |
Data GetRole Source # | |
Defined in Network.AWS.IAM.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 Source # | |
Show GetRole Source # | |
Generic GetRole Source # | |
Hashable GetRole Source # | |
Defined in Network.AWS.IAM.GetRole | |
AWSRequest GetRole Source # | |
ToHeaders GetRole Source # | |
Defined in Network.AWS.IAM.GetRole | |
ToPath GetRole Source # | |
Defined in Network.AWS.IAM.GetRole Methods toPath :: GetRole -> ByteString # | |
ToQuery GetRole Source # | |
Defined in Network.AWS.IAM.GetRole Methods toQuery :: GetRole -> QueryString # | |
NFData GetRole Source # | |
Defined in Network.AWS.IAM.GetRole | |
type Rep GetRole Source # | |
Defined in Network.AWS.IAM.GetRole | |
type Rs GetRole Source # | |
Defined in Network.AWS.IAM.GetRole |
Request Lenses
grRoleName :: Lens' GetRole Text Source #
The name of the IAM role to get information about. 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
Arguments
:: Int | |
-> Role | |
-> 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:
grrsResponseStatus
- -- | The response status code.grrsRole
- A structure containing details about the IAM role.
data GetRoleResponse Source #
Contains the response to a successful GetRole
request.
See: getRoleResponse
smart constructor.
Instances
Response Lenses
grrsResponseStatus :: Lens' GetRoleResponse Int Source #
- - | The response status code.