DocsGPT

About

Hello, ask me anything about this library. Im here to help

How to create API key for Api gateway?

Import the boto3 library and create a client for the API Gateway service:

client = boto3.client('apigateway')

Create an API key:

response = client.create_api_key(
name='API_KEY_NAME',
description='API key description',
enabled=True)
api_key = response['value']