ImageSource

sealed class ImageSource

The source for an image.

Inheritors

Types

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

The raw image bytes for the image. If you use an Amazon Web Services SDK, you don't need to encode the image bytes in base64.

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

The path to the Amazon S3 bucket where the image is stored.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard