CmdID / aws / aws apigatewayv2
aws apigatewayv2 update-api-mapping
The API mapping. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To update an API mapping
The following update-api-mapping example changes an API mapping for a custom domain name. As a result, the base URL using the custom domain name for the specified API and stage becomes https://api.example.com/dev.
aws apigatewayv2 update-api-mapping --api-id a1b2c3d4 --stage dev --domain-name api.example.com --api-mapping-id 0qzs2sy7bh --api-mapping-key devIdentify--api-idThe API identifier.--stageThe API stage.--domain-nameThe domain name.--api-mapping-idThe API mapping identifier.--api-mapping-keyThe API mapping key.Its output
{
"ApiId": "a1b2c3d4",
"ApiMappingId": "0qzs2sy7bh",
"ApiMappingKey": "dev",
"Stage": "dev"
}For more information, see Setting up a regional custom domain name in API Gateway in the Amazon API Gateway Developer Guide.
Options
--api-idThe API identifier.--api-mapping-idThe API mapping identifier.--api-mapping-keyThe API mapping key.--domain-nameThe domain name.--stageThe API stage.