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 |
Creates a unique key that you can distribute to clients who are executing your API.
Synopsis
- createAPIKey :: Text -> CreateAPIKey
- data CreateAPIKey
- cakExpires :: Lens' CreateAPIKey (Maybe Integer)
- cakDescription :: Lens' CreateAPIKey (Maybe Text)
- cakApiId :: Lens' CreateAPIKey Text
- createAPIKeyResponse :: Int -> CreateAPIKeyResponse
- data CreateAPIKeyResponse
- cakrsApiKey :: Lens' CreateAPIKeyResponse (Maybe APIKey)
- cakrsResponseStatus :: Lens' CreateAPIKeyResponse Int
Creating a Request
:: Text | |
-> CreateAPIKey |
Creates a value of CreateAPIKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cakExpires
- The time from creation time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .cakDescription
- A description of the purpose of the API key.cakApiId
- The ID for your GraphQL API.
data CreateAPIKey Source #
See: createAPIKey
smart constructor.
Instances
Request Lenses
cakExpires :: Lens' CreateAPIKey (Maybe Integer) Source #
The time from creation time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
cakDescription :: Lens' CreateAPIKey (Maybe Text) Source #
A description of the purpose of the API key.
Destructuring the Response
Creates a value of CreateAPIKeyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cakrsApiKey
- The API key.cakrsResponseStatus
- -- | The response status code.
data CreateAPIKeyResponse Source #
See: createAPIKeyResponse
smart constructor.
Instances
Response Lenses
cakrsApiKey :: Lens' CreateAPIKeyResponse (Maybe APIKey) Source #
The API key.
cakrsResponseStatus :: Lens' CreateAPIKeyResponse Int Source #
- - | The response status code.