diff --git a/clients/client-bedrock-agent/src/commands/CreateAgentAliasCommand.ts b/clients/client-bedrock-agent/src/commands/CreateAgentAliasCommand.ts index 60e3d103eee2..becdebdb3612 100644 --- a/clients/client-bedrock-agent/src/commands/CreateAgentAliasCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreateAgentAliasCommand.ts @@ -41,7 +41,8 @@ export interface CreateAgentAliasCommandOutput extends CreateAgentAliasResponse, * description: "STRING_VALUE", * routingConfiguration: [ // AgentAliasRoutingConfiguration * { // AgentAliasRoutingConfigurationListItem - * agentVersion: "STRING_VALUE", // required + * agentVersion: "STRING_VALUE", + * provisionedThroughput: "STRING_VALUE", * }, * ], * tags: { // TagsMap @@ -60,7 +61,8 @@ export interface CreateAgentAliasCommandOutput extends CreateAgentAliasResponse, * // description: "STRING_VALUE", * // routingConfiguration: [ // AgentAliasRoutingConfiguration // required * // { // AgentAliasRoutingConfigurationListItem - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // createdAt: new Date("TIMESTAMP"), // required @@ -69,7 +71,8 @@ export interface CreateAgentAliasCommandOutput extends CreateAgentAliasResponse, * // { // AgentAliasHistoryEvent * // routingConfiguration: [ * // { - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // endDate: new Date("TIMESTAMP"), @@ -77,6 +80,9 @@ export interface CreateAgentAliasCommandOutput extends CreateAgentAliasResponse, * // }, * // ], * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], * // }, * // }; * diff --git a/clients/client-bedrock-agent/src/commands/GetAgentAliasCommand.ts b/clients/client-bedrock-agent/src/commands/GetAgentAliasCommand.ts index 2a32b7cef742..1c65be258081 100644 --- a/clients/client-bedrock-agent/src/commands/GetAgentAliasCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetAgentAliasCommand.ts @@ -50,7 +50,8 @@ export interface GetAgentAliasCommandOutput extends GetAgentAliasResponse, __Met * // description: "STRING_VALUE", * // routingConfiguration: [ // AgentAliasRoutingConfiguration // required * // { // AgentAliasRoutingConfigurationListItem - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // createdAt: new Date("TIMESTAMP"), // required @@ -59,7 +60,8 @@ export interface GetAgentAliasCommandOutput extends GetAgentAliasResponse, __Met * // { // AgentAliasHistoryEvent * // routingConfiguration: [ * // { - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // endDate: new Date("TIMESTAMP"), @@ -67,6 +69,9 @@ export interface GetAgentAliasCommandOutput extends GetAgentAliasResponse, __Met * // }, * // ], * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], * // }, * // }; * diff --git a/clients/client-bedrock-agent/src/commands/ListAgentAliasesCommand.ts b/clients/client-bedrock-agent/src/commands/ListAgentAliasesCommand.ts index dfd5f977c916..da76e6576757 100644 --- a/clients/client-bedrock-agent/src/commands/ListAgentAliasesCommand.ts +++ b/clients/client-bedrock-agent/src/commands/ListAgentAliasesCommand.ts @@ -49,7 +49,8 @@ export interface ListAgentAliasesCommandOutput extends ListAgentAliasesResponse, * // description: "STRING_VALUE", * // routingConfiguration: [ // AgentAliasRoutingConfiguration * // { // AgentAliasRoutingConfigurationListItem - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required diff --git a/clients/client-bedrock-agent/src/commands/UpdateAgentAliasCommand.ts b/clients/client-bedrock-agent/src/commands/UpdateAgentAliasCommand.ts index 148cace826dc..ae61f41944e5 100644 --- a/clients/client-bedrock-agent/src/commands/UpdateAgentAliasCommand.ts +++ b/clients/client-bedrock-agent/src/commands/UpdateAgentAliasCommand.ts @@ -41,7 +41,8 @@ export interface UpdateAgentAliasCommandOutput extends UpdateAgentAliasResponse, * description: "STRING_VALUE", * routingConfiguration: [ // AgentAliasRoutingConfiguration * { // AgentAliasRoutingConfigurationListItem - * agentVersion: "STRING_VALUE", // required + * agentVersion: "STRING_VALUE", + * provisionedThroughput: "STRING_VALUE", * }, * ], * }; @@ -57,7 +58,8 @@ export interface UpdateAgentAliasCommandOutput extends UpdateAgentAliasResponse, * // description: "STRING_VALUE", * // routingConfiguration: [ // AgentAliasRoutingConfiguration // required * // { // AgentAliasRoutingConfigurationListItem - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // createdAt: new Date("TIMESTAMP"), // required @@ -66,7 +68,8 @@ export interface UpdateAgentAliasCommandOutput extends UpdateAgentAliasResponse, * // { // AgentAliasHistoryEvent * // routingConfiguration: [ * // { - * // agentVersion: "STRING_VALUE", // required + * // agentVersion: "STRING_VALUE", + * // provisionedThroughput: "STRING_VALUE", * // }, * // ], * // endDate: new Date("TIMESTAMP"), @@ -74,6 +77,9 @@ export interface UpdateAgentAliasCommandOutput extends UpdateAgentAliasResponse, * // }, * // ], * // agentAliasStatus: "CREATING" || "PREPARED" || "FAILED" || "UPDATING" || "DELETING", // required + * // failureReasons: [ // FailureReasons + * // "STRING_VALUE", + * // ], * // }, * // }; * diff --git a/clients/client-bedrock-agent/src/models/models_0.ts b/clients/client-bedrock-agent/src/models/models_0.ts index bca7c4181cdc..16b07be0e3bc 100644 --- a/clients/client-bedrock-agent/src/models/models_0.ts +++ b/clients/client-bedrock-agent/src/models/models_0.ts @@ -37,7 +37,7 @@ export const CustomControlMethod = { export type CustomControlMethod = (typeof CustomControlMethod)[keyof typeof CustomControlMethod]; /** - *
Contains details about the Lambda function containing the business logic that is carried out upon invoking the action.
+ *Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
* @public */ export type ActionGroupExecutor = @@ -438,7 +438,7 @@ export interface CreateAgentActionGroupRequest { parentActionGroupSignature?: ActionGroupSignature; /** - *The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
+ *The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
* @public */ actionGroupExecutor?: ActionGroupExecutor; @@ -524,7 +524,7 @@ export interface AgentActionGroup { parentActionSignature?: ActionGroupSignature; /** - *The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
+ *The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
* @public */ actionGroupExecutor?: ActionGroupExecutor; @@ -1243,7 +1243,13 @@ export interface AgentAliasRoutingConfigurationListItem { *The version of the agent with which the alias is associated.
* @public */ - agentVersion: string | undefined; + agentVersion?: string; + + /** + *Information on the Provisioned Throughput assigned to an agent alias.
+ * @public + */ + provisionedThroughput?: string; } /** @@ -1375,6 +1381,12 @@ export interface AgentAlias { * @public */ agentAliasStatus: AgentAliasStatus | undefined; + + /** + *Information on the failure of Provisioned Throughput assigned to an agent alias.
+ * @public + */ + failureReasons?: string[]; } /** @@ -2694,7 +2706,7 @@ export interface UpdateDataSourceRequest { dataSourceConfiguration: DataSourceConfiguration | undefined; /** - *The data deletion policy assigned to the data source.
+ *The data deletion policy of the updated data source.
* @public */ dataDeletionPolicy?: DataDeletionPolicy; diff --git a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts index 4a45eb7d139e..5e9ee1786860 100644 --- a/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts +++ b/clients/client-bedrock-agent/src/protocols/Aws_restJson1.ts @@ -2300,6 +2300,7 @@ const de_AgentAlias = (output: any, context: __SerdeContext): AgentAlias => { clientToken: __expectString, createdAt: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), description: __expectString, + failureReasons: _json, routingConfiguration: _json, updatedAt: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), }) as any; diff --git a/codegen/sdk-codegen/aws-models/bedrock-agent.json b/codegen/sdk-codegen/aws-models/bedrock-agent.json index dd70b4d349c3..40cbda68f24e 100644 --- a/codegen/sdk-codegen/aws-models/bedrock-agent.json +++ b/codegen/sdk-codegen/aws-models/bedrock-agent.json @@ -51,7 +51,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains details about the Lambda function containing the business logic that is carried out upon invoking the action.
" + "smithy.api#documentation": "Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
" } }, "com.amazonaws.bedrockagent#ActionGroupResource": { @@ -346,7 +346,7 @@ "actionGroupExecutor": { "target": "com.amazonaws.bedrockagent#ActionGroupExecutor", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
" + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
" } }, "apiSchema": { @@ -449,6 +449,12 @@ "smithy.api#documentation": "The status of the alias of the agent and whether it is ready for use. The following statuses are possible:
\nCREATING – The agent alias is being created.
\nPREPARED – The agent alias is finished being created or updated and is ready to be invoked.
\nFAILED – The agent alias API operation failed.
\nUPDATING – The agent alias is being updated.
\nDELETING – The agent alias is being deleted.
\nInformation on the failure of Provisioned Throughput assigned to an agent alias.
" + } } }, "traits": { @@ -528,8 +534,13 @@ "agentVersion": { "target": "com.amazonaws.bedrockagent#Version", "traits": { - "smithy.api#documentation": "The version of the agent with which the alias is associated.
", - "smithy.api#required": {} + "smithy.api#documentation": "The version of the agent with which the alias is associated.
" + } + }, + "provisionedThroughput": { + "target": "com.amazonaws.bedrockagent#ProvisionedModelIdentifier", + "traits": { + "smithy.api#documentation": "Information on the Provisioned Throughput assigned to an agent alias.
" } } }, @@ -2136,7 +2147,7 @@ "actionGroupExecutor": { "target": "com.amazonaws.bedrockagent#ActionGroupExecutor", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
" + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
" } }, "apiSchema": { @@ -6376,6 +6387,16 @@ } } }, + "com.amazonaws.bedrockagent#ProvisionedModelIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^((([0-9a-zA-Z][_-]?){1,63})|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}))$" + } + }, "com.amazonaws.bedrockagent#RdsArn": { "type": "string", "traits": { @@ -7711,7 +7732,7 @@ "dataDeletionPolicy": { "target": "com.amazonaws.bedrockagent#DataDeletionPolicy", "traits": { - "smithy.api#documentation": "The data deletion policy assigned to the data source.
" + "smithy.api#documentation": "The data deletion policy of the updated data source.
" } }, "serverSideEncryptionConfiguration": {