HttpMethod Enum
Http Methods that API Gateway supports.
Example
ts
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
| Member | 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. |
Referenced by
CallApiGatewayEndpointBaseOptions.methodmethodmethodMethodMethod