Show / Hide Table of Contents

Class Location

An interface that represents the location of a specific object in an S3 Bucket.

Inheritance
object
Location
Implements
ILocation
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Location : ILocation
Syntax (vb)
Public Class Location Implements ILocation
Remarks

ExampleMetadata: fixture=default infused

Examples
// Create an S3 bucket for recordings
            var recordingBucket = new Bucket(this, "RecordingBucket", new BucketProps {
                BucketName = "my-browser-recordings",
                RemovalPolicy = RemovalPolicy.DESTROY
            });

            // Create browser with recording enabled
            var browser = new BrowserCustom(this, "MyBrowser", new BrowserCustomProps {
                BrowserCustomName = "my_browser",
                Description = "Browser with recording enabled",
                NetworkConfiguration = BrowserNetworkConfiguration.UsingPublicNetwork(),
                RecordingConfig = new RecordingConfig {
                    Enabled = true,
                    S3Location = new Location {
                        BucketName = recordingBucket.BucketName,
                        ObjectKey = "browser-recordings/"
                    }
                }
            });

Synopsis

Constructors

Location()

An interface that represents the location of a specific object in an S3 Bucket.

Properties

BucketName

The name of the S3 Bucket the object is in.

ObjectKey

The path inside the Bucket where the object is located at.

ObjectVersion

The S3 object version.

Constructors

Location()

An interface that represents the location of a specific object in an S3 Bucket.

public Location()
Remarks

ExampleMetadata: fixture=default infused

Examples
// Create an S3 bucket for recordings
            var recordingBucket = new Bucket(this, "RecordingBucket", new BucketProps {
                BucketName = "my-browser-recordings",
                RemovalPolicy = RemovalPolicy.DESTROY
            });

            // Create browser with recording enabled
            var browser = new BrowserCustom(this, "MyBrowser", new BrowserCustomProps {
                BrowserCustomName = "my_browser",
                Description = "Browser with recording enabled",
                NetworkConfiguration = BrowserNetworkConfiguration.UsingPublicNetwork(),
                RecordingConfig = new RecordingConfig {
                    Enabled = true,
                    S3Location = new Location {
                        BucketName = recordingBucket.BucketName,
                        ObjectKey = "browser-recordings/"
                    }
                }
            });

Properties

BucketName

The name of the S3 Bucket the object is in.

public string BucketName { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=default infused

ObjectKey

The path inside the Bucket where the object is located at.

public string ObjectKey { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=default infused

ObjectVersion

The S3 object version.

public string? ObjectVersion { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=default infused

Implements

ILocation
Back to top Generated by DocFX