VideoSource

sealed class VideoSource

A video source. You can upload a smaller video as a base64-encoded string as long as the encoded file is less than 25MB. You can also transfer videos up to 1GB in size from an S3 bucket.

Inheritors

Types

Link copied to clipboard
data class Bytes(val value: ByteArray) : VideoSource

Video content encoded in base64.

Link copied to clipboard
data class S3Location(val value: S3Location) : VideoSource

The location of a video object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this VideoSource as a Bytes and retrieves its kotlin.ByteArray value. Throws an exception if the VideoSource is not a Bytes.

Link copied to clipboard

Casts this VideoSource as a Bytes and retrieves its kotlin.ByteArray value. Returns null if the VideoSource is not a Bytes.

Link copied to clipboard

Casts this VideoSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Throws an exception if the VideoSource is not a S3Location.

Link copied to clipboard

Casts this VideoSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Returns null if the VideoSource is not a S3Location.