Class InferenceProfileBase

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.bedrock.alpha.InferenceProfileBase
All Implemented Interfaces:
IResource, IInferenceProfile, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
ApplicationInferenceProfile

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-06T18:14:48.070Z") @Stability(Experimental) public abstract class InferenceProfileBase extends Resource implements IInferenceProfile
(experimental) Abstract base class for an Inference Profile.

Contains methods and attributes valid for Inference Profiles either created with CDK or imported.

  • Constructor Details

    • InferenceProfileBase

      protected InferenceProfileBase(software.amazon.jsii.JsiiObjectRef objRef)
    • InferenceProfileBase

      protected InferenceProfileBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InferenceProfileBase

      @Stability(Stable) protected InferenceProfileBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • InferenceProfileBase

      @Stability(Stable) protected InferenceProfileBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • grantProfileUsage

      @Stability(Experimental) @NotNull public abstract Grant grantProfileUsage(@NotNull IGrantable grantee)
      (experimental) Grants appropriate permissions to use the inference profile.

      Each profile type requires different permissions based on its usage pattern:

      • Application profiles need bedrock:InvokeModel for direct invocation
      • Cross-region profiles need bedrock:InvokeModel* for routing capabilities

      Note: This does not grant permissions to use the underlying model in the profile. For comprehensive model invocation permissions, use the grantInvoke method instead.

      Specified by:
      grantProfileUsage in interface IInferenceProfile
      Parameters:
      grantee -
      • The IAM principal to grant permissions to.
      This parameter is required.
      Returns:
      An IAM Grant object representing the granted permissions
    • getInferenceProfileArn

      @Stability(Experimental) @NotNull public abstract String getInferenceProfileArn()
      (experimental) The ARN of the inference profile.
      Specified by:
      getInferenceProfileArn in interface IInferenceProfile
    • getInferenceProfileId

      @Stability(Experimental) @NotNull public abstract String getInferenceProfileId()
      (experimental) The unique identifier of the inference profile.
      Specified by:
      getInferenceProfileId in interface IInferenceProfile
    • getType

      @Stability(Experimental) @NotNull public abstract InferenceProfileType getType()
      (experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION).
      Specified by:
      getType in interface IInferenceProfile