HttpMethod

class aws_cdk.aws_stepfunctions_tasks.HttpMethod(value)

Bases: Enum

Http Methods that API Gateway supports.

ExampleMetadata:

infused

Example:

import aws_cdk.aws_apigatewayv2 as apigatewayv2

http_api = apigatewayv2.HttpApi(self, "MyHttpApi")

invoke_task = tasks.CallApiGatewayHttpApiEndpoint(self, "Call HTTP API",
    api_id=http_api.api_id,
    api_stack=Stack.of(http_api),
    method=tasks.HttpMethod.GET
)

Attributes

DELETE

Delete the resource at the specified endpoint.

GET

Retreive data from a server at the specified resource.

HEAD

Retreive data from a server at the specified resource without the response body.

OPTIONS

Return data describing what other methods and operations the server supports.

PATCH

Apply partial modifications to the resource.

POST

Send data to the API endpoint to create or udpate a resource.

PUT

Send data to the API endpoint to update or create a resource.