UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

104 lines (103 loc) 2.85 kB
import * as pulumi from "@pulumi/pulumi"; /** * Data source for managing an AWS Bedrock Foundation Model. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.bedrockfoundation.getModels({}); * const testGetModel = test.then(test => aws.bedrockfoundation.getModel({ * modelId: test.modelSummaries?.[0]?.modelId, * })); * ``` */ export declare function getModel(args: GetModelArgs, opts?: pulumi.InvokeOptions): Promise<GetModelResult>; /** * A collection of arguments for invoking getModel. */ export interface GetModelArgs { /** * Model identifier. */ modelId: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getModel. */ export interface GetModelResult { /** * Customizations that the model supports. */ readonly customizationsSupporteds: string[]; readonly id: string; /** * Inference types that the model supports. */ readonly inferenceTypesSupporteds: string[]; /** * Input modalities that the model supports. */ readonly inputModalities: string[]; /** * Model ARN. */ readonly modelArn: string; readonly modelId: string; /** * Model name. */ readonly modelName: string; /** * Output modalities that the model supports. */ readonly outputModalities: string[]; /** * Model provider name. */ readonly providerName: string; readonly region: string; /** * Indicates whether the model supports streaming. */ readonly responseStreamingSupported: boolean; } /** * Data source for managing an AWS Bedrock Foundation Model. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.bedrockfoundation.getModels({}); * const testGetModel = test.then(test => aws.bedrockfoundation.getModel({ * modelId: test.modelSummaries?.[0]?.modelId, * })); * ``` */ export declare function getModelOutput(args: GetModelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetModelResult>; /** * A collection of arguments for invoking getModel. */ export interface GetModelOutputArgs { /** * Model identifier. */ modelId: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; }