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:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> 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 to AWS::BedrockAgentCore::Harness.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnHarnessPropsMixin

      @Stability(Stable) public CfnHarnessPropsMixin(@NotNull CfnHarnessMixinProps props)
      Create a mixin to apply properties to AWS::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.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnHarnessMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()