MethodProps¶
-
class
aws_cdk.aws_apigateway.
MethodProps
(*, http_method, resource, integration=None, options=None)¶ Bases:
object
- 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 theRestApi
object.integration (
Optional
[Integration
]) – The backend system that the method calls when it receives a request. Default: - a newMockIntegration
.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
a new
MockIntegration
.
- Return type
Optional
[Integration
]
-
options
¶ Method options.
- Default
No options.
- Return type
Optional
[MethodOptions
]