When updating API Gateway resources using the AWS CLI, some commands include a --patch-operations
argument.
For example, the update-base-path-mapping
allows an optional --patch-operations
. For more information about which resources are supported via patch operations, the AWS documentation is here.
How to use the --patch-operations
argument
In the case for updating a base path mapping, a user may need to supply a restapiId
and stage
value.
The JSON array:
|
|
The aws apigateway update-base-path-mapping
allows for a stringified json
array value for the --patch-operations
argument:
|
|
The same --patch-operations
argument format applies to the other API Gateway commands as well.