class EvaluatorBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.EvaluatorBase |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#EvaluatorBase |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.EvaluatorBase |
Python | aws_cdk.aws_bedrock_agentcore_alpha.EvaluatorBase |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป EvaluatorBase |
Implements
IConstruct, IDependable, IResource, IEnvironment, IEvaluator, IEvaluator
Extends
Resource
Implemented by
Evaluator
Abstract base class for Evaluator.
Contains methods and attributes valid for evaluators either created with CDK or imported.
Initializer
new EvaluatorBase(scope: Construct, id: string, props?: ResourceProps)
Parameters
- scope
Construct - id
string - props
ResourceProps
Properties
| Name | Type | Description |
|---|---|---|
| env | Resource | The environment this resource belongs to. |
| evaluator | string | The ARN of the evaluator. |
| evaluator | string | The unique identifier of the evaluator. |
| evaluator | string | The name of the evaluator. |
| evaluator | Evaluator | A reference to this Evaluator resource. |
| node | Node | The tree node. |
| stack | Stack | The stack in which this resource is defined. |
| created | string | The timestamp when the evaluator was created. |
| status? | string | The lifecycle status of the evaluator (CREATING, ACTIVE, FAILED, DELETING). |
| updated | string | The timestamp when the evaluator was last updated. |
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
evaluatorArn
Type:
string
The ARN of the evaluator.
evaluatorId
Type:
string
The unique identifier of the evaluator.
evaluatorName
Type:
string
The name of the evaluator.
evaluatorRef
Type:
Evaluator
A reference to this Evaluator resource.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
createdAt?
Type:
string
(optional)
The timestamp when the evaluator was created.
status?
Type:
string
(optional)
The lifecycle status of the evaluator (CREATING, ACTIVE, FAILED, DELETING).
updatedAt?
Type:
string
(optional)
The timestamp when the evaluator was last updated.
Methods
| Name | Description |
|---|---|
| apply | Apply the given removal policy to this resource. |
| grant(grantee, ...actions) | Grants IAM actions to the IAM Principal. |
| to | Returns a string representation of this construct. |
| with(...mixins) | Applies one or more mixins to this construct. |
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
RemovalPolicy
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
grant(grantee, ...actions)
public grant(grantee: IGrantable, ...actions: string[]): Grant
Parameters
- grantee
IGrantableโ - The IAM principal to grant permissions to. - actions
stringโ - The actions to grant.
Returns
Grants IAM actions to the IAM Principal.
[disable-awslint:no-grants]
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.

.NET
Go
Java
Python
TypeScript (