Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-apigateway-method.json
Parent schema serverless-framework-configuration
Type: object

Resource Type definition for AWS::ApiGateway::Method. Source:- https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-apigateway.git

Properties

HttpMethod string | Aws_CF_FunctionString required

The backend system that the method calls when it receives a request.

ResourceId string | Aws_CF_FunctionString required

The ID of an API Gateway resource.

RestApiId string | Aws_CF_FunctionString required

The ID of the RestApi resource in which API Gateway creates the method.

ApiKeyRequired boolean

Indicates whether the method requires clients to submit a valid API key.

AuthorizationScopes string[]

A list of authorization scopes configured on the method.

AuthorizationType string | Aws_CF_FunctionString

The method's authorization type.

AuthorizerId string | Aws_CF_FunctionString

The identifier of the authorizer to use on this method.

Integration object
14 nested properties
Type string | Aws_CF_FunctionString required

The type of backend that your method is running.

CacheKeyParameters string[]

A list of request parameters whose values API Gateway caches.

uniqueItems=true
CacheNamespace string | Aws_CF_FunctionString

An API-specific tag group of related cached parameters.

ConnectionId string | Aws_CF_FunctionString

The ID of the VpcLink used for the integration when connectionType=VPC_LINK, otherwise undefined.

ConnectionType string | Aws_CF_FunctionString

The type of the network connection to the integration endpoint.

ContentHandling string | Aws_CF_FunctionString

Specifies how to handle request payload content type conversions.

Credentials string | Aws_CF_FunctionString

The credentials that are required for the integration.

IntegrationHttpMethod string | Aws_CF_FunctionString

The integration's HTTP method type.

IntegrationResponses IntegrationResponse[]

The response that API Gateway provides after a method's backend completes processing a request.

uniqueItems=true
PassthroughBehavior string | Aws_CF_FunctionString

Indicates when API Gateway passes requests to the targeted backend.

RequestParameters object

The request parameters that API Gateway sends with the backend request.

RequestTemplates object

A map of Apache Velocity templates that are applied on the request payload.

TimeoutInMillis integer

Custom timeout between 50 and 29,000 milliseconds.

min=50max=29000
Uri string | Aws_CF_FunctionString

The Uniform Resource Identifier (URI) for the integration.

MethodResponses MethodResponse[]

The responses that can be sent to the client who calls the method.

uniqueItems=true
OperationName string | Aws_CF_FunctionString

A friendly operation name for the method.

RequestModels object

The resources that are used for the request's content type. Specify request models as key-value pairs (string-to-string mapping), with a content type as the key and a Model resource name as the value.

RequestParameters object

The request parameters that API Gateway accepts. Specify request parameters as key-value pairs (string-to-Boolean mapping), with a source as the key and a Boolean as the value.

RequestValidatorId string | Aws_CF_FunctionString

The ID of the associated request validator.

Definitions

Integration object
Type string | Aws_CF_FunctionString required

The type of backend that your method is running.

CacheKeyParameters string[]

A list of request parameters whose values API Gateway caches.

uniqueItems=true
CacheNamespace string | Aws_CF_FunctionString

An API-specific tag group of related cached parameters.

ConnectionId string | Aws_CF_FunctionString

The ID of the VpcLink used for the integration when connectionType=VPC_LINK, otherwise undefined.

ConnectionType string | Aws_CF_FunctionString

The type of the network connection to the integration endpoint.

ContentHandling string | Aws_CF_FunctionString

Specifies how to handle request payload content type conversions.

Credentials string | Aws_CF_FunctionString

The credentials that are required for the integration.

IntegrationHttpMethod string | Aws_CF_FunctionString

The integration's HTTP method type.

IntegrationResponses IntegrationResponse[]

The response that API Gateway provides after a method's backend completes processing a request.

uniqueItems=true
PassthroughBehavior string | Aws_CF_FunctionString

Indicates when API Gateway passes requests to the targeted backend.

RequestParameters object

The request parameters that API Gateway sends with the backend request.

RequestTemplates object

A map of Apache Velocity templates that are applied on the request payload.

TimeoutInMillis integer

Custom timeout between 50 and 29,000 milliseconds.

min=50max=29000
Uri string | Aws_CF_FunctionString

The Uniform Resource Identifier (URI) for the integration.

MethodResponse object
StatusCode string | Aws_CF_FunctionString required

The method response's status code, which you map to an IntegrationResponse.

ResponseModels object

The resources used for the response's content type. Specify response models as key-value pairs (string-to-string maps), with a content type as the key and a Model resource name as the value.

ResponseParameters object

Response parameters that API Gateway sends to the client that called a method. Specify response parameters as key-value pairs (string-to-Boolean maps), with a destination as the key and a Boolean as the value.

IntegrationResponse object
StatusCode string | Aws_CF_FunctionString required

The status code that API Gateway uses to map the integration response to a MethodResponse status code.

ContentHandling string | Aws_CF_FunctionString

Specifies how to handle request payload content type conversions.

ResponseParameters object

The response parameters from the backend response that API Gateway sends to the method response.

ResponseTemplates object

The templates that are used to transform the integration response body. Specify templates as key-value pairs (string-to-string mappings), with a content type as the key and a template as the value.

SelectionPattern string | Aws_CF_FunctionString

A regular expression that specifies which error strings or status codes from the backend map to the integration response.