# Amazon Bedrock AgentCore Construct Library

> Version 2.278.0-alpha.0

> **Separate package**
>
> `@aws-cdk/aws-bedrock-agentcore-alpha` is not part of `aws-cdk-lib` — install it separately:
>
> ```sh
> npm install @aws-cdk/aws-bedrock-agentcore-alpha
> pip install aws-cdk.aws-bedrock-agentcore-alpha
> ```
---

![Deprecated](https://img.shields.io/badge/deprecated-critical.svg?style=for-the-badge)

> This API may emit warnings. Backward compatibility is not guaranteed.

---

All constructs moved to aws-cdk-lib/aws-bedrockagentcore.

| **Language**                                                                                   | **Package**                             |
| :--------------------------------------------------------------------------------------------- | --------------------------------------- |
| ![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) TypeScript | `@aws-cdk/aws-bedrock-agentcore-alpha` |

## Migration to Stable

All constructs in this module, including the Policy submodule, have moved to `aws-cdk-lib/aws-bedrockagentcore`:

TypeScript:

```ts
// Before
import * as agentcore from '@aws-cdk/aws-bedrock-agentcore-alpha';
```

Python:

```python
# Before
import aws_cdk.aws_bedrock_agentcore_alpha as agentcore
```

Java:

```java
// Before
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
```

C# / .NET:

```csharp
// Before
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
```

Golang:

```go
// Before
import agentcore "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
```

TypeScript:

```ts
// After
import * as agentcore from 'aws-cdk-lib/aws-bedrockagentcore';
```

Python:

```python
# After
import aws_cdk.aws_bedrockagentcore as agentcore
```

Java:

```java
// After
import software.amazon.awscdk.services.bedrockagentcore.*;
```

C# / .NET:

```csharp
// After
using Amazon.CDK.AWS.BedrockAgentCore;
```

Golang:

```go
// After
import agentcore "github.com/aws/aws-cdk-go/awscdk"
```

The following constructs are now in stable:

- **Runtime**: [`Runtime`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Runtime.html), [`RuntimeEndpoint`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeEndpoint.html), [`AgentRuntimeArtifact`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AgentRuntimeArtifact.html), [`NetworkConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.NetworkConfiguration.html), `Observability`
- **Gateway**: [`Gateway`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Gateway.html), [`GatewayTarget`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTarget.html), [`GatewayAuthorizer`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayAuthorizer.html), [`GatewayCredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayCredentialProvider.html), `Interceptor`
- **Tools**: [`BrowserCustom`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserCustom.html), [`CodeInterpreterCustom`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterCustom.html)
- **Memory**: [`Memory`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Memory.html), [`MemoryStrategy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryStrategy.html)
- **Evaluation**: [`OnlineEvaluationConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationConfig.html), [`Evaluator`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Evaluator.html), `EvaluatorSelector`
- **Identity**: [`OAuth2CredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProvider.html), [`ApiKeyCredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProvider.html), [`WorkloadIdentity`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.WorkloadIdentity.html)
- **Policy**: [`PolicyEngine`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngine.html), [`Policy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Policy.html), [`PolicyStatement`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyStatement.html), [`PolicyValidationMode`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyValidationMode.html), [`PolicyEngineMode`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngineMode.html)

The stable Policy submodule has API changes from this module:

- [`PolicyStatement`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyStatement.html) is a props object instead of a fluent builder. Conditions are passed as the `when` array.
- A stable [`Gateway`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Gateway.html) associates a policy engine through the `policyEngineConfiguration` prop, and grants the gateway role evaluate permissions automatically.
- The default gateway enforcement mode is `PolicyEngineMode.ENFORCE` instead of `LOG_ONLY`.

See the `aws-cdk-lib/aws-bedrockagentcore` README for the stable Policy documentation.

## Policy Engine

A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with a gateway, the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies.

For more information, see the [Policy in Amazon Bedrock AgentCore documentation](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy.html).

### PolicyEngine Properties

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `policyEngineName` | `string` | No | The name of the policy engine. Valid characters: a-z, A-Z, 0-9, _ (underscore). Must start with a letter, 1-48 characters. If not provided, a unique name will be auto-generated |
| `description` | `string` | No | Optional description for the policy engine (max 4,096 characters). Default: no description |
| `kmsKey` | `IKey` | No | Custom KMS key for encryption. **IMPORTANT**: Once set, cannot be changed (requires replacement). Must be symmetric ENCRYPT_DECRYPT key. If key becomes inaccessible, all authorization decisions will be DENIED. Default: AWS owned key |
| `tags` | `{ [key: string]: string }` | No | Tags for the policy engine (max 50 tags). Default: no tags |

### Understanding Cedar Policies in AgentCore

Policies are constructed using [Cedar language](https://www.cedarpolicy.com/en/tutorial), an open source language for writing and enforcing authorization policies.
Cedar policies in AgentCore follow a specific structure with three main components: **Principal**, **Action**, and **Resource**. Understanding how these components work together is critical for writing effective policies.

#### Policy Structure

Every Cedar policy has this basic structure:

```cedar
permit(              // or forbid
  principal,         // Who is making the request
  action,            // What operation they want to perform
  resource           // What Gateway/tool they want to access
)
when {               // Optional conditions
  // Additional constraints
};
```

Example Policy

```cedar
permit(
  principal,
  action == AgentCore::Action::"ApplicationToolTarget___create_application",
  resource == AgentCore::Gateway::"<gateway-arn>"
) when {
  context.input.coverage_amount <= 1000000
};
```

### Basic PolicyEngine and Policy Creation

Create a policy engine and add policies to it.

#### Policy Engine Mode

When associating a policy engine with a gateway, you can control the enforcement behavior using [`PolicyEngineMode`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngineMode.html):

- `PolicyEngineMode.LOG_ONLY` (default) — evaluates actions and adds traces but does not enforce decisions. Use this mode for testing and validation before enabling enforcement.
- `PolicyEngineMode.ENFORCE` — actively allows or denies agent operations based on Cedar policy evaluation.

TypeScript:

```ts

// Create a Policy engine
const policyEngine = new agentcore.PolicyEngine(this, "MyPolicyEngine", {
  policyEngineName: "my_policy_engine",
  description: "Policy engine for access control",
});

const gateway = new agentcore.Gateway(this, "MyGateway", {
  gatewayName: "my-gateway",
  policyEngineConfiguration: {
    policyEngine: policyEngine,
    mode: agentcore.PolicyEngineMode.ENFORCE, // Default is LOG_ONLY
  },
});

// Add policy to policy engine
policyEngine.addPolicy("AllowAllActions", {
  definition: `
    permit(
      principal,
      action,
      resource == AgentCore::Gateway::"${gateway.gatewayArn}"
    );
  `,
  description: "Allow all actions on specific gateway (development)",
  validationMode: agentcore.PolicyValidationMode.IGNORE_ALL_FINDINGS, // This will ignore all cedar warnings
});

// you can add multiple policies to the policy engine
policyEngine.addPolicy("SpecificToolPolicy", {
  definition: `
    permit(
      principal is AgentCore::OAuthUser,
      action == AgentCore::Action::"WeatherTool__get_forecast",
      resource == AgentCore::Gateway::"${gateway.gatewayArn}"
    );
  `,
  description: "Allow specific weather tool access",
  validationMode: agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS, // This will fail policy creation for any cedar warning
});
```

Python:

```python
# Create a Policy engine
policy_engine = agentcore.PolicyEngine(self, "MyPolicyEngine",
    policy_engine_name="my_policy_engine",
    description="Policy engine for access control"
)

gateway = agentcore.Gateway(self, "MyGateway",
    gateway_name="my-gateway",
    policy_engine_configuration=agentcore.GatewayPolicyEngineConfig(
        policy_engine=policy_engine,
        mode=agentcore.PolicyEngineMode.ENFORCE
    )
)

# Add policy to policy engine
policy_engine.add_policy("AllowAllActions",
    definition=f"""
        permit(
          principal,
          action,
          resource == AgentCore::Gateway::\"{gateway.gatewayArn}\"
        );
      """,
    description="Allow all actions on specific gateway (development)",
    validation_mode=agentcore.PolicyValidationMode.IGNORE_ALL_FINDINGS
)

# you can add multiple policies to the policy engine
policy_engine.add_policy("SpecificToolPolicy",
    definition=f"""
        permit(
          principal is AgentCore::OAuthUser,
          action == AgentCore::Action::\"WeatherTool__get_forecast\",
          resource == AgentCore::Gateway::\"{gateway.gatewayArn}\"
        );
      """,
    description="Allow specific weather tool access",
    validation_mode=agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS
)
```

Java:

```java
// Create a Policy engine
PolicyEngine policyEngine = PolicyEngine.Builder.create(this, "MyPolicyEngine")
        .policyEngineName("my_policy_engine")
        .description("Policy engine for access control")
        .build();

Gateway gateway = Gateway.Builder.create(this, "MyGateway")
        .gatewayName("my-gateway")
        .policyEngineConfiguration(GatewayPolicyEngineConfig.builder()
                .policyEngine(policyEngine)
                .mode(PolicyEngineMode.ENFORCE)
                .build())
        .build();

// Add policy to policy engine
policyEngine.addPolicy("AllowAllActions", AddPolicyOptions.builder()
        .definition(String.format("%n    permit(%n      principal,%n      action,%n      resource == AgentCore::Gateway::\"%s\"%n    );%n  ", gateway.getGatewayArn()))
        .description("Allow all actions on specific gateway (development)")
        .validationMode(PolicyValidationMode.IGNORE_ALL_FINDINGS)
        .build());

// you can add multiple policies to the policy engine
policyEngine.addPolicy("SpecificToolPolicy", AddPolicyOptions.builder()
        .definition(String.format("%n    permit(%n      principal is AgentCore::OAuthUser,%n      action == AgentCore::Action::\"WeatherTool__get_forecast\",%n      resource == AgentCore::Gateway::\"%s\"%n    );%n  ", gateway.getGatewayArn()))
        .description("Allow specific weather tool access")
        .validationMode(PolicyValidationMode.FAIL_ON_ANY_FINDINGS)
        .build());
```

C# / .NET:

```csharp
// Create a Policy engine
var policyEngine = new PolicyEngine(this, "MyPolicyEngine", new PolicyEngineProps {
    PolicyEngineName = "my_policy_engine",
    Description = "Policy engine for access control"
});

var gateway = new Gateway(this, "MyGateway", new GatewayProps {
    GatewayName = "my-gateway",
    PolicyEngineConfiguration = new GatewayPolicyEngineConfig {
        PolicyEngine = policyEngine,
        Mode = PolicyEngineMode.ENFORCE
    }
});

// Add policy to policy engine
policyEngine.AddPolicy("AllowAllActions", new AddPolicyOptions {
    Definition = $@"
        permit(
          principal,
          action,
          resource == AgentCore::Gateway::""{gateway.gatewayArn}""
        );
      ",
    Description = "Allow all actions on specific gateway (development)",
    ValidationMode = PolicyValidationMode.IGNORE_ALL_FINDINGS
});

// you can add multiple policies to the policy engine
policyEngine.AddPolicy("SpecificToolPolicy", new AddPolicyOptions {
    Definition = $@"
        permit(
          principal is AgentCore::OAuthUser,
          action == AgentCore::Action::""WeatherTool__get_forecast"",
          resource == AgentCore::Gateway::""{gateway.gatewayArn}""
        );
      ",
    Description = "Allow specific weather tool access",
    ValidationMode = PolicyValidationMode.FAIL_ON_ANY_FINDINGS
});
```

Golang:

```go
// Create a Policy engine
policyEngine := agentcore.NewPolicyEngine(this, jsii.String("MyPolicyEngine"), &PolicyEngineProps{
	PolicyEngineName: jsii.String("my_policy_engine"),
	Description: jsii.String("Policy engine for access control"),
})

gateway := agentcore.NewGateway(this, jsii.String("MyGateway"), &GatewayProps{
	GatewayName: jsii.String("my-gateway"),
	PolicyEngineConfiguration: &GatewayPolicyEngineConfig{
		PolicyEngine: policyEngine,
		Mode: agentcore.PolicyEngineMode_ENFORCE(),
	},
})

// Add policy to policy engine
policyEngine.AddPolicy(jsii.String("AllowAllActions"), &AddPolicyOptions{
	Definition: fmt.Sprintf("\n    permit(\n      principal,\n      action,\n      resource == AgentCore::Gateway::\"%v\"\n    );\n  ", gateway.GatewayArn),
	Description: jsii.String("Allow all actions on specific gateway (development)"),
	ValidationMode: agentcore.PolicyValidationMode_IGNORE_ALL_FINDINGS(),
})

// you can add multiple policies to the policy engine
policyEngine.AddPolicy(jsii.String("SpecificToolPolicy"), &AddPolicyOptions{
	Definition: fmt.Sprintf("\n    permit(\n      principal is AgentCore::OAuthUser,\n      action == AgentCore::Action::\"WeatherTool__get_forecast\",\n      resource == AgentCore::Gateway::\"%v\"\n    );\n  ", gateway.*GatewayArn),
	Description: jsii.String("Allow specific weather tool access"),
	ValidationMode: agentcore.PolicyValidationMode_FAIL_ON_ANY_FINDINGS(),
})
```

### Type-Safe Policy Builder

For a more type-safe approach, use the [`PolicyStatement`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyStatement.html) builder instead of writing raw Cedar syntax.

TypeScript:

```ts
const gateway = new agentcore.Gateway(this, "MyGateway", {
  gatewayName: "my-gateway",
});

const policyEngine = new agentcore.PolicyEngine(this, "MyPolicyEngine", {
  policyEngineName: "my_policy_engine",
});

const allowAllPolicy = new agentcore.Policy(this, "AllowAllPolicy", {
  policyEngine: policyEngine,
  policyName: "allow_all",
  statement: agentcore.PolicyStatement.permit()
    .forAllPrincipals() // ** This will give overly permission to all principals
    .onAllActions()
    .onResource('AgentCore::Gateway', gateway.gatewayArn),
  description: "Allow all actions on specific gateway (development only)",
  validationMode: agentcore.PolicyValidationMode.IGNORE_ALL_FINDINGS,
});

// Generated Cedar:
// permit(
//   principal,
//   action,
//   resource == AgentCore::Gateway::"arn:aws:bedrock-agentcore:region:account:gateway/gateway-id"
// );
```

Python:

```python
gateway = agentcore.Gateway(self, "MyGateway",
    gateway_name="my-gateway"
)

policy_engine = agentcore.PolicyEngine(self, "MyPolicyEngine",
    policy_engine_name="my_policy_engine"
)

allow_all_policy = agentcore.Policy(self, "AllowAllPolicy",
    policy_engine=policy_engine,
    policy_name="allow_all",
    statement=agentcore.PolicyStatement.permit().for_all_principals().on_all_actions().on_resource("AgentCore::Gateway", gateway.gateway_arn),
    description="Allow all actions on specific gateway (development only)",
    validation_mode=agentcore.PolicyValidationMode.IGNORE_ALL_FINDINGS
)
```

Java:

```java
Gateway gateway = Gateway.Builder.create(this, "MyGateway")
        .gatewayName("my-gateway")
        .build();

PolicyEngine policyEngine = PolicyEngine.Builder.create(this, "MyPolicyEngine")
        .policyEngineName("my_policy_engine")
        .build();

Policy allowAllPolicy = Policy.Builder.create(this, "AllowAllPolicy")
        .policyEngine(policyEngine)
        .policyName("allow_all")
        .statement(PolicyStatement.permit().forAllPrincipals().onAllActions().onResource("AgentCore::Gateway", gateway.getGatewayArn()))
        .description("Allow all actions on specific gateway (development only)")
        .validationMode(PolicyValidationMode.IGNORE_ALL_FINDINGS)
        .build();
```

C# / .NET:

```csharp
var gateway = new Gateway(this, "MyGateway", new GatewayProps {
    GatewayName = "my-gateway"
});

var policyEngine = new PolicyEngine(this, "MyPolicyEngine", new PolicyEngineProps {
    PolicyEngineName = "my_policy_engine"
});

var allowAllPolicy = new Policy(this, "AllowAllPolicy", new PolicyProps {
    PolicyEngine = policyEngine,
    PolicyName = "allow_all",
    Statement = PolicyStatement.Permit().ForAllPrincipals().OnAllActions().OnResource("AgentCore::Gateway", gateway.GatewayArn),
    Description = "Allow all actions on specific gateway (development only)",
    ValidationMode = PolicyValidationMode.IGNORE_ALL_FINDINGS
});
```

Golang:

```go
gateway := agentcore.NewGateway(this, jsii.String("MyGateway"), &GatewayProps{
	GatewayName: jsii.String("my-gateway"),
})

policyEngine := agentcore.NewPolicyEngine(this, jsii.String("MyPolicyEngine"), &PolicyEngineProps{
	PolicyEngineName: jsii.String("my_policy_engine"),
})

allowAllPolicy := agentcore.NewPolicy(this, jsii.String("AllowAllPolicy"), &PolicyProps{
	PolicyEngine: policyEngine,
	PolicyName: jsii.String("allow_all"),
	Statement: agentcore.PolicyStatement_Permit().ForAllPrincipals().OnAllActions().OnResource(jsii.String("AgentCore::Gateway"), gateway.GatewayArn),
	Description: jsii.String("Allow all actions on specific gateway (development only)"),
	ValidationMode: agentcore.PolicyValidationMode_IGNORE_ALL_FINDINGS(),
})
```

#### Policy with Specific Actions

TypeScript:

```ts
declare const policyEngine: agentcore.PolicyEngine;
declare const gateway: agentcore.Gateway;

// Allow specific tool actions on specific gateway
// Action names follow pattern: "ToolName__operation"
policyEngine.addPolicy("SpecificToolPolicy", {
  statement: agentcore.PolicyStatement.permit()
    .forPrincipal('AgentCore::OAuthUser::your-client-id')
    .onActions([
      'AgentCore::Action::WeatherTool__get_forecast',
      'AgentCore::Action::WeatherTool__get_current',
    ])
    .onResource('AgentCore::Gateway', gateway.gatewayArn),
  description: "Allow specific weather tool operations",
  validationMode: agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS,
});

// Generated Cedar:
// permit(
//   principal is AgentCore::OAuthUser,
//   action in [
//     AgentCore::Action::"WeatherTool__get_forecast",
//     AgentCore::Action::"WeatherTool__get_current"
//   ],
//   resource == AgentCore::Gateway::"arn:aws:bedrock-agentcore:us-east-1:123:gateway/gw-123"
// );
```

Python:

```python
# policy_engine: agentcore.PolicyEngine
# gateway: agentcore.Gateway

# Allow specific tool actions on specific gateway
# Action names follow pattern: "ToolName__operation"
policy_engine.add_policy("SpecificToolPolicy",
    statement=agentcore.PolicyStatement.permit().for_principal("AgentCore::OAuthUser::your-client-id").on_actions(["AgentCore::Action::WeatherTool__get_forecast", "AgentCore::Action::WeatherTool__get_current"
    ]).on_resource("AgentCore::Gateway", gateway.gateway_arn),
    description="Allow specific weather tool operations",
    validation_mode=agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS
)
```

Java:

```java
PolicyEngine policyEngine;
Gateway gateway;

// Allow specific tool actions on specific gateway
// Action names follow pattern: "ToolName__operation"
policyEngine.addPolicy("SpecificToolPolicy", AddPolicyOptions.builder()
        .statement(PolicyStatement.permit().forPrincipal("AgentCore::OAuthUser::your-client-id").onActions(List.of("AgentCore::Action::WeatherTool__get_forecast", "AgentCore::Action::WeatherTool__get_current")).onResource("AgentCore::Gateway", gateway.getGatewayArn()))
        .description("Allow specific weather tool operations")
        .validationMode(PolicyValidationMode.FAIL_ON_ANY_FINDINGS)
        .build());
```

C# / .NET:

```csharp
PolicyEngine policyEngine;
Gateway gateway;

// Allow specific tool actions on specific gateway
// Action names follow pattern: "ToolName__operation"
policyEngine.AddPolicy("SpecificToolPolicy", new AddPolicyOptions {
    Statement = PolicyStatement.Permit().ForPrincipal("AgentCore::OAuthUser::your-client-id").OnActions(new [] { "AgentCore::Action::WeatherTool__get_forecast", "AgentCore::Action::WeatherTool__get_current" }).OnResource("AgentCore::Gateway", gateway.GatewayArn),
    Description = "Allow specific weather tool operations",
    ValidationMode = PolicyValidationMode.FAIL_ON_ANY_FINDINGS
});
```

Golang:

```go
var policyEngine PolicyEngine
var gateway Gateway

// Allow specific tool actions on specific gateway
// Action names follow pattern: "ToolName__operation"
policyEngine.AddPolicy(jsii.String("SpecificToolPolicy"), &AddPolicyOptions{
	Statement: agentcore.PolicyStatement_Permit().ForPrincipal(jsii.String("AgentCore::OAuthUser::your-client-id")).OnActions([]*string{
		jsii.String("AgentCore::Action::WeatherTool__get_forecast"),
		jsii.String("AgentCore::Action::WeatherTool__get_current"),
	}).OnResource(jsii.String("AgentCore::Gateway"), gateway.GatewayArn),
	Description: jsii.String("Allow specific weather tool operations"),
	ValidationMode: agentcore.PolicyValidationMode_FAIL_ON_ANY_FINDINGS(),
})
```

#### Policy with Conditions

Use `when` clauses to add advanced conditions based on principal tags (from OAuth token) or context:

TypeScript:

```ts
declare const policyEngine: agentcore.PolicyEngine;
declare const gateway: agentcore.Gateway;

// Policy with when conditions using principal tags
const conditionalPolicy = new agentcore.Policy(this, "ConditionalPolicy", {
  policyEngine: policyEngine,
  policyName: "conditional_access",
  statement: agentcore.PolicyStatement.permit()
    .forPrincipal('AgentCore::OAuthUser')  // Type constraint
    .onAllActions()
    .onResource('AgentCore::Gateway', gateway.gatewayArn)  // Specific ARN
    .when()
      .principalAttribute('department').equalTo('Engineering')
      .and()
      .contextAttribute('input.priority').equalTo('high')
      .done(),
  description: "Allow engineers for high-priority requests",
  validationMode: agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS,
});

// Generated Cedar:
// permit(
//   principal is AgentCore::OAuthUser,
//   action,
//   resource == AgentCore::Gateway::"arn:..."
// )
// when {
//   principal.department == "Engineering" && context.input.priority == "high"
// };
```

Python:

```python
# policy_engine: agentcore.PolicyEngine
# gateway: agentcore.Gateway

# Policy with when conditions using principal tags
conditional_policy = agentcore.Policy(self, "ConditionalPolicy",
    policy_engine=policy_engine,
    policy_name="conditional_access",
    statement=agentcore.PolicyStatement.permit().for_principal("AgentCore::OAuthUser").on_all_actions().on_resource("AgentCore::Gateway", gateway.gateway_arn).when().principal_attribute("department").equal_to("Engineering").and().context_attribute("input.priority").equal_to("high").done(),
    description="Allow engineers for high-priority requests",
    validation_mode=agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS
)
```

Java:

```java
PolicyEngine policyEngine;
Gateway gateway;

// Policy with when conditions using principal tags
Policy conditionalPolicy = Policy.Builder.create(this, "ConditionalPolicy")
        .policyEngine(policyEngine)
        .policyName("conditional_access")
        .statement(PolicyStatement.permit().forPrincipal("AgentCore::OAuthUser").onAllActions().onResource("AgentCore::Gateway", gateway.gatewayArn).when().principalAttribute("department").equalTo("Engineering").and().contextAttribute("input.priority").equalTo("high").done())
        .description("Allow engineers for high-priority requests")
        .validationMode(PolicyValidationMode.FAIL_ON_ANY_FINDINGS)
        .build();
```

C# / .NET:

```csharp
PolicyEngine policyEngine;
Gateway gateway;

// Policy with when conditions using principal tags
var conditionalPolicy = new Policy(this, "ConditionalPolicy", new PolicyProps {
    PolicyEngine = policyEngine,
    PolicyName = "conditional_access",
    Statement = PolicyStatement.Permit().ForPrincipal("AgentCore::OAuthUser").OnAllActions().OnResource("AgentCore::Gateway", gateway.GatewayArn).When().PrincipalAttribute("department").EqualTo("Engineering").And().ContextAttribute("input.priority").EqualTo("high").Done(),
    Description = "Allow engineers for high-priority requests",
    ValidationMode = PolicyValidationMode.FAIL_ON_ANY_FINDINGS
});
```

Golang:

```go
var policyEngine PolicyEngine
var gateway Gateway

// Policy with when conditions using principal tags
conditionalPolicy := agentcore.NewPolicy(this, jsii.String("ConditionalPolicy"), &PolicyProps{
	PolicyEngine: policyEngine,
	PolicyName: jsii.String("conditional_access"),
	Statement: agentcore.PolicyStatement_Permit().ForPrincipal(jsii.String("AgentCore::OAuthUser")).OnAllActions().OnResource(jsii.String("AgentCore::Gateway"), gateway.GatewayArn).When().PrincipalAttribute(jsii.String("department")).EqualTo(jsii.String("Engineering")).And().ContextAttribute(jsii.String("input.priority")).*EqualTo(jsii.String("high")).Done(),
	Description: jsii.String("Allow engineers for high-priority requests"),
	ValidationMode: agentcore.PolicyValidationMode_FAIL_ON_ANY_FINDINGS(),
})
```

#### Policy with Exclusions (unless)

Use `unless` clauses to exclude specific conditions from a policy. The policy applies when the `unless` conditions are NOT met:

TypeScript:

```ts
declare const policyEngine: agentcore.PolicyEngine;
declare const gateway: agentcore.Gateway;

// Allow access unless the user is suspended
const policyWithUnless = new agentcore.Policy(this, "UnlessPolicy", {
  policyEngine: policyEngine,
  policyName: "unless_suspended",
  statement: agentcore.PolicyStatement.permit()
    .forPrincipal('AgentCore::OAuthUser')
    .onAllActions()
    .onResource('AgentCore::Gateway', gateway.gatewayArn)
    .unless()
      .principalAttribute('suspended').equalTo(true)
      .done(),
  description: "Allow all actions unless user is suspended",
  validationMode: agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS,
});

// Generated Cedar:
// permit(
//   principal is AgentCore::OAuthUser,
//   action,
//   resource == AgentCore::Gateway::"arn:..."
// )
// unless {
//   principal.suspended == true
// };
```

Python:

```python
# policy_engine: agentcore.PolicyEngine
# gateway: agentcore.Gateway

# Allow access unless the user is suspended
policy_with_unless = agentcore.Policy(self, "UnlessPolicy",
    policy_engine=policy_engine,
    policy_name="unless_suspended",
    statement=agentcore.PolicyStatement.permit().for_principal("AgentCore::OAuthUser").on_all_actions().on_resource("AgentCore::Gateway", gateway.gateway_arn).unless().principal_attribute("suspended").equal_to(True).done(),
    description="Allow all actions unless user is suspended",
    validation_mode=agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS
)
```

Java:

```java
PolicyEngine policyEngine;
Gateway gateway;

// Allow access unless the user is suspended
Policy policyWithUnless = Policy.Builder.create(this, "UnlessPolicy")
        .policyEngine(policyEngine)
        .policyName("unless_suspended")
        .statement(PolicyStatement.permit().forPrincipal("AgentCore::OAuthUser").onAllActions().onResource("AgentCore::Gateway", gateway.gatewayArn).unless().principalAttribute("suspended").equalTo(true).done())
        .description("Allow all actions unless user is suspended")
        .validationMode(PolicyValidationMode.FAIL_ON_ANY_FINDINGS)
        .build();
```

C# / .NET:

```csharp
PolicyEngine policyEngine;
Gateway gateway;

// Allow access unless the user is suspended
var policyWithUnless = new Policy(this, "UnlessPolicy", new PolicyProps {
    PolicyEngine = policyEngine,
    PolicyName = "unless_suspended",
    Statement = PolicyStatement.Permit().ForPrincipal("AgentCore::OAuthUser").OnAllActions().OnResource("AgentCore::Gateway", gateway.GatewayArn).Unless().PrincipalAttribute("suspended").EqualTo(true).Done(),
    Description = "Allow all actions unless user is suspended",
    ValidationMode = PolicyValidationMode.FAIL_ON_ANY_FINDINGS
});
```

Golang:

```go
var policyEngine PolicyEngine
var gateway Gateway

// Allow access unless the user is suspended
policyWithUnless := agentcore.NewPolicy(this, jsii.String("UnlessPolicy"), &PolicyProps{
	PolicyEngine: policyEngine,
	PolicyName: jsii.String("unless_suspended"),
	Statement: agentcore.PolicyStatement_Permit().ForPrincipal(jsii.String("AgentCore::OAuthUser")).OnAllActions().OnResource(jsii.String("AgentCore::Gateway"), gateway.GatewayArn).Unless().PrincipalAttribute(jsii.String("suspended")).EqualTo(jsii.Boolean(true)).Done(),
	Description: jsii.String("Allow all actions unless user is suspended"),
	ValidationMode: agentcore.PolicyValidationMode_FAIL_ON_ANY_FINDINGS(),
})
```

You can combine `when` and `unless` clauses in the same policy:

TypeScript:

```ts
declare const policyEngine: agentcore.PolicyEngine;
declare const gateway: agentcore.Gateway;

// Allow engineers unless they are on probation
policyEngine.addPolicy("CombinedConditions", {
  statement: agentcore.PolicyStatement.permit()
    .forPrincipal('AgentCore::OAuthUser')
    .onAllActions()
    .onResource('AgentCore::Gateway', gateway.gatewayArn)
    .when()
      .principalAttribute('department').equalTo('Engineering')
      .done()
    .unless()
      .principalAttribute('status').equalTo('probation')
      .done(),
  description: "Allow engineers unless on probation",
  validationMode: agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS,
});
```

Python:

```python
# policy_engine: agentcore.PolicyEngine
# gateway: agentcore.Gateway

# Allow engineers unless they are on probation
policy_engine.add_policy("CombinedConditions",
    statement=agentcore.PolicyStatement.permit().for_principal("AgentCore::OAuthUser").on_all_actions().on_resource("AgentCore::Gateway", gateway.gateway_arn).when().principal_attribute("department").equal_to("Engineering").done().unless().principal_attribute("status").equal_to("probation").done(),
    description="Allow engineers unless on probation",
    validation_mode=agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS
)
```

Java:

```java
PolicyEngine policyEngine;
Gateway gateway;

// Allow engineers unless they are on probation
policyEngine.addPolicy("CombinedConditions", AddPolicyOptions.builder()
        .statement(PolicyStatement.permit().forPrincipal("AgentCore::OAuthUser").onAllActions().onResource("AgentCore::Gateway", gateway.gatewayArn).when().principalAttribute("department").equalTo("Engineering").done().unless().principalAttribute("status").equalTo("probation").done())
        .description("Allow engineers unless on probation")
        .validationMode(PolicyValidationMode.FAIL_ON_ANY_FINDINGS)
        .build());
```

C# / .NET:

```csharp
PolicyEngine policyEngine;
Gateway gateway;

// Allow engineers unless they are on probation
policyEngine.AddPolicy("CombinedConditions", new AddPolicyOptions {
    Statement = PolicyStatement.Permit().ForPrincipal("AgentCore::OAuthUser").OnAllActions().OnResource("AgentCore::Gateway", gateway.GatewayArn).When().PrincipalAttribute("department").EqualTo("Engineering").Done().Unless().PrincipalAttribute("status").EqualTo("probation").Done(),
    Description = "Allow engineers unless on probation",
    ValidationMode = PolicyValidationMode.FAIL_ON_ANY_FINDINGS
});
```

Golang:

```go
var policyEngine PolicyEngine
var gateway Gateway

// Allow engineers unless they are on probation
policyEngine.AddPolicy(jsii.String("CombinedConditions"), &AddPolicyOptions{
	Statement: agentcore.PolicyStatement_Permit().ForPrincipal(jsii.String("AgentCore::OAuthUser")).OnAllActions().OnResource(jsii.String("AgentCore::Gateway"), gateway.GatewayArn).When().PrincipalAttribute(jsii.String("department")).EqualTo(jsii.String("Engineering")).Done().Unless().*PrincipalAttribute(jsii.String("status")).*EqualTo(jsii.String("probation")).*Done(),
	Description: jsii.String("Allow engineers unless on probation"),
	ValidationMode: agentcore.PolicyValidationMode_FAIL_ON_ANY_FINDINGS(),
})
```

#### Forbid (Deny) Policy

Use `forbid` to explicitly deny access. Forbid policies override permit policies.

TypeScript:

```ts
declare const policyEngine: agentcore.PolicyEngine;
declare const gateway: agentcore.Gateway;

// Explicitly deny dangerous tool operations
policyEngine.addPolicy("DenyDangerous", {
  statement: agentcore.PolicyStatement.forbid()
    .forAllPrincipals()
    .onAction('AgentCore::Action::DeleteTool__delete_all')
    .onResource('AgentCore::Gateway', gateway.gatewayArn),
  description: "Forbid delete_all operation for all users",
  validationMode: agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS,
});

// Generated Cedar:
// forbid(
//   principal,
//   action == AgentCore::Action::"DeleteTool__delete_all",
//   resource == AgentCore::Gateway::"arn:..."
// );
```

Python:

```python
# policy_engine: agentcore.PolicyEngine
# gateway: agentcore.Gateway

# Explicitly deny dangerous tool operations
policy_engine.add_policy("DenyDangerous",
    statement=agentcore.PolicyStatement.forbid().for_all_principals().on_action("AgentCore::Action::DeleteTool__delete_all").on_resource("AgentCore::Gateway", gateway.gateway_arn),
    description="Forbid delete_all operation for all users",
    validation_mode=agentcore.PolicyValidationMode.FAIL_ON_ANY_FINDINGS
)
```

Java:

```java
PolicyEngine policyEngine;
Gateway gateway;

// Explicitly deny dangerous tool operations
policyEngine.addPolicy("DenyDangerous", AddPolicyOptions.builder()
        .statement(PolicyStatement.forbid().forAllPrincipals().onAction("AgentCore::Action::DeleteTool__delete_all").onResource("AgentCore::Gateway", gateway.getGatewayArn()))
        .description("Forbid delete_all operation for all users")
        .validationMode(PolicyValidationMode.FAIL_ON_ANY_FINDINGS)
        .build());
```

C# / .NET:

```csharp
PolicyEngine policyEngine;
Gateway gateway;

// Explicitly deny dangerous tool operations
policyEngine.AddPolicy("DenyDangerous", new AddPolicyOptions {
    Statement = PolicyStatement.Forbid().ForAllPrincipals().OnAction("AgentCore::Action::DeleteTool__delete_all").OnResource("AgentCore::Gateway", gateway.GatewayArn),
    Description = "Forbid delete_all operation for all users",
    ValidationMode = PolicyValidationMode.FAIL_ON_ANY_FINDINGS
});
```

Golang:

```go
var policyEngine PolicyEngine
var gateway Gateway

// Explicitly deny dangerous tool operations
policyEngine.AddPolicy(jsii.String("DenyDangerous"), &AddPolicyOptions{
	Statement: agentcore.PolicyStatement_Forbid().ForAllPrincipals().OnAction(jsii.String("AgentCore::Action::DeleteTool__delete_all")).OnResource(jsii.String("AgentCore::Gateway"), gateway.GatewayArn),
	Description: jsii.String("Forbid delete_all operation for all users"),
	ValidationMode: agentcore.PolicyValidationMode_FAIL_ON_ANY_FINDINGS(),
})
```

#### Raw Cedar for Advanced Cases

For advanced Cedar features not supported by the builder, use raw Cedar strings:

TypeScript:

```ts
declare const policyEngine: agentcore.PolicyEngine;

// Option 1: Using definition property
const advancedPolicy = new agentcore.Policy(this, "AdvancedPolicy", {
  policyEngine: policyEngine,
  definition: 'permit(principal, action, resource) when { context.custom > 10 };',
  description: "Advanced policy with custom Cedar logic",
});

// Option 2: Using fromCedar() with statement property
policyEngine.addPolicy("CustomPolicy", {
  statement: agentcore.PolicyStatement.fromCedar(
    'forbid(principal, action, resource) when { resource.confidential == true };'
  ),
  description: "Custom policy from Cedar string",
});
```

Python:

```python
# policy_engine: agentcore.PolicyEngine

# Option 1: Using definition property
advanced_policy = agentcore.Policy(self, "AdvancedPolicy",
    policy_engine=policy_engine,
    definition="permit(principal, action, resource) when { context.custom > 10 };",
    description="Advanced policy with custom Cedar logic"
)

# Option 2: Using fromCedar() with statement property
policy_engine.add_policy("CustomPolicy",
    statement=agentcore.PolicyStatement.from_cedar("forbid(principal, action, resource) when { resource.confidential == true };"),
    description="Custom policy from Cedar string"
)
```

Java:

```java
PolicyEngine policyEngine;

// Option 1: Using definition property
Policy advancedPolicy = Policy.Builder.create(this, "AdvancedPolicy")
        .policyEngine(policyEngine)
        .definition("permit(principal, action, resource) when { context.custom > 10 };")
        .description("Advanced policy with custom Cedar logic")
        .build();

// Option 2: Using fromCedar() with statement property
policyEngine.addPolicy("CustomPolicy", AddPolicyOptions.builder()
        .statement(PolicyStatement.fromCedar("forbid(principal, action, resource) when { resource.confidential == true };"))
        .description("Custom policy from Cedar string")
        .build());
```

C# / .NET:

```csharp
PolicyEngine policyEngine;

// Option 1: Using definition property
var advancedPolicy = new Policy(this, "AdvancedPolicy", new PolicyProps {
    PolicyEngine = policyEngine,
    Definition = "permit(principal, action, resource) when { context.custom > 10 };",
    Description = "Advanced policy with custom Cedar logic"
});

// Option 2: Using fromCedar() with statement property
policyEngine.AddPolicy("CustomPolicy", new AddPolicyOptions {
    Statement = PolicyStatement.FromCedar("forbid(principal, action, resource) when { resource.confidential == true };"),
    Description = "Custom policy from Cedar string"
});
```

Golang:

```go
var policyEngine PolicyEngine

// Option 1: Using definition property
advancedPolicy := agentcore.NewPolicy(this, jsii.String("AdvancedPolicy"), &PolicyProps{
	PolicyEngine: policyEngine,
	Definition: jsii.String("permit(principal, action, resource) when { context.custom > 10 };"),
	Description: jsii.String("Advanced policy with custom Cedar logic"),
})

// Option 2: Using fromCedar() with statement property
policyEngine.AddPolicy(jsii.String("CustomPolicy"), &AddPolicyOptions{
	Statement: agentcore.PolicyStatement_FromCedar(jsii.String("forbid(principal, action, resource) when { resource.confidential == true };")),
	Description: jsii.String("Custom policy from Cedar string"),
})
```

**Note**: You must specify **either** `definition` (raw Cedar string) **or** `statement` (PolicyStatement builder), but not both.

#### Accessing Policies on PolicyEngine

You can access the list of policies added to a PolicyEngine using policyEngine.policies.

### PolicyEngine with KMS Encryption

Encrypt policy data with a custom KMS key.

TypeScript:

```ts
// Create a custom KMS key
const policyKey = new kms.Key(this, "PolicyEngineKey", {
  enableKeyRotation: true,
  description: "KMS key for policy engine encryption",
});

// Create policy engine with encryption
const policyEngine = new agentcore.PolicyEngine(this, "EncryptedEngine", {
  policyEngineName: "encrypted_engine",
  description: "Policy engine with KMS encryption",
  kmsKey: policyKey,
});
```

Python:

```python
# Create a custom KMS key
policy_key = kms.Key(self, "PolicyEngineKey",
    enable_key_rotation=True,
    description="KMS key for policy engine encryption"
)

# Create policy engine with encryption
policy_engine = agentcore.PolicyEngine(self, "EncryptedEngine",
    policy_engine_name="encrypted_engine",
    description="Policy engine with KMS encryption",
    kms_key=policy_key
)
```

Java:

```java
// Create a custom KMS key
Key policyKey = Key.Builder.create(this, "PolicyEngineKey")
        .enableKeyRotation(true)
        .description("KMS key for policy engine encryption")
        .build();

// Create policy engine with encryption
PolicyEngine policyEngine = PolicyEngine.Builder.create(this, "EncryptedEngine")
        .policyEngineName("encrypted_engine")
        .description("Policy engine with KMS encryption")
        .kmsKey(policyKey)
        .build();
```

C# / .NET:

```csharp
// Create a custom KMS key
var policyKey = new Key(this, "PolicyEngineKey", new KeyProps {
    EnableKeyRotation = true,
    Description = "KMS key for policy engine encryption"
});

// Create policy engine with encryption
var policyEngine = new PolicyEngine(this, "EncryptedEngine", new PolicyEngineProps {
    PolicyEngineName = "encrypted_engine",
    Description = "Policy engine with KMS encryption",
    KmsKey = policyKey
});
```

Golang:

```go
// Create a custom KMS key
policyKey := kms.NewKey(this, jsii.String("PolicyEngineKey"), &KeyProps{
	EnableKeyRotation: jsii.Boolean(true),
	Description: jsii.String("KMS key for policy engine encryption"),
})

// Create policy engine with encryption
policyEngine := agentcore.NewPolicyEngine(this, jsii.String("EncryptedEngine"), &PolicyEngineProps{
	PolicyEngineName: jsii.String("encrypted_engine"),
	Description: jsii.String("Policy engine with KMS encryption"),
	KmsKey: policyKey,
})
```

### Importing Existing PolicyEngine

Import an existing policy engine from its ARN:

TypeScript:

```ts
const importedEngine = agentcore.PolicyEngine.fromPolicyEngineAttributes(
  this,
  "ImportedEngine",
  {
    policyEngineArn: "policy-engine-arn",
    kmsKeyArn: "kms-arn",
  }
);

// Use the imported engine
const policy = new agentcore.Policy(this, "PolicyForImportedEngine", {
  policyEngine: importedEngine,
  definition: "permit(principal, action, resource);",
});
```

Python:

```python
imported_engine = agentcore.PolicyEngine.from_policy_engine_attributes(self, "ImportedEngine",
    policy_engine_arn="policy-engine-arn",
    kms_key_arn="kms-arn"
)

# Use the imported engine
policy = agentcore.Policy(self, "PolicyForImportedEngine",
    policy_engine=imported_engine,
    definition="permit(principal, action, resource);"
)
```

Java:

```java
IPolicyEngine importedEngine = PolicyEngine.fromPolicyEngineAttributes(this, "ImportedEngine", PolicyEngineAttributes.builder()
        .policyEngineArn("policy-engine-arn")
        .kmsKeyArn("kms-arn")
        .build());

// Use the imported engine
Policy policy = Policy.Builder.create(this, "PolicyForImportedEngine")
        .policyEngine(importedEngine)
        .definition("permit(principal, action, resource);")
        .build();
```

C# / .NET:

```csharp
var importedEngine = PolicyEngine.FromPolicyEngineAttributes(this, "ImportedEngine", new PolicyEngineAttributes {
    PolicyEngineArn = "policy-engine-arn",
    KmsKeyArn = "kms-arn"
});

// Use the imported engine
var policy = new Policy(this, "PolicyForImportedEngine", new PolicyProps {
    PolicyEngine = importedEngine,
    Definition = "permit(principal, action, resource);"
});
```

Golang:

```go
importedEngine := agentcore.PolicyEngine_FromPolicyEngineAttributes(this, jsii.String("ImportedEngine"), &PolicyEngineAttributes{
	PolicyEngineArn: jsii.String("policy-engine-arn"),
	KmsKeyArn: jsii.String("kms-arn"),
})

// Use the imported engine
policy := agentcore.NewPolicy(this, jsii.String("PolicyForImportedEngine"), &PolicyProps{
	PolicyEngine: importedEngine,
	Definition: jsii.String("permit(principal, action, resource);"),
})
```

### Importing Existing Policy

Import an existing policy from its ARN:

TypeScript:

```ts
const importedEngine = agentcore.PolicyEngine.fromPolicyEngineAttributes(
  this,
  "ImportedEngine",
  {
    policyEngineArn: "policy-engine/my-engine-id",
  }
);

const importedPolicy = agentcore.Policy.fromPolicyAttributes(
  this,
  "ImportedPolicy",
  {
    policyArn: "my-policy-arn",
    policyEngine: importedEngine,
  }
);

// Grant permissions to the imported policy
const role = new iam.Role(this, "PolicyRole", {
  assumedBy: new iam.ServicePrincipal("lambda.amazonaws.com"),
});

importedPolicy.grantRead(role);
```

Python:

```python
imported_engine = agentcore.PolicyEngine.from_policy_engine_attributes(self, "ImportedEngine",
    policy_engine_arn="policy-engine/my-engine-id"
)

imported_policy = agentcore.Policy.from_policy_attributes(self, "ImportedPolicy",
    policy_arn="my-policy-arn",
    policy_engine=imported_engine
)

# Grant permissions to the imported policy
role = iam.Role(self, "PolicyRole",
    assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
)

imported_policy.grant_read(role)
```

Java:

```java
IPolicyEngine importedEngine = PolicyEngine.fromPolicyEngineAttributes(this, "ImportedEngine", PolicyEngineAttributes.builder()
        .policyEngineArn("policy-engine/my-engine-id")
        .build());

IPolicy importedPolicy = Policy.fromPolicyAttributes(this, "ImportedPolicy", PolicyAttributes.builder()
        .policyArn("my-policy-arn")
        .policyEngine(importedEngine)
        .build());

// Grant permissions to the imported policy
Role role = Role.Builder.create(this, "PolicyRole")
        .assumedBy(new ServicePrincipal("lambda.amazonaws.com"))
        .build();

importedPolicy.grantRead(role);
```

C# / .NET:

```csharp
var importedEngine = PolicyEngine.FromPolicyEngineAttributes(this, "ImportedEngine", new PolicyEngineAttributes {
    PolicyEngineArn = "policy-engine/my-engine-id"
});

var importedPolicy = Policy.FromPolicyAttributes(this, "ImportedPolicy", new PolicyAttributes {
    PolicyArn = "my-policy-arn",
    PolicyEngine = importedEngine
});

// Grant permissions to the imported policy
var role = new Role(this, "PolicyRole", new RoleProps {
    AssumedBy = new ServicePrincipal("lambda.amazonaws.com")
});

importedPolicy.GrantRead(role);
```

Golang:

```go
importedEngine := agentcore.PolicyEngine_FromPolicyEngineAttributes(this, jsii.String("ImportedEngine"), &PolicyEngineAttributes{
	PolicyEngineArn: jsii.String("policy-engine/my-engine-id"),
})

importedPolicy := agentcore.Policy_FromPolicyAttributes(this, jsii.String("ImportedPolicy"), &PolicyAttributes{
	PolicyArn: jsii.String("my-policy-arn"),
	PolicyEngine: importedEngine,
})

// Grant permissions to the imported policy
role := iam.NewRole(this, jsii.String("PolicyRole"), &RoleProps{
	AssumedBy: iam.NewServicePrincipal(jsii.String("lambda.amazonaws.com")),
})

importedPolicy.GrantRead(role)
```

### PolicyEngine IAM Permissions

Grant various levels of access to policy engines:

TypeScript:

```ts
const policyEngine = new agentcore.PolicyEngine(this, "MyEngine", {
  policyEngineName: "my_engine",
});

const lambdaRole = new iam.Role(this, "LambdaRole", {
  assumedBy: new iam.ServicePrincipal("lambda.amazonaws.com"),
});

// Grant read permissions
policyEngine.grantRead(lambdaRole);

// Grant evaluation permissions
policyEngine.grantEvaluate(lambdaRole);
```

Python:

```python
policy_engine = agentcore.PolicyEngine(self, "MyEngine",
    policy_engine_name="my_engine"
)

lambda_role = iam.Role(self, "LambdaRole",
    assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
)

# Grant read permissions
policy_engine.grant_read(lambda_role)

# Grant evaluation permissions
policy_engine.grant_evaluate(lambda_role)
```

Java:

```java
PolicyEngine policyEngine = PolicyEngine.Builder.create(this, "MyEngine")
        .policyEngineName("my_engine")
        .build();

Role lambdaRole = Role.Builder.create(this, "LambdaRole")
        .assumedBy(new ServicePrincipal("lambda.amazonaws.com"))
        .build();

// Grant read permissions
policyEngine.grantRead(lambdaRole);

// Grant evaluation permissions
policyEngine.grantEvaluate(lambdaRole);
```

C# / .NET:

```csharp
var policyEngine = new PolicyEngine(this, "MyEngine", new PolicyEngineProps {
    PolicyEngineName = "my_engine"
});

var lambdaRole = new Role(this, "LambdaRole", new RoleProps {
    AssumedBy = new ServicePrincipal("lambda.amazonaws.com")
});

// Grant read permissions
policyEngine.GrantRead(lambdaRole);

// Grant evaluation permissions
policyEngine.GrantEvaluate(lambdaRole);
```

Golang:

```go
policyEngine := agentcore.NewPolicyEngine(this, jsii.String("MyEngine"), &PolicyEngineProps{
	PolicyEngineName: jsii.String("my_engine"),
})

lambdaRole := iam.NewRole(this, jsii.String("LambdaRole"), &RoleProps{
	AssumedBy: iam.NewServicePrincipal(jsii.String("lambda.amazonaws.com")),
})

// Grant read permissions
policyEngine.GrantRead(lambdaRole)

// Grant evaluation permissions
policyEngine.GrantEvaluate(lambdaRole)
```

## Types

### Constructs (L2)

- [`ApiKeyCredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProvider.html) Construct (L2) L2 construct for `AWS::BedrockAgentCore::ApiKeyCredentialProvider`.
- [`BrowserCustom`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserCustom.html) Construct (L2) Browser resource for AWS Bedrock Agent Core.
- [`BrowserCustomBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserCustomBase.html) Construct (L2) Abstract base class for a Browser.
- [`CodeInterpreterCustom`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterCustom.html) Construct (L2) Custom code interpreter resource for AWS Bedrock Agent Core.
- [`CodeInterpreterCustomBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterCustomBase.html) Construct (L2) Abstract base class for a Code Interpreter.
- [`Evaluator`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Evaluator.html) Construct (L2) A custom evaluator for Amazon Bedrock AgentCore.
- [`EvaluatorBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorBase.html) Construct (L2) Abstract base class for Evaluator.
- [`Gateway`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Gateway.html) Construct (L2) Gateway resource for AWS Bedrock Agent Core.
- [`GatewayBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayBase.html) Construct (L2) Base class for Gateway constructs.
- [`GatewayTarget`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTarget.html) Construct (L2) Defines tools that your gateway will host.
- [`GatewayTargetBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetBase.html) Construct (L2) Base class for gateway target implementations.
- [`Memory`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Memory.html) Construct (L2) Long-term memory store for extracted insights like user preferences, semantic facts and summaries.
- [`MemoryBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryBase.html) Construct (L2) Abstract base class for a Memory.
- [`OAuth2CredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProvider.html) Construct (L2) L2 construct for `AWS::BedrockAgentCore::OAuth2CredentialProvider`.
- [`OnlineEvaluationBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationBase.html) Construct (L2) Abstract base class for OnlineEvaluationConfig.
- [`OnlineEvaluationConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationConfig.html) Construct (L2) Online evaluation configuration for Amazon Bedrock AgentCore.
- [`Policy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Policy.html) Construct (L2) Individual Cedar policy defining what agents can access.
- [`PolicyBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyBase.html) Construct (L2) Abstract base class for a Policy.
- [`PolicyEngine`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngine.html) Construct (L2) Container that manages Cedar authorization policies associated with gateways.
- [`PolicyEngineBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngineBase.html) Construct (L2) Abstract base class for a PolicyEngine.
- [`Runtime`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.Runtime.html) Construct (L2) Bedrock Agent Core Runtime Enables running containerized agents with specific network configurations, security settings, and runtime artifacts.
- [`RuntimeBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeBase.html) Construct (L2) Base class for Agent Runtime.
- [`RuntimeEndpoint`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeEndpoint.html) Construct (L2) Bedrock Agent Core Runtime Endpoint Provides a stable endpoint for invoking agent runtimes with versioning support.
- [`RuntimeEndpointBase`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeEndpointBase.html) Construct (L2) Base class for Runtime Endpoint.
- [`WorkloadIdentity`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.WorkloadIdentity.html) Construct (L2) L2 construct for `AWS::BedrockAgentCore::WorkloadIdentity`.

### Structs

- [`AddApiGatewayTargetOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddApiGatewayTargetOptions.html) Struct Options for adding an API Gateway target to a gateway.
- [`AddEndpointOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddEndpointOptions.html) Struct Options for adding an endpoint to the runtime.
- [`AddLambdaTargetOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddLambdaTargetOptions.html) Struct Options for adding a Lambda target to a gateway.
- [`AddMcpServerTargetOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddMcpServerTargetOptions.html) Struct Options for adding an MCP Server target to a gateway.
- [`AddOpenApiTargetOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddOpenApiTargetOptions.html) Struct Options for adding an OpenAPI target to a gateway.
- [`AddPolicyOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddPolicyOptions.html) Struct Options for adding a policy via PolicyEngine.addPolicy().
- [`AddSmithyTargetOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AddSmithyTargetOptions.html) Struct Options for adding a Smithy target to a gateway.
- [`AgentRuntimeAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AgentRuntimeAttributes.html) Struct Attributes for importing an existing Agent Runtime.
- [`ApiGatewayTargetConfigurationProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiGatewayTargetConfigurationProps.html) Struct Properties for creating an API Gateway target configuration.
- [`ApiGatewayToolConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiGatewayToolConfiguration.html) Struct Configuration for API Gateway tools.
- [`ApiGatewayToolFilter`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiGatewayToolFilter.html) Struct Configuration for filtering API Gateway tools.
- [`ApiGatewayToolOverride`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiGatewayToolOverride.html) Struct Configuration for overriding API Gateway tool metadata.
- [`ApiKeyAdditionalConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyAdditionalConfiguration.html) Struct API Key additional configuration.
- [`ApiKeyCredentialProviderAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProviderAttributes.html) Struct Attributes for importing an existing API key credential provider.
- [`ApiKeyCredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProviderProps.html) Struct API key credential provider ARNs for gateway outbound auth (Token Vault identity).
- [`ApiKeyCredentialProviderResourceProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProviderResourceProps.html) Struct Properties for a new {@link ApiKeyCredentialProvider} (Token Vault resource).
- [`AtlassianOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AtlassianOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingAtlassian}.
- [`BrowserCustomAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserCustomAttributes.html) Struct Attributes for specifying an imported Browser Custom.
- [`BrowserCustomProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserCustomProps.html) Struct Properties for creating a Browser resource.
- [`CategoricalRatingOption`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CategoricalRatingOption.html) Struct A categorical rating scale option for custom evaluators.
- [`CloudWatchLogsDataSourceConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CloudWatchLogsDataSourceConfig.html) Struct Configuration for CloudWatch Logs data source.
- [`CodeAssetOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeAssetOptions.html) Struct Options for configuring an S3 code asset from local files for agent runtime artifact.
- [`CodeBasedOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeBasedOptions.html) Struct Options for configuring a code-based custom evaluator using a Lambda function.
- [`CodeInterpreterCustomAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterCustomAttributes.html) Struct Attributes for specifying an imported Code Interpreter Custom.
- [`CodeInterpreterCustomProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterCustomProps.html) Struct Properties for creating a CodeInterpreter resource.
- [`CognitoAuthorizerProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CognitoAuthorizerProps.html) Struct Properties for configuring a Cognito authorizer.
- [`CustomJwtConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CustomJwtConfiguration.html) Struct Custom JWT authorizer configuration.
- [`CustomOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CustomOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingCustom}.
- [`DataSourceConfigBindResult`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.DataSourceConfigBindResult.html) Struct The result of binding a DataSourceConfig.
- [`DropboxOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.DropboxOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingDropbox}.
- [`EpisodicReflectionConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EpisodicReflectionConfiguration.html) Struct Configuration for episodic memory reflection.
- [`EvaluatorAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorAttributes.html) Struct Attributes for importing an existing Evaluator.
- [`EvaluatorInferenceConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorInferenceConfig.html) Struct Inference configuration for a custom LLM-as-a-Judge evaluator.
- [`EvaluatorProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorProps.html) Struct Properties for creating an Evaluator.
- [`EvaluatorReferenceBindResult`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorReferenceBindResult.html) Struct The result of binding an EvaluatorReference.
- [`FacebookOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.FacebookOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingFacebook}.
- [`FilterConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.FilterConfig.html) Struct Filter configuration for online evaluation.
- [`FromApiKeyIdentityOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.FromApiKeyIdentityOptions.html) Struct Optional gateway settings when binding an {@link IApiKeyCredentialProvider} to a target.
- [`FromOauthIdentityOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.FromOauthIdentityOptions.html) Struct OAuth scopes (and optional custom parameters) when binding an {@link IOAuth2CredentialProvider} to a gateway target.
- [`GatewayApiKeyIdentityBinding`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayApiKeyIdentityBinding.html) Struct Provider and secret ARNs for wiring a Token Vault API key identity into a gateway target.
- [`GatewayAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayAttributes.html) Struct Attributes for importing an existing Gateway.
- [`GatewayOAuth2IdentityBinding`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayOAuth2IdentityBinding.html) Struct Provider ARN, secret ARN, and OAuth scopes for wiring a Token Vault OAuth2 identity into a gateway target.
- [`GatewayPolicyEngineConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayPolicyEngineConfig.html) Struct Configuration for associating a policy engine with a gateway.
- [`GatewayProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayProps.html) Struct Properties for defining a Gateway.
- [`GatewayTargetApiGatewayProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetApiGatewayProps.html) Struct Properties for creating an API Gateway-based Gateway Target.
- [`GatewayTargetAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetAttributes.html) Struct Attributes for importing an existing Gateway Target.
- [`GatewayTargetCommonProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetCommonProps.html) Struct Common properties for all Gateway Target types.
- [`GatewayTargetLambdaProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetLambdaProps.html) Struct Properties for creating a Lambda-based Gateway Target Convenience interface for the most common use case.
- [`GatewayTargetMcpServerProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetMcpServerProps.html) Struct Properties for creating an MCP Server-based Gateway Target.
- [`GatewayTargetOpenApiProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetOpenApiProps.html) Struct Properties for creating an OpenAPI-based Gateway Target.
- [`GatewayTargetProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetProps.html) Struct Properties for creating a Gateway Target resource.
- [`GatewayTargetSmithyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetSmithyProps.html) Struct Properties for creating a Smithy-based Gateway Target.
- [`GithubOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GithubOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingGithub}.
- [`GoogleOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GoogleOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingGoogle}.
- [`HubspotOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.HubspotOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingHubspot}.
- [`IncludedOauth2TenantCredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IncludedOauth2TenantCredentialProviderProps.html) Struct Props for `IncludedOauth2ProviderConfig` IdPs whose [outbound documentation](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/identity-idps.html) requires `issuer`, `authorizationEndpoint`, and/or `tokenEndpoint` (for example Okta, Auth0, Amazon Cognito, OneLogin, PingOne, CyberArk, FusionAuth).
- [`IncludedOauth2TenantEndpoints`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IncludedOauth2TenantEndpoints.html) Struct Optional tenant OAuth endpoints for IdPs that use CloudFormation `IncludedOauth2ProviderConfig` with issuer and/or endpoints per the IdP’s outbound documentation.
- [`InterceptorBindConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InterceptorBindConfig.html) Struct Configuration returned from binding an interceptor to a Gateway.
- [`InterceptorOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InterceptorOptions.html) Struct Options for configuring an interceptor.
- [`InvocationConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InvocationConfiguration.html) Struct Invocation configuration for self managed memory strategy.
- [`LifecycleConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LifecycleConfiguration.html) Struct LifecycleConfiguration lets you manage the lifecycle of runtime sessions and resources in AgentCore Runtime.
- [`LinkedinOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LinkedinOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingLinkedin}.
- [`LlmAsAJudgeOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LlmAsAJudgeOptions.html) Struct Options for configuring an LLM-as-a-Judge custom evaluator.
- [`LoggingConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LoggingConfig.html) Struct Configuration for logging with log type and destination.
- [`ManagedStrategyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ManagedStrategyProps.html) Struct Configuration parameters for a memory strategy that can override existing built-in default prompts/models.
- [`McpConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpConfiguration.html) Struct MCP protocol configuration The configuration for the Model Context Protocol (MCP).
- [`MemoryAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryAttributes.html) Struct Attributes for specifying an imported Memory.
- [`MemoryProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryProps.html) Struct Properties for creating a Memory resource.
- [`MemoryStrategyCommonProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryStrategyCommonProps.html) Struct Configuration parameters common for any memory strategy.
- [`MetadataConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MetadataConfiguration.html) Struct Configuration for passing metadata (headers and query parameters) to the API Gateway target.
- [`MicrosoftOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MicrosoftOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingMicrosoft}.
- [`NotionOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.NotionOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingNotion}.
- [`NumericalRatingOption`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.NumericalRatingOption.html) Struct A numerical rating scale option for custom evaluators.
- [`OAuth2AuthorizationServerMetadata`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2AuthorizationServerMetadata.html) Struct Static OAuth2 authorization server metadata for custom credential providers.
- [`OAuth2ClientCredentials`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2ClientCredentials.html) Struct OAuth2 client identifier and secret registered with the identity provider (all vendors).
- [`OAuth2CredentialProviderAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderAttributes.html) Struct Attributes for importing an existing OAuth2 credential provider.
- [`OAuth2CredentialProviderBaseProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderBaseProps.html) Struct Shared properties for OAuth2 credential providers created via {@link OAuth2CredentialProvider} factory methods.
- [`OAuth2CredentialProviderFactoryBaseProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderFactoryBaseProps.html) Struct Naming, tags, and client credentials shared by every {@link OAuth2CredentialProvider} factory.
- [`OAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderProps.html) Struct Low-level properties when you need full control (prefer {@link OAuth2CredentialProvider.usingSlack} and other factories).
- [`OAuthConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuthConfiguration.html) Struct OAuth configuration.
- [`OnlineEvaluationBaseProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationBaseProps.html) Struct Base properties for creating an OnlineEvaluationConfig.
- [`OnlineEvaluationConfigAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationConfigAttributes.html) Struct Attributes for importing an existing OnlineEvaluationConfig.
- [`OnlineEvaluationConfigProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OnlineEvaluationConfigProps.html) Struct Properties for creating an OnlineEvaluationConfig.
- [`OverrideConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OverrideConfig.html) Struct Configuration for overriding model and prompt template.
- [`PolicyAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyAttributes.html) Struct Attributes for importing an existing Policy.
- [`PolicyEngineAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngineAttributes.html) Struct Attributes for importing an existing PolicyEngine.
- [`PolicyEngineProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngineProps.html) Struct Properties for creating a PolicyEngine resource.
- [`PolicyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyProps.html) Struct Properties for creating a Policy resource.
- [`RecordingConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RecordingConfig.html) Struct Recording configuration for browser.
- [`RedditOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RedditOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingReddit}.
- [`RequestHeaderConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RequestHeaderConfiguration.html) Struct Configuration for HTTP request headers that will be passed through to the runtime.
- [`RuntimeEndpointAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeEndpointAttributes.html) Struct Attributes for importing an existing Runtime Endpoint.
- [`RuntimeEndpointProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeEndpointProps.html) Struct Properties for creating a Bedrock Agent Core Runtime Endpoint resource.
- [`RuntimeProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeProps.html) Struct Properties for creating a Bedrock Agent Core Runtime resource.
- [`SalesforceOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SalesforceOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingSalesforce}.
- [`SchemaDefinition`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SchemaDefinition.html) Struct Schema definition for tool input/output.
- [`SelfManagedStrategyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SelfManagedStrategyProps.html) Struct Configuration parameters for a self managed memory strategy existing built-in default prompts/models.
- [`SlackOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SlackOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingSlack}.
- [`SpotifyOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SpotifyOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingSpotify}.
- [`TargetConfigurationConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.TargetConfigurationConfig.html) Struct Configuration returned by binding a target configuration.
- [`ToolDefinition`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ToolDefinition.html) Struct Tool definition for inline payload.
- [`TriggerConditions`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.TriggerConditions.html) Struct Trigger conditions for self managed memory strategy When first condition is met, batched payloads are sent to specified S3 bucket.
- [`TwitchOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.TwitchOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingTwitch}.
- [`VpcConfigProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.VpcConfigProps.html) Struct VPC configuration properties.
- [`WorkloadIdentityAttributes`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.WorkloadIdentityAttributes.html) Struct Attributes for importing an existing workload identity.
- [`WorkloadIdentityProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.WorkloadIdentityProps.html) Struct Properties for a new {@link WorkloadIdentity}.
- [`XOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.XOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingX}.
- [`YandexOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.YandexOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingYandex}.
- [`ZoomOAuth2CredentialProviderProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ZoomOAuth2CredentialProviderProps.html) Struct Props for {@link OAuth2CredentialProvider.usingZoom}.

### Enums

- [`AgentCoreRuntime`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AgentCoreRuntime.html) Enum Bedrock AgentCore runtime environment for code execution Allowed values: PYTHON_3_10 \| PYTHON_3_11 \| PYTHON_3_12 \| PYTHON_3_13 \| PYTHON_3_14 \| NODE_22.
- [`ApiGatewayHttpMethod`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiGatewayHttpMethod.html) Enum HTTP methods supported by API Gateway.
- [`BrowserSigning`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserSigning.html) Enum Browser signing.
- [`CredentialProviderType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CredentialProviderType.html) Enum Credential provider types supported by gateway target.
- [`CustomClaimOperator`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CustomClaimOperator.html) Enum Custom claim match operator.
- [`GatewayAuthorizerType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayAuthorizerType.html) Enum Gateway authorizer type.
- [`GatewayExceptionLevel`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayExceptionLevel.html) Enum Exception levels for gateway.
- [`GatewayTargetProtocolType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayTargetProtocolType.html) Enum Protocol types supported by gateway targets.
- [`InterceptionPoint`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InterceptionPoint.html) Enum The interception point where the interceptor will be invoked.
- [`McpGatewaySearchType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpGatewaySearchType.html) Enum Search types supported by MCP gateway.
- [`MCPProtocolVersion`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MCPProtocolVersion.html) Enum MCP protocol versions.
- [`McpTargetType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpTargetType.html) Enum MCP target types.
- [`MemoryStrategyType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryStrategyType.html) Enum Long-term memory extraction strategy types.
- [`OAuth2CredentialProviderVendor`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderVendor.html) Enum Built-in OAuth2 vendors supported by `AWS::BedrockAgentCore::OAuth2CredentialProvider`.
- [`ProtocolType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ProtocolType.html) Enum Protocol configuration for Agent Runtime.
- [`SchemaDefinitionType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SchemaDefinitionType.html) Enum Schema definition types.

### Classes

- [`AgentRuntimeArtifact`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AgentRuntimeArtifact.html) Class Abstract base class for agent runtime artifacts.
- [`ApiGatewayTargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiGatewayTargetConfiguration.html) Class Configuration for API Gateway-based MCP targets.
- [`ApiKeyCredentialLocation`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialLocation.html) Class API Key location within the request.
- [`ApiKeyCredentialProviderIdentityPerms`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialProviderIdentityPerms.html) Class IAM actions for AgentCore API key credential providers (Token Vault).
- [`ApiSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiSchema.html) Class Represents the concept of an API Schema for a Gateway Target.
- [`AssetApiSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AssetApiSchema.html) Class API Schema from a local asset.
- [`AssetToolSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AssetToolSchema.html) Class Tool Schema from a local asset.
- [`AttributeAccessor`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.AttributeAccessor.html) Class Accessor for building type-safe attribute comparisons.
- [`BrowserNetworkConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BrowserNetworkConfiguration.html) Class Network configuration for the Browser tool.
- [`BuiltinEvaluator`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.BuiltinEvaluator.html) Class Built-in evaluators provided by Amazon Bedrock AgentCore.
- [`CodeInterpreterNetworkConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterNetworkConfiguration.html) Class Network configuration for the Code Interpreter tool.
- [`ConditionalAttributeAccessor`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ConditionalAttributeAccessor.html) Class Accessor for building type-safe attribute comparisons within conditional statements.
- [`ConditionalPolicyStatement`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ConditionalPolicyStatement.html) Class Wrapper class for conditionally building policy statements.
- [`ConditionBuilder`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ConditionBuilder.html) Class Builder for condition expressions in Cedar policies.
- [`CustomJwtAuthorizer`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CustomJwtAuthorizer.html) Class Custom JWT authorizer configuration implementation.
- [`DataSourceConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.DataSourceConfig.html) Class Configuration for the data source used in online evaluation.
- [`EvaluationLevel`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluationLevel.html) Class The level at which a custom evaluator assesses agent performance.
- [`EvaluatorConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorConfig.html) Class Configuration for a custom evaluator.
- [`EvaluatorRatingScale`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorRatingScale.html) Class Represents a rating scale for custom LLM-as-a-Judge evaluators.
- [`EvaluatorReference`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.EvaluatorReference.html) Class Represents a reference to an evaluator for online evaluation.
- [`ExecutionStatus`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ExecutionStatus.html) Class The execution status of an online evaluation configuration.
- [`FilterOperator`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.FilterOperator.html) Class Filter operators for online evaluation filtering.
- [`FilterValue`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.FilterValue.html) Class A typed filter value for online evaluation filtering.
- [`GatewayAuthorizer`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayAuthorizer.html) Class Factory class for creating Gateway Authorizers.
- [`GatewayCredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayCredentialProvider.html) Class Factory class for creating different Gateway Credential Providers.
- [`GatewayCustomClaim`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayCustomClaim.html) Class Represents a custom claim validation configuration for Gateway JWT authorizers.
- [`GatewayProtocol`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.GatewayProtocol.html) Class Factory class for instantiating Gateway Protocols.
- [`IamAuthorizer`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IamAuthorizer.html) Class AWS IAM authorizer configuration implementation.
- [`InlineApiSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InlineApiSchema.html) Class Class to define an API Schema from an inline string.
- [`InlineToolSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.InlineToolSchema.html) Class Class to define a Tool Schema from an inline string.
- [`LambdaInterceptor`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LambdaInterceptor.html) Class A Lambda-based interceptor for Gateway.
- [`LambdaTargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LambdaTargetConfiguration.html) Class Configuration for Lambda-based MCP targets.
- [`LoggingDestination`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LoggingDestination.html) Class Represents a logging destination for AgentCore Runtime.
- [`LogType`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.LogType.html) Class Log types for AgentCore Runtime observability.
- [`ManagedMemoryStrategy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ManagedMemoryStrategy.html) Class Managed memory strategy that handles both built-in and override configurations.
- [`McpProtocolConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpProtocolConfiguration.html) Class MCP (Model Context Protocol) configuration implementation.
- [`McpServerTargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpServerTargetConfiguration.html) Class Configuration for MCP Server-based targets.
- [`McpTargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.McpTargetConfiguration.html) Class Abstract base class for MCP target configurations Provides common functionality for all MCP target types.
- [`MemoryStrategy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.MemoryStrategy.html) Class Factory class for creating memory strategies If you need long-term memory for context recall across sessions, you can setup memory extraction strategies to extract the relevant memory from the raw events.
- [`NetworkConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.NetworkConfiguration.html) Class Abstract base class for network configuration.
- [`NoAuthAuthorizer`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.NoAuthAuthorizer.html) Class No authorization configuration implementation.
- [`OAuth2CredentialProviderIdentityPerms`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OAuth2CredentialProviderIdentityPerms.html) Class IAM actions for AgentCore OAuth2 credential providers (Token Vault).
- [`OpenApiTargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.OpenApiTargetConfiguration.html) Class Configuration for OpenAPI-based MCP targets.
- [`PolicyEngineMode`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyEngineMode.html) Class The enforcement mode for a policy engine associated with a gateway.
- [`PolicyStatement`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyStatement.html) Class Type-safe builder for creating Cedar authorization policy statements.
- [`PolicyValidationMode`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.PolicyValidationMode.html) Class Validation mode for Cedar policy definitions.
- [`RuntimeAuthorizerConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeAuthorizerConfiguration.html) Class Abstract base class for runtime authorizer configurations.
- [`RuntimeCustomClaim`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeCustomClaim.html) Class Represents a custom claim validation configuration for Runtime JWT authorizers.
- [`RuntimeNetworkConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.RuntimeNetworkConfiguration.html) Class Network configuration for the Runtime.
- [`S3ApiSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.S3ApiSchema.html) Class Class to define an API Schema from an S3 object.
- [`S3ToolSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.S3ToolSchema.html) Class Class to define a Tool Schema from an S3 object.
- [`SelfManagedMemoryStrategy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SelfManagedMemoryStrategy.html) Class Use AgentCore memory for event storage with custom triggers.
- [`SmithyTargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.SmithyTargetConfiguration.html) Class Configuration for Smithy-based MCP targets.
- [`ToolSchema`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ToolSchema.html) Class Defines the schema for tools available to a gateway target.
- [`WorkloadIdentityPerms`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.WorkloadIdentityPerms.html) Class IAM actions for AgentCore workload identities.

### Interfaces

- [`IApiKeyCredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IApiKeyCredentialProvider.html) Interface An API key credential provider registered in AgentCore Token Vault.
- [`IBedrockAgentRuntime`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IBedrockAgentRuntime.html) Interface Interface for Agent Runtime resources.
- [`IBrowserCustom`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IBrowserCustom.html) Interface Interface for Browser resources.
- [`ICodeInterpreterCustom`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ICodeInterpreterCustom.html) Interface Interface for CodeInterpreterCustom resources.
- [`ICredentialProviderConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ICredentialProviderConfig.html) Interface Abstract interface for gateway credential provider configuration.
- [`IEvaluator`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IEvaluator.html) Interface Interface for Evaluator resources.
- [`IGateway`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IGateway.html) Interface Interface for Gateway resources.
- [`IGatewayAuthorizerConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IGatewayAuthorizerConfig.html) Interface Abstract interface for gateway authorizer configuration.
- [`IGatewayProtocolConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IGatewayProtocolConfig.html) Interface Abstract interface for gateway protocol configuration.
- [`IGatewayTarget`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IGatewayTarget.html) Interface Interface for GatewayTarget resources.
- [`IInterceptor`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IInterceptor.html) Interface Represents an interceptor that can be bound to a Gateway.
- [`IMcpGatewayTarget`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IMcpGatewayTarget.html) Interface Interface for MCP gateway targets.
- [`IMemory`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IMemory.html) Interface Interface for Memory resources.
- [`IMemoryStrategy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IMemoryStrategy.html) Interface Interface for Memory strategies.
- [`IOAuth2CredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IOAuth2CredentialProvider.html) Interface An OAuth2 credential provider registered in AgentCore Token Vault.
- [`IOnlineEvaluationConfig`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IOnlineEvaluationConfig.html) Interface Interface for OnlineEvaluationConfig resources.
- [`IPolicy`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IPolicy.html) Interface Minimal reference interface for Policy resources.
- [`IPolicyEngine`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IPolicyEngine.html) Interface Contains all properties and methods for both created and imported policy engines.
- [`IRuntimeEndpoint`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IRuntimeEndpoint.html) Interface Interface for Runtime Endpoint resources.
- [`ITargetConfiguration`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ITargetConfiguration.html) Interface Base interface for target configurations.
- [`IWorkloadIdentity`](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IWorkloadIdentity.html) Interface A workload identity for Amazon Bedrock AgentCore.
