Class CfnAgentProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnAgentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAgentProps>
- Enclosing interface:
CfnAgentProps
@Stability(Stable)
public static final class CfnAgentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAgentProps>
A builder for
CfnAgentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionGroups(List<? extends Object> actionGroups) Sets the value ofCfnAgentProps.getActionGroups()actionGroups(IResolvable actionGroups) Sets the value ofCfnAgentProps.getActionGroups()agentCollaboration(String agentCollaboration) Sets the value ofCfnAgentProps.getAgentCollaboration()agentCollaborators(List<? extends Object> agentCollaborators) Sets the value ofCfnAgentProps.getAgentCollaborators()agentCollaborators(IResolvable agentCollaborators) Sets the value ofCfnAgentProps.getAgentCollaborators()Sets the value ofCfnAgentProps.getAgentName()agentResourceRoleArn(String agentResourceRoleArn) Sets the value ofCfnAgentProps.getAgentResourceRoleArn()autoPrepare(Boolean autoPrepare) Sets the value ofCfnAgentProps.getAutoPrepare()autoPrepare(IResolvable autoPrepare) Sets the value ofCfnAgentProps.getAutoPrepare()build()Builds the configured instance.customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnAgentProps.getCustomerEncryptionKeyArn()customOrchestration(IResolvable customOrchestration) Sets the value ofCfnAgentProps.getCustomOrchestration()customOrchestration(CfnAgent.CustomOrchestrationProperty customOrchestration) Sets the value ofCfnAgentProps.getCustomOrchestration()description(String description) Sets the value ofCfnAgentProps.getDescription()foundationModel(String foundationModel) Sets the value ofCfnAgentProps.getFoundationModel()guardrailConfiguration(IResolvable guardrailConfiguration) Sets the value ofCfnAgentProps.getGuardrailConfiguration()guardrailConfiguration(CfnAgent.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnAgentProps.getGuardrailConfiguration()idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnAgentProps.getIdleSessionTtlInSeconds()instruction(String instruction) Sets the value ofCfnAgentProps.getInstruction()knowledgeBases(List<? extends Object> knowledgeBases) Sets the value ofCfnAgentProps.getKnowledgeBases()knowledgeBases(IResolvable knowledgeBases) Sets the value ofCfnAgentProps.getKnowledgeBases()memoryConfiguration(IResolvable memoryConfiguration) Sets the value ofCfnAgentProps.getMemoryConfiguration()memoryConfiguration(CfnAgent.MemoryConfigurationProperty memoryConfiguration) Sets the value ofCfnAgentProps.getMemoryConfiguration()orchestrationType(String orchestrationType) Sets the value ofCfnAgentProps.getOrchestrationType()promptOverrideConfiguration(IResolvable promptOverrideConfiguration) Sets the value ofCfnAgentProps.getPromptOverrideConfiguration()promptOverrideConfiguration(CfnAgent.PromptOverrideConfigurationProperty promptOverrideConfiguration) Sets the value ofCfnAgentProps.getPromptOverrideConfiguration()skipResourceInUseCheckOnDelete(Boolean skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentProps.getSkipResourceInUseCheckOnDelete()skipResourceInUseCheckOnDelete(IResolvable skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentProps.getSkipResourceInUseCheckOnDelete()Sets the value ofCfnAgentProps.getTags()testAliasTags(Map<String, String> testAliasTags) Sets the value ofCfnAgentProps.getTestAliasTags()testAliasTags(IResolvable testAliasTags) Sets the value ofCfnAgentProps.getTestAliasTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentName
Sets the value ofCfnAgentProps.getAgentName()- Parameters:
agentName- The name of the agent. This parameter is required.- Returns:
this
-
actionGroups
Sets the value ofCfnAgentProps.getActionGroups()- Parameters:
actionGroups- The action groups that belong to an agent.- Returns:
this
-
actionGroups
Sets the value ofCfnAgentProps.getActionGroups()- Parameters:
actionGroups- The action groups that belong to an agent.- Returns:
this
-
agentCollaboration
Sets the value ofCfnAgentProps.getAgentCollaboration()- Parameters:
agentCollaboration- The agent's collaboration settings.- Returns:
this
-
agentCollaborators
Sets the value ofCfnAgentProps.getAgentCollaborators()- Parameters:
agentCollaborators- List of Agent Collaborators.- Returns:
this
-
agentCollaborators
@Stability(Stable) public CfnAgentProps.Builder agentCollaborators(List<? extends Object> agentCollaborators) Sets the value ofCfnAgentProps.getAgentCollaborators()- Parameters:
agentCollaborators- List of Agent Collaborators.- Returns:
this
-
agentResourceRoleArn
Sets the value ofCfnAgentProps.getAgentResourceRoleArn()- Parameters:
agentResourceRoleArn- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.- Returns:
this
-
autoPrepare
Sets the value ofCfnAgentProps.getAutoPrepare()- Parameters:
autoPrepare- Specifies whether to automatically update theDRAFTversion of the agent after making changes to the agent. TheDRAFTversion can be continually iterated upon during internal development. By default, this value isfalse.- Returns:
this
-
autoPrepare
Sets the value ofCfnAgentProps.getAutoPrepare()- Parameters:
autoPrepare- Specifies whether to automatically update theDRAFTversion of the agent after making changes to the agent. TheDRAFTversion can be continually iterated upon during internal development. By default, this value isfalse.- Returns:
this
-
customerEncryptionKeyArn
@Stability(Stable) public CfnAgentProps.Builder customerEncryptionKeyArn(String customerEncryptionKeyArn) Sets the value ofCfnAgentProps.getCustomerEncryptionKeyArn()- Parameters:
customerEncryptionKeyArn- The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.- Returns:
this
-
customOrchestration
@Stability(Stable) public CfnAgentProps.Builder customOrchestration(IResolvable customOrchestration) Sets the value ofCfnAgentProps.getCustomOrchestration()- Parameters:
customOrchestration- Contains custom orchestration configurations for the agent.- Returns:
this
-
customOrchestration
@Stability(Stable) public CfnAgentProps.Builder customOrchestration(CfnAgent.CustomOrchestrationProperty customOrchestration) Sets the value ofCfnAgentProps.getCustomOrchestration()- Parameters:
customOrchestration- Contains custom orchestration configurations for the agent.- Returns:
this
-
description
Sets the value ofCfnAgentProps.getDescription()- Parameters:
description- The description of the agent.- Returns:
this
-
foundationModel
Sets the value ofCfnAgentProps.getFoundationModel()- Parameters:
foundationModel- The foundation model used for orchestration by the agent.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnAgentProps.Builder guardrailConfiguration(IResolvable guardrailConfiguration) Sets the value ofCfnAgentProps.getGuardrailConfiguration()- Parameters:
guardrailConfiguration- Details about the guardrail associated with the agent.- Returns:
this
-
guardrailConfiguration
@Stability(Stable) public CfnAgentProps.Builder guardrailConfiguration(CfnAgent.GuardrailConfigurationProperty guardrailConfiguration) Sets the value ofCfnAgentProps.getGuardrailConfiguration()- Parameters:
guardrailConfiguration- Details about the guardrail associated with the agent.- Returns:
this
-
idleSessionTtlInSeconds
@Stability(Stable) public CfnAgentProps.Builder idleSessionTtlInSeconds(Number idleSessionTtlInSeconds) Sets the value ofCfnAgentProps.getIdleSessionTtlInSeconds()- Parameters:
idleSessionTtlInSeconds- The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.- Returns:
this
-
instruction
Sets the value ofCfnAgentProps.getInstruction()- Parameters:
instruction- Instructions that tell the agent what it should do and how it should interact with users.- Returns:
this
-
knowledgeBases
Sets the value ofCfnAgentProps.getKnowledgeBases()- Parameters:
knowledgeBases- The knowledge bases associated with the agent.- Returns:
this
-
knowledgeBases
@Stability(Stable) public CfnAgentProps.Builder knowledgeBases(List<? extends Object> knowledgeBases) Sets the value ofCfnAgentProps.getKnowledgeBases()- Parameters:
knowledgeBases- The knowledge bases associated with the agent.- Returns:
this
-
memoryConfiguration
@Stability(Stable) public CfnAgentProps.Builder memoryConfiguration(IResolvable memoryConfiguration) Sets the value ofCfnAgentProps.getMemoryConfiguration()- Parameters:
memoryConfiguration- Contains memory configuration for the agent.- Returns:
this
-
memoryConfiguration
@Stability(Stable) public CfnAgentProps.Builder memoryConfiguration(CfnAgent.MemoryConfigurationProperty memoryConfiguration) Sets the value ofCfnAgentProps.getMemoryConfiguration()- Parameters:
memoryConfiguration- Contains memory configuration for the agent.- Returns:
this
-
orchestrationType
Sets the value ofCfnAgentProps.getOrchestrationType()- Parameters:
orchestrationType- Specifies the orchestration strategy for the agent.- Returns:
this
-
promptOverrideConfiguration
@Stability(Stable) public CfnAgentProps.Builder promptOverrideConfiguration(IResolvable promptOverrideConfiguration) Sets the value ofCfnAgentProps.getPromptOverrideConfiguration()- Parameters:
promptOverrideConfiguration- Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .- Returns:
this
-
promptOverrideConfiguration
@Stability(Stable) public CfnAgentProps.Builder promptOverrideConfiguration(CfnAgent.PromptOverrideConfigurationProperty promptOverrideConfiguration) Sets the value ofCfnAgentProps.getPromptOverrideConfiguration()- Parameters:
promptOverrideConfiguration- Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .- Returns:
this
-
skipResourceInUseCheckOnDelete
@Stability(Stable) public CfnAgentProps.Builder skipResourceInUseCheckOnDelete(Boolean skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentProps.getSkipResourceInUseCheckOnDelete()- Parameters:
skipResourceInUseCheckOnDelete- Specifies whether to delete the resource even if it's in use. By default, this value isfalse.- Returns:
this
-
skipResourceInUseCheckOnDelete
@Stability(Stable) public CfnAgentProps.Builder skipResourceInUseCheckOnDelete(IResolvable skipResourceInUseCheckOnDelete) Sets the value ofCfnAgentProps.getSkipResourceInUseCheckOnDelete()- Parameters:
skipResourceInUseCheckOnDelete- Specifies whether to delete the resource even if it's in use. By default, this value isfalse.- Returns:
this
-
tags
Sets the value ofCfnAgentProps.getTags()- Parameters:
tags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
testAliasTags
Sets the value ofCfnAgentProps.getTestAliasTags()- Parameters:
testAliasTags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
testAliasTags
Sets the value ofCfnAgentProps.getTestAliasTags()- Parameters:
testAliasTags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAgentProps>- Returns:
- a new instance of
CfnAgentProps - Throws:
NullPointerException- if any required attribute was not provided
-