AWS v6.77.1 published on Friday, Apr 18, 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:
- Model
Id string - Name or ARN of the custom model.
 
- Model
Id string - Name or ARN of the custom model.
 
- model
Id String - Name or ARN of the custom model.
 
- model
Id string - Name or ARN of the custom model.
 
- model_
id str - Name or ARN of the custom model.
 
- model
Id String - Name or ARN of the custom model.
 
getCustomModel Result
The following output properties are available:
- Base
Model stringArn  - ARN of the base model.
 - Creation
Time string - Creation time of the model.
 - Hyperparameters Dictionary<string, string>
 - Hyperparameter values associated with this model.
 - Id string
 - Job
Arn string - Job ARN associated with this model.
 - Job
Name string - Job name associated with this model.
 - Dictionary<string, string>
 - Key-value mapping of tags for the fine-tuning job.
 - Model
Arn string - ARN associated with this model.
 - Model
Id string - Model
Kms stringKey Arn  - The custom model is encrypted at rest using this key.
 - Model
Name string - Model name associated with this model.
 - Dictionary<string, string>
 - Key-value mapping of tags for the model.
 - Output
Data List<GetConfigs Custom Model Output Data Config>  - Output data configuration associated with this custom model.
 - Training
Data List<GetConfigs Custom Model Training Data Config>  - Information about the training dataset.
 - Training
Metrics List<GetCustom Model Training Metric>  - Metrics associated with the customization job.
 - Validation
Data List<GetConfigs Custom Model Validation Data Config>  - Information about the validation dataset.
 - Validation
Metrics List<GetCustom Model Validation Metric>  - The loss metric for each validator that you provided.
 
- Base
Model stringArn  - ARN of the base model.
 - Creation
Time string - Creation time of the model.
 - Hyperparameters map[string]string
 - Hyperparameter values associated with this model.
 - Id string
 - Job
Arn string - Job ARN associated with this model.
 - Job
Name string - Job name associated with this model.
 - map[string]string
 - Key-value mapping of tags for the fine-tuning job.
 - Model
Arn string - ARN associated with this model.
 - Model
Id string - Model
Kms stringKey Arn  - The custom model is encrypted at rest using this key.
 - Model
Name string - Model name associated with this model.
 - map[string]string
 - Key-value mapping of tags for the model.
 - Output
Data []GetConfigs Custom Model Output Data Config  - Output data configuration associated with this custom model.
 - Training
Data []GetConfigs Custom Model Training Data Config  - Information about the training dataset.
 - Training
Metrics []GetCustom Model Training Metric  - Metrics associated with the customization job.
 - Validation
Data []GetConfigs Custom Model Validation Data Config  - Information about the validation dataset.
 - Validation
Metrics []GetCustom Model Validation Metric  - The loss metric for each validator that you provided.
 
- base
Model StringArn  - ARN of the base model.
 - creation
Time String - Creation time of the model.
 - hyperparameters Map<String,String>
 - Hyperparameter values associated with this model.
 - id String
 - job
Arn String - Job ARN associated with this model.
 - job
Name String - Job name associated with this model.
 - Map<String,String>
 - Key-value mapping of tags for the fine-tuning job.
 - model
Arn String - ARN associated with this model.
 - model
Id String - model
Kms StringKey Arn  - The custom model is encrypted at rest using this key.
 - model
Name String - Model name associated with this model.
 - Map<String,String>
 - Key-value mapping of tags for the model.
 - output
Data List<GetConfigs Custom Model Output Data Config>  - Output data configuration associated with this custom model.
 - training
Data List<GetConfigs Custom Model Training Data Config>  - Information about the training dataset.
 - training
Metrics List<GetCustom Model Training Metric>  - Metrics associated with the customization job.
 - validation
Data List<GetConfigs Custom Model Validation Data Config>  - Information about the validation dataset.
 - validation
Metrics List<GetCustom Model Validation Metric>  - The loss metric for each validator that you provided.
 
- base
Model stringArn  - ARN of the base model.
 - creation
Time string - Creation time of the model.
 - hyperparameters {[key: string]: string}
 - Hyperparameter values associated with this model.
 - id string
 - job
Arn string - Job ARN associated with this model.
 - job
Name string - Job name associated with this model.
 - {[key: string]: string}
 - Key-value mapping of tags for the fine-tuning job.
 - model
Arn string - ARN associated with this model.
 - model
Id string - model
Kms stringKey Arn  - The custom model is encrypted at rest using this key.
 - model
Name string - Model name associated with this model.
 - {[key: string]: string}
 - Key-value mapping of tags for the model.
 - output
Data GetConfigs Custom Model Output Data Config[]  - Output data configuration associated with this custom model.
 - training
Data GetConfigs Custom Model Training Data Config[]  - Information about the training dataset.
 - training
Metrics GetCustom Model Training Metric[]  - Metrics associated with the customization job.
 - validation
Data GetConfigs Custom Model Validation Data Config[]  - Information about the validation dataset.
 - validation
Metrics 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.
 
- base
Model StringArn  - ARN of the base model.
 - creation
Time String - Creation time of the model.
 - hyperparameters Map<String>
 - Hyperparameter values associated with this model.
 - id String
 - job
Arn String - Job ARN associated with this model.
 - job
Name String - Job name associated with this model.
 - Map<String>
 - Key-value mapping of tags for the fine-tuning job.
 - model
Arn String - ARN associated with this model.
 - model
Id String - model
Kms StringKey Arn  - The custom model is encrypted at rest using this key.
 - model
Name String - Model name associated with this model.
 - Map<String>
 - Key-value mapping of tags for the model.
 - output
Data List<Property Map>Configs  - Output data configuration associated with this custom model.
 - training
Data List<Property Map>Configs  - Information about the training dataset.
 - training
Metrics List<Property Map> - Metrics associated with the customization job.
 - validation
Data List<Property Map>Configs  - Information about the validation dataset.
 - validation
Metrics 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    
- Training
Loss double - Loss metric associated with the customization job.
 
- Training
Loss float64 - Loss metric associated with the customization job.
 
- training
Loss Double - Loss metric associated with the customization job.
 
- training
Loss number - Loss metric associated with the customization job.
 
- training_
loss float - Loss metric associated with the customization job.
 
- training
Loss Number - Loss metric associated with the customization job.
 
GetCustomModelValidationDataConfig     
- Validators
List<Get
Custom Model Validation Data Config Validator>  - Information about the validators.
 
- Validators
[]Get
Custom Model Validation Data Config Validator  - Information about the validators.
 
- validators
List<Get
Custom Model Validation Data Config Validator>  - Information about the validators.
 
- validators
Get
Custom Model Validation Data Config Validator[]  - Information about the validators.
 
- validators
Sequence[Get
Custom 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    
- Validation
Loss double - The validation loss associated with the validator.
 
- Validation
Loss float64 - The validation loss associated with the validator.
 
- validation
Loss Double - The validation loss associated with the validator.
 
- validation
Loss number - The validation loss associated with the validator.
 
- validation_
loss float - The validation loss associated with the validator.
 
- validation
Loss 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.