Class CfnAgentPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnAgentPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:56.423Z")
@Stability(Stable)
public class CfnAgentPropsMixin
extends Mixin
implements software.constructs.IMixin
Specifies an agent as a resource in a top-level template. Minimally, you must specify the following properties:.
- AgentName – Specify a name for the agent.
- AgentResourceRoleArn – Specify the Amazon Resource Name (ARN) of the service role with permissions to invoke API operations on the agent. For more information, see Create a service role for Agents for Amazon Bedrock .
- FoundationModel – Specify the model ID of a foundation model to use when invoking the agent. For more information, see Supported regions and models for Agents for Amazon Bedrock .
For more information about using agents in Amazon Bedrock , see Agents for Amazon Bedrock .
See the Properties section below for descriptions of both the required and optional properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
import software.amazon.awscdk.*;
Object additionalModelRequestFields;
IMergeStrategy mergeStrategy;
CfnAgentPropsMixin cfnAgentPropsMixin = CfnAgentPropsMixin.Builder.create(CfnAgentMixinProps.builder()
.actionGroups(List.of(AgentActionGroupProperty.builder()
.actionGroupExecutor(ActionGroupExecutorProperty.builder()
.customControl("customControl")
.lambda("lambda")
.build())
.actionGroupName("actionGroupName")
.actionGroupState("actionGroupState")
.apiSchema(APISchemaProperty.builder()
.payload("payload")
.s3(S3IdentifierProperty.builder()
.s3BucketName("s3BucketName")
.s3ObjectKey("s3ObjectKey")
.build())
.build())
.description("description")
.functionSchema(FunctionSchemaProperty.builder()
.functions(List.of(FunctionProperty.builder()
.description("description")
.name("name")
.parameters(Map.of(
"parametersKey", ParameterDetailProperty.builder()
.description("description")
.required(false)
.type("type")
.build()))
.requireConfirmation("requireConfirmation")
.build()))
.build())
.parentActionGroupSignature("parentActionGroupSignature")
.skipResourceInUseCheckOnDelete(false)
.build()))
.agentCollaboration("agentCollaboration")
.agentCollaborators(List.of(AgentCollaboratorProperty.builder()
.agentDescriptor(AgentDescriptorProperty.builder()
.aliasArn("aliasArn")
.build())
.collaborationInstruction("collaborationInstruction")
.collaboratorName("collaboratorName")
.relayConversationHistory("relayConversationHistory")
.build()))
.agentName("agentName")
.agentResourceRoleArn("agentResourceRoleArn")
.autoPrepare(false)
.customerEncryptionKeyArn("customerEncryptionKeyArn")
.customOrchestration(CustomOrchestrationProperty.builder()
.executor(OrchestrationExecutorProperty.builder()
.lambda("lambda")
.build())
.build())
.description("description")
.foundationModel("foundationModel")
.guardrailConfiguration(GuardrailConfigurationProperty.builder()
.guardrailIdentifier("guardrailIdentifier")
.guardrailVersion("guardrailVersion")
.build())
.idleSessionTtlInSeconds(123)
.instruction("instruction")
.knowledgeBases(List.of(AgentKnowledgeBaseProperty.builder()
.description("description")
.knowledgeBaseId("knowledgeBaseId")
.knowledgeBaseState("knowledgeBaseState")
.build()))
.memoryConfiguration(MemoryConfigurationProperty.builder()
.enabledMemoryTypes(List.of("enabledMemoryTypes"))
.sessionSummaryConfiguration(SessionSummaryConfigurationProperty.builder()
.maxRecentSessions(123)
.build())
.storageDays(123)
.build())
.orchestrationType("orchestrationType")
.promptOverrideConfiguration(PromptOverrideConfigurationProperty.builder()
.overrideLambda("overrideLambda")
.promptConfigurations(List.of(PromptConfigurationProperty.builder()
.additionalModelRequestFields(additionalModelRequestFields)
.basePromptTemplate("basePromptTemplate")
.foundationModel("foundationModel")
.inferenceConfiguration(InferenceConfigurationProperty.builder()
.maximumLength(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topK(123)
.topP(123)
.build())
.parserMode("parserMode")
.promptCreationMode("promptCreationMode")
.promptState("promptState")
.promptType("promptType")
.build()))
.build())
.skipResourceInUseCheckOnDelete(false)
.tags(Map.of(
"tagsKey", "tags"))
.testAliasTags(Map.of(
"testAliasTagsKey", "testAliasTags"))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.static interfaceContains details of the inline agent's action group.static interfaceAn agent collaborator.static interfaceAn agent descriptor.static interfaceContains details about a knowledge base that is associated with an agent.static interfaceContains details about the OpenAPI schema for the action group.static final classA fluent builder forCfnAgentPropsMixin.static interfaceContains details of the custom orchestration configured for the agent.static interfaceDefines parameters that the agent needs to invoke from the user to complete the function.static interfaceContains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.static interfaceConfiguration information for a guardrail that you use with the Converse operation.static interfaceBase inference parameters to pass to a model in a call to Converse or ConverseStream .static interfaceDetails of the memory configuration.static interfaceThe structure of the executor invoking the actions in custom orchestration.static interfaceContains details about a parameter in a function for an action group.static interfaceContains configurations to override a prompt template in one part of an agent sequence.static interfaceContains configurations to override prompts in different parts of an agent sequence.static interfaceThe identifier information for an Amazon S3 bucket.static interfaceConfiguration for SESSION_SUMMARY memory type enabled for the agent.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Bedrock::Agent.CfnAgentPropsMixin(CfnAgentMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Bedrock::Agent.protectedCfnAgentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAgentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAgentMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAgentPropsMixin
protected CfnAgentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAgentPropsMixin
protected CfnAgentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAgentPropsMixin
@Stability(Stable) public CfnAgentPropsMixin(@NotNull CfnAgentMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Bedrock::Agent.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAgentPropsMixin
Create a mixin to apply properties toAWS::Bedrock::Agent.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-