Complete the code to create a new API deployment in AWS API Gateway.
aws apigateway create-deployment --rest-api-id [1] --stage-name prodThe --rest-api-id parameter requires the API's ID, such as 'api-123abc'.
Complete the code to create a new stage named 'dev' for an existing deployment.
aws apigateway create-stage --rest-api-id api-123abc --stage-name [1] --deployment-id dep-789xyz
The --stage-name parameter specifies the name of the stage, here 'dev'.
Fix the error in the command to deploy an API stage with a description.
aws apigateway create-deployment --rest-api-id api-123abc --stage-name [1] --description "[2]"
The --stage-name should be 'prod' to match the description of a production deployment.
Fill both blanks to create a deployment and assign it to the 'test' stage with a description.
aws apigateway create-deployment --rest-api-id [1] --stage-name [2] --description "Test deployment"
The API ID is 'api-456def' and the stage name is 'test' for this deployment.
Fill all three blanks to update the stage description and enable cache for the 'prod' stage.
aws apigateway update-stage --rest-api-id [1] --stage-name [2] --patch-operations op=replace,path=/cacheClusterEnabled,value=[3]
The command updates the 'prod' stage of API 'api-789ghi' to enable cache by setting value to 'true'.