Skip to content
GitHubXDiscordRSS

ApplicationInferenceProfile

Learn how to create, update, and manage AWS Bedrock ApplicationInferenceProfiles using Alchemy Cloud Control.

The ApplicationInferenceProfile resource allows you to manage AWS Bedrock Application Inference Profiles that define how models are used for inference in your applications.

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"
});

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" }
]
});

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
});