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: