getModels

Data source for managing AWS Bedrock Foundation Models.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrockfoundation.BedrockfoundationFunctions;
import com.pulumi.aws.bedrockfoundation.inputs.GetModelsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = BedrockfoundationFunctions.getModels();
}
}

Filter by Inference Type

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrockfoundation.BedrockfoundationFunctions;
import com.pulumi.aws.bedrockfoundation.inputs.GetModelsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = BedrockfoundationFunctions.getModels(GetModelsArgs.builder()
.byInferenceType("ON_DEMAND")
.build());
}
}

Return

A collection of values returned by getModels.

Parameters

argument

A collection of arguments for invoking getModels.


suspend fun getModels(byCustomizationType: String? = null, byInferenceType: String? = null, byOutputModality: String? = null, byProvider: String? = null, modelSummaries: List<GetModelsModelSummary>? = null): GetModelsResult

Return

A collection of values returned by getModels.

See also

Parameters

byCustomizationType

Customization type to filter on. Valid values are FINE_TUNING.

byInferenceType

Inference type to filter on. Valid values are ON_DEMAND and PROVISIONED.

byOutputModality

Output modality to filter on. Valid values are TEXT, IMAGE, and EMBEDDING.

byProvider

Model provider to filter on.

modelSummaries

List of model summary objects. See model_summaries.


suspend fun getModels(argument: suspend GetModelsPlainArgsBuilder.() -> Unit): GetModelsResult

Return

A collection of values returned by getModels.

See also

Parameters

argument

Builder for com.pulumi.aws.bedrockfoundation.kotlin.inputs.GetModelsPlainArgs.