ApiGatewayTargetConfigurationProperty Struct
| Source | |
|---|---|
| Type last changed |
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 apiGatewayTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.ApiGatewayTargetConfigurationProperty = {
apiGatewayToolConfiguration: {
toolFilters: [{
filterPath: 'filterPath',
methods: ['methods'],
}],
// the properties below are optional
toolOverrides: [{
method: 'method',
name: 'name',
path: 'path',
// the properties below are optional
description: 'description',
}],
},
restApiId: 'restApiId',
stage: 'stage',
};
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_target_configuration_property = bedrockagentcore.CfnGatewayTarget.ApiGatewayTargetConfigurationProperty(
api_gateway_tool_configuration=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"
)]
),
rest_api_id="restApiId",
stage="stage"
)
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.*;
ApiGatewayTargetConfigurationProperty apiGatewayTargetConfigurationProperty = ApiGatewayTargetConfigurationProperty.builder()
.apiGatewayToolConfiguration(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())
.restApiId("restApiId")
.stage("stage")
.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 apiGatewayTargetConfigurationProperty = new ApiGatewayTargetConfigurationProperty {
ApiGatewayToolConfiguration = 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"
} }
},
RestApiId = "restApiId",
Stage = "stage"
};
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"
apiGatewayTargetConfigurationProperty := &ApiGatewayTargetConfigurationProperty{
ApiGatewayToolConfiguration: &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"),
},
},
},
RestApiId: jsii.String("restApiId"),
Stage: jsii.String("stage"),
}
Properties
apiGatewayToolConfigurationIResolvable | CfnGatewayTarget.api_gateway_tool_configurationtyping.Union[IResolvable, ApiGatewayToolConfigurationProperty]apiGatewayToolConfigurationIResolvableApiGatewayToolConfigurationIResolvableApiGatewayToolConfigurationinterface{} required #