
com.pulumi.aws.bedrock.InferenceProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.bedrock;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.bedrock.InferenceProfileArgs;
import com.pulumi.aws.bedrock.inputs.InferenceProfileState;
import com.pulumi.aws.bedrock.outputs.InferenceProfileModel;
import com.pulumi.aws.bedrock.outputs.InferenceProfileModelSource;
import com.pulumi.aws.bedrock.outputs.InferenceProfileTimeouts;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS Bedrock Inference Profile.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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.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) {
* final var current = AwsFunctions.getCallerIdentity();
*
* var example = new InferenceProfile("example", InferenceProfileArgs.builder()
* .name("Claude Sonnet for Project 123")
* .description("Profile with tag for cost allocation tracking")
* .modelSource(InferenceProfileModelSourceArgs.builder()
* .copyFrom("arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-3-5-sonnet-20241022-v2:0")
* .build())
* .tags(Map.of("ProjectID", "123"))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Bedrock Inference Profile using the `example_id_arg`. For example:
*
* ```sh
* $ pulumi import aws:bedrock/inferenceProfile:InferenceProfile example inference_profile-id-12345678
* ```
*
*/
@ResourceType(type="aws:bedrock/inferenceProfile:InferenceProfile")
public class InferenceProfile extends com.pulumi.resources.CustomResource {
/**
* The Amazon Resource Name (ARN) of the inference profile.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return The Amazon Resource Name (ARN) of the inference profile.
*
*/
public Output arn() {
return this.arn;
}
/**
* The time at which the inference profile was created.
*
*/
@Export(name="createdAt", refs={String.class}, tree="[0]")
private Output createdAt;
/**
* @return The time at which the inference profile was created.
*
*/
public Output createdAt() {
return this.createdAt;
}
/**
* The description of the inference profile.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return The description of the inference profile.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* The source of the model this inference profile will track metrics and cost for. See `model_source`.
*
* The following arguments are optional:
*
*/
@Export(name="modelSource", refs={InferenceProfileModelSource.class}, tree="[0]")
private Output* @Nullable */ InferenceProfileModelSource> modelSource;
/**
* @return The source of the model this inference profile will track metrics and cost for. See `model_source`.
*
* The following arguments are optional:
*
*/
public Output> modelSource() {
return Codegen.optional(this.modelSource);
}
/**
* A list of information about each model in the inference profile. See `models`.
*
*/
@Export(name="models", refs={List.class,InferenceProfileModel.class}, tree="[0,1]")
private Output> models;
/**
* @return A list of information about each model in the inference profile. See `models`.
*
*/
public Output> models() {
return this.models;
}
/**
* The name of the inference profile.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the inference profile.
*
*/
public Output name() {
return this.name;
}
/**
* The status of the inference profile. `ACTIVE` means that the inference profile is available to use.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The status of the inference profile. `ACTIVE` means that the inference profile is available to use.
*
*/
public Output status() {
return this.status;
}
/**
* Key-value mapping of resource tags for the inference profile.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Key-value mapping of resource tags for the inference profile.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy