Package com.pulumi.aws.bedrock
Class InferenceProfile
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.bedrock.InferenceProfile
-
public class InferenceProfile extends com.pulumi.resources.CustomResourceManages an AWS Bedrock Inference Profile. ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import Bedrock Inference Profile using the `id`. For example: ```sh $ pulumi import aws:bedrock/inferenceProfile:InferenceProfile example inference_profile-id-12345678 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.AwsFunctions; import com.pulumi.aws.inputs.GetCallerIdentityArgs; import com.pulumi.aws.bedrock.InferenceProfile; import com.pulumi.aws.bedrock.InferenceProfileArgs; import com.pulumi.aws.bedrock.inputs.InferenceProfileModelSourceArgs; import java.util.ArrayList; import java.util.Arrays; 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) { final var current = AwsFunctions.getCallerIdentity(GetCallerIdentityArgs.builder() .build()); var example = new InferenceProfile("example", InferenceProfileArgs.builder() .modelSource(InferenceProfileModelSourceArgs.builder() .copyFrom("arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-3-5-sonnet-20241022-v2:0") .build()) .name("Claude Sonnet for Project 123") .description("Profile with tag for cost allocation tracking") .tags(Map.of("ProjectID", "123")) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description InferenceProfile(java.lang.String name)InferenceProfile(java.lang.String name, InferenceProfileArgs args)InferenceProfile(java.lang.String name, InferenceProfileArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.lang.String>createdAt()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()static InferenceProfileget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, InferenceProfileState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.List<InferenceProfileModel>>models()com.pulumi.core.Output<java.util.Optional<InferenceProfileModelSource>>modelSource()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>status()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.util.Optional<InferenceProfileTimeouts>>timeouts()com.pulumi.core.Output<java.lang.String>type()com.pulumi.core.Output<java.lang.String>updatedAt()
-
-
-
Constructor Detail
-
InferenceProfile
public InferenceProfile(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
InferenceProfile
public InferenceProfile(java.lang.String name, @Nullable InferenceProfileArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
InferenceProfile
public InferenceProfile(java.lang.String name, @Nullable InferenceProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the inference profile.
-
createdAt
public com.pulumi.core.Output<java.lang.String> createdAt()
- Returns:
- Time at which the inference profile was created.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- Description of the inference profile.
-
modelSource
public com.pulumi.core.Output<java.util.Optional<InferenceProfileModelSource>> modelSource()
- Returns:
- Source of the model this inference profile will track metrics and cost for. See `modelSource`.
-
models
public com.pulumi.core.Output<java.util.List<InferenceProfileModel>> models()
- Returns:
- List of information about each model in the inference profile. See `models`.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name of the inference profile. The following arguments are optional:
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- Status of the inference profile. `ACTIVE` means that the inference profile is available to use.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value mapping of resource tags for the inference profile.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
timeouts
public com.pulumi.core.Output<java.util.Optional<InferenceProfileTimeouts>> timeouts()
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- Type of the inference profile. `SYSTEM_DEFINED` means that the inference profile is defined by Amazon Bedrock. `APPLICATION` means that the inference profile is defined by the user.
-
updatedAt
public com.pulumi.core.Output<java.lang.String> updatedAt()
- Returns:
- Time at which the inference profile was last updated.
-
get
public static InferenceProfile get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable InferenceProfileState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-