IconImageInput

sealed class IconImageInput

The input for an icon image (logo or favicon). Provide either a binary image file or an S3 URI pointing to the image file. Maximum 100 KB in JPEG, PNG, or ICO format.

Inheritors

Types

Link copied to clipboard
data class Blob(val value: ByteArray) : IconImageInput

The image provided as a binary image file.

Link copied to clipboard
data class S3Uri(val value: String) : IconImageInput

The S3 URI pointing to the image file. The URI must use the format s3://bucket-name/key-name. You must have read access to the S3 object.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Casts this IconImageInput as a S3Uri and retrieves its kotlin.String value. Throws an exception if the IconImageInput is not a S3Uri.

Link copied to clipboard

Casts this IconImageInput as a S3Uri and retrieves its kotlin.String value. Returns null if the IconImageInput is not a S3Uri.