CmdID / aws / aws apigateway
aws apigateway import-rest-api
A feature of the API Gateway control service for creating a new API from an external API definition file. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--bodyThe POST request body containing external API definitions.--fail-on-warningsA query parameter to indicate whether to rollback the API creation (true) or not (false) when a warning is encountered.--parametersA key-value map of context-specific query string parameters specifying the behavior of different API importing operations.