ApplicationInferenceProfile
The ApplicationInferenceProfile resource allows you to manage AWS Bedrock Application Inference Profiles that define how models are used for inference in your applications.
Minimal Example
Section titled “Minimal Example”Create a basic ApplicationInferenceProfile with required properties and one optional description.
import AWS from "alchemy/aws/control";
const basicInferenceProfile = await AWS.Bedrock.ApplicationInferenceProfile("basicInferenceProfile", { InferenceProfileName: "BasicInferenceProfile", Description: "A simple inference profile for basic model usage"});
Advanced Configuration
Section titled “Advanced Configuration”Configure an ApplicationInferenceProfile with a model source and tags for better organization.
const advancedInferenceProfile = await AWS.Bedrock.ApplicationInferenceProfile("advancedInferenceProfile", { InferenceProfileName: "AdvancedInferenceProfile", Description: "An advanced inference profile with model source", ModelSource: { ModelId: "model-12345", ModelType: "text" }, Tags: [ { Key: "Project", Value: "AIResearch" }, { Key: "Environment", Value: "Production" } ]});
Adoption of Existing Resource
Section titled “Adoption of Existing Resource”If you want to adopt an existing ApplicationInferenceProfile instead of failing when it already exists, you can set the adopt
property to true.
const adoptExistingProfile = await AWS.Bedrock.ApplicationInferenceProfile("adoptExistingProfile", { InferenceProfileName: "ExistingInferenceProfile", adopt: true});