Class CfnHarnessProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnHarnessProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHarnessProps>
- Enclosing interface:
CfnHarnessProps
@Stability(Stable)
public static final class CfnHarnessProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHarnessProps>
A builder for
CfnHarnessProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedTools(List<String> allowedTools) Sets the value ofCfnHarnessProps.getAllowedTools()authorizerConfiguration(IResolvable authorizerConfiguration) Sets the value ofCfnHarnessProps.getAuthorizerConfiguration()authorizerConfiguration(CfnHarness.AuthorizerConfigurationProperty authorizerConfiguration) Sets the value ofCfnHarnessProps.getAuthorizerConfiguration()build()Builds the configured instance.environment(IResolvable environment) Sets the value ofCfnHarnessProps.getEnvironment()environment(CfnHarness.HarnessEnvironmentProviderProperty environment) Sets the value ofCfnHarnessProps.getEnvironment()environmentArtifact(IResolvable environmentArtifact) Sets the value ofCfnHarnessProps.getEnvironmentArtifact()environmentArtifact(CfnHarness.HarnessEnvironmentArtifactProperty environmentArtifact) Sets the value ofCfnHarnessProps.getEnvironmentArtifact()environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnHarnessProps.getEnvironmentVariables()environmentVariables(IResolvable environmentVariables) Sets the value ofCfnHarnessProps.getEnvironmentVariables()executionRoleArn(String executionRoleArn) Sets the value ofCfnHarnessProps.getExecutionRoleArn()harnessName(String harnessName) Sets the value ofCfnHarnessProps.getHarnessName()maxIterations(Number maxIterations) Sets the value ofCfnHarnessProps.getMaxIterations()Sets the value ofCfnHarnessProps.getMaxTokens()memory(IResolvable memory) Sets the value ofCfnHarnessProps.getMemory()Sets the value ofCfnHarnessProps.getMemory()model(IResolvable model) Sets the value ofCfnHarnessProps.getModel()Sets the value ofCfnHarnessProps.getModel()Sets the value ofCfnHarnessProps.getSkills()skills(IResolvable skills) Sets the value ofCfnHarnessProps.getSkills()systemPrompt(List<? extends Object> systemPrompt) Sets the value ofCfnHarnessProps.getSystemPrompt()systemPrompt(IResolvable systemPrompt) Sets the value ofCfnHarnessProps.getSystemPrompt()Sets the value ofCfnHarnessProps.getTags()timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnHarnessProps.getTimeoutSeconds()Sets the value ofCfnHarnessProps.getTools()tools(IResolvable tools) Sets the value ofCfnHarnessProps.getTools()truncation(IResolvable truncation) Sets the value ofCfnHarnessProps.getTruncation()Sets the value ofCfnHarnessProps.getTruncation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionRoleArn
Sets the value ofCfnHarnessProps.getExecutionRoleArn()- Parameters:
executionRoleArn- The ARN of the IAM role that the harness assumes when running. This parameter is required.- Returns:
this
-
harnessName
Sets the value ofCfnHarnessProps.getHarnessName()- Parameters:
harnessName- The name of the harness. This parameter is required.- Returns:
this
-
model
Sets the value ofCfnHarnessProps.getModel()- Parameters:
model- the value to be set. This parameter is required.- Returns:
this
-
model
@Stability(Stable) public CfnHarnessProps.Builder model(CfnHarness.HarnessModelConfigurationProperty model) Sets the value ofCfnHarnessProps.getModel()- Parameters:
model- the value to be set. This parameter is required.- Returns:
this
-
allowedTools
Sets the value ofCfnHarnessProps.getAllowedTools()- Parameters:
allowedTools- The tools that the agent is allowed to use.- Returns:
this
-
authorizerConfiguration
@Stability(Stable) public CfnHarnessProps.Builder authorizerConfiguration(IResolvable authorizerConfiguration) Sets the value ofCfnHarnessProps.getAuthorizerConfiguration()- Parameters:
authorizerConfiguration- the value to be set.- Returns:
this
-
authorizerConfiguration
@Stability(Stable) public CfnHarnessProps.Builder authorizerConfiguration(CfnHarness.AuthorizerConfigurationProperty authorizerConfiguration) Sets the value ofCfnHarnessProps.getAuthorizerConfiguration()- Parameters:
authorizerConfiguration- the value to be set.- Returns:
this
-
environment
Sets the value ofCfnHarnessProps.getEnvironment()- Parameters:
environment- the value to be set.- Returns:
this
-
environment
@Stability(Stable) public CfnHarnessProps.Builder environment(CfnHarness.HarnessEnvironmentProviderProperty environment) Sets the value ofCfnHarnessProps.getEnvironment()- Parameters:
environment- the value to be set.- Returns:
this
-
environmentArtifact
@Stability(Stable) public CfnHarnessProps.Builder environmentArtifact(IResolvable environmentArtifact) Sets the value ofCfnHarnessProps.getEnvironmentArtifact()- Parameters:
environmentArtifact- the value to be set.- Returns:
this
-
environmentArtifact
@Stability(Stable) public CfnHarnessProps.Builder environmentArtifact(CfnHarness.HarnessEnvironmentArtifactProperty environmentArtifact) Sets the value ofCfnHarnessProps.getEnvironmentArtifact()- Parameters:
environmentArtifact- the value to be set.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnHarnessProps.Builder environmentVariables(IResolvable environmentVariables) Sets the value ofCfnHarnessProps.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables to set in the harness runtime environment.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnHarnessProps.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnHarnessProps.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables to set in the harness runtime environment.- Returns:
this
-
maxIterations
Sets the value ofCfnHarnessProps.getMaxIterations()- Parameters:
maxIterations- The maximum number of iterations the agent loop can execute per invocation.- Returns:
this
-
maxTokens
Sets the value ofCfnHarnessProps.getMaxTokens()- Parameters:
maxTokens- The maximum number of tokens the agent can generate per iteration.- Returns:
this
-
memory
Sets the value ofCfnHarnessProps.getMemory()- Parameters:
memory- the value to be set.- Returns:
this
-
memory
@Stability(Stable) public CfnHarnessProps.Builder memory(CfnHarness.HarnessMemoryConfigurationProperty memory) Sets the value ofCfnHarnessProps.getMemory()- Parameters:
memory- the value to be set.- Returns:
this
-
skills
Sets the value ofCfnHarnessProps.getSkills()- Parameters:
skills- The skills available to the agent.- Returns:
this
-
skills
Sets the value ofCfnHarnessProps.getSkills()- Parameters:
skills- The skills available to the agent.- Returns:
this
-
systemPrompt
Sets the value ofCfnHarnessProps.getSystemPrompt()- Parameters:
systemPrompt- The system prompt that defines the agent's behavior.- Returns:
this
-
systemPrompt
Sets the value ofCfnHarnessProps.getSystemPrompt()- Parameters:
systemPrompt- The system prompt that defines the agent's behavior.- Returns:
this
-
tags
Sets the value ofCfnHarnessProps.getTags()- Parameters:
tags- Tags to apply to the harness resource.- Returns:
this
-
timeoutSeconds
Sets the value ofCfnHarnessProps.getTimeoutSeconds()- Parameters:
timeoutSeconds- The maximum duration in seconds for the agent loop execution per invocation.- Returns:
this
-
tools
Sets the value ofCfnHarnessProps.getTools()- Parameters:
tools- The tools available to the agent.- Returns:
this
-
tools
Sets the value ofCfnHarnessProps.getTools()- Parameters:
tools- The tools available to the agent.- Returns:
this
-
truncation
Sets the value ofCfnHarnessProps.getTruncation()- Parameters:
truncation- the value to be set.- Returns:
this
-
truncation
@Stability(Stable) public CfnHarnessProps.Builder truncation(CfnHarness.HarnessTruncationConfigurationProperty truncation) Sets the value ofCfnHarnessProps.getTruncation()- Parameters:
truncation- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHarnessProps>- Returns:
- a new instance of
CfnHarnessProps - Throws:
NullPointerException- if any required attribute was not provided
-