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 |
Create an ApiKey
resource.
- createAPIKey :: CreateAPIKey
- data CreateAPIKey
- cakEnabled :: Lens' CreateAPIKey (Maybe Bool)
- cakValue :: Lens' CreateAPIKey (Maybe Text)
- cakCustomerId :: Lens' CreateAPIKey (Maybe Text)
- cakGenerateDistinctId :: 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)
- akValue :: Lens' APIKey (Maybe Text)
- akCustomerId :: Lens' APIKey (Maybe Text)
- 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:
cakEnabled
- Specifies whether theApiKey
can be used by callers.cakValue
- Specifies a value of the API key.cakCustomerId
- An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.cakGenerateDistinctId
- Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value.cakName
- The name of theApiKey
.cakStageKeys
- DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.cakDescription
- The description of theApiKey
.
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.
cakCustomerId :: Lens' CreateAPIKey (Maybe Text) Source #
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
cakGenerateDistinctId :: Lens' CreateAPIKey (Maybe Bool) Source #
Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value.
cakStageKeys :: Lens' CreateAPIKey [StageKey] Source #
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
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:
akEnabled
- Specifies whether the API Key can be used by callers.akValue
- The value of the API Key.akCustomerId
- An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.akCreatedDate
- The timestamp when the API Key was created.akName
- The name of the API Key.akId
- The identifier of the API Key.akStageKeys
- A list ofStage
resources that are associated with theApiKey
resource.akLastUpdatedDate
- The timestamp when the API Key was last updated.akDescription
- The description of the API Key.
Response Lenses
akEnabled :: Lens' APIKey (Maybe Bool) Source #
Specifies whether the API Key can be used by callers.
akCustomerId :: Lens' APIKey (Maybe Text) Source #
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
akStageKeys :: Lens' APIKey [Text] Source #
A list of Stage
resources that are associated with the ApiKey
resource.