Class CfnHarnessPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnHarnessPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHarnessPropsMixin>
- Enclosing class:
CfnHarnessPropsMixin
@Stability(Stable)
public static final class CfnHarnessPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHarnessPropsMixin>
A fluent builder for
CfnHarnessPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionallowedTools(List<String> allowedTools) The tools that the agent is allowed to use.authorizerConfiguration(CfnHarnessPropsMixin.AuthorizerConfigurationProperty authorizerConfiguration) authorizerConfiguration(IResolvable authorizerConfiguration) build()static CfnHarnessPropsMixin.Buildercreate()static CfnHarnessPropsMixin.Buildercreate(CfnPropertyMixinOptions options) environment(IResolvable environment) environmentArtifact(CfnHarnessPropsMixin.HarnessEnvironmentArtifactProperty environmentArtifact) environmentArtifact(IResolvable environmentArtifact) environmentVariables(Map<String, String> environmentVariables) Environment variables to set in the harness runtime environment.environmentVariables(IResolvable environmentVariables) Environment variables to set in the harness runtime environment.executionRoleArn(String executionRoleArn) The ARN of the IAM role that the harness assumes when running.harnessName(String harnessName) The name of the harness.maxIterations(Number maxIterations) The maximum number of iterations the agent loop can execute per invocation.The maximum number of tokens the agent can generate per iteration.memory(IResolvable memory) model(IResolvable model) The skills available to the agent.skills(IResolvable skills) The skills available to the agent.systemPrompt(List<? extends Object> systemPrompt) The system prompt that defines the agent's behavior.systemPrompt(IResolvable systemPrompt) The system prompt that defines the agent's behavior.Tags to apply to the harness resource.timeoutSeconds(Number timeoutSeconds) The maximum duration in seconds for the agent loop execution per invocation.The tools available to the agent.tools(IResolvable tools) The tools available to the agent.truncation(IResolvable truncation)
-
Method Details
-
create
@Stability(Stable) public static CfnHarnessPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnHarnessPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnHarnessPropsMixin.Builder.
-
allowedTools
The tools that the agent is allowed to use.- Parameters:
allowedTools- The tools that the agent is allowed to use. This parameter is required.- Returns:
this- See Also:
-
authorizerConfiguration
@Stability(Stable) public CfnHarnessPropsMixin.Builder authorizerConfiguration(IResolvable authorizerConfiguration) - Parameters:
authorizerConfiguration- This parameter is required.- Returns:
this- See Also:
-
authorizerConfiguration
@Stability(Stable) public CfnHarnessPropsMixin.Builder authorizerConfiguration(CfnHarnessPropsMixin.AuthorizerConfigurationProperty authorizerConfiguration) - Parameters:
authorizerConfiguration- This parameter is required.- Returns:
this- See Also:
-
environment
- Parameters:
environment- This parameter is required.- Returns:
this- See Also:
-
environment
@Stability(Stable) public CfnHarnessPropsMixin.Builder environment(CfnHarnessPropsMixin.HarnessEnvironmentProviderProperty environment) - Parameters:
environment- This parameter is required.- Returns:
this- See Also:
-
environmentArtifact
@Stability(Stable) public CfnHarnessPropsMixin.Builder environmentArtifact(IResolvable environmentArtifact) - Parameters:
environmentArtifact- This parameter is required.- Returns:
this- See Also:
-
environmentArtifact
@Stability(Stable) public CfnHarnessPropsMixin.Builder environmentArtifact(CfnHarnessPropsMixin.HarnessEnvironmentArtifactProperty environmentArtifact) - Parameters:
environmentArtifact- This parameter is required.- Returns:
this- See Also:
-
environmentVariables
@Stability(Stable) public CfnHarnessPropsMixin.Builder environmentVariables(IResolvable environmentVariables) Environment variables to set in the harness runtime environment.- Parameters:
environmentVariables- Environment variables to set in the harness runtime environment. This parameter is required.- Returns:
this- See Also:
-
environmentVariables
@Stability(Stable) public CfnHarnessPropsMixin.Builder environmentVariables(Map<String, String> environmentVariables) Environment variables to set in the harness runtime environment.- Parameters:
environmentVariables- Environment variables to set in the harness runtime environment. This parameter is required.- Returns:
this- See Also:
-
executionRoleArn
The ARN of the IAM role that the harness assumes when running.- Parameters:
executionRoleArn- The ARN of the IAM role that the harness assumes when running. This parameter is required.- Returns:
this- See Also:
-
harnessName
The name of the harness.- Parameters:
harnessName- The name of the harness. This parameter is required.- Returns:
this- See Also:
-
maxIterations
The maximum number of iterations the agent loop can execute per invocation.- Parameters:
maxIterations- The maximum number of iterations the agent loop can execute per invocation. This parameter is required.- Returns:
this- See Also:
-
maxTokens
The maximum number of tokens the agent can generate per iteration.- Parameters:
maxTokens- The maximum number of tokens the agent can generate per iteration. This parameter is required.- Returns:
this- See Also:
-
memory
- Parameters:
memory- This parameter is required.- Returns:
this- See Also:
-
memory
@Stability(Stable) public CfnHarnessPropsMixin.Builder memory(CfnHarnessPropsMixin.HarnessMemoryConfigurationProperty memory) - Parameters:
memory- This parameter is required.- Returns:
this- See Also:
-
model
- Parameters:
model- This parameter is required.- Returns:
this- See Also:
-
model
@Stability(Stable) public CfnHarnessPropsMixin.Builder model(CfnHarnessPropsMixin.HarnessModelConfigurationProperty model) - Parameters:
model- This parameter is required.- Returns:
this- See Also:
-
skills
The skills available to the agent.- Parameters:
skills- The skills available to the agent. This parameter is required.- Returns:
this- See Also:
-
skills
The skills available to the agent.- Parameters:
skills- The skills available to the agent. This parameter is required.- Returns:
this- See Also:
-
systemPrompt
The system prompt that defines the agent's behavior.- Parameters:
systemPrompt- The system prompt that defines the agent's behavior. This parameter is required.- Returns:
this- See Also:
-
systemPrompt
@Stability(Stable) public CfnHarnessPropsMixin.Builder systemPrompt(List<? extends Object> systemPrompt) The system prompt that defines the agent's behavior.- Parameters:
systemPrompt- The system prompt that defines the agent's behavior. This parameter is required.- Returns:
this- See Also:
-
tags
Tags to apply to the harness resource.- Parameters:
tags- Tags to apply to the harness resource. This parameter is required.- Returns:
this- See Also:
-
timeoutSeconds
The maximum duration in seconds for the agent loop execution per invocation.- Parameters:
timeoutSeconds- The maximum duration in seconds for the agent loop execution per invocation. This parameter is required.- Returns:
this- See Also:
-
tools
The tools available to the agent.- Parameters:
tools- The tools available to the agent. This parameter is required.- Returns:
this- See Also:
-
tools
The tools available to the agent.- Parameters:
tools- The tools available to the agent. This parameter is required.- Returns:
this- See Also:
-
truncation
- Parameters:
truncation- This parameter is required.- Returns:
this- See Also:
-
truncation
@Stability(Stable) public CfnHarnessPropsMixin.Builder truncation(CfnHarnessPropsMixin.HarnessTruncationConfigurationProperty truncation) - Parameters:
truncation- This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHarnessPropsMixin>- Returns:
- a newly built instance of
CfnHarnessPropsMixin.
-