import_api_keys
¶
import_api_keys(
body: Blob,
format: ApiKeysFormat,
*,
config_overrides: Optional[APIGatewayClientConfig] = None,
fail_on_warnings: Optional[Boolean] = None,
) -> ApiKeyIds
Import API keys from an external source, such as a CSV-formatted file.
Parameters:
-
body(Blob) –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
csvformat is supported. -
fail_on_warnings(Optional[Boolean], default:None) –A query parameter to indicate whether to rollback ApiKey importation (
true) or not (false) when error is encountered.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.