Skip to content
v2.278.0

ApiGatewayToolConfigurationProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const apiGatewayToolConfigurationProperty: bedrockagentcore.CfnGatewayTarget.ApiGatewayToolConfigurationProperty = {
  toolFilters: [{
    filterPath: 'filterPath',
    methods: ['methods'],
  }],

  // the properties below are optional
  toolOverrides: [{
    method: 'method',
    name: 'name',
    path: 'path',

    // the properties below are optional
    description: 'description',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

api_gateway_tool_configuration_property = bedrockagentcore.CfnGatewayTarget.ApiGatewayToolConfigurationProperty(
    tool_filters=[bedrockagentcore.CfnGatewayTarget.ApiGatewayToolFilterProperty(
        filter_path="filterPath",
        methods=["methods"]
    )],

    # the properties below are optional
    tool_overrides=[bedrockagentcore.CfnGatewayTarget.ApiGatewayToolOverrideProperty(
        method="method",
        name="name",
        path="path",

        # the properties below are optional
        description="description"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;

ApiGatewayToolConfigurationProperty apiGatewayToolConfigurationProperty = ApiGatewayToolConfigurationProperty.builder()
        .toolFilters(List.of(ApiGatewayToolFilterProperty.builder()
                .filterPath("filterPath")
                .methods(List.of("methods"))
                .build()))

        // the properties below are optional
        .toolOverrides(List.of(ApiGatewayToolOverrideProperty.builder()
                .method("method")
                .name("name")
                .path("path")

                // the properties below are optional
                .description("description")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var apiGatewayToolConfigurationProperty = new ApiGatewayToolConfigurationProperty {
    ToolFilters = new [] { new ApiGatewayToolFilterProperty {
        FilterPath = "filterPath",
        Methods = new [] { "methods" }
    } },

    // the properties below are optional
    ToolOverrides = new [] { new ApiGatewayToolOverrideProperty {
        Method = "method",
        Name = "name",
        Path = "path",

        // the properties below are optional
        Description = "description"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

apiGatewayToolConfigurationProperty := &ApiGatewayToolConfigurationProperty{
	ToolFilters: []interface{}{
		&ApiGatewayToolFilterProperty{
			FilterPath: jsii.String("filterPath"),
			Methods: []*string{
				jsii.String("methods"),
			},
		},
	},

	// the properties below are optional
	ToolOverrides: []interface{}{
		&ApiGatewayToolOverrideProperty{
			Method: jsii.String("method"),
			Name: jsii.String("name"),
			Path: jsii.String("path"),

			// the properties below are optional
			Description: jsii.String("description"),
		},
	},
}

Properties ​

toolFiltersIResolvable | IResolvable | CfnGatewayTarget.ApiGatewayToolFilterProperty[]tool_filterstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ApiGatewayToolFilterProperty]]]toolFiltersIResolvableToolFiltersIResolvableToolFiltersinterface{} required #
toolOverridesoptionalIResolvable | IResolvable | CfnGatewayTarget.ApiGatewayToolOverrideProperty[]tool_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ApiGatewayToolOverrideProperty]]]toolOverridesoptionalIResolvableToolOverridesoptionalIResolvableToolOverridesoptionalinterface{} #