class ApiGatewayHttpMethod
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.ApiGatewayHttpMethod |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#ApiGatewayHttpMethod |
Java | software.amazon.awscdk.services.bedrockagentcore.ApiGatewayHttpMethod |
Python | aws_cdk.aws_bedrockagentcore.ApiGatewayHttpMethod |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » ApiGatewayHttpMethod |
HTTP methods supported by API Gateway.
Example
const gateway = new agentcore.Gateway(this, "MyGateway", {
gatewayName: "my-gateway",
});
const api = new apigateway.RestApi(this, 'MyApi', {
restApiName: 'my-api',
});
// Uses IAM authorization for outbound auth by default
const apiGatewayTarget = gateway.addApiGatewayTarget("MyApiGatewayTarget", {
restApi: api,
apiGatewayToolConfiguration: {
toolFilters: [
{
filterPath: "/pets/*",
methods: [agentcore.ApiGatewayHttpMethod.GET],
},
],
},
});
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The HTTP method string value. |
| static DELETE | Api | DELETE method. |
| static GET | Api | GET method. |
| static HEAD | Api | HEAD method. |
| static OPTIONS | Api | OPTIONS method. |
| static PATCH | Api | PATCH method. |
| static POST | Api | POST method. |
| static PUT | Api | PUT method. |
value
Type:
string
The HTTP method string value.
static DELETE
Type:
Api
DELETE method.
static GET
Type:
Api
GET method.
static HEAD
Type:
Api
HEAD method.
static OPTIONS
Type:
Api
OPTIONS method.
static PATCH
Type:
Api
PATCH method.
static POST
Type:
Api
POST method.
static PUT
Type:
Api
PUT method.
Methods
| Name | Description |
|---|---|
| to | Returns the string value. |
| static of(value) | Use a custom HTTP method not yet defined in this class. |
toString()
public toString(): string
Returns
string
Returns the string value.
static of(value)
public static of(value: string): ApiGatewayHttpMethod
Parameters
- value
string— The HTTP method string value.
Returns
Use a custom HTTP method not yet defined in this class.

.NET
Go
Java
Python
TypeScript (