Skip to content
v2.278.0

BrowserCustomProps Struct ​

Properties for creating a Browser resource.

Example ​

ts
const browser = new agentcore.BrowserCustom(this, 'BrowserVpcWithRecording', {
  browserCustomName: 'browser_recording',
  networkConfiguration: agentcore.BrowserNetworkConfiguration.usingVpc(this, {
    vpc: new ec2.Vpc(this, 'VPC', { restrictDefaultSecurityGroup: false }),
  }),
});
python
browser = agentcore.BrowserCustom(self, "BrowserVpcWithRecording",
    browser_custom_name="browser_recording",
    network_configuration=agentcore.BrowserNetworkConfiguration.using_vpc(self,
        vpc=ec2.Vpc(self, "VPC", restrict_default_security_group=False)
    )
)
java
BrowserCustom browser = BrowserCustom.Builder.create(this, "BrowserVpcWithRecording")
        .browserCustomName("browser_recording")
        .networkConfiguration(BrowserNetworkConfiguration.usingVpc(this, VpcConfigProps.builder()
                .vpc(Vpc.Builder.create(this, "VPC").restrictDefaultSecurityGroup(false).build())
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var browser = new BrowserCustom(this, "BrowserVpcWithRecording", new BrowserCustomProps {
    BrowserCustomName = "browser_recording",
    NetworkConfiguration = BrowserNetworkConfiguration.UsingVpc(this, new VpcConfigProps {
        Vpc = new Vpc(this, "VPC", new VpcProps { RestrictDefaultSecurityGroup = false })
    })
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
browser := agentcore.NewBrowserCustom(this, jsii.String("BrowserVpcWithRecording"), &BrowserCustomProps{
	BrowserCustomName: jsii.String("browser_recording"),
	NetworkConfiguration: agentcore.BrowserNetworkConfiguration_UsingVpc(this, &VpcConfigProps{
		Vpc: ec2.NewVpc(this, jsii.String("VPC"), &VpcProps{
			RestrictDefaultSecurityGroup: jsii.Boolean(false),
		}),
	}),
})

Properties ​

browserCustomNameoptionalstringbrowser_custom_nameoptionalstrbrowserCustomNameoptionalStringBrowserCustomNameoptionalstringBrowserCustomNameoptional*string #
The name of the browser custom tool 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}.

Default: auto generate

browserSigningoptionalBrowserSigningbrowser_signingoptionalBrowserSigningbrowserSigningoptionalBrowserSigningBrowserSigningoptionalBrowserSigningBrowserSigningoptionalBrowserSigning = BrowserSigning.DISABLED #
Specifies whether browser signing is enabled.

When enabled, the browser will cryptographically sign HTTP requests to identify itself as an AI agent to bot control vendors.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*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.

Default: No description

executionRoleoptionalIRoleexecution_roleoptionalIRoleexecutionRoleoptionalIRoleExecutionRoleoptionalIRoleExecutionRoleoptionalIRole #
The IAM role that provides permissions for the browser to access AWS services.

Default: A new role will be created

networkConfigurationoptionalBrowserNetworkConfigurationnetwork_configurationoptionalBrowserNetworkConfigurationnetworkConfigurationoptionalBrowserNetworkConfigurationNetworkConfigurationoptionalBrowserNetworkConfigurationNetworkConfigurationoptionalBrowserNetworkConfiguration #
Network configuration for browser.

Default: PUBLIC network mode

recordingConfigoptionalRecordingConfigrecording_configoptionalRecordingConfigrecordingConfigoptionalRecordingConfigRecordingConfigoptionalRecordingConfigRecordingConfigoptionalRecordingConfig #
Recording configuration for browser.

Default: No recording configuration

tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
Tags (optional) A list of key:value pairs of tags to apply to this Browser resource.

Default: {} - no tags