Skip to content
v2.274.0

RecordingConfig Struct ​

Recording configuration for browser.

Example ​

ts
// Create an S3 bucket for recordings
const recordingBucket = new s3.Bucket(this, "RecordingBucket", {
  bucketName: "my-browser-recordings",
  removalPolicy: RemovalPolicy.DESTROY, // For demo purposes
});

// Create browser with recording enabled
const browser = new agentcore.BrowserCustom(this, "MyBrowser", {
  browserCustomName: "my_browser",
  description: "Browser with recording enabled",
  networkConfiguration: agentcore.BrowserNetworkConfiguration.usingPublicNetwork(),
  recordingConfig: {
    enabled: true,
    s3Location: {
      bucketName: recordingBucket.bucketName,
      objectKey: "browser-recordings/",
    },
  },
});

Properties ​

enabledbooleanenabledboolenabledBooleanEnabledboolEnabled*bool= false#
Whether recording is enabled.
s3LocationLocations3_locationLocations3LocationLocationS3LocationLocationS3LocationLocation= undefined#
S3 Location Configuration.