1. Packages
  2. AWS
  3. API Docs
  4. bedrock
  5. getCustomModels
AWS v7.2.0 published on Thursday, Jul 31, 2025 by Pulumi

aws.bedrock.getCustomModels

Explore with Pulumi AI

aws logo
AWS v7.2.0 published on Thursday, Jul 31, 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({});
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.bedrock.get_custom_models()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bedrock.GetCustomModels(ctx, &bedrock.GetCustomModelsArgs{}, 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.GetCustomModels.Invoke();
    
    });
    
    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.GetCustomModelsArgs;
    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(GetCustomModelsArgs.builder()
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: aws:bedrock:getCustomModels
          arguments: {}
    

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

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

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

    The following arguments are supported:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getCustomModels Result

    The following output properties are available:

    id String
    modelSummaries List<Property Map>
    Model summaries.
    region String

    Supporting Types

    GetCustomModelsModelSummary

    CreationTime string
    Creation time of the model.
    ModelArn string
    The ARN of the custom model.
    ModelName string
    The name of the custom model.
    CreationTime string
    Creation time of the model.
    ModelArn string
    The ARN of the custom model.
    ModelName string
    The name of the custom model.
    creationTime String
    Creation time of the model.
    modelArn String
    The ARN of the custom model.
    modelName String
    The name of the custom model.
    creationTime string
    Creation time of the model.
    modelArn string
    The ARN of the custom model.
    modelName string
    The name of the custom model.
    creation_time str
    Creation time of the model.
    model_arn str
    The ARN of the custom model.
    model_name str
    The name of the custom model.
    creationTime String
    Creation time of the model.
    modelArn String
    The ARN of the custom model.
    modelName 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 logo
    AWS v7.2.0 published on Thursday, Jul 31, 2025 by Pulumi