Experimental
@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ApiGatewayToolFilter Struct
Configuration for filtering API Gateway tools.
Tool filters allow you to select REST API operations using path and method combinations. Each filter supports two path matching strategies:
- Explicit paths: Matches a single specific path, such as
/pets/{petId} - Wildcard paths: Matches all paths starting with the specified prefix, such as
/pets/*
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const apiGatewayToolFilter: bedrock_agentcore_alpha.ApiGatewayToolFilter = {
filterPath: 'filterPath',
methods: [bedrock_agentcore_alpha.ApiGatewayHttpMethod.GET],
};
Properties
The resource path to filter Can be an explicit path (e.g., `/pets/{petId}`) or a wildcard path (e.g., `/pets/*`) Must start with a forward slash.
methodsApiGatewayHttpMethod[]methodstyping.List[ApiGatewayHttpMethod]methodsList<ApiGatewayHttpMethod>MethodsApiGatewayHttpMethod[]Methods*[]ApiGatewayHttpMethodrequired#List of HTTP methods to include for this path Each filter specifies both a path and a list of HTTP methods Multiple filters can overlap and duplicates are automatically de-duplicated.