# Distribuera en API-definition till AWS API Gateway

Använd det publika API:et för API Contracts för att automatiskt uppdatera ditt API till AWS API Gateway.

Det här exemplet förklarar hur du importerar en ny API-definition eller uppdaterar en befintlig i AWS API Gateway från API-kontrakt.

![Diagram över processen där API-definitionen hämtas av CI/CD-pipelinen från Qlik Talend Cloud och sedan skickas till AWS API Gateway.](https://help.qlik.com/sv-SE/cloud-services/Subsystems/Hub/Content/Resources/Images/ApiDesigner/amazon_api_gateway_6.png)

För att göra detta måste du först hämta ditt API från Qlik Talend Cloud, sedan behöver du distribuera det till AWS API Gateway med hjälp av ett kommandoradsskript eller en CI/CD-pipeline.

Följande procedurer använder AWS CLI, men du kan också använda AWS API Gateway REST API.

För mer information, se följande resurser:

* [Hämta en API-definition för AWS API Gateway](https://help.qlik.com/sv-SE/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/APIDesigner/FetchingApiDefinitionForAwsApiGateway.htm)
* [Användarguide för AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/index.html)
* [Utvecklarguide för AWS API Gateway](https://docs.aws.amazon.com/en_en/apigateway/latest/developerguide/index.html)
* [AWS API Gateway REST API-referens](https://docs.aws.amazon.com/apigateway/api-reference/)