enum HttpMethod
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.HttpMethod |
Java | software.amazon.awscdk.services.stepfunctions.tasks.HttpMethod |
Python | aws_cdk.aws_stepfunctions_tasks.HttpMethod |
TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks » HttpMethod |
Http Methods that API Gateway supports.
Example
import * as apigatewayv2 from '@aws-cdk/aws-apigatewayv2';
const httpApi = new apigatewayv2.HttpApi(this, 'MyHttpApi');
const invokeTask = new tasks.CallApiGatewayHttpApiEndpoint(this, 'Call HTTP API', {
apiId: httpApi.apiId,
apiStack: Stack.of(httpApi),
method: tasks.HttpMethod.GET,
});
Members
| Name | Description |
|---|---|
| GET | Retreive data from a server at the specified 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. |
| DELETE | Delete the resource at the specified endpoint. |
| PATCH | Apply partial modifications to the 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. |
GET
Retreive data from a server at the specified 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.
DELETE
Delete the resource at the specified endpoint.
PATCH
Apply partial modifications to the 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.

.NET
Java
Python
TypeScript (