AiAdapterSource

sealed class AiAdapterSource

The source of LoRA adapters for an AI recommendation job. This is a union type — specify exactly one of the members.

Inheritors

Types

Link copied to clipboard

A list of LoRA adapters identified by their model package ARNs. Use this when your adapters were produced by a SageMaker AI fine-tuning workflow that registers model packages.

Link copied to clipboard
data class S3Uris(val value: List<AiAdapterS3Entry>) : AiAdapterSource

A list of LoRA adapters identified by their Amazon S3 URIs. Use this when your adapters are stored as raw artifacts in Amazon S3.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this AiAdapterSource as a ModelPackageArns and retrieves its kotlin.collections.List value. Throws an exception if the AiAdapterSource is not a ModelPackageArns.

Link copied to clipboard

Casts this AiAdapterSource as a ModelPackageArns and retrieves its kotlin.collections.List value. Returns null if the AiAdapterSource is not a ModelPackageArns.

Link copied to clipboard

Casts this AiAdapterSource as a S3Uris and retrieves its kotlin.collections.List value. Throws an exception if the AiAdapterSource is not a S3Uris.

Link copied to clipboard

Casts this AiAdapterSource as a S3Uris and retrieves its kotlin.collections.List value. Returns null if the AiAdapterSource is not a S3Uris.