ProvisionedModelThroughputArgs

data class ProvisionedModelThroughputArgs(val commitmentDuration: Output<String>? = null, val modelArn: Output<String>? = null, val modelUnits: Output<Int>? = null, val provisionedModelName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<ProvisionedModelThroughputTimeoutsArgs>? = null) : ConvertibleToJava<ProvisionedModelThroughputArgs>

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,
});
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)
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,
});
});
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
})
}
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());
}
}
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

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

Constructors

Link copied to clipboard
constructor(commitmentDuration: Output<String>? = null, modelArn: Output<String>? = null, modelUnits: Output<Int>? = null, provisionedModelName: Output<String>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<ProvisionedModelThroughputTimeoutsArgs>? = null)

Properties

Link copied to clipboard
val commitmentDuration: Output<String>? = null

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
val modelArn: Output<String>? = null

ARN of the model to associate with this Provisioned Throughput.

Link copied to clipboard
val modelUnits: Output<Int>? = null

Number of model units to allocate. A model unit delivers a specific throughput level for the specified model.

Link copied to clipboard
val provisionedModelName: Output<String>? = null

Unique name for this Provisioned Throughput.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJava(): ProvisionedModelThroughputArgs