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