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.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IInferenceProfile
IInferenceProfile.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InferenceProfileBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
InferenceProfileBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
InferenceProfileBase
(software.constructs.Construct scope, String id) protected
InferenceProfileBase
(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 InferenceProfileType
getType()
(experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION).abstract Grant
grantProfileUsage
(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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods 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:
grantProfileUsage
in 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:
getInferenceProfileArn
in interfaceIInferenceProfile
-
getInferenceProfileId
(experimental) The unique identifier of the inference profile.- Specified by:
getInferenceProfileId
in interfaceIInferenceProfile
-
getType
(experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION).- Specified by:
getType
in interfaceIInferenceProfile
-