CfnHarnessMixinProps
- class aws_cdk.cfn_property_mixins.aws_bedrockagentcore.CfnHarnessMixinProps(*, allowed_tools=None, authorizer_configuration=None, environment=None, environment_artifact=None, environment_variables=None, execution_role_arn=None, harness_name=None, max_iterations=None, max_tokens=None, memory=None, model=None, skills=None, system_prompt=None, tags=None, timeout_seconds=None, tools=None, truncation=None)
Bases:
objectProperties for CfnHarnessPropsMixin.
- Parameters:
allowed_tools (
Optional[Sequence[str]]) – The tools that the agent is allowed to use.authorizer_configuration (
Union[IResolvable,AuthorizerConfigurationProperty,Dict[str,Any],None])environment (
Union[IResolvable,HarnessEnvironmentProviderProperty,Dict[str,Any],None])environment_artifact (
Union[IResolvable,HarnessEnvironmentArtifactProperty,Dict[str,Any],None])environment_variables (
Union[IResolvable,Mapping[str,str],None]) – Environment variables to set in the harness runtime environment.execution_role_arn (
Optional[str]) – The ARN of the IAM role that the harness assumes when running.harness_name (
Optional[str]) – The name of the harness.max_iterations (
Union[int,float,None]) – The maximum number of iterations the agent loop can execute per invocation.max_tokens (
Union[int,float,None]) – The maximum number of tokens the agent can generate per iteration.memory (
Union[IResolvable,HarnessMemoryConfigurationProperty,Dict[str,Any],None])model (
Union[IResolvable,HarnessModelConfigurationProperty,Dict[str,Any],None])skills (
Union[IResolvable,Sequence[Union[IResolvable,HarnessSkillProperty,Dict[str,Any]]],None]) – The skills available to the agent.system_prompt (
Union[IResolvable,Sequence[Union[IResolvable,HarnessSystemContentBlockProperty,Dict[str,Any]]],None]) – The system prompt that defines the agent’s behavior.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – Tags to apply to the harness resource.timeout_seconds (
Union[int,float,None]) – The maximum duration in seconds for the agent loop execution per invocation.tools (
Union[IResolvable,Sequence[Union[IResolvable,HarnessToolProperty,Dict[str,Any]]],None]) – The tools available to the agent.truncation (
Union[IResolvable,HarnessTruncationConfigurationProperty,Dict[str,Any],None])
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore # aws_iam: Any # input_schema: Any # none: Any cfn_harness_mixin_props = bedrockagentcore.CfnHarnessMixinProps( allowed_tools=["allowedTools"], authorizer_configuration=bedrockagentcore.CfnHarnessPropsMixin.AuthorizerConfigurationProperty( custom_jwt_authorizer=bedrockagentcore.CfnHarnessPropsMixin.CustomJWTAuthorizerConfigurationProperty( allowed_audience=["allowedAudience"], allowed_clients=["allowedClients"], allowed_scopes=["allowedScopes"], custom_claims=[bedrockagentcore.CfnHarnessPropsMixin.CustomClaimValidationTypeProperty( authorizing_claim_match_value=bedrockagentcore.CfnHarnessPropsMixin.AuthorizingClaimMatchValueTypeProperty( claim_match_operator="claimMatchOperator", claim_match_value=bedrockagentcore.CfnHarnessPropsMixin.ClaimMatchValueTypeProperty( match_value_string="matchValueString", match_value_string_list=["matchValueStringList"] ) ), inbound_token_claim_name="inboundTokenClaimName", inbound_token_claim_value_type="inboundTokenClaimValueType" )], discovery_url="discoveryUrl" ) ), environment=bedrockagentcore.CfnHarnessPropsMixin.HarnessEnvironmentProviderProperty( agent_core_runtime_environment=bedrockagentcore.CfnHarnessPropsMixin.HarnessAgentCoreRuntimeEnvironmentProperty( agent_runtime_arn="agentRuntimeArn", agent_runtime_id="agentRuntimeId", agent_runtime_name="agentRuntimeName", filesystem_configurations=[bedrockagentcore.CfnHarnessPropsMixin.FilesystemConfigurationProperty( session_storage=bedrockagentcore.CfnHarnessPropsMixin.SessionStorageConfigurationProperty( mount_path="mountPath" ) )], lifecycle_configuration=bedrockagentcore.CfnHarnessPropsMixin.LifecycleConfigurationProperty( idle_runtime_session_timeout=123, max_lifetime=123 ), network_configuration=bedrockagentcore.CfnHarnessPropsMixin.NetworkConfigurationProperty( network_mode="networkMode", network_mode_config=bedrockagentcore.CfnHarnessPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnets=["subnets"] ) ) ) ), environment_artifact=bedrockagentcore.CfnHarnessPropsMixin.HarnessEnvironmentArtifactProperty( container_configuration=bedrockagentcore.CfnHarnessPropsMixin.ContainerConfigurationProperty( container_uri="containerUri" ) ), environment_variables={ "environment_variables_key": "environmentVariables" }, execution_role_arn="executionRoleArn", harness_name="harnessName", max_iterations=123, max_tokens=123, memory=bedrockagentcore.CfnHarnessPropsMixin.HarnessMemoryConfigurationProperty( agent_core_memory_configuration=bedrockagentcore.CfnHarnessPropsMixin.HarnessAgentCoreMemoryConfigurationProperty( actor_id="actorId", arn="arn", messages_count=123, retrieval_config={ "retrieval_config_key": bedrockagentcore.CfnHarnessPropsMixin.HarnessAgentCoreMemoryRetrievalConfigProperty( relevance_score=123, strategy_id="strategyId", top_k=123 ) } ) ), model=bedrockagentcore.CfnHarnessPropsMixin.HarnessModelConfigurationProperty( bedrock_model_config=bedrockagentcore.CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty( max_tokens=123, model_id="modelId", temperature=123, top_p=123 ), gemini_model_config=bedrockagentcore.CfnHarnessPropsMixin.HarnessGeminiModelConfigProperty( api_key_arn="apiKeyArn", max_tokens=123, model_id="modelId", temperature=123, top_k=123, top_p=123 ), open_ai_model_config=bedrockagentcore.CfnHarnessPropsMixin.HarnessOpenAiModelConfigProperty( api_key_arn="apiKeyArn", max_tokens=123, model_id="modelId", temperature=123, top_p=123 ) ), skills=[bedrockagentcore.CfnHarnessPropsMixin.HarnessSkillProperty( path="path" )], system_prompt=[bedrockagentcore.CfnHarnessPropsMixin.HarnessSystemContentBlockProperty( text="text" )], tags=[CfnTag( key="key", value="value" )], timeout_seconds=123, tools=[bedrockagentcore.CfnHarnessPropsMixin.HarnessToolProperty( config=bedrockagentcore.CfnHarnessPropsMixin.HarnessToolConfigurationProperty( agent_core_browser=bedrockagentcore.CfnHarnessPropsMixin.HarnessAgentCoreBrowserConfigProperty( browser_arn="browserArn" ), agent_core_code_interpreter=bedrockagentcore.CfnHarnessPropsMixin.HarnessAgentCoreCodeInterpreterConfigProperty( code_interpreter_arn="codeInterpreterArn" ), agent_core_gateway=bedrockagentcore.CfnHarnessPropsMixin.HarnessAgentCoreGatewayConfigProperty( gateway_arn="gatewayArn", outbound_auth=bedrockagentcore.CfnHarnessPropsMixin.HarnessGatewayOutboundAuthProperty( aws_iam=aws_iam, none=none, oauth=bedrockagentcore.CfnHarnessPropsMixin.OAuthCredentialProviderProperty( custom_parameters={ "custom_parameters_key": "customParameters" }, default_return_url="defaultReturnUrl", grant_type="grantType", provider_arn="providerArn", scopes=["scopes"] ) ) ), inline_function=bedrockagentcore.CfnHarnessPropsMixin.HarnessInlineFunctionConfigProperty( description="description", input_schema=input_schema ), remote_mcp=bedrockagentcore.CfnHarnessPropsMixin.HarnessRemoteMcpConfigProperty( headers={ "headers_key": "headers" }, url="url" ) ), name="name", type="type" )], truncation=bedrockagentcore.CfnHarnessPropsMixin.HarnessTruncationConfigurationProperty( config=bedrockagentcore.CfnHarnessPropsMixin.HarnessTruncationStrategyConfigurationProperty( sliding_window=bedrockagentcore.CfnHarnessPropsMixin.HarnessSlidingWindowConfigurationProperty( messages_count=123 ), summarization=bedrockagentcore.CfnHarnessPropsMixin.HarnessSummarizationConfigurationProperty( preserve_recent_messages=123, summarization_system_prompt="summarizationSystemPrompt", summary_ratio=123 ) ), strategy="strategy" ) )
Attributes
- allowed_tools
The tools that the agent is allowed to use.
- authorizer_configuration
-
- Type:
see
- environment
-
- Type:
see
- environment_artifact
-
- Type:
see
- environment_variables
Environment variables to set in the harness runtime environment.
- execution_role_arn
The ARN of the IAM role that the harness assumes when running.
- harness_name
The name of the harness.
- max_iterations
The maximum number of iterations the agent loop can execute per invocation.
- max_tokens
The maximum number of tokens the agent can generate per iteration.
- memory
-
- Type:
see
- model
-
- Type:
see
- skills
The skills available to the agent.
- system_prompt
The system prompt that defines the agent’s behavior.
- tags
Tags to apply to the harness resource.
- timeout_seconds
The maximum duration in seconds for the agent loop execution per invocation.
- tools
The tools available to the agent.