interface BrowserCustomProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.BrowserCustomProps |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#BrowserCustomProps |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.BrowserCustomProps |
Python | aws_cdk.aws_bedrock_agentcore_alpha.BrowserCustomProps |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป BrowserCustomProps |
Properties for creating a Browser resource.
Example
// Create a custom execution role
const executionRole = new iam.Role(this, "BrowserExecutionRole", {
assumedBy: new iam.ServicePrincipal("bedrock-agentcore.amazonaws.com"),
managedPolicies: [
iam.ManagedPolicy.fromAwsManagedPolicyName("AmazonBedrockAgentCoreBrowserExecutionRolePolicy"),
],
});
// Create browser with custom execution role
const browser = new agentcore.BrowserCustom(this, "MyBrowser", {
browserCustomName: "my_browser",
description: "Browser with custom execution role",
networkConfiguration: agentcore.BrowserNetworkConfiguration.usingPublicNetwork(),
executionRole: executionRole,
});
Properties
| Name | Type | Description |
|---|---|---|
| browser | string | The name of the browser Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}. |
| description? | string | Optional description for the browser Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters. |
| execution | IRole | The IAM role that provides permissions for the browser to access AWS services. |
| network | Browser | Network configuration for browser. |
| recording | Recording | Recording configuration for browser. |
| tags? | { [string]: string } | Tags (optional) A list of key:value pairs of tags to apply to this Browser resource. |
browserCustomName
Type:
string
The name of the browser Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}.
description?
Type:
string
(optional, default: No description)
Optional description for the browser Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.
executionRole?
Type:
IRole
(optional, default: A new role will be created)
The IAM role that provides permissions for the browser to access AWS services.
networkConfiguration?
Type:
Browser
(optional, default: PUBLIC network mode)
Network configuration for browser.
recordingConfig?
Type:
Recording
(optional, default: No recording configuration)
Recording configuration for browser.
tags?
Type:
{ [string]: string }
(optional, default: {} - no tags)
Tags (optional) A list of key:value pairs of tags to apply to this Browser resource.

.NET
Go
Java
Python
TypeScript (