Copyright | (c) 2013-2015 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 |
Undocumented operation.
See: AWS API Reference for CreateAPIKey.
- 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
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:
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi, which indicates that the callers with the API key can make requests to that stage.
See: apiKey
smart constructor.
Response Lenses
akCreatedDate :: Lens' APIKey (Maybe UTCTime) Source
The date when the API Key was created, in ISO 8601 format.
akStageKeys :: Lens' APIKey [Text] Source
A list of Stage resources that are associated with the ApiKey resource.