1. Packages
  2. AWS
  3. API Docs
  4. bedrock
  5. getCustomModels
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.bedrock.getCustomModels

Explore with Pulumi AI

AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

Returns a list of Amazon Bedrock custom models.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = aws.bedrock.getCustomModels({});
Copy
import pulumi
import pulumi_aws as aws

test = aws.bedrock.get_custom_models()
Copy
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.GetCustomModels(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = Aws.Bedrock.GetCustomModels.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.BedrockFunctions;
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.getCustomModels();

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: aws:bedrock:getCustomModels
      arguments: {}
Copy

Using getCustomModels

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 getCustomModels(opts?: InvokeOptions): Promise<GetCustomModelsResult>
function getCustomModelsOutput(opts?: InvokeOptions): Output<GetCustomModelsResult>
Copy
def get_custom_models(opts: Optional[InvokeOptions] = None) -> GetCustomModelsResult
def get_custom_models_output(opts: Optional[InvokeOptions] = None) -> Output[GetCustomModelsResult]
Copy
func GetCustomModels(ctx *Context, opts ...InvokeOption) (*GetCustomModelsResult, error)
func GetCustomModelsOutput(ctx *Context, opts ...InvokeOption) GetCustomModelsResultOutput
Copy

> Note: This function is named GetCustomModels in the Go SDK.

public static class GetCustomModels 
{
    public static Task<GetCustomModelsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetCustomModelsResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCustomModelsResult> getCustomModels(InvokeOptions options)
public static Output<GetCustomModelsResult> getCustomModels(InvokeOptions options)
Copy
fn::invoke:
  function: aws:bedrock/getCustomModels:getCustomModels
  arguments:
    # arguments dictionary
Copy

getCustomModels Result

The following output properties are available:

id String
modelSummaries List<Property Map>
Model summaries.

Supporting Types

GetCustomModelsModelSummary

CreationTime This property is required. string
Creation time of the model.
ModelArn This property is required. string
The ARN of the custom model.
ModelName This property is required. string
The name of the custom model.
CreationTime This property is required. string
Creation time of the model.
ModelArn This property is required. string
The ARN of the custom model.
ModelName This property is required. string
The name of the custom model.
creationTime This property is required. String
Creation time of the model.
modelArn This property is required. String
The ARN of the custom model.
modelName This property is required. String
The name of the custom model.
creationTime This property is required. string
Creation time of the model.
modelArn This property is required. string
The ARN of the custom model.
modelName This property is required. string
The name of the custom model.
creation_time This property is required. str
Creation time of the model.
model_arn This property is required. str
The ARN of the custom model.
model_name This property is required. str
The name of the custom model.
creationTime This property is required. String
Creation time of the model.
modelArn This property is required. String
The ARN of the custom model.
modelName This property is required. String
The name of the custom model.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi