| 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.GetUser
Description
Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request to this API.
Synopsis
- getUser :: GetUser
- data GetUser
- guUserName :: Lens' GetUser (Maybe Text)
- getUserResponse :: Int -> User -> GetUserResponse
- data GetUserResponse
- gursResponseStatus :: Lens' GetUserResponse Int
- gursUser :: Lens' GetUserResponse User
Creating a Request
Creates a value of GetUser with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
guUserName- The name of the user to get information about. This parameter is optional. If it is not included, it defaults to the user making the request. 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: getUser smart constructor.
Instances
| Eq GetUser # | |
| Data GetUser # | |
Defined in Network.AWS.IAM.GetUser Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetUser -> c GetUser # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetUser # toConstr :: GetUser -> Constr # dataTypeOf :: GetUser -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetUser) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetUser) # gmapT :: (forall b. Data b => b -> b) -> GetUser -> GetUser # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetUser -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetUser -> r # gmapQ :: (forall d. Data d => d -> u) -> GetUser -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> GetUser -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetUser -> m GetUser # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetUser -> m GetUser # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetUser -> m GetUser # | |
| Read GetUser # | |
| Show GetUser # | |
| Generic GetUser # | |
| Hashable GetUser # | |
Defined in Network.AWS.IAM.GetUser | |
| AWSRequest GetUser # | |
| ToHeaders GetUser # | |
Defined in Network.AWS.IAM.GetUser | |
| ToPath GetUser # | |
Defined in Network.AWS.IAM.GetUser Methods toPath :: GetUser -> ByteString # | |
| ToQuery GetUser # | |
Defined in Network.AWS.IAM.GetUser Methods toQuery :: GetUser -> QueryString # | |
| NFData GetUser # | |
Defined in Network.AWS.IAM.GetUser | |
| type Rep GetUser # | |
Defined in Network.AWS.IAM.GetUser | |
| type Rs GetUser # | |
Defined in Network.AWS.IAM.GetUser | |
Request Lenses
guUserName :: Lens' GetUser (Maybe Text) #
The name of the user to get information about. This parameter is optional. If it is not included, it defaults to the user making the request. 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 | |
| -> User | |
| -> GetUserResponse |
Creates a value of GetUserResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gursResponseStatus- -- | The response status code.gursUser- A structure containing details about the IAM user.
data GetUserResponse #
Contains the response to a successful GetUser request.
See: getUserResponse smart constructor.
Instances
Response Lenses
gursResponseStatus :: Lens' GetUserResponse Int #
- - | The response status code.
gursUser :: Lens' GetUserResponse User #
A structure containing details about the IAM user.