bedrockfoundation

package
v6.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetModelArgs

type GetModelArgs struct {
	// Model identifier.
	ModelId string `pulumi:"modelId"`
}

A collection of arguments for invoking getModel.

type GetModelOutputArgs

type GetModelOutputArgs struct {
	// Model identifier.
	ModelId pulumi.StringInput `pulumi:"modelId"`
}

A collection of arguments for invoking getModel.

func (GetModelOutputArgs) ElementType

func (GetModelOutputArgs) ElementType() reflect.Type

type GetModelResult

type GetModelResult struct {
	// Customizations that the model supports.
	CustomizationsSupporteds []string `pulumi:"customizationsSupporteds"`
	Id                       string   `pulumi:"id"`
	// Inference types that the model supports.
	InferenceTypesSupporteds []string `pulumi:"inferenceTypesSupporteds"`
	// Input modalities that the model supports.
	InputModalities []string `pulumi:"inputModalities"`
	// Model ARN.
	ModelArn string `pulumi:"modelArn"`
	ModelId  string `pulumi:"modelId"`
	// Model name.
	ModelName string `pulumi:"modelName"`
	// Output modalities that the model supports.
	OutputModalities []string `pulumi:"outputModalities"`
	// Model provider name.
	ProviderName string `pulumi:"providerName"`
	// Indicates whether the model supports streaming.
	ResponseStreamingSupported bool `pulumi:"responseStreamingSupported"`
}

A collection of values returned by getModel.

func GetModel

func GetModel(ctx *pulumi.Context, args *GetModelArgs, opts ...pulumi.InvokeOption) (*GetModelResult, error)

Data source for managing an AWS Bedrock Foundation Model.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/bedrockfoundation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testModels, err := bedrockfoundation.GetModels(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = bedrockfoundation.GetModel(ctx, &bedrockfoundation.GetModelArgs{
			ModelId: testModels.ModelSummaries[0].ModelId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetModelResultOutput

type GetModelResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getModel.

func (GetModelResultOutput) CustomizationsSupporteds

func (o GetModelResultOutput) CustomizationsSupporteds() pulumi.StringArrayOutput

Customizations that the model supports.

func (GetModelResultOutput) ElementType

func (GetModelResultOutput) ElementType() reflect.Type

func (GetModelResultOutput) Id

func (GetModelResultOutput) InferenceTypesSupporteds

func (o GetModelResultOutput) InferenceTypesSupporteds() pulumi.StringArrayOutput

Inference types that the model supports.

func (GetModelResultOutput) InputModalities

func (o GetModelResultOutput) InputModalities() pulumi.StringArrayOutput

Input modalities that the model supports.

func (GetModelResultOutput) ModelArn

Model ARN.

func (GetModelResultOutput) ModelId

func (GetModelResultOutput) ModelName

Model name.

func (GetModelResultOutput) OutputModalities

func (o GetModelResultOutput) OutputModalities() pulumi.StringArrayOutput

Output modalities that the model supports.

func (GetModelResultOutput) ProviderName

func (o GetModelResultOutput) ProviderName() pulumi.StringOutput

Model provider name.

func (GetModelResultOutput) ResponseStreamingSupported

func (o GetModelResultOutput) ResponseStreamingSupported() pulumi.BoolOutput

Indicates whether the model supports streaming.

func (GetModelResultOutput) ToGetModelResultOutput

func (o GetModelResultOutput) ToGetModelResultOutput() GetModelResultOutput

func (GetModelResultOutput) ToGetModelResultOutputWithContext

func (o GetModelResultOutput) ToGetModelResultOutputWithContext(ctx context.Context) GetModelResultOutput

type GetModelsArgs

type GetModelsArgs struct {
	// Customization type to filter on. Valid values are `FINE_TUNING`.
	ByCustomizationType *string `pulumi:"byCustomizationType"`
	// Inference type to filter on. Valid values are `ON_DEMAND` and `PROVISIONED`.
	ByInferenceType *string `pulumi:"byInferenceType"`
	// Output modality to filter on. Valid values are `TEXT`, `IMAGE`, and `EMBEDDING`.
	ByOutputModality *string `pulumi:"byOutputModality"`
	// Model provider to filter on.
	ByProvider *string `pulumi:"byProvider"`
	// List of model summary objects. See `modelSummaries`.
	ModelSummaries []GetModelsModelSummary `pulumi:"modelSummaries"`
}

A collection of arguments for invoking getModels.

type GetModelsModelSummary

type GetModelsModelSummary struct {
	// Customizations that the model supports.
	CustomizationsSupporteds []string `pulumi:"customizationsSupporteds"`
	// Inference types that the model supports.
	InferenceTypesSupporteds []string `pulumi:"inferenceTypesSupporteds"`
	// Input modalities that the model supports.
	InputModalities []string `pulumi:"inputModalities"`
	// Model ARN.
	ModelArn string `pulumi:"modelArn"`
	// Model identifier.
	ModelId string `pulumi:"modelId"`
	// Model name.
	ModelName string `pulumi:"modelName"`
	// Output modalities that the model supports.
	OutputModalities []string `pulumi:"outputModalities"`
	// Model provider name.
	ProviderName string `pulumi:"providerName"`
	// Indicates whether the model supports streaming.
	ResponseStreamingSupported bool `pulumi:"responseStreamingSupported"`
}

type GetModelsModelSummaryArgs

type GetModelsModelSummaryArgs struct {
	// Customizations that the model supports.
	CustomizationsSupporteds pulumi.StringArrayInput `pulumi:"customizationsSupporteds"`
	// Inference types that the model supports.
	InferenceTypesSupporteds pulumi.StringArrayInput `pulumi:"inferenceTypesSupporteds"`
	// Input modalities that the model supports.
	InputModalities pulumi.StringArrayInput `pulumi:"inputModalities"`
	// Model ARN.
	ModelArn pulumi.StringInput `pulumi:"modelArn"`
	// Model identifier.
	ModelId pulumi.StringInput `pulumi:"modelId"`
	// Model name.
	ModelName pulumi.StringInput `pulumi:"modelName"`
	// Output modalities that the model supports.
	OutputModalities pulumi.StringArrayInput `pulumi:"outputModalities"`
	// Model provider name.
	ProviderName pulumi.StringInput `pulumi:"providerName"`
	// Indicates whether the model supports streaming.
	ResponseStreamingSupported pulumi.BoolInput `pulumi:"responseStreamingSupported"`
}

func (GetModelsModelSummaryArgs) ElementType

func (GetModelsModelSummaryArgs) ElementType() reflect.Type

func (GetModelsModelSummaryArgs) ToGetModelsModelSummaryOutput

func (i GetModelsModelSummaryArgs) ToGetModelsModelSummaryOutput() GetModelsModelSummaryOutput

func (GetModelsModelSummaryArgs) ToGetModelsModelSummaryOutputWithContext

func (i GetModelsModelSummaryArgs) ToGetModelsModelSummaryOutputWithContext(ctx context.Context) GetModelsModelSummaryOutput

type GetModelsModelSummaryArray

type GetModelsModelSummaryArray []GetModelsModelSummaryInput

func (GetModelsModelSummaryArray) ElementType

func (GetModelsModelSummaryArray) ElementType() reflect.Type

func (GetModelsModelSummaryArray) ToGetModelsModelSummaryArrayOutput

func (i GetModelsModelSummaryArray) ToGetModelsModelSummaryArrayOutput() GetModelsModelSummaryArrayOutput

func (GetModelsModelSummaryArray) ToGetModelsModelSummaryArrayOutputWithContext

func (i GetModelsModelSummaryArray) ToGetModelsModelSummaryArrayOutputWithContext(ctx context.Context) GetModelsModelSummaryArrayOutput

type GetModelsModelSummaryArrayInput

type GetModelsModelSummaryArrayInput interface {
	pulumi.Input

	ToGetModelsModelSummaryArrayOutput() GetModelsModelSummaryArrayOutput
	ToGetModelsModelSummaryArrayOutputWithContext(context.Context) GetModelsModelSummaryArrayOutput
}

GetModelsModelSummaryArrayInput is an input type that accepts GetModelsModelSummaryArray and GetModelsModelSummaryArrayOutput values. You can construct a concrete instance of `GetModelsModelSummaryArrayInput` via:

GetModelsModelSummaryArray{ GetModelsModelSummaryArgs{...} }

type GetModelsModelSummaryArrayOutput

type GetModelsModelSummaryArrayOutput struct{ *pulumi.OutputState }

func (GetModelsModelSummaryArrayOutput) ElementType

func (GetModelsModelSummaryArrayOutput) Index

func (GetModelsModelSummaryArrayOutput) ToGetModelsModelSummaryArrayOutput

func (o GetModelsModelSummaryArrayOutput) ToGetModelsModelSummaryArrayOutput() GetModelsModelSummaryArrayOutput

func (GetModelsModelSummaryArrayOutput) ToGetModelsModelSummaryArrayOutputWithContext

func (o GetModelsModelSummaryArrayOutput) ToGetModelsModelSummaryArrayOutputWithContext(ctx context.Context) GetModelsModelSummaryArrayOutput

type GetModelsModelSummaryInput

type GetModelsModelSummaryInput interface {
	pulumi.Input

	ToGetModelsModelSummaryOutput() GetModelsModelSummaryOutput
	ToGetModelsModelSummaryOutputWithContext(context.Context) GetModelsModelSummaryOutput
}

GetModelsModelSummaryInput is an input type that accepts GetModelsModelSummaryArgs and GetModelsModelSummaryOutput values. You can construct a concrete instance of `GetModelsModelSummaryInput` via:

GetModelsModelSummaryArgs{...}

type GetModelsModelSummaryOutput

type GetModelsModelSummaryOutput struct{ *pulumi.OutputState }

func (GetModelsModelSummaryOutput) CustomizationsSupporteds

func (o GetModelsModelSummaryOutput) CustomizationsSupporteds() pulumi.StringArrayOutput

Customizations that the model supports.

func (GetModelsModelSummaryOutput) ElementType

func (GetModelsModelSummaryOutput) InferenceTypesSupporteds

func (o GetModelsModelSummaryOutput) InferenceTypesSupporteds() pulumi.StringArrayOutput

Inference types that the model supports.

func (GetModelsModelSummaryOutput) InputModalities

Input modalities that the model supports.

func (GetModelsModelSummaryOutput) ModelArn

Model ARN.

func (GetModelsModelSummaryOutput) ModelId

Model identifier.

func (GetModelsModelSummaryOutput) ModelName

Model name.

func (GetModelsModelSummaryOutput) OutputModalities

Output modalities that the model supports.

func (GetModelsModelSummaryOutput) ProviderName

Model provider name.

func (GetModelsModelSummaryOutput) ResponseStreamingSupported

func (o GetModelsModelSummaryOutput) ResponseStreamingSupported() pulumi.BoolOutput

Indicates whether the model supports streaming.

func (GetModelsModelSummaryOutput) ToGetModelsModelSummaryOutput

func (o GetModelsModelSummaryOutput) ToGetModelsModelSummaryOutput() GetModelsModelSummaryOutput

func (GetModelsModelSummaryOutput) ToGetModelsModelSummaryOutputWithContext

func (o GetModelsModelSummaryOutput) ToGetModelsModelSummaryOutputWithContext(ctx context.Context) GetModelsModelSummaryOutput

type GetModelsOutputArgs

type GetModelsOutputArgs struct {
	// Customization type to filter on. Valid values are `FINE_TUNING`.
	ByCustomizationType pulumi.StringPtrInput `pulumi:"byCustomizationType"`
	// Inference type to filter on. Valid values are `ON_DEMAND` and `PROVISIONED`.
	ByInferenceType pulumi.StringPtrInput `pulumi:"byInferenceType"`
	// Output modality to filter on. Valid values are `TEXT`, `IMAGE`, and `EMBEDDING`.
	ByOutputModality pulumi.StringPtrInput `pulumi:"byOutputModality"`
	// Model provider to filter on.
	ByProvider pulumi.StringPtrInput `pulumi:"byProvider"`
	// List of model summary objects. See `modelSummaries`.
	ModelSummaries GetModelsModelSummaryArrayInput `pulumi:"modelSummaries"`
}

A collection of arguments for invoking getModels.

func (GetModelsOutputArgs) ElementType

func (GetModelsOutputArgs) ElementType() reflect.Type

type GetModelsResult

type GetModelsResult struct {
	ByCustomizationType *string `pulumi:"byCustomizationType"`
	ByInferenceType     *string `pulumi:"byInferenceType"`
	ByOutputModality    *string `pulumi:"byOutputModality"`
	ByProvider          *string `pulumi:"byProvider"`
	// AWS region.
	Id string `pulumi:"id"`
	// List of model summary objects. See `modelSummaries`.
	ModelSummaries []GetModelsModelSummary `pulumi:"modelSummaries"`
}

A collection of values returned by getModels.

func GetModels

func GetModels(ctx *pulumi.Context, args *GetModelsArgs, opts ...pulumi.InvokeOption) (*GetModelsResult, error)

Data source for managing AWS Bedrock Foundation Models.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/bedrockfoundation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bedrockfoundation.GetModels(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Filter by Inference Type

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/bedrockfoundation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bedrockfoundation.GetModels(ctx, &bedrockfoundation.GetModelsArgs{
			ByInferenceType: pulumi.StringRef("ON_DEMAND"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetModelsResultOutput

type GetModelsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getModels.

func (GetModelsResultOutput) ByCustomizationType

func (o GetModelsResultOutput) ByCustomizationType() pulumi.StringPtrOutput

func (GetModelsResultOutput) ByInferenceType

func (o GetModelsResultOutput) ByInferenceType() pulumi.StringPtrOutput

func (GetModelsResultOutput) ByOutputModality

func (o GetModelsResultOutput) ByOutputModality() pulumi.StringPtrOutput

func (GetModelsResultOutput) ByProvider

func (GetModelsResultOutput) ElementType

func (GetModelsResultOutput) ElementType() reflect.Type

func (GetModelsResultOutput) Id

AWS region.

func (GetModelsResultOutput) ModelSummaries

List of model summary objects. See `modelSummaries`.

func (GetModelsResultOutput) ToGetModelsResultOutput

func (o GetModelsResultOutput) ToGetModelsResultOutput() GetModelsResultOutput

func (GetModelsResultOutput) ToGetModelsResultOutputWithContext

func (o GetModelsResultOutput) ToGetModelsResultOutputWithContext(ctx context.Context) GetModelsResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL