Class ApplicationInferenceProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.ApplicationInferenceProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApplicationInferenceProfileProps>
- Enclosing interface:
ApplicationInferenceProfileProps
@Stability(Experimental)
public static final class ApplicationInferenceProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApplicationInferenceProfileProps>
A builder for
ApplicationInferenceProfileProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationInferenceProfileName(String applicationInferenceProfileName) Sets the value ofApplicationInferenceProfileProps.getApplicationInferenceProfileName()build()Builds the configured instance.description(String description) Sets the value ofApplicationInferenceProfileProps.getDescription()modelSource(IBedrockInvokable modelSource) Sets the value ofApplicationInferenceProfileProps.getModelSource()Sets the value ofApplicationInferenceProfileProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationInferenceProfileName
@Stability(Experimental) public ApplicationInferenceProfileProps.Builder applicationInferenceProfileName(String applicationInferenceProfileName) Sets the value ofApplicationInferenceProfileProps.getApplicationInferenceProfileName()- Parameters:
applicationInferenceProfileName- The name of the application inference profile. This parameter is required. This name will be used to identify the inference profile in the AWS console and APIs.- Required: Yes
- Maximum length: 64 characters
- Pattern:
^([0-9a-zA-Z:.][ _-]?)+$
- Returns:
this
-
modelSource
@Stability(Experimental) public ApplicationInferenceProfileProps.Builder modelSource(IBedrockInvokable modelSource) Sets the value ofApplicationInferenceProfileProps.getModelSource()- Parameters:
modelSource- The model source for this inference profile. This parameter is required. To create an application inference profile for one Region, specify a foundation model. Usage and costs for requests made to that Region with that model will be tracked.To create an application inference profile for multiple Regions, specify a cross region (system-defined) inference profile. The inference profile will route requests to the Regions defined in the cross region (system-defined) inference profile that you choose. Usage and costs for requests made to the Regions in the inference profile will be tracked.
- Returns:
this
-
description
@Stability(Experimental) public ApplicationInferenceProfileProps.Builder description(String description) Sets the value ofApplicationInferenceProfileProps.getDescription()- Parameters:
description- Description of the inference profile. Provides additional context about the purpose and usage of this inference profile.- Maximum length: 200 characters when provided
- Pattern:
^([0-9a-zA-Z:.][ _-]?)+$
- Returns:
this
-
tags
@Stability(Experimental) public ApplicationInferenceProfileProps.Builder tags(Map<String, String> tags) Sets the value ofApplicationInferenceProfileProps.getTags()- Parameters:
tags- A list of tags associated with the inference profile. Tags help you organize and categorize your AWS resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApplicationInferenceProfileProps>- Returns:
- a new instance of
ApplicationInferenceProfileProps - Throws:
NullPointerException- if any required attribute was not provided
-