| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.APIGateway.ImportApiKeys
Description
Import API keys from an external source, such as a CSV-formatted file.
Synopsis
- data ImportApiKeys = ImportApiKeys' {}
- newImportApiKeys :: ByteString -> ApiKeysFormat -> ImportApiKeys
- importApiKeys_failOnWarnings :: Lens' ImportApiKeys (Maybe Bool)
- importApiKeys_body :: Lens' ImportApiKeys ByteString
- importApiKeys_format :: Lens' ImportApiKeys ApiKeysFormat
- data ImportApiKeysResponse = ImportApiKeysResponse' {}
- newImportApiKeysResponse :: Int -> ImportApiKeysResponse
- importApiKeysResponse_ids :: Lens' ImportApiKeysResponse (Maybe [Text])
- importApiKeysResponse_warnings :: Lens' ImportApiKeysResponse (Maybe [Text])
- importApiKeysResponse_httpStatus :: Lens' ImportApiKeysResponse Int
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
| |
Instances
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.
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' | |
Instances
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.
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.
importApiKeysResponse_warnings :: Lens' ImportApiKeysResponse (Maybe [Text]) Source #
A list of warning messages.
importApiKeysResponse_httpStatus :: Lens' ImportApiKeysResponse Int Source #
The response's http status code.