CfnOnlineEvaluationConfigPropsMixin
- class aws_cdk.mixins_preview.aws_bedrockagentcore.mixins.CfnOnlineEvaluationConfigPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::BedrockAgentCore::OnlineEvaluationConfig - Creates an online evaluation configuration for continuous monitoring of agent performance.
- See:
- CloudformationResource:
AWS::BedrockAgentCore::OnlineEvaluationConfig
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_online_evaluation_config_props_mixin = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin(bedrockagentcore_mixins.CfnOnlineEvaluationConfigMixinProps( data_source_config=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.DataSourceConfigProperty( cloud_watch_logs=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.CloudWatchLogsInputConfigProperty( log_group_names=["logGroupNames"], service_names=["serviceNames"] ) ), description="description", evaluation_execution_role_arn="evaluationExecutionRoleArn", evaluators=[bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.EvaluatorReferenceProperty( evaluator_id="evaluatorId" )], online_evaluation_config_name="onlineEvaluationConfigName", rule=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.RuleProperty( filters=[bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterProperty( key="key", operator="operator", value=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterValueProperty( boolean_value=False, double_value=123, string_value="stringValue" ) )], sampling_config=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.SamplingConfigProperty( sampling_percentage=123 ), session_config=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.SessionConfigProperty( session_timeout_minutes=123 ) ), tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::BedrockAgentCore::OnlineEvaluationConfig.- Parameters:
props (
Union[CfnOnlineEvaluationConfigMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['dataSourceConfig', 'description', 'evaluationExecutionRoleArn', 'evaluators', 'onlineEvaluationConfigName', 'rule', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
CloudWatchLogsInputConfigProperty
- class CfnOnlineEvaluationConfigPropsMixin.CloudWatchLogsInputConfigProperty(*, log_group_names=None, service_names=None)
Bases:
objectThe configuration for reading agent traces from CloudWatch logs.
- Parameters:
log_group_names (
Optional[Sequence[str]]) – The list of CloudWatch log group names to monitor for agent traces.service_names (
Optional[Sequence[str]]) – The list of service names to filter traces within the specified log groups.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins cloud_watch_logs_input_config_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.CloudWatchLogsInputConfigProperty( log_group_names=["logGroupNames"], service_names=["serviceNames"] )
Attributes
- log_group_names
The list of CloudWatch log group names to monitor for agent traces.
- service_names
The list of service names to filter traces within the specified log groups.
CloudWatchOutputConfigProperty
- class CfnOnlineEvaluationConfigPropsMixin.CloudWatchOutputConfigProperty(*, log_group_name=None)
Bases:
objectThe CloudWatch configuration for writing evaluation results.
- Parameters:
log_group_name (
Optional[str]) – The CloudWatch log group name for evaluation results.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins cloud_watch_output_config_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.CloudWatchOutputConfigProperty( log_group_name="logGroupName" )
Attributes
- log_group_name
The CloudWatch log group name for evaluation results.
DataSourceConfigProperty
- class CfnOnlineEvaluationConfigPropsMixin.DataSourceConfigProperty(*, cloud_watch_logs=None)
Bases:
objectThe configuration that specifies where to read agent traces for online evaluation.
- Parameters:
cloud_watch_logs (
Union[IResolvable,CloudWatchLogsInputConfigProperty,Dict[str,Any],None]) – The configuration for reading agent traces from CloudWatch logs.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins data_source_config_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.DataSourceConfigProperty( cloud_watch_logs=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.CloudWatchLogsInputConfigProperty( log_group_names=["logGroupNames"], service_names=["serviceNames"] ) )
Attributes
- cloud_watch_logs
The configuration for reading agent traces from CloudWatch logs.
EvaluatorReferenceProperty
- class CfnOnlineEvaluationConfigPropsMixin.EvaluatorReferenceProperty(*, evaluator_id=None)
Bases:
objectThe reference to an evaluator used in online evaluation configurations.
- Parameters:
evaluator_id (
Optional[str]) – The unique identifier of the evaluator.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins evaluator_reference_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.EvaluatorReferenceProperty( evaluator_id="evaluatorId" )
Attributes
- evaluator_id
The unique identifier of the evaluator.
FilterProperty
- class CfnOnlineEvaluationConfigPropsMixin.FilterProperty(*, key=None, operator=None, value=None)
Bases:
objectThe filter that applies conditions to agent traces during online evaluation.
- Parameters:
key (
Optional[str]) – The key or field name to filter on within the agent trace data.operator (
Optional[str]) – The comparison operator to use for filtering.value (
Union[IResolvable,FilterValueProperty,Dict[str,Any],None]) – The value used in filter comparisons.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins filter_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterProperty( key="key", operator="operator", value=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterValueProperty( boolean_value=False, double_value=123, string_value="stringValue" ) )
Attributes
- key
The key or field name to filter on within the agent trace data.
- operator
The comparison operator to use for filtering.
- value
The value used in filter comparisons.
FilterValueProperty
- class CfnOnlineEvaluationConfigPropsMixin.FilterValueProperty(*, boolean_value=None, double_value=None, string_value=None)
Bases:
objectThe value used in filter comparisons.
- Parameters:
boolean_value (
Union[bool,IResolvable,None]) – The boolean value for true/false filtering conditions.double_value (
Union[int,float,None]) – The numeric value for numerical filtering.string_value (
Optional[str]) – The string value for text-based filtering.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins filter_value_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterValueProperty( boolean_value=False, double_value=123, string_value="stringValue" )
Attributes
- boolean_value
The boolean value for true/false filtering conditions.
- double_value
The numeric value for numerical filtering.
- string_value
The string value for text-based filtering.
OutputConfigProperty
- class CfnOnlineEvaluationConfigPropsMixin.OutputConfigProperty(*, cloud_watch_config=None)
Bases:
objectThe configuration that specifies where evaluation results should be written.
- Parameters:
cloud_watch_config (
Union[IResolvable,CloudWatchOutputConfigProperty,Dict[str,Any],None]) – The CloudWatch configuration for writing evaluation results.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins output_config_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.OutputConfigProperty( cloud_watch_config=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.CloudWatchOutputConfigProperty( log_group_name="logGroupName" ) )
Attributes
- cloud_watch_config
The CloudWatch configuration for writing evaluation results.
RuleProperty
- class CfnOnlineEvaluationConfigPropsMixin.RuleProperty(*, filters=None, sampling_config=None, session_config=None)
Bases:
objectThe evaluation rule that defines sampling configuration, filtering criteria, and session detection settings.
- Parameters:
filters (
Union[IResolvable,Sequence[Union[IResolvable,FilterProperty,Dict[str,Any]]],None]) – The list of filters that determine which agent traces should be included in the evaluation.sampling_config (
Union[IResolvable,SamplingConfigProperty,Dict[str,Any],None]) – The configuration that controls what percentage of agent traces are sampled for evaluation.session_config (
Union[IResolvable,SessionConfigProperty,Dict[str,Any],None]) – The configuration that defines how agent sessions are detected.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins rule_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.RuleProperty( filters=[bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterProperty( key="key", operator="operator", value=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.FilterValueProperty( boolean_value=False, double_value=123, string_value="stringValue" ) )], sampling_config=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.SamplingConfigProperty( sampling_percentage=123 ), session_config=bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.SessionConfigProperty( session_timeout_minutes=123 ) )
Attributes
- filters
The list of filters that determine which agent traces should be included in the evaluation.
- sampling_config
The configuration that controls what percentage of agent traces are sampled for evaluation.
- session_config
The configuration that defines how agent sessions are detected.
SamplingConfigProperty
- class CfnOnlineEvaluationConfigPropsMixin.SamplingConfigProperty(*, sampling_percentage=None)
Bases:
objectThe configuration that controls what percentage of agent traces are sampled for evaluation.
- Parameters:
sampling_percentage (
Union[int,float,None]) – The percentage of agent traces to sample for evaluation.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins sampling_config_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.SamplingConfigProperty( sampling_percentage=123 )
Attributes
- sampling_percentage
The percentage of agent traces to sample for evaluation.
SessionConfigProperty
- class CfnOnlineEvaluationConfigPropsMixin.SessionConfigProperty(*, session_timeout_minutes=None)
Bases:
objectThe configuration that defines how agent sessions are detected.
- Parameters:
session_timeout_minutes (
Union[int,float,None]) – The number of minutes of inactivity after which an agent session is considered complete.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins session_config_property = bedrockagentcore_mixins.CfnOnlineEvaluationConfigPropsMixin.SessionConfigProperty( session_timeout_minutes=123 )
Attributes
- session_timeout_minutes
The number of minutes of inactivity after which an agent session is considered complete.