v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14120262383.5 KB

Describe an existing Method resource.

get/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}

Path parameters

restapi_idstring required

The string identifier of the associated RestApi.

resource_idstring required

The Resource identifier for the Method resource.

http_methodstring required

Specifies the method request's HTTP method type.

Response

Success

httpMethodstring

The method's HTTP verb.

authorizationTypestring

The method's authorization type. Valid values are <code>NONE</code> for open access, <code>AWS_IAM</code> for using AWS IAM permissions, <code>CUSTOM</code> for using a custom authorizer, or <code>COGNITO_USER_POOLS</code> for using a Cognito user pool.

authorizerIdstring

The identifier of an Authorizer to use on this method. The <code>authorizationType</code> must be <code>CUSTOM</code>.

apiKeyRequiredboolean

A boolean flag specifying whether a valid ApiKey is required to invoke this method.

requestValidatorIdstring

The identifier of a RequestValidator for request validation.

operationNamestring

A human-friendly operation identifier for the method. For example, you can assign the <code>operationName</code> of <code>ListPets</code> for the <code>GET /pets</code> method in the <code>PetStore</code> example.

requestParametersobject

A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of <code>method.request.{location}.{name}</code>, where <code>location</code> is <code>querystring</code>, <code>path</code>, or <code>header</code> and <code>name</code> is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (<code>true</code>) or optional (<code>false</code>). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

requestModelsobject

A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

methodResponsesobject

Gets a method response associated with a given HTTP status code.

authorizationScopesString[]

A list of authorization scopes configured on the method. The scopes are used with a <code>COGNITO_USER_POOLS</code> authorizer to authorize the method invocation. The authorization works by matching the method scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any method scopes matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the method scope is configured, the client must provide an access token instead of an identity token for authorization purposes.