Class CfnApplicationInferenceProfile
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrock.CfnApplicationInferenceProfile
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IApplicationInferenceProfileRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:39:59.332Z")
@Stability(Stable)
public class CfnApplicationInferenceProfile
extends CfnResource
implements IInspectable, IApplicationInferenceProfileRef, ITaggableV2
Specifies an inference profile as a resource in a top-level template.
Use the ModelSource field to specify the inference profile to copy into the resource. For more information about using inference profiles in Amazon Bedrock , see Improve resilience with cross-region inference .
See the Properties section below for descriptions of both the required and optional properties.
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnApplicationInferenceProfile.static interfaceContains information about a model.static interfaceContains information about the model or system-defined inference profile that is the source for an inference profile..Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.IApplicationInferenceProfileRef
IApplicationInferenceProfileRef.Jsii$Default, IApplicationInferenceProfileRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApplicationInferenceProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplicationInferenceProfile(software.amazon.jsii.JsiiObjectRef objRef) CfnApplicationInferenceProfile(software.constructs.Construct scope, String id, CfnApplicationInferenceProfileProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a ApplicationInferenceProfile resource.The time at which the inference profile was created.The Amazon Resource Name (ARN) of the inference profile.The unique identifier of the inference profile.The ID or Amazon Resource Name (ARN) of the inference profile.A list of information about each model in the inference profile.The status of the inference profile.The type of the inference profile.The time at which the inference profile was last updated.Tag Manager which manages the tags for this resource.The description of the inference profile.The name of the inference profile.Contains configurations for the inference profile to copy as the resource.getTags()A list of tags associated with the inference profile.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the inference profile.voidsetInferenceProfileName(String value) The name of the inference profile.voidsetModelSource(IResolvable value) Contains configurations for the inference profile to copy as the resource.voidContains configurations for the inference profile to copy as the resource.voidA list of tags associated with the inference profile.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnApplicationInferenceProfile
protected CfnApplicationInferenceProfile(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApplicationInferenceProfile
protected CfnApplicationInferenceProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApplicationInferenceProfile
@Stability(Stable) public CfnApplicationInferenceProfile(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationInferenceProfileProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getApplicationInferenceProfileRef
@Stability(Stable) @NotNull public ApplicationInferenceProfileReference getApplicationInferenceProfileRef()A reference to a ApplicationInferenceProfile resource.- Specified by:
getApplicationInferenceProfileRefin interfaceIApplicationInferenceProfileRef
-
getAttrCreatedAt
The time at which the inference profile was created. -
getAttrInferenceProfileArn
The Amazon Resource Name (ARN) of the inference profile. -
getAttrInferenceProfileId
The unique identifier of the inference profile. -
getAttrInferenceProfileIdentifier
The ID or Amazon Resource Name (ARN) of the inference profile. -
getAttrModels
A list of information about each model in the inference profile. -
getAttrStatus
The status of the inference profile.ACTIVEmeans that the inference profile is ready to be used. -
getAttrType
The type of the inference profile. The following types are possible:.SYSTEM_DEFINED– The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.APPLICATION– The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
-
getAttrUpdatedAt
The time at which the inference profile was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getInferenceProfileName
The name of the inference profile. -
setInferenceProfileName
The name of the inference profile. -
getDescription
The description of the inference profile. -
setDescription
The description of the inference profile. -
getModelSource
Contains configurations for the inference profile to copy as the resource.Returns union: either
IResolvableorCfnApplicationInferenceProfile.InferenceProfileModelSourceProperty -
setModelSource
Contains configurations for the inference profile to copy as the resource. -
setModelSource
@Stability(Stable) public void setModelSource(@Nullable CfnApplicationInferenceProfile.InferenceProfileModelSourceProperty value) Contains configurations for the inference profile to copy as the resource. -
getTags
A list of tags associated with the inference profile. -
setTags
A list of tags associated with the inference profile.
-