There are more AWS SDK examples available in the AWS Doc SDK Examples
The following code examples show how to use PutMethodResponse
.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:
- AWS CLI
-
To create a method response under the specified status code with a custom method response header
Command:
aws apigateway put-method-response --rest-api-id
1234123412
--resource-ida1b2c3
--http-methodGET
--status-code400
--response-parameters"method.response.header.custom-header=false"
-
For API details, see PutMethodResponse
in AWS CLI Command Reference.
-