| 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.AppSync.UpdateApiKey
Description
Updates an API key. You can update the key as long as it's not deleted.
Synopsis
- data UpdateApiKey = UpdateApiKey' {}
- newUpdateApiKey :: Text -> Text -> UpdateApiKey
- updateApiKey_description :: Lens' UpdateApiKey (Maybe Text)
- updateApiKey_expires :: Lens' UpdateApiKey (Maybe Integer)
- updateApiKey_apiId :: Lens' UpdateApiKey Text
- updateApiKey_id :: Lens' UpdateApiKey Text
- data UpdateApiKeyResponse = UpdateApiKeyResponse' {
- apiKey :: Maybe ApiKey
- httpStatus :: Int
- newUpdateApiKeyResponse :: Int -> UpdateApiKeyResponse
- updateApiKeyResponse_apiKey :: Lens' UpdateApiKeyResponse (Maybe ApiKey)
- updateApiKeyResponse_httpStatus :: Lens' UpdateApiKeyResponse Int
Creating a Request
data UpdateApiKey Source #
See: newUpdateApiKey smart constructor.
Constructors
| UpdateApiKey' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateApiKey |
Create a value of UpdateApiKey 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:
UpdateApiKey, updateApiKey_description - A description of the purpose of the API key.
UpdateApiKey, updateApiKey_expires - From the update time, the time after which the API key expires. The date
is represented as seconds since the epoch. For more information, see .
UpdateApiKey, updateApiKey_apiId - The ID for the GraphQL API.
UpdateApiKey, updateApiKey_id - The API key ID.
Request Lenses
updateApiKey_description :: Lens' UpdateApiKey (Maybe Text) Source #
A description of the purpose of the API key.
updateApiKey_expires :: Lens' UpdateApiKey (Maybe Integer) Source #
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
updateApiKey_apiId :: Lens' UpdateApiKey Text Source #
The ID for the GraphQL API.
updateApiKey_id :: Lens' UpdateApiKey Text Source #
The API key ID.
Destructuring the Response
data UpdateApiKeyResponse Source #
See: newUpdateApiKeyResponse smart constructor.
Constructors
| UpdateApiKeyResponse' | |
Fields
| |
Instances
newUpdateApiKeyResponse Source #
Arguments
| :: Int | |
| -> UpdateApiKeyResponse |
Create a value of UpdateApiKeyResponse 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:apiKey:UpdateApiKeyResponse', updateApiKeyResponse_apiKey - The API key.
$sel:httpStatus:UpdateApiKeyResponse', updateApiKeyResponse_httpStatus - The response's http status code.
Response Lenses
updateApiKeyResponse_apiKey :: Lens' UpdateApiKeyResponse (Maybe ApiKey) Source #
The API key.
updateApiKeyResponse_httpStatus :: Lens' UpdateApiKeyResponse Int Source #
The response's http status code.