Class InferenceProfileBase
(experimental) Abstract base class for an Inference Profile.
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Alpha.dll
Syntax (csharp)
public abstract class InferenceProfileBase : Resource, IResource, IConstruct, IDependable, IEnvironmentAware, IInferenceProfile
Syntax (vb)
Public MustInherit Class InferenceProfileBase Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware, IInferenceProfile
Remarks
Contains methods and attributes valid for Inference Profiles either created with CDK or imported.
Stability: Experimental
Synopsis
Constructors
| InferenceProfileBase(Construct, string, IResourceProps?) | (experimental) Abstract base class for an Inference Profile. |
Properties
| InferenceProfileArn | (experimental) The ARN of the inference profile. |
| InferenceProfileId | (experimental) The unique identifier of the inference profile. |
| Type | (experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION). |
Methods
| GrantProfileUsage(IGrantable) | (experimental) Grants appropriate permissions to use the inference profile. |
Constructors
InferenceProfileBase(Construct, string, IResourceProps?)
(experimental) Abstract base class for an Inference Profile.
protected InferenceProfileBase(Construct scope, string id, IResourceProps? props = null)
Parameters
- scope Construct
- id string
- props IResourceProps
Remarks
Contains methods and attributes valid for Inference Profiles either created with CDK or imported.
Stability: Experimental
Properties
InferenceProfileArn
(experimental) The ARN of the inference profile.
public abstract string InferenceProfileArn { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
InferenceProfileId
(experimental) The unique identifier of the inference profile.
public abstract string InferenceProfileId { get; }
Property Value
Remarks
Stability: Experimental
Attribute: true
Type
(experimental) The type of inference profile (SYSTEM_DEFINED or APPLICATION).
public abstract InferenceProfileType Type { get; }
Property Value
Remarks
Stability: Experimental
Methods
GrantProfileUsage(IGrantable)
(experimental) Grants appropriate permissions to use the inference profile.
public abstract Grant GrantProfileUsage(IGrantable grantee)
Parameters
- grantee IGrantable
- The IAM principal to grant permissions to.
Returns
An IAM Grant object representing the granted permissions
Remarks
Each profile type requires different permissions based on its usage pattern:
Note: This does not grant permissions to use the underlying model in the profile. For comprehensive model invocation permissions, use the grantInvoke method instead.
Stability: Experimental