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:
IEnvironmentAware,IResource,IInferenceProfile,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
ApplicationInferenceProfile
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:17.939Z")
@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.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IInferenceProfile
IInferenceProfile.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInferenceProfileBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedInferenceProfileBase(software.amazon.jsii.JsiiObjectRef objRef) protectedInferenceProfileBase(software.constructs.Construct scope, String id) protectedInferenceProfileBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract String(experimental) The ARN of the inference profile.abstract String(experimental) The unique identifier of the inference profile.abstract InferenceProfileTypegetType()(experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION).abstract GrantgrantProfileUsage(IGrantable grantee) (experimental) Grants appropriate permissions to use the inference profile.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
grantProfileUsagein interfaceIInferenceProfile- Parameters:
grantee-- The IAM principal to grant permissions to.
- Returns:
- An IAM Grant object representing the granted permissions
-
getInferenceProfileArn
(experimental) The ARN of the inference profile.- Specified by:
getInferenceProfileArnin interfaceIInferenceProfile
-
getInferenceProfileId
(experimental) The unique identifier of the inference profile.- Specified by:
getInferenceProfileIdin interfaceIInferenceProfile
-
getType
(experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION).- Specified by:
getTypein interfaceIInferenceProfile
-