enum HttpMethod
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.HttpMethod |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#HttpMethod |
Java | software.amazon.awscdk.services.stepfunctions.tasks.HttpMethod |
Python | aws_cdk.aws_stepfunctions_tasks.HttpMethod |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » HttpMethod |
Http Methods that API Gateway supports.
Example
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
declare const api: apigateway.RestApi;
tasks.CallApiGatewayRestApiEndpoint.jsonata(this, 'Endpoint', {
api,
stageName: 'Stage',
method: tasks.HttpMethod.PUT,
integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
headers: sfn.TaskInput.fromObject({
TaskToken: '{% States.Array($states.context.taskToken) %}',
}),
});
Members
| Name | Description |
|---|---|
| GET | Retrieve 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 | Retrieve 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
Retrieve 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
Retrieve 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
Go
Java
Python
TypeScript (