Documentation ¶
Index ¶
- type GetModelArgs
- type GetModelOutputArgs
- type GetModelResult
- type GetModelResultOutput
- func (o GetModelResultOutput) CustomizationsSupporteds() pulumi.StringArrayOutput
- func (GetModelResultOutput) ElementType() reflect.Type
- func (o GetModelResultOutput) Id() pulumi.StringOutput
- func (o GetModelResultOutput) InferenceTypesSupporteds() pulumi.StringArrayOutput
- func (o GetModelResultOutput) InputModalities() pulumi.StringArrayOutput
- func (o GetModelResultOutput) ModelArn() pulumi.StringOutput
- func (o GetModelResultOutput) ModelId() pulumi.StringOutput
- func (o GetModelResultOutput) ModelName() pulumi.StringOutput
- func (o GetModelResultOutput) OutputModalities() pulumi.StringArrayOutput
- func (o GetModelResultOutput) ProviderName() pulumi.StringOutput
- func (o GetModelResultOutput) ResponseStreamingSupported() pulumi.BoolOutput
- func (o GetModelResultOutput) ToGetModelResultOutput() GetModelResultOutput
- func (o GetModelResultOutput) ToGetModelResultOutputWithContext(ctx context.Context) GetModelResultOutput
- type GetModelsArgs
- type GetModelsModelSummary
- type GetModelsModelSummaryArgs
- type GetModelsModelSummaryArray
- func (GetModelsModelSummaryArray) ElementType() reflect.Type
- func (i GetModelsModelSummaryArray) ToGetModelsModelSummaryArrayOutput() GetModelsModelSummaryArrayOutput
- func (i GetModelsModelSummaryArray) ToGetModelsModelSummaryArrayOutputWithContext(ctx context.Context) GetModelsModelSummaryArrayOutput
- type GetModelsModelSummaryArrayInput
- type GetModelsModelSummaryArrayOutput
- func (GetModelsModelSummaryArrayOutput) ElementType() reflect.Type
- func (o GetModelsModelSummaryArrayOutput) Index(i pulumi.IntInput) GetModelsModelSummaryOutput
- func (o GetModelsModelSummaryArrayOutput) ToGetModelsModelSummaryArrayOutput() GetModelsModelSummaryArrayOutput
- func (o GetModelsModelSummaryArrayOutput) ToGetModelsModelSummaryArrayOutputWithContext(ctx context.Context) GetModelsModelSummaryArrayOutput
- type GetModelsModelSummaryInput
- type GetModelsModelSummaryOutput
- func (o GetModelsModelSummaryOutput) CustomizationsSupporteds() pulumi.ArrayOutput
- func (GetModelsModelSummaryOutput) ElementType() reflect.Type
- func (o GetModelsModelSummaryOutput) InferenceTypesSupporteds() pulumi.ArrayOutput
- func (o GetModelsModelSummaryOutput) InputModalities() pulumi.ArrayOutput
- func (o GetModelsModelSummaryOutput) ModelArn() pulumi.StringOutput
- func (o GetModelsModelSummaryOutput) ModelId() pulumi.StringOutput
- func (o GetModelsModelSummaryOutput) ModelName() pulumi.StringOutput
- func (o GetModelsModelSummaryOutput) OutputModalities() pulumi.ArrayOutput
- func (o GetModelsModelSummaryOutput) ProviderName() pulumi.StringOutput
- func (o GetModelsModelSummaryOutput) ResponseStreamingSupported() pulumi.BoolOutput
- func (o GetModelsModelSummaryOutput) ToGetModelsModelSummaryOutput() GetModelsModelSummaryOutput
- func (o GetModelsModelSummaryOutput) ToGetModelsModelSummaryOutputWithContext(ctx context.Context) GetModelsModelSummaryOutput
- type GetModelsOutputArgs
- type GetModelsResult
- type GetModelsResultOutput
- func (o GetModelsResultOutput) ByCustomizationType() pulumi.StringPtrOutput
- func (o GetModelsResultOutput) ByInferenceType() pulumi.StringPtrOutput
- func (o GetModelsResultOutput) ByOutputModality() pulumi.StringPtrOutput
- func (o GetModelsResultOutput) ByProvider() pulumi.StringPtrOutput
- func (GetModelsResultOutput) ElementType() reflect.Type
- func (o GetModelsResultOutput) Id() pulumi.StringOutput
- func (o GetModelsResultOutput) ModelSummaries() GetModelsModelSummaryArrayOutput
- func (o GetModelsResultOutput) ToGetModelsResultOutput() GetModelsResultOutput
- func (o GetModelsResultOutput) ToGetModelsResultOutputWithContext(ctx context.Context) GetModelsResultOutput
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 { test, err := bedrockfoundation.GetModels(ctx, nil, nil) if err != nil { return err } _, err = bedrockfoundation.GetModel(ctx, &bedrockfoundation.GetModelArgs{ ModelId: test.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 GetModelOutput ¶
func GetModelOutput(ctx *pulumi.Context, args GetModelOutputArgs, opts ...pulumi.InvokeOption) GetModelResultOutput
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 (o GetModelResultOutput) Id() pulumi.StringOutput
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 ¶
func (o GetModelResultOutput) ModelArn() pulumi.StringOutput
Model ARN.
func (GetModelResultOutput) ModelId ¶
func (o GetModelResultOutput) ModelId() pulumi.StringOutput
func (GetModelResultOutput) ModelName ¶
func (o GetModelResultOutput) ModelName() pulumi.StringOutput
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"` }
A collection of arguments for invoking getModels.
type GetModelsModelSummary ¶
type GetModelsModelSummary struct { // Customizations that the model supports. CustomizationsSupporteds []interface{} `pulumi:"customizationsSupporteds"` // Inference types that the model supports. InferenceTypesSupporteds []interface{} `pulumi:"inferenceTypesSupporteds"` // Input modalities that the model supports. InputModalities []interface{} `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 []interface{} `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.ArrayInput `pulumi:"customizationsSupporteds"` // Inference types that the model supports. InferenceTypesSupporteds pulumi.ArrayInput `pulumi:"inferenceTypesSupporteds"` // Input modalities that the model supports. InputModalities pulumi.ArrayInput `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.ArrayInput `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) ElementType() reflect.Type
func (GetModelsModelSummaryArrayOutput) Index ¶
func (o GetModelsModelSummaryArrayOutput) Index(i pulumi.IntInput) GetModelsModelSummaryOutput
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.ArrayOutput
Customizations that the model supports.
func (GetModelsModelSummaryOutput) ElementType ¶
func (GetModelsModelSummaryOutput) ElementType() reflect.Type
func (GetModelsModelSummaryOutput) InferenceTypesSupporteds ¶
func (o GetModelsModelSummaryOutput) InferenceTypesSupporteds() pulumi.ArrayOutput
Inference types that the model supports.
func (GetModelsModelSummaryOutput) InputModalities ¶
func (o GetModelsModelSummaryOutput) InputModalities() pulumi.ArrayOutput
Input modalities that the model supports.
func (GetModelsModelSummaryOutput) ModelArn ¶
func (o GetModelsModelSummaryOutput) ModelArn() pulumi.StringOutput
Model ARN.
func (GetModelsModelSummaryOutput) ModelId ¶
func (o GetModelsModelSummaryOutput) ModelId() pulumi.StringOutput
Model identifier.
func (GetModelsModelSummaryOutput) ModelName ¶
func (o GetModelsModelSummaryOutput) ModelName() pulumi.StringOutput
Model name.
func (GetModelsModelSummaryOutput) OutputModalities ¶
func (o GetModelsModelSummaryOutput) OutputModalities() pulumi.ArrayOutput
Output modalities that the model supports.
func (GetModelsModelSummaryOutput) ProviderName ¶
func (o GetModelsModelSummaryOutput) ProviderName() pulumi.StringOutput
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"` }
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 GetModelsOutput ¶
func GetModelsOutput(ctx *pulumi.Context, args GetModelsOutputArgs, opts ...pulumi.InvokeOption) GetModelsResultOutput
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 (o GetModelsResultOutput) ByProvider() pulumi.StringPtrOutput
func (GetModelsResultOutput) ElementType ¶
func (GetModelsResultOutput) ElementType() reflect.Type
func (GetModelsResultOutput) Id ¶
func (o GetModelsResultOutput) Id() pulumi.StringOutput
AWS region.
func (GetModelsResultOutput) ModelSummaries ¶
func (o GetModelsResultOutput) ModelSummaries() GetModelsModelSummaryArrayOutput
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