Light Dark

Functions

get-foundation-model

fn (model_identifier: Str): GetFoundationModelResponse | AwsError

Get details about a specific foundation model.

Example

result ::aws::bedrock::models/get-foundation-model("amazon.nova-micro-v1:0")
model result.model
// => {model_id: "amazon.nova-micro-v1:0", model_name: "Nova Micro", ...}

list-foundation-models

fn (by_provider: Str, by_customization_type: Str, by_output_modality: Str, by_inference_type: Str): ListFoundationModelsResponse | AwsError
fn (by_provider: Str): ListFoundationModelsResponse | AwsError
fn (): ListFoundationModelsResponse | AwsError

List all available foundation models in Bedrock.

Optionally filter by provider, customization type, output modality, or inference type.

Example

// List all models
result ::aws::bedrock::models/list-foundation-models()
models result.models
// => [{model_id: "amazon.nova-micro-v1:0", provider_name: "Amazon", ...}, ...]

// List models by provider
result ::aws::bedrock::models/list-foundation-models("Anthropic")

Types

FoundationModel

FoundationModel type {
    model_arn: Str?,
    model_id: Str?,
    model_name: Str?,
    provider_name: Str?,
    input_modalities: Vec?,
    output_modalities: Vec?,
    response_streaming_supported: Bool?,
    customizations_supported: Vec?,
    inference_types_supported: Vec?,
    model_lifecycle: Map?
}

GetFoundationModelResponse

GetFoundationModelResponse type {
    model: FoundationModel?
}

ListFoundationModelsResponse

ListFoundationModelsResponse type {
    models: Vec
}