Interface CfnHarnessMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHarnessMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-06-04T12:52:26.093Z")
@Stability(Stable)
public interface CfnHarnessMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnHarnessPropsMixin.
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.bedrockagentcore.*;
Object awsIam;
Object inputSchema;
Object none;
CfnHarnessMixinProps cfnHarnessMixinProps = CfnHarnessMixinProps.builder()
.allowedTools(List.of("allowedTools"))
.authorizerConfiguration(AuthorizerConfigurationProperty.builder()
.customJwtAuthorizer(CustomJWTAuthorizerConfigurationProperty.builder()
.allowedAudience(List.of("allowedAudience"))
.allowedClients(List.of("allowedClients"))
.allowedScopes(List.of("allowedScopes"))
.customClaims(List.of(CustomClaimValidationTypeProperty.builder()
.authorizingClaimMatchValue(AuthorizingClaimMatchValueTypeProperty.builder()
.claimMatchOperator("claimMatchOperator")
.claimMatchValue(ClaimMatchValueTypeProperty.builder()
.matchValueString("matchValueString")
.matchValueStringList(List.of("matchValueStringList"))
.build())
.build())
.inboundTokenClaimName("inboundTokenClaimName")
.inboundTokenClaimValueType("inboundTokenClaimValueType")
.build()))
.discoveryUrl("discoveryUrl")
.build())
.build())
.environment(HarnessEnvironmentProviderProperty.builder()
.agentCoreRuntimeEnvironment(HarnessAgentCoreRuntimeEnvironmentProperty.builder()
.agentRuntimeArn("agentRuntimeArn")
.agentRuntimeId("agentRuntimeId")
.agentRuntimeName("agentRuntimeName")
.filesystemConfigurations(List.of(FilesystemConfigurationProperty.builder()
.sessionStorage(SessionStorageConfigurationProperty.builder()
.mountPath("mountPath")
.build())
.build()))
.lifecycleConfiguration(LifecycleConfigurationProperty.builder()
.idleRuntimeSessionTimeout(123)
.maxLifetime(123)
.build())
.networkConfiguration(NetworkConfigurationProperty.builder()
.networkMode("networkMode")
.networkModeConfig(VpcConfigProperty.builder()
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build())
.build())
.build())
.environmentArtifact(HarnessEnvironmentArtifactProperty.builder()
.containerConfiguration(ContainerConfigurationProperty.builder()
.containerUri("containerUri")
.build())
.build())
.environmentVariables(Map.of(
"environmentVariablesKey", "environmentVariables"))
.executionRoleArn("executionRoleArn")
.harnessName("harnessName")
.maxIterations(123)
.maxTokens(123)
.memory(HarnessMemoryConfigurationProperty.builder()
.agentCoreMemoryConfiguration(HarnessAgentCoreMemoryConfigurationProperty.builder()
.actorId("actorId")
.arn("arn")
.messagesCount(123)
.retrievalConfig(Map.of(
"retrievalConfigKey", HarnessAgentCoreMemoryRetrievalConfigProperty.builder()
.relevanceScore(123)
.strategyId("strategyId")
.topK(123)
.build()))
.build())
.build())
.model(HarnessModelConfigurationProperty.builder()
.bedrockModelConfig(HarnessBedrockModelConfigProperty.builder()
.maxTokens(123)
.modelId("modelId")
.temperature(123)
.topP(123)
.build())
.geminiModelConfig(HarnessGeminiModelConfigProperty.builder()
.apiKeyArn("apiKeyArn")
.maxTokens(123)
.modelId("modelId")
.temperature(123)
.topK(123)
.topP(123)
.build())
.openAiModelConfig(HarnessOpenAiModelConfigProperty.builder()
.apiKeyArn("apiKeyArn")
.maxTokens(123)
.modelId("modelId")
.temperature(123)
.topP(123)
.build())
.build())
.skills(List.of(HarnessSkillProperty.builder()
.path("path")
.build()))
.systemPrompt(List.of(HarnessSystemContentBlockProperty.builder()
.text("text")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeoutSeconds(123)
.tools(List.of(HarnessToolProperty.builder()
.config(HarnessToolConfigurationProperty.builder()
.agentCoreBrowser(HarnessAgentCoreBrowserConfigProperty.builder()
.browserArn("browserArn")
.build())
.agentCoreCodeInterpreter(HarnessAgentCoreCodeInterpreterConfigProperty.builder()
.codeInterpreterArn("codeInterpreterArn")
.build())
.agentCoreGateway(HarnessAgentCoreGatewayConfigProperty.builder()
.gatewayArn("gatewayArn")
.outboundAuth(HarnessGatewayOutboundAuthProperty.builder()
.awsIam(awsIam)
.none(none)
.oauth(OAuthCredentialProviderProperty.builder()
.customParameters(Map.of(
"customParametersKey", "customParameters"))
.defaultReturnUrl("defaultReturnUrl")
.grantType("grantType")
.providerArn("providerArn")
.scopes(List.of("scopes"))
.build())
.build())
.build())
.inlineFunction(HarnessInlineFunctionConfigProperty.builder()
.description("description")
.inputSchema(inputSchema)
.build())
.remoteMcp(HarnessRemoteMcpConfigProperty.builder()
.headers(Map.of(
"headersKey", "headers"))
.url("url")
.build())
.build())
.name("name")
.type("type")
.build()))
.truncation(HarnessTruncationConfigurationProperty.builder()
.config(HarnessTruncationStrategyConfigurationProperty.builder()
.slidingWindow(HarnessSlidingWindowConfigurationProperty.builder()
.messagesCount(123)
.build())
.summarization(HarnessSummarizationConfigurationProperty.builder()
.preserveRecentMessages(123)
.summarizationSystemPrompt("summarizationSystemPrompt")
.summaryRatio(123)
.build())
.build())
.strategy("strategy")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnHarnessMixinPropsstatic final classAn implementation forCfnHarnessMixinProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnHarnessMixinProps.Builderbuilder()The tools that the agent is allowed to use.default ObjectReturns union: eitherIResolvableorCfnHarnessPropsMixin.AuthorizerConfigurationPropertydefault ObjectReturns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessEnvironmentProviderPropertydefault ObjectReturns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessEnvironmentArtifactPropertydefault ObjectEnvironment variables to set in the harness runtime environment.default StringThe ARN of the IAM role that the harness assumes when running.default StringThe name of the harness.default NumberThe maximum number of iterations the agent loop can execute per invocation.default NumberThe maximum number of tokens the agent can generate per iteration.default ObjectReturns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessMemoryConfigurationPropertydefault ObjectgetModel()Returns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessModelConfigurationPropertydefault ObjectThe skills available to the agent.default ObjectThe system prompt that defines the agent's behavior.getTags()Tags to apply to the harness resource.default NumberThe maximum duration in seconds for the agent loop execution per invocation.default ObjectgetTools()The tools available to the agent.default ObjectReturns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessTruncationConfigurationPropertyMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowedTools
The tools that the agent is allowed to use.- See Also:
-
getAuthorizerConfiguration
Returns union: eitherIResolvableorCfnHarnessPropsMixin.AuthorizerConfigurationProperty- See Also:
-
getEnvironment
Returns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessEnvironmentProviderProperty- See Also:
-
getEnvironmentArtifact
Returns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessEnvironmentArtifactProperty- See Also:
-
getEnvironmentVariables
Environment variables to set in the harness runtime environment.Returns union: either
IResolvableor Mapinvalid input: '<'String,String>- See Also:
-
getExecutionRoleArn
The ARN of the IAM role that the harness assumes when running.- See Also:
-
getHarnessName
The name of the harness.- See Also:
-
getMaxIterations
The maximum number of iterations the agent loop can execute per invocation.- See Also:
-
getMaxTokens
The maximum number of tokens the agent can generate per iteration.- See Also:
-
getMemory
Returns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessMemoryConfigurationProperty- See Also:
-
getModel
Returns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessModelConfigurationProperty- See Also:
-
getSkills
The skills available to the agent.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnHarnessPropsMixin.HarnessSkillProperty>- See Also:
-
getSystemPrompt
The system prompt that defines the agent's behavior.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnHarnessPropsMixin.HarnessSystemContentBlockProperty>- See Also:
-
getTags
Tags to apply to the harness resource.- See Also:
-
getTimeoutSeconds
The maximum duration in seconds for the agent loop execution per invocation.- See Also:
-
getTools
The tools available to the agent.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnHarnessPropsMixin.HarnessToolProperty>- See Also:
-
getTruncation
Returns union: eitherIResolvableorCfnHarnessPropsMixin.HarnessTruncationConfigurationProperty- See Also:
-
builder
- Returns:
- a
CfnHarnessMixinProps.BuilderofCfnHarnessMixinProps
-