amazonka-apigateway-1.3.6: Amazon API Gateway SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.APIGateway.CreateAPIKey

Contents

Description

Undocumented operation.

See: AWS API Reference for CreateAPIKey.

Synopsis

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:

Request Lenses

cakEnabled :: Lens' CreateAPIKey (Maybe Bool) Source

Specifies whether the ApiKey can be used by callers.

cakName :: Lens' CreateAPIKey (Maybe Text) Source

The name of the ApiKey.

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

apiKey :: APIKey Source

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:

data APIKey Source

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

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.

akName :: Lens' APIKey (Maybe Text) Source

The name of the API Key.

akId :: Lens' APIKey (Maybe Text) Source

The identifier of the API Key.

akStageKeys :: Lens' APIKey [Text] Source

A list of Stage resources that are associated with the ApiKey resource.

akLastUpdatedDate :: Lens' APIKey (Maybe UTCTime) Source

When the API Key was last updated, in ISO 8601 format.

akDescription :: Lens' APIKey (Maybe Text) Source

The description of the API Key.