| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GamesParks.GetGame
Description
Gets details about a game.
Synopsis
- data GetGame = GetGame' {}
- newGetGame :: Text -> GetGame
- getGame_gameName :: Lens' GetGame Text
- data GetGameResponse = GetGameResponse' {
- game :: Maybe GameDetails
- httpStatus :: Int
- newGetGameResponse :: Int -> GetGameResponse
- getGameResponse_game :: Lens' GetGameResponse (Maybe GameDetails)
- getGameResponse_httpStatus :: Lens' GetGameResponse Int
Creating a Request
See: newGetGame smart constructor.
Instances
| ToHeaders GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame | |
| ToPath GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame Methods toPath :: GetGame -> ByteString # | |
| ToQuery GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame Methods toQuery :: GetGame -> QueryString # | |
| AWSRequest GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame Associated Types type AWSResponse GetGame # Methods request :: (Service -> Service) -> GetGame -> Request GetGame # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy GetGame -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetGame))) # | |
| Generic GetGame Source # | |
| Read GetGame Source # | |
| Show GetGame Source # | |
| NFData GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame | |
| Eq GetGame Source # | |
| Hashable GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame | |
| type AWSResponse GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame | |
| type Rep GetGame Source # | |
Defined in Amazonka.GamesParks.GetGame | |
Create a value of GetGame with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:gameName:GetGame', getGame_gameName - The name of the game.
Request Lenses
Destructuring the Response
data GetGameResponse Source #
See: newGetGameResponse smart constructor.
Constructors
| GetGameResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetGameResponse |
Create a value of GetGameResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:game:GetGameResponse', getGameResponse_game - The details of the game.
$sel:httpStatus:GetGameResponse', getGameResponse_httpStatus - The response's http status code.
Response Lenses
getGameResponse_game :: Lens' GetGameResponse (Maybe GameDetails) Source #
The details of the game.
getGameResponse_httpStatus :: Lens' GetGameResponse Int Source #
The response's http status code.