Skip to content
v2.278.0

InferenceTargetConfigurationProperty 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 inferenceTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.InferenceTargetConfigurationProperty = {
  connector: {
    source: {
      connectorId: 'connectorId',
    },
  },
  provider: {
    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_target_configuration_property = bedrockagentcore.CfnGatewayTarget.InferenceTargetConfigurationProperty(
    connector=bedrockagentcore.CfnGatewayTarget.InferenceConnectorTargetConfigurationProperty(
        source=bedrockagentcore.CfnGatewayTarget.InferenceConnectorSourceProperty(
            connector_id="connectorId"
        )
    ),
    provider=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.*;

InferenceTargetConfigurationProperty inferenceTargetConfigurationProperty = InferenceTargetConfigurationProperty.builder()
        .connector(InferenceConnectorTargetConfigurationProperty.builder()
                .source(InferenceConnectorSourceProperty.builder()
                        .connectorId("connectorId")
                        .build())
                .build())
        .provider(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())
        .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 inferenceTargetConfigurationProperty = new InferenceTargetConfigurationProperty {
    Connector = new InferenceConnectorTargetConfigurationProperty {
        Source = new InferenceConnectorSourceProperty {
            ConnectorId = "connectorId"
        }
    },
    Provider = 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"

inferenceTargetConfigurationProperty := &InferenceTargetConfigurationProperty{
	Connector: &InferenceConnectorTargetConfigurationProperty{
		Source: &InferenceConnectorSourceProperty{
			ConnectorId: jsii.String("connectorId"),
		},
	},
	Provider: &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 ​

connectoroptionalIResolvable | CfnGatewayTarget.InferenceConnectorTargetConfigurationPropertyconnectoroptionaltyping.Union[IResolvable, InferenceConnectorTargetConfigurationProperty]connectoroptionalIResolvableConnectoroptionalIResolvableConnectoroptionalinterface{} #
provideroptionalIResolvable | CfnGatewayTarget.InferenceProviderTargetConfigurationPropertyprovideroptionaltyping.Union[IResolvable, InferenceProviderTargetConfigurationProperty]provideroptionalIResolvableProvideroptionalIResolvableProvideroptionalinterface{} #