Skip to content

S3Location

Defined in: src/types/media.ts:102

S3 location for media and document sources.

new S3Location(data): S3Location;

Defined in: src/types/media.ts:107

| Parameter | Type | | --------- | --------------------------------------------------------------------------------- | | data | Omit<S3LocationData, "type"> & { type?: "s3"; } |

S3Location

readonly type: "s3";

Defined in: src/types/media.ts:103

Location type — always “s3”.

S3LocationData.type


readonly uri: string;

Defined in: src/types/media.ts:104

S3 URI in format: s3://bucket-name/key-name

S3LocationData.uri


readonly optional bucketOwner?: string;

Defined in: src/types/media.ts:105

AWS account ID of the S3 bucket owner (12-digit). Required if the bucket belongs to another AWS account.

S3LocationData.bucketOwner

toJSON(): S3LocationData;

Defined in: src/types/media.ts:118

Serializes the S3Location to a JSON-compatible S3LocationData object. Called automatically by JSON.stringify().

S3LocationData

JSONSerializable.toJSON

static fromJSON(data): S3Location;

Defined in: src/types/media.ts:132

Creates an S3Location instance from S3LocationData.

| Parameter | Type | Description | | --------- | -------------------------------------- | ----------------------------- | | data | S3LocationData | S3LocationData to deserialize |

S3Location

S3Location instance