CfnApplicationInferenceProfileProps Struct
Properties for defining a CfnApplicationInferenceProfile.
Example
ts
// Create or reference an existing L1 CfnApplicationInferenceProfile
const cfnProfile = new aws_bedrock_cfn.CfnApplicationInferenceProfile(this, 'CfnProfile', {
inferenceProfileName: 'my-cfn-profile',
modelSource: {
copyFrom: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0.invokableArn,
},
description: 'Profile created via L1 construct',
});
// Import the L1 construct as an L2 ApplicationInferenceProfile
const importedFromCfn = bedrock.ApplicationInferenceProfile.fromCfnApplicationInferenceProfile(cfnProfile);
// Grant permissions to use the imported profile
const lambdaFunction = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.PYTHON_3_11,
handler: 'index.handler',
code: lambda.Code.fromInline('def handler(event, context): return "Hello"'),
});
importedFromCfn.grantProfileUsage(lambdaFunction);
Properties
The description of the inference profile.
inferenceProfileNamestringinference_profile_namestrinferenceProfileNameStringInferenceProfileNamestringInferenceProfileName*stringrequired#The name of the inference profile.
modelSourceIResolvable | CfnApplicationInferenceProfile.InferenceProfileModelSourcePropertymodel_sourcetyping.Union[IResolvable, InferenceProfileModelSourceProperty]modelSourceIResolvableModelSourceIResolvableModelSourceinterface{}#Contains configurations for the inference profile to copy as the resource.