@cdklabs/generative-ai-cdk-constructs • Docs
@cdklabs/generative-ai-cdk-constructs / bedrock / BedrockFoundationModel
Bedrock models.
If you need to use a model name that doesn’t exist as a static member, you
can instantiate a BedrockFoundationModel
object, e.g: new BedrockFoundationModel('my-model')
.
new BedrockFoundationModel(
value
,props
):BedrockFoundationModel
• value: string
• props: BedrockFoundationModelProps
= {}
readonly
invokableArn:string
The ARN of the Bedrock invokable abstraction.
readonly
modelArn:string
readonly
modelId:string
Constructor *************************************************************************
readonly
supportsAgents:boolean
readonly
supportsCrossRegion:boolean
readonly
supportsKnowledgeBase:boolean
readonly
optional
vectorDimensions:number
readonly
static
AMAZON_TITAN_PREMIER_V1_0:BedrockFoundationModel
readonly
static
AMAZON_TITAN_TEXT_EXPRESS_V1:BedrockFoundationModel
AMAZON *************************************************************************
readonly
static
ANTHROPIC_CLAUDE_3_5_HAIKU_V1_0:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_3_5_SONNET_V1_0:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_3_5_SONNET_V2_0:BedrockFoundationModel
ANTHROPIC *************************************************************************
readonly
static
ANTHROPIC_CLAUDE_HAIKU_V1_0:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_INSTANT_V1_2:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_OPUS_V1_0:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_SONNET_V1_0:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_V2:BedrockFoundationModel
readonly
static
ANTHROPIC_CLAUDE_V2_1:BedrockFoundationModel
readonly
static
COHERE_EMBED_ENGLISH_V3:BedrockFoundationModel
COHERE *************************************************************************
readonly
static
COHERE_EMBED_MULTILINGUAL_V3:BedrockFoundationModel
readonly
static
META_LLAMA_3_2_11B_INSTRUCT_V1:BedrockFoundationModel
META *************************************************************************
readonly
static
META_LLAMA_3_2_1B_INSTRUCT_V1:BedrockFoundationModel
readonly
static
META_LLAMA_3_2_3B_INSTRUCT_V1:BedrockFoundationModel
readonly
static
TITAN_EMBED_TEXT_V1:BedrockFoundationModel
readonly
static
TITAN_EMBED_TEXT_V2_1024:BedrockFoundationModel
readonly
static
TITAN_EMBED_TEXT_V2_256:BedrockFoundationModel
readonly
static
TITAN_EMBED_TEXT_V2_512:BedrockFoundationModel
asArn(
construct
):string
Returns the ARN of the foundation model in the following format:
arn:${Partition}:bedrock:${Region}::foundation-model/${ResourceId}
• construct: IConstruct
string
asIModel(
construct
):IModel
• construct: IConstruct
IModel
grantInvoke(
grantee
):Grant
Gives the appropriate policies to invoke and use the Foundation Model in the stack region.
• grantee: IGrantable
Grant
grantInvokeAllRegions(
grantee
):Grant
Gives the appropriate policies to invoke and use the Foundation Model in all regions.
• grantee: IGrantable
Grant
toString():
string
Returns a string representation of an object.
string
static
fromCdkFoundationModel(modelId
,props
):BedrockFoundationModel
• modelId: FoundationModel
• props: BedrockFoundationModelProps
= {}
static
fromCdkFoundationModelId(modelId
,props
):BedrockFoundationModel
• modelId: FoundationModelIdentifier
• props: BedrockFoundationModelProps
= {}