com.pulumi.aws.bedrock.kotlin.ProvisionedModelThroughputArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.bedrock.kotlin
import com.pulumi.aws.bedrock.ProvisionedModelThroughputArgs.builder
import com.pulumi.aws.bedrock.kotlin.inputs.ProvisionedModelThroughputTimeoutsArgs
import com.pulumi.aws.bedrock.kotlin.inputs.ProvisionedModelThroughputTimeoutsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages [Provisioned Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html) for an Amazon Bedrock model.
* ## Example Usage
*
* ```typescript
* 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,
* });
* ```
* ```python
* 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)
* ```
* ```csharp
* 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,
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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:
* ```sh
* $ pulumi import aws:bedrock/provisionedModelThroughput:ProvisionedModelThroughput example arn:aws:bedrock:us-west-2:123456789012:provisioned-model/1y5n57gh5y2e
* ```
* @property commitmentDuration 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`.
* @property modelArn ARN of the model to associate with this Provisioned Throughput.
* @property modelUnits Number of model units to allocate. A model unit delivers a specific throughput level for the specified model.
* @property provisionedModelName Unique name for this Provisioned Throughput.
* @property tags 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.
* @property timeouts
*/
public data class ProvisionedModelThroughputArgs(
public val commitmentDuration: Output? = null,
public val modelArn: Output? = null,
public val modelUnits: Output? = null,
public val provisionedModelName: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy