AWS::BedrockAgentCore::Harness HarnessGeminiModelConfig - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::BedrockAgentCore::Harness HarnessGeminiModelConfig

Configuration for a Google Gemini model provider. Requires an API key stored in AgentCore Identity.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "ApiKeyArn" : String, "MaxTokens" : Integer, "ModelId" : String, "Temperature" : Number, "TopK" : Integer, "TopP" : Number }

YAML

ApiKeyArn: String MaxTokens: Integer ModelId: String Temperature: Number TopK: Integer TopP: Number

Properties

ApiKeyArn

The ARN of your Gemini API key on AgentCore Identity.

Required: Yes

Type: String

Pattern: ^arn:aws:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:token-vault/[a-zA-Z0-9-.]+/apikeycredentialprovider/[a-zA-Z0-9-.]+$

Update requires: No interruption

MaxTokens

The maximum number of tokens to allow in the generated response per model call.

Required: No

Type: Integer

Minimum: 1

Update requires: No interruption

ModelId

The Gemini model ID.

Required: Yes

Type: String

Update requires: No interruption

Temperature

The temperature to set when calling the model.

Required: No

Type: Number

Minimum: 0

Maximum: 2

Update requires: No interruption

TopK

The topK set when calling the model.

Required: No

Type: Integer

Minimum: 0

Maximum: 500

Update requires: No interruption

TopP

The topP set when calling the model.

Required: No

Type: Number

Minimum: 0

Maximum: 1

Update requires: No interruption