interface CfnApplicationInferenceProfileProps
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnApplicationInferenceProfileProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnApplicationInferenceProfileProps |
![]() | software.amazon.awscdk.services.bedrock.CfnApplicationInferenceProfileProps |
![]() | aws_cdk.aws_bedrock.CfnApplicationInferenceProfileProps |
![]() | aws-cdk-lib » aws_bedrock » CfnApplicationInferenceProfileProps |
Properties for defining a CfnApplicationInferenceProfile
.
Example
// 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
Name | Type | Description |
---|---|---|
inference | string | The name of the inference profile. |
description? | string | The description of the inference profile. |
model | IResolvable | Inference | Contains configurations for the inference profile to copy as the resource. |
tags? | Cfn [] | A list of tags associated with the inference profile. |
inferenceProfileName
Type:
string
The name of the inference profile.
description?
Type:
string
(optional)
The description of the inference profile.
modelSource?
Type:
IResolvable
|
Inference
(optional)
Contains configurations for the inference profile to copy as the resource.
tags?
Type:
Cfn
[]
(optional)
A list of tags associated with the inference profile.