InferenceProviderTargetConfigurationProperty 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 inferenceProviderTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.InferenceProviderTargetConfigurationProperty = {
endpoint: 'endpoint',
// the properties below are optional
modelMapping: {
providerPrefix: {
separator: 'separator',
strip: false,
},
},
operations: [{
path: 'path',
// the properties below are optional
models: [{
model: 'model',
}],
providerPath: 'providerPath',
}],
};
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
inference_provider_target_configuration_property = bedrockagentcore.CfnGatewayTarget.InferenceProviderTargetConfigurationProperty(
endpoint="endpoint",
# the properties below are optional
model_mapping=bedrockagentcore.CfnGatewayTarget.ModelMappingProperty(
provider_prefix=bedrockagentcore.CfnGatewayTarget.ProviderPrefixProperty(
separator="separator",
strip=False
)
),
operations=[bedrockagentcore.CfnGatewayTarget.InferenceOperationConfigurationProperty(
path="path",
# the properties below are optional
models=[bedrockagentcore.CfnGatewayTarget.ModelEntryProperty(
model="model"
)],
provider_path="providerPath"
)]
)
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.*;
InferenceProviderTargetConfigurationProperty inferenceProviderTargetConfigurationProperty = InferenceProviderTargetConfigurationProperty.builder()
.endpoint("endpoint")
// the properties below are optional
.modelMapping(ModelMappingProperty.builder()
.providerPrefix(ProviderPrefixProperty.builder()
.separator("separator")
.strip(false)
.build())
.build())
.operations(List.of(InferenceOperationConfigurationProperty.builder()
.path("path")
// the properties below are optional
.models(List.of(ModelEntryProperty.builder()
.model("model")
.build()))
.providerPath("providerPath")
.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 inferenceProviderTargetConfigurationProperty = new InferenceProviderTargetConfigurationProperty {
Endpoint = "endpoint",
// the properties below are optional
ModelMapping = new ModelMappingProperty {
ProviderPrefix = new ProviderPrefixProperty {
Separator = "separator",
Strip = false
}
},
Operations = new [] { new InferenceOperationConfigurationProperty {
Path = "path",
// the properties below are optional
Models = new [] { new ModelEntryProperty {
Model = "model"
} },
ProviderPath = "providerPath"
} }
};
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"
inferenceProviderTargetConfigurationProperty := &InferenceProviderTargetConfigurationProperty{
Endpoint: jsii.String("endpoint"),
// the properties below are optional
ModelMapping: &ModelMappingProperty{
ProviderPrefix: &ProviderPrefixProperty{
Separator: jsii.String("separator"),
Strip: jsii.Boolean(false),
},
},
Operations: []interface{}{
&InferenceOperationConfigurationProperty{
Path: jsii.String("path"),
// the properties below are optional
Models: []interface{}{
&ModelEntryProperty{
Model: jsii.String("model"),
},
},
ProviderPath: jsii.String("providerPath"),
},
},
}
Properties
modelMappingoptionalIResolvable | CfnGatewayTarget.ModelMappingPropertymodel_mappingoptionaltyping.Union[IResolvable, ModelMappingProperty]modelMappingoptionalIResolvableModelMappingoptionalIResolvableModelMappingoptionalinterface{}#operationsoptionalIResolvable | IResolvable | CfnGatewayTarget.InferenceOperationConfigurationProperty[]operationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InferenceOperationConfigurationProperty]]]operationsoptionalIResolvableOperationsoptionalIResolvableOperationsoptionalinterface{}#