Class CfnOnlineEvaluationConfig

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.CfnOnlineEvaluationConfig
All Implemented Interfaces:
IInspectable, IOnlineEvaluationConfigRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-19T12:55:00.029Z") @Stability(Stable) public class CfnOnlineEvaluationConfig extends CfnResource implements IInspectable, IOnlineEvaluationConfigRef, ITaggableV2
Resource Type definition for AWS::BedrockAgentCore::OnlineEvaluationConfig - Creates an online evaluation configuration for continuous monitoring of agent performance.

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.*;
 CfnOnlineEvaluationConfig cfnOnlineEvaluationConfig = CfnOnlineEvaluationConfig.Builder.create(this, "MyCfnOnlineEvaluationConfig")
         .dataSourceConfig(DataSourceConfigProperty.builder()
                 .cloudWatchLogs(CloudWatchLogsInputConfigProperty.builder()
                         .logGroupNames(List.of("logGroupNames"))
                         .serviceNames(List.of("serviceNames"))
                         .build())
                 .build())
         .evaluationExecutionRoleArn("evaluationExecutionRoleArn")
         .evaluators(List.of(EvaluatorReferenceProperty.builder()
                 .evaluatorId("evaluatorId")
                 .build()))
         .onlineEvaluationConfigName("onlineEvaluationConfigName")
         .rule(RuleProperty.builder()
                 .samplingConfig(SamplingConfigProperty.builder()
                         .samplingPercentage(123)
                         .build())
                 // the properties below are optional
                 .filters(List.of(FilterProperty.builder()
                         .key("key")
                         .operator("operator")
                         .value(FilterValueProperty.builder()
                                 .booleanValue(false)
                                 .doubleValue(123)
                                 .stringValue("stringValue")
                                 .build())
                         .build()))
                 .sessionConfig(SessionConfigProperty.builder()
                         .sessionTimeoutMinutes(123)
                         .build())
                 .build())
         // 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

    • CfnOnlineEvaluationConfig

      protected CfnOnlineEvaluationConfig(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnOnlineEvaluationConfig

      protected CfnOnlineEvaluationConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnOnlineEvaluationConfig

      @Stability(Stable) public CfnOnlineEvaluationConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnOnlineEvaluationConfigProps props)
      Create a new AWS::BedrockAgentCore::OnlineEvaluationConfig.

      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

    • arnForOnlineEvaluationConfig

      @Stability(Stable) @NotNull public static String arnForOnlineEvaluationConfig(@NotNull IOnlineEvaluationConfigRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnOnlineEvaluationConfig

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

      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 online evaluation configuration was created.
    • getAttrExecutionStatus

      @Stability(Stable) @NotNull public String getAttrExecutionStatus()
    • getAttrOnlineEvaluationConfigArn

      @Stability(Stable) @NotNull public String getAttrOnlineEvaluationConfigArn()
      The Amazon Resource Name (ARN) of the online evaluation configuration.
    • getAttrOnlineEvaluationConfigId

      @Stability(Stable) @NotNull public String getAttrOnlineEvaluationConfigId()
      The unique identifier of the online evaluation configuration.
    • getAttrOutputConfig

      @Stability(Stable) @NotNull public IResolvable getAttrOutputConfig()
      The configuration that specifies where evaluation results should be written.
    • getAttrStatus

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

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the online evaluation configuration 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
    • getOnlineEvaluationConfigRef

      @Stability(Stable) @NotNull public OnlineEvaluationConfigReference getOnlineEvaluationConfigRef()
      A reference to a OnlineEvaluationConfig resource.
      Specified by:
      getOnlineEvaluationConfigRef in interface IOnlineEvaluationConfigRef
    • getDataSourceConfig

      @Stability(Stable) @NotNull public Object getDataSourceConfig()
      The configuration that specifies where to read agent traces for online evaluation.

      Returns union: either IResolvable or CfnOnlineEvaluationConfig.DataSourceConfigProperty

    • setDataSourceConfig

      @Stability(Stable) public void setDataSourceConfig(@NotNull IResolvable value)
      The configuration that specifies where to read agent traces for online evaluation.
    • setDataSourceConfig

      @Stability(Stable) public void setDataSourceConfig(@NotNull CfnOnlineEvaluationConfig.DataSourceConfigProperty value)
      The configuration that specifies where to read agent traces for online evaluation.
    • getEvaluationExecutionRoleArn

      @Stability(Stable) @NotNull public String getEvaluationExecutionRoleArn()
      The Amazon Resource Name (ARN) of the IAM role that grants permissions for evaluation.
    • setEvaluationExecutionRoleArn

      @Stability(Stable) public void setEvaluationExecutionRoleArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the IAM role that grants permissions for evaluation.
    • getEvaluators

      @Stability(Stable) @NotNull public Object getEvaluators()
      The list of evaluators to apply during online evaluation.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnOnlineEvaluationConfig.EvaluatorReferenceProperty>

    • setEvaluators

      @Stability(Stable) public void setEvaluators(@NotNull IResolvable value)
      The list of evaluators to apply during online evaluation.
    • setEvaluators

      @Stability(Stable) public void setEvaluators(@NotNull List<Object> value)
      The list of evaluators to apply during online evaluation.
    • getOnlineEvaluationConfigName

      @Stability(Stable) @NotNull public String getOnlineEvaluationConfigName()
      The name of the online evaluation configuration.
    • setOnlineEvaluationConfigName

      @Stability(Stable) public void setOnlineEvaluationConfigName(@NotNull String value)
      The name of the online evaluation configuration.
    • getRule

      @Stability(Stable) @NotNull public Object getRule()
      The evaluation rule that defines sampling configuration, filtering criteria, and session detection settings.

      Returns union: either IResolvable or CfnOnlineEvaluationConfig.RuleProperty

    • setRule

      @Stability(Stable) public void setRule(@NotNull IResolvable value)
      The evaluation rule that defines sampling configuration, filtering criteria, and session detection settings.
    • setRule

      @Stability(Stable) public void setRule(@NotNull CfnOnlineEvaluationConfig.RuleProperty value)
      The evaluation rule that defines sampling configuration, filtering criteria, and session detection settings.
    • getDescription

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

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

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

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