Location
- class aws_cdk.aws_s3.Location(*, bucket_name, object_key, object_version=None)
Bases:
objectAn interface that represents the location of a specific object in an S3 Bucket.
- Parameters:
bucket_name (
str) – The name of the S3 Bucket the object is in.object_key (
str) – The path inside the Bucket where the object is located at.object_version (
Optional[str]) – The S3 object version.
- ExampleMetadata:
fixture=default infused
Example:
# Create an S3 bucket for recordings recording_bucket = s3.Bucket(self, "RecordingBucket", bucket_name="my-browser-recordings", removal_policy=RemovalPolicy.DESTROY ) # Create browser with recording enabled browser = agentcore.BrowserCustom(self, "MyBrowser", browser_custom_name="my_browser", description="Browser with recording enabled", network_configuration=agentcore.BrowserNetworkConfiguration.using_public_network(), recording_config=agentcore.RecordingConfig( enabled=True, s3_location=s3.Location( bucket_name=recording_bucket.bucket_name, object_key="browser-recordings/" ) ) )
Attributes
- bucket_name
The name of the S3 Bucket the object is in.
- object_key
The path inside the Bucket where the object is located at.
- object_version
The S3 object version.