1. Packages
  2. AWS Classic
  3. API Docs
  4. bedrock
  5. getCustomModels

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.bedrock.getCustomModels

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 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/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, nil, 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 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();
    
        }
    }
    
    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(opts?: InvokeOptions): Promise<GetCustomModelsResult>
    function getCustomModelsOutput(opts?: InvokeOptions): Output<GetCustomModelsResult>
    def get_custom_models(opts: Optional[InvokeOptions] = None) -> GetCustomModelsResult
    def get_custom_models_output(opts: Optional[InvokeOptions] = None) -> Output[GetCustomModelsResult]
    func GetCustomModels(ctx *Context, opts ...InvokeOption) (*GetCustomModelsResult, error)
    func GetCustomModelsOutput(ctx *Context, opts ...InvokeOption) GetCustomModelsResultOutput

    > 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)
    }
    public static CompletableFuture<GetCustomModelsResult> getCustomModels(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:bedrock/getCustomModels:getCustomModels
      arguments:
        # arguments dictionary

    getCustomModels Result

    The following output properties are available:

    id String
    modelSummaries List<Property Map>
    Model summaries.

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi