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
-
Method Summary
Modifier and TypeMethodDescriptionactionGroups
(List<? extends Object> actionGroups) Sets the value ofCfnAgentProps.getActionGroups()
actionGroups
(IResolvable actionGroups) Sets the value ofCfnAgentProps.getActionGroups()
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()
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()
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
-
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 theDRAFT
version of the agent after making changes to the agent. TheDRAFT
version 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 theDRAFT
version of the agent after making changes to the agent. TheDRAFT
version 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
-
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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnAgentProps>
- Returns:
- a new instance of
CfnAgentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-