Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Create an ApiKey resource.
- createAPIKey :: CreateAPIKey
- data CreateAPIKey
- cakEnabled :: Lens' CreateAPIKey (Maybe Bool)
- cakName :: Lens' CreateAPIKey (Maybe Text)
- cakStageKeys :: Lens' CreateAPIKey [StageKey]
- cakDescription :: Lens' CreateAPIKey (Maybe Text)
- apiKey :: APIKey
- data APIKey
- akEnabled :: Lens' APIKey (Maybe Bool)
- akCreatedDate :: Lens' APIKey (Maybe UTCTime)
- akName :: Lens' APIKey (Maybe Text)
- akId :: Lens' APIKey (Maybe Text)
- akStageKeys :: Lens' APIKey [Text]
- akLastUpdatedDate :: Lens' APIKey (Maybe UTCTime)
- akDescription :: Lens' APIKey (Maybe Text)
Creating a Request
createAPIKey :: CreateAPIKey Source #
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:
data CreateAPIKey Source #
Request to create an ApiKey resource.
See: createAPIKey
smart constructor.
Request Lenses
cakEnabled :: Lens' CreateAPIKey (Maybe Bool) Source #
Specifies whether the ApiKey can be used by callers.
cakStageKeys :: Lens' CreateAPIKey [StageKey] Source #
Specifies whether the ApiKey can be used by callers.
cakDescription :: Lens' CreateAPIKey (Maybe Text) Source #
The description of the ApiKey.
Destructuring the Response
Creates a value of APIKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Response Lenses
akEnabled :: Lens' APIKey (Maybe Bool) Source #
Specifies whether the API Key can be used by callers.
akCreatedDate :: Lens' APIKey (Maybe UTCTime) Source #
The date when the API Key was created, in ISO 8601 format.