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

Amazonka.APIGateway.GetApiKey

Description

Gets information about the current ApiKey resource.

Synopsis

Creating a Request

data GetApiKey Source #

A request to get information about the current ApiKey resource.

See: newGetApiKey smart constructor.

Constructors

GetApiKey' 

Fields

  • includeValue :: Maybe Bool

    A boolean flag to specify whether (true) or not (false) the result contains the key value.

  • apiKey :: Text
    Required
    The identifier of the ApiKey resource.

Instances

Instances details
Eq GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Read GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Show GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Generic GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Associated Types

type Rep GetApiKey :: Type -> Type #

NFData GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Methods

rnf :: GetApiKey -> () #

Hashable GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

AWSRequest GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Associated Types

type AWSResponse GetApiKey #

ToHeaders GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

Methods

toHeaders :: GetApiKey -> [Header] #

ToPath GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

ToQuery GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

type Rep GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

type Rep GetApiKey = D1 ('MetaData "GetApiKey" "Amazonka.APIGateway.GetApiKey" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "GetApiKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "includeValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetApiKey

newGetApiKey Source #

Create a value of GetApiKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:includeValue:GetApiKey', getApiKey_includeValue - A boolean flag to specify whether (true) or not (false) the result contains the key value.

$sel:apiKey:GetApiKey', getApiKey_apiKey - [Required] The identifier of the ApiKey resource.

Request Lenses

getApiKey_includeValue :: Lens' GetApiKey (Maybe Bool) Source #

A boolean flag to specify whether (true) or not (false) the result contains the key value.

getApiKey_apiKey :: Lens' GetApiKey Text Source #

Required
The identifier of the ApiKey resource.

Destructuring the Response

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.

Use API Keys

See: newApiKey smart constructor.

Constructors

ApiKey' 

Fields

Instances

Instances details
Eq ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Methods

(==) :: ApiKey -> ApiKey -> Bool #

(/=) :: ApiKey -> ApiKey -> Bool #

Read ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Show ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Generic ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Associated Types

type Rep ApiKey :: Type -> Type #

Methods

from :: ApiKey -> Rep ApiKey x #

to :: Rep ApiKey x -> ApiKey #

NFData ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Methods

rnf :: ApiKey -> () #

Hashable ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

Methods

hashWithSalt :: Int -> ApiKey -> Int #

hash :: ApiKey -> Int #

FromJSON ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

type Rep ApiKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.ApiKey

newApiKey :: ApiKey Source #

Create a value of ApiKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:enabled:ApiKey', apiKey_enabled - Specifies whether the API Key can be used by callers.

$sel:value:ApiKey', apiKey_value - The value of the API Key.

$sel:customerId:ApiKey', apiKey_customerId - An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

$sel:createdDate:ApiKey', apiKey_createdDate - The timestamp when the API Key was created.

$sel:name:ApiKey', apiKey_name - The name of the API Key.

$sel:id:ApiKey', apiKey_id - The identifier of the API Key.

$sel:stageKeys:ApiKey', apiKey_stageKeys - A list of Stage resources that are associated with the ApiKey resource.

$sel:lastUpdatedDate:ApiKey', apiKey_lastUpdatedDate - The timestamp when the API Key was last updated.

$sel:description:ApiKey', apiKey_description - The description of the API Key.

$sel:tags:ApiKey', apiKey_tags - The collection of tags. Each tag element is associated with a given resource.

Response Lenses

apiKey_enabled :: Lens' ApiKey (Maybe Bool) Source #

Specifies whether the API Key can be used by callers.

apiKey_value :: Lens' ApiKey (Maybe Text) Source #

The value of the API Key.

apiKey_customerId :: Lens' ApiKey (Maybe Text) Source #

An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.

apiKey_createdDate :: Lens' ApiKey (Maybe UTCTime) Source #

The timestamp when the API Key was created.

apiKey_name :: Lens' ApiKey (Maybe Text) Source #

The name of the API Key.

apiKey_id :: Lens' ApiKey (Maybe Text) Source #

The identifier of the API Key.

apiKey_stageKeys :: Lens' ApiKey (Maybe [Text]) Source #

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

apiKey_lastUpdatedDate :: Lens' ApiKey (Maybe UTCTime) Source #

The timestamp when the API Key was last updated.

apiKey_description :: Lens' ApiKey (Maybe Text) Source #

The description of the API Key.

apiKey_tags :: Lens' ApiKey (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.