interface Location
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.Location |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#Location |
Java | software.amazon.awscdk.services.s3.Location |
Python | aws_cdk.aws_s3.Location |
TypeScript (source) | aws-cdk-lib » aws_s3 » Location |
An interface that represents the location of a specific object in an S3 Bucket.
Example
// 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
| Name | Type | Description |
|---|---|---|
| bucket | string | The name of the S3 Bucket the object is in. |
| object | string | The path inside the Bucket where the object is located at. |
| object | string | The S3 object version. |
bucketName
Type:
string
The name of the S3 Bucket the object is in.
objectKey
Type:
string
The path inside the Bucket where the object is located at.
objectVersion?
Type:
string
(optional)
The S3 object version.

.NET
Go
Java
Python
TypeScript (