Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Sep 4, 2024
1 parent a2b751d commit f7030de
Show file tree
Hide file tree
Showing 6 changed files with 1,006 additions and 46 deletions.
14 changes: 13 additions & 1 deletion codegen/sdk-codegen/aws-models/appsync.json
Original file line number Diff line number Diff line change
Expand Up @@ -4635,6 +4635,18 @@
"traits": {
"smithy.api#enumValue": "ALL"
}
},
"INFO": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "INFO"
}
},
"DEBUG": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DEBUG"
}
}
}
},
Expand Down Expand Up @@ -7017,7 +7029,7 @@
"fieldLogLevel": {
"target": "com.amazonaws.appsync#FieldLogLevel",
"traits": {
"smithy.api#documentation": "<p>The field logging level. Values can be NONE, ERROR, or ALL.</p>\n <ul>\n <li>\n <p>\n <b>NONE</b>: No field-level logs are captured.</p>\n </li>\n <li>\n <p>\n <b>ERROR</b>: Logs the following information only for the fields that are\n in error:</p>\n <ul>\n <li>\n <p>The error section in the server response.</p>\n </li>\n <li>\n <p>Field-level errors.</p>\n </li>\n <li>\n <p>The generated request/response functions that got resolved for error fields.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <b>ALL</b>: The following information is logged for all fields in the\n query:</p>\n <ul>\n <li>\n <p>Field-level tracing information.</p>\n </li>\n <li>\n <p>The generated request/response functions that got resolved for each field.</p>\n </li>\n </ul>\n </li>\n </ul>",
"smithy.api#documentation": "<p>The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.</p>\n <ul>\n <li>\n <p>\n <b>NONE</b>: No field-level logs are captured.</p>\n </li>\n <li>\n <p>\n <b>ERROR</b>: Logs the following information\n <b>only</b> for the fields that are in the error\n category:</p>\n <ul>\n <li>\n <p>The error section in the server response.</p>\n </li>\n <li>\n <p>Field-level errors.</p>\n </li>\n <li>\n <p>The generated request/response functions that got resolved for error fields.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <b>INFO</b>: Logs the following information <b>only</b> for the fields that are in the info and error\n categories:</p>\n <ul>\n <li>\n <p>Info-level messages.</p>\n </li>\n <li>\n <p>The user messages sent through <code>$util.log.info</code> and\n <code>console.log</code>.</p>\n </li>\n <li>\n <p>Field-level tracing and mapping logs are not shown.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <b>DEBUG</b>: Logs the following information\n <b>only</b> for the fields that are in the debug, info,\n and error categories:</p>\n <ul>\n <li>\n <p>Debug-level messages.</p>\n </li>\n <li>\n <p>The user messages sent through <code>$util.log.info</code>,\n <code>$util.log.debug</code>, <code>console.log</code>, and\n <code>console.debug</code>.</p>\n </li>\n <li>\n <p>Field-level tracing and mapping logs are not shown.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <b>ALL</b>: The following information is logged for all fields in the\n query:</p>\n <ul>\n <li>\n <p>Field-level tracing information.</p>\n </li>\n <li>\n <p>The generated request/response functions that were resolved for each\n field.</p>\n </li>\n </ul>\n </li>\n </ul>",
"smithy.api#required": {}
}
},
Expand Down
67 changes: 65 additions & 2 deletions codegen/sdk-codegen/aws-models/bedrock-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.</p>\n <ul>\n <li>\n <p>Specify the following fields for security purposes.</p>\n <ul>\n <li>\n <p>\n <code>agentResourceRoleArn</code> – The Amazon Resource Name (ARN) of the role with permissions to invoke API operations on an agent.</p>\n </li>\n <li>\n <p>(Optional) <code>customerEncryptionKeyArn</code> – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.</p>\n </li>\n <li>\n <p>(Optional) <code>idleSessionTTLinSeconds</code> – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent <code>InvokeAgent</code> request begins a new session.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>To enable your agent to retain conversational context across multiple sessions, include a <code>memoryConfiguration</code> object. \n For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agents-configure-memory.html\">Configure memory</a>.</p>\n </li>\n <li>\n <p>To override the default prompt behavior for agent orchestration and to use advanced prompts, include a <code>promptOverrideConfiguration</code> object. \n For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html\">Advanced prompts</a>.</p>\n </li>\n <li>\n <p>If you agent fails to be created, the response returns a list of <code>failureReasons</code> alongside a list of <code>recommendedActions</code> for you to troubleshoot.</p>\n </li>\n </ul>",
"smithy.api#documentation": "<p>Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.</p>\n <ul>\n <li>\n <p>Specify the following fields for security purposes.</p>\n <ul>\n <li>\n <p>\n <code>agentResourceRoleArn</code> – The Amazon Resource Name (ARN) of the role with permissions to invoke API operations on an agent.</p>\n </li>\n <li>\n <p>(Optional) <code>customerEncryptionKeyArn</code> – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.</p>\n </li>\n <li>\n <p>(Optional) <code>idleSessionTTLinSeconds</code> – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent <code>InvokeAgent</code> request begins a new session.</p>\n </li>\n </ul>\n </li>\n <li>\n <p>To enable your agent to retain conversational context across multiple sessions, include a <code>memoryConfiguration</code> object. \n For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/agents-configure-memory.html\">Configure memory</a>.</p>\n </li>\n <li>\n <p>To override the default prompt behavior for agent orchestration and to use advanced prompts, include a <code>promptOverrideConfiguration</code> object. \n For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html\">Advanced prompts</a>.</p>\n </li>\n <li>\n <p>If your agent fails to be created, the response returns a list of <code>failureReasons</code> alongside a list of <code>recommendedActions</code> for you to troubleshoot.</p>\n </li>\n <li>\n <p>The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.</p>\n </li>\n </ul>",
"smithy.api#http": {
"code": 202,
"method": "PUT",
Expand Down Expand Up @@ -9950,7 +9950,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Settings for parsing document contents. By default, the service converts the contents of each\n document into text before splitting it into chunks. To improve processing of PDF files with tables and images,\n you can configure the data source to convert the pages of text into images and use a model to describe the\n contents of each page.</p>\n <p>To use a model to parse PDF documents, set the parsing strategy to <code>BEDROCK_FOUNDATION_MODEL</code> and\n specify the model to use by ARN. You can also override the default parsing prompt with instructions for how\n to interpret images and tables in your documents. The following models are supported.</p>\n <ul>\n <li>\n <p>Anthropic Claude 3 Sonnet - <code>anthropic.claude-3-sonnet-20240229-v1:0</code>\n </p>\n </li>\n <li>\n <p>Anthropic Claude 3 Haiku - <code>anthropic.claude-3-haiku-20240307-v1:0</code>\n </p>\n </li>\n </ul>\n <p>You can get the ARN of a model with the action. Standard model usage\n charges apply for the foundation model parsing strategy.</p>"
"smithy.api#documentation": "<p>Settings for parsing document contents. By default, the service converts the contents of each\n document into text before splitting it into chunks. To improve processing of PDF files with tables and images,\n you can configure the data source to convert the pages of text into images and use a model to describe the\n contents of each page.</p>\n <p>To use a model to parse PDF documents, set the parsing strategy to <code>BEDROCK_FOUNDATION_MODEL</code> and\n specify the model to use by ARN. You can also override the default parsing prompt with instructions for how\n to interpret images and tables in your documents. The following models are supported.</p>\n <ul>\n <li>\n <p>Anthropic Claude 3 Sonnet - <code>anthropic.claude-3-sonnet-20240229-v1:0</code>\n </p>\n </li>\n <li>\n <p>Anthropic Claude 3 Haiku - <code>anthropic.claude-3-haiku-20240307-v1:0</code>\n </p>\n </li>\n </ul>\n <p>You can get the ARN of a model with the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html\">ListFoundationModels</a> action. Standard model usage\n charges apply for the foundation model parsing strategy.</p>"
}
},
"com.amazonaws.bedrockagent#ParsingPrompt": {
Expand Down Expand Up @@ -10513,6 +10513,63 @@
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagent#PromptMetadataEntry": {
"type": "structure",
"members": {
"key": {
"target": "com.amazonaws.bedrockagent#PromptMetadataKey",
"traits": {
"smithy.api#documentation": "<p>The key of a metadata tag for a prompt variant.</p>",
"smithy.api#required": {}
}
},
"value": {
"target": "com.amazonaws.bedrockagent#PromptMetadataValue",
"traits": {
"smithy.api#documentation": "<p>The value of a metadata tag for a prompt variant.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html\">Create a prompt using Prompt management</a>.</p>",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagent#PromptMetadataKey": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 128
},
"smithy.api#pattern": "^[a-zA-Z0-9\\s._:/=+@-]*$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagent#PromptMetadataList": {
"type": "list",
"member": {
"target": "com.amazonaws.bedrockagent#PromptMetadataEntry"
},
"traits": {
"smithy.api#length": {
"max": 50
},
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagent#PromptMetadataValue": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 1024
},
"smithy.api#pattern": "^[a-zA-Z0-9\\s._:/=+@-]*$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.bedrockagent#PromptModelIdentifier": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -10794,6 +10851,12 @@
"traits": {
"smithy.api#documentation": "<p>Contains inference configurations for the prompt variant.</p>"
}
},
"metadata": {
"target": "com.amazonaws.bedrockagent#PromptMetadataList",
"traits": {
"smithy.api#documentation": "<p>An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html\">Create a prompt using Prompt management</a>.</p>"
}
}
},
"traits": {
Expand Down
Loading

0 comments on commit f7030de

Please sign in to comment.