Interface CfnApplicationInferenceProfileProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplicationInferenceProfileProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-15T14:51:52.780Z")
@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 class
A builder forCfnApplicationInferenceProfileProps
static final class
An 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.- See Also:
-
getTags
A list of tags associated with the inference profile.- See Also:
-
builder
-