@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
133 lines (132 loc) • 3.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Returns properties of a specific Amazon Bedrock custom model.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.bedrock.getCustomModel({
* modelId: "arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 ",
* });
* ```
*/
export declare function getCustomModel(args: GetCustomModelArgs, opts?: pulumi.InvokeOptions): Promise<GetCustomModelResult>;
/**
* A collection of arguments for invoking getCustomModel.
*/
export interface GetCustomModelArgs {
/**
* Name or ARN of the custom model.
*/
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 getCustomModel.
*/
export interface GetCustomModelResult {
/**
* ARN of the base model.
*/
readonly baseModelArn: string;
/**
* Creation time of the model.
*/
readonly creationTime: string;
/**
* Hyperparameter values associated with this model.
*/
readonly hyperparameters: {
[key: string]: string;
};
readonly id: string;
/**
* Job ARN associated with this model.
*/
readonly jobArn: string;
/**
* Job name associated with this model.
*/
readonly jobName: string;
/**
* Key-value mapping of tags for the fine-tuning job.
*/
readonly jobTags: {
[key: string]: string;
};
/**
* ARN associated with this model.
*/
readonly modelArn: string;
readonly modelId: string;
/**
* The custom model is encrypted at rest using this key.
*/
readonly modelKmsKeyArn: string;
/**
* Model name associated with this model.
*/
readonly modelName: string;
/**
* Key-value mapping of tags for the model.
*/
readonly modelTags: {
[key: string]: string;
};
/**
* Output data configuration associated with this custom model.
*/
readonly outputDataConfigs: outputs.bedrock.GetCustomModelOutputDataConfig[];
readonly region: string;
/**
* Information about the training dataset.
*/
readonly trainingDataConfigs: outputs.bedrock.GetCustomModelTrainingDataConfig[];
/**
* Metrics associated with the customization job.
*/
readonly trainingMetrics: outputs.bedrock.GetCustomModelTrainingMetric[];
/**
* Information about the validation dataset.
*/
readonly validationDataConfigs: outputs.bedrock.GetCustomModelValidationDataConfig[];
/**
* The loss metric for each validator that you provided.
*/
readonly validationMetrics: outputs.bedrock.GetCustomModelValidationMetric[];
}
/**
* Returns properties of a specific Amazon Bedrock custom model.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.bedrock.getCustomModel({
* modelId: "arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 ",
* });
* ```
*/
export declare function getCustomModelOutput(args: GetCustomModelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCustomModelResult>;
/**
* A collection of arguments for invoking getCustomModel.
*/
export interface GetCustomModelOutputArgs {
/**
* Name or ARN of the custom model.
*/
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>;
}