Interface CfnApplicationInferenceProfileProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplicationInferenceProfileProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:15.338Z")
@Stability(Stable)
public interface CfnApplicationInferenceProfileProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnApplicationInferenceProfile.
Example:
// Create or reference an existing L1 CfnApplicationInferenceProfile
CfnApplicationInferenceProfile cfnProfile = CfnApplicationInferenceProfile.Builder.create(this, "CfnProfile")
.inferenceProfileName("my-cfn-profile")
.modelSource(InferenceProfileModelSourceProperty.builder()
.copyFrom(BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0.getInvokableArn())
.build())
.description("Profile created via L1 construct")
.build();
// Import the L1 construct as an L2 ApplicationInferenceProfile
IInferenceProfile importedFromCfn = ApplicationInferenceProfile.fromCfnApplicationInferenceProfile(cfnProfile);
// Grant permissions to use the imported profile
Function lambdaFunction = Function.Builder.create(this, "MyFunction")
.runtime(Runtime.PYTHON_3_11)
.handler("index.handler")
.code(Code.fromInline("def handler(event, context): return \"Hello\""))
.build();
importedFromCfn.grantProfileUsage(lambdaFunction);
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApplicationInferenceProfilePropsstatic final classAn implementation forCfnApplicationInferenceProfileProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInferenceProfileName
The name of the inference profile.- See Also:
-
getDescription
The description of the inference profile.- See Also:
-
getModelSource
Contains configurations for the inference profile to copy as the resource.Returns union: either
IResolvableorCfnApplicationInferenceProfile.InferenceProfileModelSourceProperty- See Also:
-
getTags
A list of tags associated with the inference profile.- See Also:
-
builder
-