From 632626feacd26cf4c40da416bd2957be83b2807a Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 23 Aug 2024 18:25:49 +0000 Subject: [PATCH] feat(client-bedrock-agent): Releasing the support for Action User Confirmation. --- .../commands/CreateAgentActionGroupCommand.ts | 2 + .../src/commands/DeletePromptCommand.ts | 2 +- .../commands/GetAgentActionGroupCommand.ts | 1 + .../src/commands/GetPromptCommand.ts | 2 +- .../src/commands/ListPromptsCommand.ts | 2 +- .../commands/UpdateAgentActionGroupCommand.ts | 2 + .../src/models/models_0.ts | 78 ++++++++++++------- .../sdk-codegen/aws-models/bedrock-agent.json | 78 ++++++++++++------- 8 files changed, 110 insertions(+), 57 deletions(-) diff --git a/clients/client-bedrock-agent/src/commands/CreateAgentActionGroupCommand.ts b/clients/client-bedrock-agent/src/commands/CreateAgentActionGroupCommand.ts index 6edafa9f451b1..92c3c5c15ed60 100644 --- a/clients/client-bedrock-agent/src/commands/CreateAgentActionGroupCommand.ts +++ b/clients/client-bedrock-agent/src/commands/CreateAgentActionGroupCommand.ts @@ -76,6 +76,7 @@ export interface CreateAgentActionGroupCommandOutput extends CreateAgentActionGr * required: true || false, * }, * }, + * requireConfirmation: "ENABLED" || "DISABLED", * }, * ], * }, @@ -116,6 +117,7 @@ export interface CreateAgentActionGroupCommandOutput extends CreateAgentActionGr * // required: true || false, * // }, * // }, + * // requireConfirmation: "ENABLED" || "DISABLED", * // }, * // ], * // }, diff --git a/clients/client-bedrock-agent/src/commands/DeletePromptCommand.ts b/clients/client-bedrock-agent/src/commands/DeletePromptCommand.ts index 6cd43df85c502..3f27b40094f1f 100644 --- a/clients/client-bedrock-agent/src/commands/DeletePromptCommand.ts +++ b/clients/client-bedrock-agent/src/commands/DeletePromptCommand.ts @@ -28,7 +28,7 @@ export interface DeletePromptCommandInput extends DeletePromptRequest {} export interface DeletePromptCommandOutput extends DeletePromptResponse, __MetadataBearer {} /** - *

Deletes a prompt or a prompt version from the Prompt management tool. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide.

+ *

Deletes a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock-agent/src/commands/GetAgentActionGroupCommand.ts b/clients/client-bedrock-agent/src/commands/GetAgentActionGroupCommand.ts index ca82369ca01cc..6a5af88abb869 100644 --- a/clients/client-bedrock-agent/src/commands/GetAgentActionGroupCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetAgentActionGroupCommand.ts @@ -80,6 +80,7 @@ export interface GetAgentActionGroupCommandOutput extends GetAgentActionGroupRes * // required: true || false, * // }, * // }, + * // requireConfirmation: "ENABLED" || "DISABLED", * // }, * // ], * // }, diff --git a/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts b/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts index 1ffe37fc39aeb..f23857ce4c910 100644 --- a/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts +++ b/clients/client-bedrock-agent/src/commands/GetPromptCommand.ts @@ -28,7 +28,7 @@ export interface GetPromptCommandInput extends GetPromptRequest {} export interface GetPromptCommandOutput extends GetPromptResponse, __MetadataBearer {} /** - *

Retrieves information about a prompt or a version of it. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.

+ *

Retrieves information about the working draft (DRAFT version) of a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock-agent/src/commands/ListPromptsCommand.ts b/clients/client-bedrock-agent/src/commands/ListPromptsCommand.ts index 148fdb5a2f5a8..3125534226d85 100644 --- a/clients/client-bedrock-agent/src/commands/ListPromptsCommand.ts +++ b/clients/client-bedrock-agent/src/commands/ListPromptsCommand.ts @@ -28,7 +28,7 @@ export interface ListPromptsCommandInput extends ListPromptsRequest {} export interface ListPromptsCommandOutput extends ListPromptsResponse, __MetadataBearer {} /** - *

Returns a list of prompts from the Prompt management tool and information about each prompt. For more information, see View information about prompts using Prompt management in the Amazon Bedrock User Guide.

+ *

Returns either information about the working draft (DRAFT version) of each prompt in an account, or information about of all versions of a prompt, depending on whether you include the promptIdentifier field or not. For more information, see View information about prompts using Prompt management in the Amazon Bedrock User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-bedrock-agent/src/commands/UpdateAgentActionGroupCommand.ts b/clients/client-bedrock-agent/src/commands/UpdateAgentActionGroupCommand.ts index 66527495845bc..6eedad0faca39 100644 --- a/clients/client-bedrock-agent/src/commands/UpdateAgentActionGroupCommand.ts +++ b/clients/client-bedrock-agent/src/commands/UpdateAgentActionGroupCommand.ts @@ -71,6 +71,7 @@ export interface UpdateAgentActionGroupCommandOutput extends UpdateAgentActionGr * required: true || false, * }, * }, + * requireConfirmation: "ENABLED" || "DISABLED", * }, * ], * }, @@ -111,6 +112,7 @@ export interface UpdateAgentActionGroupCommandOutput extends UpdateAgentActionGr * // required: true || false, * // }, * // }, + * // requireConfirmation: "ENABLED" || "DISABLED", * // }, * // ], * // }, diff --git a/clients/client-bedrock-agent/src/models/models_0.ts b/clients/client-bedrock-agent/src/models/models_0.ts index 70478f367a419..c490323cfa215 100644 --- a/clients/client-bedrock-agent/src/models/models_0.ts +++ b/clients/client-bedrock-agent/src/models/models_0.ts @@ -264,6 +264,20 @@ export interface ParameterDetail { required?: boolean; } +/** + * @public + * @enum + */ +export const RequireConfirmation = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; + +/** + * @public + */ +export type RequireConfirmation = (typeof RequireConfirmation)[keyof typeof RequireConfirmation]; + /** *

Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.

*

This data type is used in the following API operations:

@@ -314,6 +328,12 @@ export interface Function { * @public */ parameters?: Record; + + /** + *

Contains information if user confirmation is required to invoke the function.

+ * @public + */ + requireConfirmation?: RequireConfirmation; } /** @@ -2487,7 +2507,7 @@ export interface ConfluenceSourceConfiguration { /** *

The Amazon Resource Name of an Secrets Manager secret that - * stores your authentication credentials for your SharePoint site/sites. + * stores your authentication credentials for your Confluence instance URL. * For more information on the key-value pairs that must be included in * your secret, depending on your authentication type, see * Confluence connection configuration.

@@ -2588,7 +2608,7 @@ export interface SalesforceSourceConfiguration { /** *

The Amazon Resource Name of an Secrets Manager secret that - * stores your authentication credentials for your SharePoint site/sites. + * stores your authentication credentials for your Salesforce instance URL. * For more information on the key-value pairs that must be included in * your secret, depending on your authentication type, see * Salesforce connection configuration.

@@ -3342,14 +3362,16 @@ export interface CreateDataSourceRequest { *

You can set the data deletion policy to:

* * @public @@ -5108,7 +5130,7 @@ export interface GetFlowAliasRequest { */ export interface GetFlowAliasResponse { /** - *

The name of the flow alias.

+ *

The name of the alias.

* @public */ name: string | undefined; @@ -5150,7 +5172,7 @@ export interface GetFlowAliasResponse { createdAt: Date | undefined; /** - *

The time at which the flow alias was last updated.

+ *

The time at which the alias was last updated.

* @public */ updatedAt: Date | undefined; @@ -5223,7 +5245,7 @@ export interface FlowAliasSummary { id: string | undefined; /** - *

The Amazon Resource Name (ARN) of the flow alias.

+ *

The Amazon Resource Name (ARN) of the alias.

* @public */ arn: string | undefined; @@ -5246,7 +5268,7 @@ export interface FlowAliasSummary { */ export interface ListFlowAliasesResponse { /** - *

A list, each member of which contains information about a flow alias.

+ *

A list, each member of which contains information about an alias.

* @public */ flowAliasSummaries: FlowAliasSummary[] | undefined; @@ -5263,13 +5285,13 @@ export interface ListFlowAliasesResponse { */ export interface UpdateFlowAliasRequest { /** - *

The name of the flow alias.

+ *

The name of the alias.

* @public */ name: string | undefined; /** - *

A description for the flow alias.

+ *

A description for the alias.

* @public */ description?: string; @@ -5298,7 +5320,7 @@ export interface UpdateFlowAliasRequest { */ export interface UpdateFlowAliasResponse { /** - *

The name of the flow alias.

+ *

The name of the alias.

* @public */ name: string | undefined; @@ -5340,7 +5362,7 @@ export interface UpdateFlowAliasResponse { createdAt: Date | undefined; /** - *

The time at which the flow alias was last updated.

+ *

The time at which the alias was last updated.

* @public */ updatedAt: Date | undefined; @@ -5375,13 +5397,13 @@ export interface CreateFlowVersionRequest { */ export interface CreateFlowVersionResponse { /** - *

The name of the flow version.

+ *

The name of the version.

* @public */ name: string | undefined; /** - *

The description of the flow version.

+ *

The description of the version.

* @public */ description?: string; @@ -5497,7 +5519,7 @@ export interface GetFlowVersionRequest { */ export interface GetFlowVersionResponse { /** - *

The name of the flow version.

+ *

The name of the version.

* @public */ name: string | undefined; @@ -5581,7 +5603,7 @@ export interface ListFlowVersionsRequest { } /** - *

Contains information about the flow version.

+ *

Contains information about a version of a flow.

*

This data type is used in the following API operations:

*