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.ImportApiKeys

Description

Import API keys from an external source, such as a CSV-formatted file.

Synopsis

Creating a Request

data ImportApiKeys Source #

The POST request to import API keys from an external source, such as a CSV-formatted file.

See: newImportApiKeys smart constructor.

Constructors

ImportApiKeys' 

Fields

  • failOnWarnings :: Maybe Bool

    A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.

  • body :: ByteString

    The payload of the POST request to import API keys. For the payload format, see API Key File Format.

  • format :: ApiKeysFormat

    A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.

Instances

Instances details
Eq ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Show ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Generic ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Associated Types

type Rep ImportApiKeys :: Type -> Type #

NFData ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Methods

rnf :: ImportApiKeys -> () #

Hashable ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

AWSRequest ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Associated Types

type AWSResponse ImportApiKeys #

ToBody ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

ToHeaders ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

ToPath ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

ToQuery ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

type Rep ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

type Rep ImportApiKeys = D1 ('MetaData "ImportApiKeys" "Amazonka.APIGateway.ImportApiKeys" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ImportApiKeys'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failOnWarnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ApiKeysFormat))))
type AWSResponse ImportApiKeys Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

newImportApiKeys Source #

Create a value of ImportApiKeys 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:failOnWarnings:ImportApiKeys', importApiKeys_failOnWarnings - A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.

$sel:body:ImportApiKeys', importApiKeys_body - The payload of the POST request to import API keys. For the payload format, see API Key File Format.

$sel:format:ImportApiKeys', importApiKeys_format - A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.

Request Lenses

importApiKeys_failOnWarnings :: Lens' ImportApiKeys (Maybe Bool) Source #

A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error is encountered.

importApiKeys_body :: Lens' ImportApiKeys ByteString Source #

The payload of the POST request to import API keys. For the payload format, see API Key File Format.

importApiKeys_format :: Lens' ImportApiKeys ApiKeysFormat Source #

A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.

Destructuring the Response

data ImportApiKeysResponse Source #

The identifier of an ApiKey used in a UsagePlan.

See: newImportApiKeysResponse smart constructor.

Constructors

ImportApiKeysResponse' 

Fields

Instances

Instances details
Eq ImportApiKeysResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Read ImportApiKeysResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Show ImportApiKeysResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Generic ImportApiKeysResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Associated Types

type Rep ImportApiKeysResponse :: Type -> Type #

NFData ImportApiKeysResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

Methods

rnf :: ImportApiKeysResponse -> () #

type Rep ImportApiKeysResponse Source # 
Instance details

Defined in Amazonka.APIGateway.ImportApiKeys

type Rep ImportApiKeysResponse = D1 ('MetaData "ImportApiKeysResponse" "Amazonka.APIGateway.ImportApiKeys" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "ImportApiKeysResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "warnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newImportApiKeysResponse Source #

Create a value of ImportApiKeysResponse 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:ids:ImportApiKeysResponse', importApiKeysResponse_ids - A list of all the ApiKey identifiers.

$sel:warnings:ImportApiKeysResponse', importApiKeysResponse_warnings - A list of warning messages.

$sel:httpStatus:ImportApiKeysResponse', importApiKeysResponse_httpStatus - The response's http status code.

Response Lenses

importApiKeysResponse_ids :: Lens' ImportApiKeysResponse (Maybe [Text]) Source #

A list of all the ApiKey identifiers.