Provisioned Model Throughput
Manages Provisioned Throughput for an Amazon Bedrock model.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.bedrock.ProvisionedModelThroughput("example", {
provisionedModelName: "example-model",
modelArn: "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2",
commitmentDuration: "SixMonths",
modelUnits: 1,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.bedrock.ProvisionedModelThroughput("example",
provisioned_model_name="example-model",
model_arn="arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2",
commitment_duration="SixMonths",
model_units=1)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Bedrock.ProvisionedModelThroughput("example", new()
{
ProvisionedModelName = "example-model",
ModelArn = "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2",
CommitmentDuration = "SixMonths",
ModelUnits = 1,
});
});
Content copied to clipboard
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.NewProvisionedModelThroughput(ctx, "example", &bedrock.ProvisionedModelThroughputArgs{
ProvisionedModelName: pulumi.String("example-model"),
ModelArn: pulumi.String("arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2"),
CommitmentDuration: pulumi.String("SixMonths"),
ModelUnits: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.ProvisionedModelThroughput;
import com.pulumi.aws.bedrock.ProvisionedModelThroughputArgs;
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) {
var example = new ProvisionedModelThroughput("example", ProvisionedModelThroughputArgs.builder()
.provisionedModelName("example-model")
.modelArn("arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2")
.commitmentDuration("SixMonths")
.modelUnits(1)
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:bedrock:ProvisionedModelThroughput
properties:
provisionedModelName: example-model
modelArn: arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2
commitmentDuration: SixMonths
modelUnits: 1
Content copied to clipboard
Import
Using pulumi import
, import Provisioned Throughput using the provisioned_model_arn
. For example:
$ pulumi import aws:bedrock/provisionedModelThroughput:ProvisionedModelThroughput example arn:aws:bedrock:us-west-2:123456789012:provisioned-model/1y5n57gh5y2e
Content copied to clipboard
Properties
Link copied to clipboard
Commitment duration requested for the Provisioned Throughput. For custom models, you can purchase on-demand Provisioned Throughput by omitting this argument. Valid values: OneMonth
, SixMonths
.
Link copied to clipboard
Number of model units to allocate. A model unit delivers a specific throughput level for the specified model.
Link copied to clipboard
The ARN of the Provisioned Throughput.
Link copied to clipboard
Unique name for this Provisioned Throughput.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard