ImageSource
Types
The raw image bytes for the image. If you use an AWS SDK, you don't need to encode the image bytes in base64.
The location of an image object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.
Functions
Casts this ImageSource as a Bytes and retrieves its kotlin.ByteArray value. Throws an exception if the ImageSource is not a Bytes.
Casts this ImageSource as a Bytes and retrieves its kotlin.ByteArray value. Returns null if the ImageSource is not a Bytes.
Casts this ImageSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Throws an exception if the ImageSource is not a S3Location.
Casts this ImageSource as a S3Location and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.S3Location value. Returns null if the ImageSource is not a S3Location.