Copyright | (c) 2013-2021 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 |
Updates an API key. The key can be updated while it is not deleted.
Synopsis
- data UpdateApiKey = UpdateApiKey' {}
- newUpdateApiKey :: Text -> Text -> UpdateApiKey
- updateApiKey_expires :: Lens' UpdateApiKey (Maybe Integer)
- updateApiKey_description :: Lens' UpdateApiKey (Maybe Text)
- 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.
Instances
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:
$sel:expires:UpdateApiKey'
, updateApiKey_expires
- The time from update time after which the API key expires. The date is
represented as seconds since the epoch. For more information, see .
$sel:description:UpdateApiKey'
, updateApiKey_description
- A description of the purpose of the API key.
$sel:apiId:UpdateApiKey'
, updateApiKey_apiId
- The ID for the GraphQL API.
$sel:id:UpdateApiKey'
, updateApiKey_id
- The API key ID.
Request Lenses
updateApiKey_expires :: 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 .
updateApiKey_description :: Lens' UpdateApiKey (Maybe Text) Source #
A description of the purpose of the API key.
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.
UpdateApiKeyResponse' | |
|
Instances
newUpdateApiKeyResponse Source #
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.