java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::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

      @Stability(Stable) @NotNull public static String arnForEvaluator(@NotNull IEvaluatorRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnEvaluator

      @Stability(Stable) @NotNull public static Boolean isCfnEvaluator(@NotNull Object x)
      Checks whether the given object is a CfnEvaluator.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the evaluator was created.
    • getAttrEvaluatorArn

      @Stability(Stable) @NotNull public String getAttrEvaluatorArn()
      The Amazon Resource Name (ARN) of the evaluator.
    • getAttrEvaluatorId

      @Stability(Stable) @NotNull public String getAttrEvaluatorId()
      The unique identifier of the evaluator.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the evaluator was last updated.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getEvaluatorRef

      @Stability(Stable) @NotNull public EvaluatorReference getEvaluatorRef()
      A reference to a Evaluator resource.
      Specified by:
      getEvaluatorRef in interface IEvaluatorRef
    • getEvaluatorConfig

      @Stability(Stable) @NotNull public Object getEvaluatorConfig()
      The configuration that defines how an evaluator assesses agent performance.

      Returns union: either IResolvable or CfnEvaluator.EvaluatorConfigProperty

    • setEvaluatorConfig

      @Stability(Stable) public void setEvaluatorConfig(@NotNull IResolvable value)
      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

      @Stability(Stable) @NotNull public String getEvaluatorName()
      The name of the evaluator.
    • setEvaluatorName

      @Stability(Stable) public void setEvaluatorName(@NotNull String value)
      The name of the evaluator.
    • getLevel

      @Stability(Stable) @NotNull public String getLevel()
    • setLevel

      @Stability(Stable) public void setLevel(@NotNull String value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the evaluator.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the evaluator.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A list of tags to assign to the evaluator.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A list of tags to assign to the evaluator.