AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.bedrock.getCustomModel
Explore with Pulumi AI
Returns properties of a specific Amazon Bedrock custom model.
Example Usage
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 ",
});
import pulumi
import pulumi_aws as aws
test = aws.bedrock.get_custom_model(model_id="arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 ")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/bedrock"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bedrock.LookupCustomModel(ctx, &bedrock.LookupCustomModelArgs{
			ModelId: "arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 ",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var test = Aws.Bedrock.GetCustomModel.Invoke(new()
    {
        ModelId = "arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 ",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.BedrockFunctions;
import com.pulumi.aws.bedrock.inputs.GetCustomModelArgs;
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 = BedrockFunctions.getCustomModel(GetCustomModelArgs.builder()
            .modelId("arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 ")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:bedrock:getCustomModel
      arguments:
        modelId: 'arn:aws:bedrock:us-west-2:123456789012:custom-model/amazon.titan-text-express-v1:0:8k/ly16hhi765j4 '
Using getCustomModel
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCustomModel(args: GetCustomModelArgs, opts?: InvokeOptions): Promise<GetCustomModelResult>
function getCustomModelOutput(args: GetCustomModelOutputArgs, opts?: InvokeOptions): Output<GetCustomModelResult>def get_custom_model(model_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCustomModelResult
def get_custom_model_output(model_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCustomModelResult]func LookupCustomModel(ctx *Context, args *LookupCustomModelArgs, opts ...InvokeOption) (*LookupCustomModelResult, error)
func LookupCustomModelOutput(ctx *Context, args *LookupCustomModelOutputArgs, opts ...InvokeOption) LookupCustomModelResultOutput> Note: This function is named LookupCustomModel in the Go SDK.
public static class GetCustomModel 
{
    public static Task<GetCustomModelResult> InvokeAsync(GetCustomModelArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomModelResult> Invoke(GetCustomModelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomModelResult> getCustomModel(GetCustomModelArgs args, InvokeOptions options)
public static Output<GetCustomModelResult> getCustomModel(GetCustomModelArgs args, InvokeOptions options)
fn::invoke:
  function: aws:bedrock/getCustomModel:getCustomModel
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ModelId string
- Name or ARN of the custom model.
- ModelId string
- Name or ARN of the custom model.
- modelId String
- Name or ARN of the custom model.
- modelId string
- Name or ARN of the custom model.
- model_id str
- Name or ARN of the custom model.
- modelId String
- Name or ARN of the custom model.
getCustomModel Result
The following output properties are available:
- BaseModel stringArn 
- ARN of the base model.
- CreationTime string
- Creation time of the model.
- Hyperparameters Dictionary<string, string>
- Hyperparameter values associated with this model.
- Id string
- JobArn string
- Job ARN associated with this model.
- JobName string
- Job name associated with this model.
- Dictionary<string, string>
- Key-value mapping of tags for the fine-tuning job.
- ModelArn string
- ARN associated with this model.
- ModelId string
- ModelKms stringKey Arn 
- The custom model is encrypted at rest using this key.
- ModelName string
- Model name associated with this model.
- Dictionary<string, string>
- Key-value mapping of tags for the model.
- OutputData List<GetConfigs Custom Model Output Data Config> 
- Output data configuration associated with this custom model.
- TrainingData List<GetConfigs Custom Model Training Data Config> 
- Information about the training dataset.
- TrainingMetrics List<GetCustom Model Training Metric> 
- Metrics associated with the customization job.
- ValidationData List<GetConfigs Custom Model Validation Data Config> 
- Information about the validation dataset.
- ValidationMetrics List<GetCustom Model Validation Metric> 
- The loss metric for each validator that you provided.
- BaseModel stringArn 
- ARN of the base model.
- CreationTime string
- Creation time of the model.
- Hyperparameters map[string]string
- Hyperparameter values associated with this model.
- Id string
- JobArn string
- Job ARN associated with this model.
- JobName string
- Job name associated with this model.
- map[string]string
- Key-value mapping of tags for the fine-tuning job.
- ModelArn string
- ARN associated with this model.
- ModelId string
- ModelKms stringKey Arn 
- The custom model is encrypted at rest using this key.
- ModelName string
- Model name associated with this model.
- map[string]string
- Key-value mapping of tags for the model.
- OutputData []GetConfigs Custom Model Output Data Config 
- Output data configuration associated with this custom model.
- TrainingData []GetConfigs Custom Model Training Data Config 
- Information about the training dataset.
- TrainingMetrics []GetCustom Model Training Metric 
- Metrics associated with the customization job.
- ValidationData []GetConfigs Custom Model Validation Data Config 
- Information about the validation dataset.
- ValidationMetrics []GetCustom Model Validation Metric 
- The loss metric for each validator that you provided.
- baseModel StringArn 
- ARN of the base model.
- creationTime String
- Creation time of the model.
- hyperparameters Map<String,String>
- Hyperparameter values associated with this model.
- id String
- jobArn String
- Job ARN associated with this model.
- jobName String
- Job name associated with this model.
- Map<String,String>
- Key-value mapping of tags for the fine-tuning job.
- modelArn String
- ARN associated with this model.
- modelId String
- modelKms StringKey Arn 
- The custom model is encrypted at rest using this key.
- modelName String
- Model name associated with this model.
- Map<String,String>
- Key-value mapping of tags for the model.
- outputData List<GetConfigs Custom Model Output Data Config> 
- Output data configuration associated with this custom model.
- trainingData List<GetConfigs Custom Model Training Data Config> 
- Information about the training dataset.
- trainingMetrics List<GetCustom Model Training Metric> 
- Metrics associated with the customization job.
- validationData List<GetConfigs Custom Model Validation Data Config> 
- Information about the validation dataset.
- validationMetrics List<GetCustom Model Validation Metric> 
- The loss metric for each validator that you provided.
- baseModel stringArn 
- ARN of the base model.
- creationTime string
- Creation time of the model.
- hyperparameters {[key: string]: string}
- Hyperparameter values associated with this model.
- id string
- jobArn string
- Job ARN associated with this model.
- jobName string
- Job name associated with this model.
- {[key: string]: string}
- Key-value mapping of tags for the fine-tuning job.
- modelArn string
- ARN associated with this model.
- modelId string
- modelKms stringKey Arn 
- The custom model is encrypted at rest using this key.
- modelName string
- Model name associated with this model.
- {[key: string]: string}
- Key-value mapping of tags for the model.
- outputData GetConfigs Custom Model Output Data Config[] 
- Output data configuration associated with this custom model.
- trainingData GetConfigs Custom Model Training Data Config[] 
- Information about the training dataset.
- trainingMetrics GetCustom Model Training Metric[] 
- Metrics associated with the customization job.
- validationData GetConfigs Custom Model Validation Data Config[] 
- Information about the validation dataset.
- validationMetrics GetCustom Model Validation Metric[] 
- The loss metric for each validator that you provided.
- base_model_ strarn 
- ARN of the base model.
- creation_time str
- Creation time of the model.
- hyperparameters Mapping[str, str]
- Hyperparameter values associated with this model.
- id str
- job_arn str
- Job ARN associated with this model.
- job_name str
- Job name associated with this model.
- Mapping[str, str]
- Key-value mapping of tags for the fine-tuning job.
- model_arn str
- ARN associated with this model.
- model_id str
- model_kms_ strkey_ arn 
- The custom model is encrypted at rest using this key.
- model_name str
- Model name associated with this model.
- Mapping[str, str]
- Key-value mapping of tags for the model.
- output_data_ Sequence[Getconfigs Custom Model Output Data Config] 
- Output data configuration associated with this custom model.
- training_data_ Sequence[Getconfigs Custom Model Training Data Config] 
- Information about the training dataset.
- training_metrics Sequence[GetCustom Model Training Metric] 
- Metrics associated with the customization job.
- validation_data_ Sequence[Getconfigs Custom Model Validation Data Config] 
- Information about the validation dataset.
- validation_metrics Sequence[GetCustom Model Validation Metric] 
- The loss metric for each validator that you provided.
- baseModel StringArn 
- ARN of the base model.
- creationTime String
- Creation time of the model.
- hyperparameters Map<String>
- Hyperparameter values associated with this model.
- id String
- jobArn String
- Job ARN associated with this model.
- jobName String
- Job name associated with this model.
- Map<String>
- Key-value mapping of tags for the fine-tuning job.
- modelArn String
- ARN associated with this model.
- modelId String
- modelKms StringKey Arn 
- The custom model is encrypted at rest using this key.
- modelName String
- Model name associated with this model.
- Map<String>
- Key-value mapping of tags for the model.
- outputData List<Property Map>Configs 
- Output data configuration associated with this custom model.
- trainingData List<Property Map>Configs 
- Information about the training dataset.
- trainingMetrics List<Property Map>
- Metrics associated with the customization job.
- validationData List<Property Map>Configs 
- Information about the validation dataset.
- validationMetrics List<Property Map>
- The loss metric for each validator that you provided.
Supporting Types
GetCustomModelOutputDataConfig     
- S3Uri string
- The S3 URI where the validation data is stored..
- S3Uri string
- The S3 URI where the validation data is stored..
- s3Uri String
- The S3 URI where the validation data is stored..
- s3Uri string
- The S3 URI where the validation data is stored..
- s3_uri str
- The S3 URI where the validation data is stored..
- s3Uri String
- The S3 URI where the validation data is stored..
GetCustomModelTrainingDataConfig     
- S3Uri string
- The S3 URI where the validation data is stored..
- S3Uri string
- The S3 URI where the validation data is stored..
- s3Uri String
- The S3 URI where the validation data is stored..
- s3Uri string
- The S3 URI where the validation data is stored..
- s3_uri str
- The S3 URI where the validation data is stored..
- s3Uri String
- The S3 URI where the validation data is stored..
GetCustomModelTrainingMetric    
- TrainingLoss double
- Loss metric associated with the customization job.
- TrainingLoss float64
- Loss metric associated with the customization job.
- trainingLoss Double
- Loss metric associated with the customization job.
- trainingLoss number
- Loss metric associated with the customization job.
- training_loss float
- Loss metric associated with the customization job.
- trainingLoss Number
- Loss metric associated with the customization job.
GetCustomModelValidationDataConfig     
- Validators
List<GetCustom Model Validation Data Config Validator> 
- Information about the validators.
- Validators
[]GetCustom Model Validation Data Config Validator 
- Information about the validators.
- validators
List<GetCustom Model Validation Data Config Validator> 
- Information about the validators.
- validators
GetCustom Model Validation Data Config Validator[] 
- Information about the validators.
- validators
Sequence[GetCustom Model Validation Data Config Validator] 
- Information about the validators.
- validators List<Property Map>
- Information about the validators.
GetCustomModelValidationDataConfigValidator      
- S3Uri string
- The S3 URI where the validation data is stored..
- S3Uri string
- The S3 URI where the validation data is stored..
- s3Uri String
- The S3 URI where the validation data is stored..
- s3Uri string
- The S3 URI where the validation data is stored..
- s3_uri str
- The S3 URI where the validation data is stored..
- s3Uri String
- The S3 URI where the validation data is stored..
GetCustomModelValidationMetric    
- ValidationLoss double
- The validation loss associated with the validator.
- ValidationLoss float64
- The validation loss associated with the validator.
- validationLoss Double
- The validation loss associated with the validator.
- validationLoss number
- The validation loss associated with the validator.
- validation_loss float
- The validation loss associated with the validator.
- validationLoss Number
- The validation loss associated with the validator.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.