S3Location
Defined in: src/types/media.ts:132
S3 location for Bedrock media and document sources.
Implements
Section titled “Implements”S3LocationDataJSONSerializable<S3LocationData>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new S3Location(data): S3Location;Defined in: src/types/media.ts:136
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | S3LocationData |
Returns
Section titled “Returns”S3Location
Properties
Section titled “Properties”readonly uri: string;Defined in: src/types/media.ts:133
S3 URI in format: s3://bucket-name/key-name
Implementation of
Section titled “Implementation of”bucketOwner?
Section titled “bucketOwner?”readonly optional bucketOwner: string;Defined in: src/types/media.ts:134
AWS account ID of the S3 bucket owner (12-digit). Required if the bucket belongs to another AWS account.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): S3LocationData;Defined in: src/types/media.ts:147
Serializes the S3Location to a JSON-compatible S3LocationData object. Called automatically by JSON.stringify().
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”JSONSerializable.toJSONfromJSON()
Section titled “fromJSON()”static fromJSON(data): S3Location;Defined in: src/types/media.ts:160
Creates an S3Location instance from S3LocationData.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
data | S3LocationData | S3LocationData to deserialize |
Returns
Section titled “Returns”S3Location
S3Location instance