MethodProps

class aws_cdk.aws_apigateway.MethodProps(*, http_method, resource, integration=None, options=None)

Bases: object

__init__(*, http_method, resource, integration=None, options=None)
Parameters
  • http_method (str) – The HTTP method (“GET”, “POST”, “PUT”, …) that clients use to call this method.

  • resource (IResource) – The resource this method is associated with. For root resource methods, specify the RestApi object.

  • integration (Optional[Integration]) – The backend system that the method calls when it receives a request. Default: - a new MockIntegration.

  • options (Optional[MethodOptions]) – Method options. Default: - No options.

Attributes

http_method

The HTTP method (“GET”, “POST”, “PUT”, …) that clients use to call this method.

Return type

str

integration

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

default :default: - a new MockIntegration.

Return type

Optional[Integration]

options

Method options.

default :default: - No options.

Return type

Optional[MethodOptions]

resource

The resource this method is associated with.

For root resource methods, specify the RestApi object.

Return type

IResource