| 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.AppSync.UpdateAPIKey
Description
Updates an API key.
- updateAPIKey :: Text -> Text -> UpdateAPIKey
- data UpdateAPIKey
- uakExpires :: Lens' UpdateAPIKey (Maybe Integer)
- uakDescription :: Lens' UpdateAPIKey (Maybe Text)
- uakApiId :: Lens' UpdateAPIKey Text
- uakId :: Lens' UpdateAPIKey Text
- updateAPIKeyResponse :: Int -> UpdateAPIKeyResponse
- data UpdateAPIKeyResponse
- uakrsApiKey :: Lens' UpdateAPIKeyResponse (Maybe APIKey)
- uakrsResponseStatus :: Lens' UpdateAPIKeyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> UpdateAPIKey |
Creates a value of UpdateAPIKey with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uakExpires- The time from update time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .uakDescription- A description of the purpose of the API key.uakApiId- The ID for the GraphQL APIuakId- The API key ID.
data UpdateAPIKey Source #
See: updateAPIKey smart constructor.
Instances
Request Lenses
uakExpires :: Lens' UpdateAPIKey (Maybe Integer) Source #
The time from update time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
uakDescription :: Lens' UpdateAPIKey (Maybe Text) Source #
A description of the purpose of the API key.
Destructuring the Response
Arguments
| :: Int | |
| -> UpdateAPIKeyResponse |
Creates a value of UpdateAPIKeyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uakrsApiKey- The API key.uakrsResponseStatus- -- | The response status code.
data UpdateAPIKeyResponse Source #
See: updateAPIKeyResponse smart constructor.
Response Lenses
uakrsApiKey :: Lens' UpdateAPIKeyResponse (Maybe APIKey) Source #
The API key.
uakrsResponseStatus :: Lens' UpdateAPIKeyResponse Int Source #
- - | The response status code.