Class CfnEvaluator
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.bedrockagentcore.CfnEvaluator
- All Implemented Interfaces:
IInspectable,IEvaluatorRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:39.587Z")
@Stability(Stable)
public class CfnEvaluator
extends CfnResource
implements IInspectable, IEvaluatorRef, ITaggableV2
Resource Type definition for AWS::BedrockAgentCore::Evaluator - Creates a custom evaluator for agent quality assessment using LLM-as-a-Judge configurations.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
Object additionalModelRequestFields;
CfnEvaluator cfnEvaluator = CfnEvaluator.Builder.create(this, "MyCfnEvaluator")
.evaluatorConfig(EvaluatorConfigProperty.builder()
.llmAsAJudge(LlmAsAJudgeEvaluatorConfigProperty.builder()
.instructions("instructions")
.modelConfig(EvaluatorModelConfigProperty.builder()
.bedrockEvaluatorModelConfig(BedrockEvaluatorModelConfigProperty.builder()
.modelId("modelId")
// the properties below are optional
.additionalModelRequestFields(additionalModelRequestFields)
.inferenceConfig(InferenceConfigurationProperty.builder()
.maxTokens(123)
.temperature(123)
.topP(123)
.build())
.build())
.build())
.ratingScale(RatingScaleProperty.builder()
.categorical(List.of(CategoricalScaleDefinitionProperty.builder()
.definition("definition")
.label("label")
.build()))
.numerical(List.of(NumericalScaleDefinitionProperty.builder()
.definition("definition")
.label("label")
.value(123)
.build()))
.build())
.build())
.build())
.evaluatorName("evaluatorName")
.level("level")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe configuration for using Amazon Bedrock models in evaluator assessments.static final classA fluent builder forCfnEvaluator.static interfaceA categorical rating scale option.static interfaceThe configuration that defines how an evaluator assesses agent performance.static interfaceThe model configuration that specifies which foundation model to use for evaluation.static interfaceThe inference configuration parameters that control model behavior during evaluation.static interfaceThe configuration for LLM-as-a-Judge evaluation.static interfaceA numerical rating scale option.static interfaceThe rating scale that defines how evaluators should score agent performance.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.interfaces.bedrockagentcore.IEvaluatorRef
IEvaluatorRef.Jsii$Default, IEvaluatorRef.Jsii$ProxyNested 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
ConstructorsModifierConstructorDescriptionprotectedCfnEvaluator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEvaluator(software.amazon.jsii.JsiiObjectRef objRef) CfnEvaluator(software.constructs.Construct scope, String id, CfnEvaluatorProps props) Create a newAWS::BedrockAgentCore::Evaluator. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForEvaluator(IEvaluatorRef resource) The timestamp when the evaluator was created.The Amazon Resource Name (ARN) of the evaluator.The unique identifier of the evaluator.The timestamp when the evaluator was last updated.Tag Manager which manages the tags for this resource.The description of the evaluator.The configuration that defines how an evaluator assesses agent performance.The name of the evaluator.A reference to a Evaluator resource.getLevel()getTags()A list of tags to assign to the evaluator.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnEvaluator.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the evaluator.voidsetEvaluatorConfig(IResolvable value) The configuration that defines how an evaluator assesses agent performance.voidThe configuration that defines how an evaluator assesses agent performance.voidsetEvaluatorName(String value) The name of the evaluator.voidvoidA list of tags to assign to the evaluator.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, overrideLogicalId, withMethods 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
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.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
-
CfnEvaluator
protected CfnEvaluator(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEvaluator
protected CfnEvaluator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEvaluator
@Stability(Stable) public CfnEvaluator(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEvaluatorProps props) Create a newAWS::BedrockAgentCore::Evaluator.- 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
-
arnForEvaluator
- Parameters:
resource- This parameter is required.
-
isCfnEvaluator
Checks whether the given object is a CfnEvaluator.- Parameters:
x- This parameter is required.
-
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.
-
getAttrCreatedAt
The timestamp when the evaluator was created. -
getAttrEvaluatorArn
The Amazon Resource Name (ARN) of the evaluator. -
getAttrEvaluatorId
The unique identifier of the evaluator. -
getAttrStatus
-
getAttrUpdatedAt
The timestamp when the evaluator was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEvaluatorRef
A reference to a Evaluator resource.- Specified by:
getEvaluatorRefin interfaceIEvaluatorRef
-
getEvaluatorConfig
The configuration that defines how an evaluator assesses agent performance.Returns union: either
IResolvableorCfnEvaluator.EvaluatorConfigProperty -
setEvaluatorConfig
The configuration that defines how an evaluator assesses agent performance. -
setEvaluatorConfig
@Stability(Stable) public void setEvaluatorConfig(@NotNull CfnEvaluator.EvaluatorConfigProperty value) The configuration that defines how an evaluator assesses agent performance. -
getEvaluatorName
The name of the evaluator. -
setEvaluatorName
The name of the evaluator. -
getLevel
-
setLevel
-
getDescription
The description of the evaluator. -
setDescription
The description of the evaluator. -
getTags
A list of tags to assign to the evaluator. -
setTags
A list of tags to assign to the evaluator.
-