Class CfnHarnessPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnHarnessPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-07-02T13:32:52.304Z")
@Stability(Stable)
public class CfnHarnessPropsMixin
extends Mixin
implements software.constructs.IMixin
Resource Type definition for AWS::BedrockAgentCore::Harness - a managed agentic loop service that provides a turnkey solution for running stateful, tool-equipped AI agents.
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.*;
import software.amazon.awscdk.*;
Object awsIam;
Object disabled;
Object inputSchema;
IMergeStrategy mergeStrategy;
Object none;
CfnHarnessPropsMixin cfnHarnessPropsMixin = CfnHarnessPropsMixin.Builder.create(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")
.privateEndpoint(PrivateEndpointProperty.builder()
.managedVpcResource(ManagedVpcResourceProperty.builder()
.endpointIpAddressType("endpointIpAddressType")
.routingDomain("routingDomain")
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.tags(Map.of(
"tagsKey", "tags"))
.vpcIdentifier("vpcIdentifier")
.build())
.selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
.resourceConfigurationIdentifier("resourceConfigurationIdentifier")
.build())
.build())
.privateEndpointOverrides(List.of(PrivateEndpointOverrideProperty.builder()
.domain("domain")
.privateEndpoint(PrivateEndpointProperty.builder()
.managedVpcResource(ManagedVpcResourceProperty.builder()
.endpointIpAddressType("endpointIpAddressType")
.routingDomain("routingDomain")
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.tags(Map.of(
"tagsKey", "tags"))
.vpcIdentifier("vpcIdentifier")
.build())
.selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
.resourceConfigurationIdentifier("resourceConfigurationIdentifier")
.build())
.build())
.build()))
.build())
.build())
.environment(HarnessEnvironmentProviderProperty.builder()
.agentCoreRuntimeEnvironment(HarnessAgentCoreRuntimeEnvironmentProperty.builder()
.agentRuntimeArn("agentRuntimeArn")
.agentRuntimeId("agentRuntimeId")
.agentRuntimeName("agentRuntimeName")
.filesystemConfigurations(List.of(FilesystemConfigurationProperty.builder()
.efsAccessPoint(EfsAccessPointConfigurationProperty.builder()
.accessPointArn("accessPointArn")
.mountPath("mountPath")
.build())
.s3FilesAccessPoint(S3FilesAccessPointConfigurationProperty.builder()
.accessPointArn("accessPointArn")
.mountPath("mountPath")
.build())
.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("relevanceScore")
.strategyId("strategyId")
.topK("topK")
.build()))
.build())
.disabled(disabled)
.managedMemoryConfiguration(HarnessManagedMemoryConfigurationProperty.builder()
.arn("arn")
.encryptionKeyArn("encryptionKeyArn")
.eventExpiryDuration(123)
.strategies(List.of("strategies"))
.build())
.build())
.model(HarnessModelConfigurationProperty.builder()
.bedrockModelConfig(HarnessBedrockModelConfigProperty.builder()
.apiFormat("apiFormat")
.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())
.liteLlmModelConfig(HarnessLiteLlmModelConfigProperty.builder()
.apiBase("apiBase")
.apiKeyArn("apiKeyArn")
.maxTokens(123)
.modelId("modelId")
.temperature(123)
.topP(123)
.build())
.openAiModelConfig(HarnessOpenAiModelConfigProperty.builder()
.apiFormat("apiFormat")
.apiKeyArn("apiKeyArn")
.maxTokens(123)
.modelId("modelId")
.temperature(123)
.topP(123)
.build())
.build())
.skills(List.of(HarnessSkillProperty.builder()
.awsSkills(HarnessSkillAwsSkillsSourceProperty.builder()
.paths(List.of("paths"))
.build())
.git(HarnessSkillGitSourceProperty.builder()
.auth(HarnessSkillGitAuthProperty.builder()
.credentialArn("credentialArn")
.username("username")
.build())
.path("path")
.url("url")
.build())
.path("path")
.s3(HarnessSkillS3SourceProperty.builder()
.uri("uri")
.build())
.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())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static interfaceExample:static final classA fluent builder forCfnHarnessPropsMixin.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceConfiguration for an Amazon EFS access point to mount into the AgentCore Runtime.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceConfiguration for managed memory.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceAWS Skills baked into the Harness's underlying Runtime.static interfaceAuthentication configuration for accessing a private git repository.static interfaceA git repository containing the skill, cloned over HTTPS.static interfaceExample:static interfaceAn S3 source containing the skill.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceConfiguration for a service-managed VPC endpoint.static interfaceExample:static interfaceExample:static interfaceMaps a domain to a private endpoint for resolving that domain over a private network.static interfacePrivate endpoint configuration for connecting to the OpenID Connect discovery endpoint over a private network.static interfaceConfiguration for an Amazon S3 Files access point to mount into the AgentCore Runtime.static interfaceConfiguration for connecting to a private resource using a self-managed VPC Lattice resource configuration.static interfaceExample:static interfaceExample: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::BedrockAgentCore::Harness.CfnHarnessPropsMixin(CfnHarnessMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::BedrockAgentCore::Harness.protectedCfnHarnessPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHarnessPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnHarnessMixinPropsgetProps()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
-
CfnHarnessPropsMixin
protected CfnHarnessPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnHarnessPropsMixin
protected CfnHarnessPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnHarnessPropsMixin
@Stability(Stable) public CfnHarnessPropsMixin(@NotNull CfnHarnessMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::BedrockAgentCore::Harness.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnHarnessPropsMixin
Create a mixin to apply properties toAWS::BedrockAgentCore::Harness.- 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
-